n8n-nodes-propstack 0.1.0 → 0.2.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 (502) hide show
  1. package/README.md +132 -28
  2. package/dist/credentials/PropstackApi.credentials.d.ts +10 -0
  3. package/dist/credentials/PropstackApi.credentials.js +40 -0
  4. package/dist/credentials/PropstackApi.credentials.js.map +1 -0
  5. package/dist/credentials/PropstackV2Api.credentials.d.ts +10 -0
  6. package/dist/credentials/PropstackV2Api.credentials.js +41 -0
  7. package/dist/credentials/PropstackV2Api.credentials.js.map +1 -0
  8. package/dist/icons/propstack-logo.svg +1 -0
  9. package/dist/icons/propstack.dark.svg +1 -0
  10. package/dist/icons/propstack.svg +1 -0
  11. package/dist/nodes/Propstack/Propstack.node.d.ts +4 -0
  12. package/dist/nodes/Propstack/Propstack.node.js +30 -0
  13. package/dist/nodes/Propstack/Propstack.node.js.map +1 -0
  14. package/dist/nodes/Propstack/Propstack.node.json +17 -0
  15. package/dist/nodes/Propstack/PropstackTrigger.node.d.ts +12 -0
  16. package/dist/nodes/Propstack/PropstackTrigger.node.js +138 -0
  17. package/dist/nodes/Propstack/PropstackTrigger.node.js.map +1 -0
  18. package/dist/nodes/Propstack/PropstackTrigger.node.json +17 -0
  19. package/dist/nodes/Propstack/types.d.ts +59 -0
  20. package/dist/nodes/Propstack/types.js +3 -0
  21. package/dist/nodes/Propstack/types.js.map +1 -0
  22. package/dist/nodes/Propstack/v1/PropstackV1.d.ts +24 -0
  23. package/dist/nodes/Propstack/v1/PropstackV1.js +314 -0
  24. package/dist/nodes/Propstack/v1/PropstackV1.js.map +1 -0
  25. package/dist/nodes/Propstack/v1/constants.d.ts +66 -0
  26. package/dist/nodes/Propstack/v1/constants.js +70 -0
  27. package/dist/nodes/Propstack/v1/constants.js.map +1 -0
  28. package/dist/nodes/Propstack/v1/helpers.d.ts +7 -0
  29. package/dist/nodes/Propstack/v1/helpers.js +102 -0
  30. package/dist/nodes/Propstack/v1/helpers.js.map +1 -0
  31. package/dist/nodes/Propstack/v1/listSearch.d.ts +14 -0
  32. package/dist/nodes/Propstack/v1/listSearch.js +281 -0
  33. package/dist/nodes/Propstack/v1/listSearch.js.map +1 -0
  34. package/dist/nodes/Propstack/v1/resources/activities/activityTypesGetAll.d.ts +4 -0
  35. package/dist/nodes/Propstack/v1/resources/activities/activityTypesGetAll.js +16 -0
  36. package/dist/nodes/Propstack/v1/resources/activities/activityTypesGetAll.js.map +1 -0
  37. package/dist/nodes/Propstack/v1/resources/activities/get.d.ts +4 -0
  38. package/dist/nodes/Propstack/v1/resources/activities/get.js +33 -0
  39. package/dist/nodes/Propstack/v1/resources/activities/get.js.map +1 -0
  40. package/dist/nodes/Propstack/v1/resources/activities/getAll.d.ts +4 -0
  41. package/dist/nodes/Propstack/v1/resources/activities/getAll.js +278 -0
  42. package/dist/nodes/Propstack/v1/resources/activities/getAll.js.map +1 -0
  43. package/dist/nodes/Propstack/v1/resources/activities/index.d.ts +7 -0
  44. package/dist/nodes/Propstack/v1/resources/activities/index.js +230 -0
  45. package/dist/nodes/Propstack/v1/resources/activities/index.js.map +1 -0
  46. package/dist/nodes/Propstack/v1/resources/activities/reservationReasonsGetAll.d.ts +4 -0
  47. package/dist/nodes/Propstack/v1/resources/activities/reservationReasonsGetAll.js +16 -0
  48. package/dist/nodes/Propstack/v1/resources/activities/reservationReasonsGetAll.js.map +1 -0
  49. package/dist/nodes/Propstack/v1/resources/brokers/getAll.d.ts +4 -0
  50. package/dist/nodes/Propstack/v1/resources/brokers/getAll.js +16 -0
  51. package/dist/nodes/Propstack/v1/resources/brokers/getAll.js.map +1 -0
  52. package/dist/nodes/Propstack/v1/resources/brokers/index.d.ts +4 -0
  53. package/dist/nodes/Propstack/v1/resources/brokers/index.js +29 -0
  54. package/dist/nodes/Propstack/v1/resources/brokers/index.js.map +1 -0
  55. package/dist/nodes/Propstack/v1/resources/contacts/create.d.ts +4 -0
  56. package/dist/nodes/Propstack/v1/resources/contacts/create.js +233 -0
  57. package/dist/nodes/Propstack/v1/resources/contacts/create.js.map +1 -0
  58. package/dist/nodes/Propstack/v1/resources/contacts/delete.d.ts +4 -0
  59. package/dist/nodes/Propstack/v1/resources/contacts/delete.js +17 -0
  60. package/dist/nodes/Propstack/v1/resources/contacts/delete.js.map +1 -0
  61. package/dist/nodes/Propstack/v1/resources/contacts/get.d.ts +4 -0
  62. package/dist/nodes/Propstack/v1/resources/contacts/get.js +94 -0
  63. package/dist/nodes/Propstack/v1/resources/contacts/get.js.map +1 -0
  64. package/dist/nodes/Propstack/v1/resources/contacts/getAll.d.ts +4 -0
  65. package/dist/nodes/Propstack/v1/resources/contacts/getAll.js +287 -0
  66. package/dist/nodes/Propstack/v1/resources/contacts/getAll.js.map +1 -0
  67. package/dist/nodes/Propstack/v1/resources/contacts/index.d.ts +8 -0
  68. package/dist/nodes/Propstack/v1/resources/contacts/index.js +111 -0
  69. package/dist/nodes/Propstack/v1/resources/contacts/index.js.map +1 -0
  70. package/dist/nodes/Propstack/v1/resources/contacts/update.d.ts +4 -0
  71. package/dist/nodes/Propstack/v1/resources/contacts/update.js +258 -0
  72. package/dist/nodes/Propstack/v1/resources/contacts/update.js.map +1 -0
  73. package/dist/nodes/Propstack/v1/resources/customFields/getAll.d.ts +4 -0
  74. package/dist/nodes/Propstack/v1/resources/customFields/getAll.js +63 -0
  75. package/dist/nodes/Propstack/v1/resources/customFields/getAll.js.map +1 -0
  76. package/dist/nodes/Propstack/v1/resources/customFields/index.d.ts +4 -0
  77. package/dist/nodes/Propstack/v1/resources/customFields/index.js +70 -0
  78. package/dist/nodes/Propstack/v1/resources/customFields/index.js.map +1 -0
  79. package/dist/nodes/Propstack/v1/resources/dealPipelines/get.d.ts +4 -0
  80. package/dist/nodes/Propstack/v1/resources/dealPipelines/get.js +17 -0
  81. package/dist/nodes/Propstack/v1/resources/dealPipelines/get.js.map +1 -0
  82. package/dist/nodes/Propstack/v1/resources/dealPipelines/getAll.d.ts +4 -0
  83. package/dist/nodes/Propstack/v1/resources/dealPipelines/getAll.js +16 -0
  84. package/dist/nodes/Propstack/v1/resources/dealPipelines/getAll.js.map +1 -0
  85. package/dist/nodes/Propstack/v1/resources/dealPipelines/index.d.ts +5 -0
  86. package/dist/nodes/Propstack/v1/resources/dealPipelines/index.js +71 -0
  87. package/dist/nodes/Propstack/v1/resources/dealPipelines/index.js.map +1 -0
  88. package/dist/nodes/Propstack/v1/resources/deals/create.d.ts +4 -0
  89. package/dist/nodes/Propstack/v1/resources/deals/create.js +197 -0
  90. package/dist/nodes/Propstack/v1/resources/deals/create.js.map +1 -0
  91. package/dist/nodes/Propstack/v1/resources/deals/delete.d.ts +4 -0
  92. package/dist/nodes/Propstack/v1/resources/deals/delete.js +17 -0
  93. package/dist/nodes/Propstack/v1/resources/deals/delete.js.map +1 -0
  94. package/dist/nodes/Propstack/v1/resources/deals/get.d.ts +4 -0
  95. package/dist/nodes/Propstack/v1/resources/deals/get.js +59 -0
  96. package/dist/nodes/Propstack/v1/resources/deals/get.js.map +1 -0
  97. package/dist/nodes/Propstack/v1/resources/deals/getAll.d.ts +4 -0
  98. package/dist/nodes/Propstack/v1/resources/deals/getAll.js +366 -0
  99. package/dist/nodes/Propstack/v1/resources/deals/getAll.js.map +1 -0
  100. package/dist/nodes/Propstack/v1/resources/deals/index.d.ts +8 -0
  101. package/dist/nodes/Propstack/v1/resources/deals/index.js +111 -0
  102. package/dist/nodes/Propstack/v1/resources/deals/index.js.map +1 -0
  103. package/dist/nodes/Propstack/v1/resources/deals/update.d.ts +4 -0
  104. package/dist/nodes/Propstack/v1/resources/deals/update.js +150 -0
  105. package/dist/nodes/Propstack/v1/resources/deals/update.js.map +1 -0
  106. package/dist/nodes/Propstack/v1/resources/documents/create.d.ts +4 -0
  107. package/dist/nodes/Propstack/v1/resources/documents/create.js +140 -0
  108. package/dist/nodes/Propstack/v1/resources/documents/create.js.map +1 -0
  109. package/dist/nodes/Propstack/v1/resources/documents/delete.d.ts +4 -0
  110. package/dist/nodes/Propstack/v1/resources/documents/delete.js +17 -0
  111. package/dist/nodes/Propstack/v1/resources/documents/delete.js.map +1 -0
  112. package/dist/nodes/Propstack/v1/resources/documents/get.d.ts +4 -0
  113. package/dist/nodes/Propstack/v1/resources/documents/get.js +17 -0
  114. package/dist/nodes/Propstack/v1/resources/documents/get.js.map +1 -0
  115. package/dist/nodes/Propstack/v1/resources/documents/getAll.d.ts +4 -0
  116. package/dist/nodes/Propstack/v1/resources/documents/getAll.js +191 -0
  117. package/dist/nodes/Propstack/v1/resources/documents/getAll.js.map +1 -0
  118. package/dist/nodes/Propstack/v1/resources/documents/index.d.ts +8 -0
  119. package/dist/nodes/Propstack/v1/resources/documents/index.js +98 -0
  120. package/dist/nodes/Propstack/v1/resources/documents/index.js.map +1 -0
  121. package/dist/nodes/Propstack/v1/resources/documents/update.d.ts +4 -0
  122. package/dist/nodes/Propstack/v1/resources/documents/update.js +137 -0
  123. package/dist/nodes/Propstack/v1/resources/documents/update.js.map +1 -0
  124. package/dist/nodes/Propstack/v1/resources/emails/get.d.ts +4 -0
  125. package/dist/nodes/Propstack/v1/resources/emails/get.js +17 -0
  126. package/dist/nodes/Propstack/v1/resources/emails/get.js.map +1 -0
  127. package/dist/nodes/Propstack/v1/resources/emails/getAll.d.ts +4 -0
  128. package/dist/nodes/Propstack/v1/resources/emails/getAll.js +104 -0
  129. package/dist/nodes/Propstack/v1/resources/emails/getAll.js.map +1 -0
  130. package/dist/nodes/Propstack/v1/resources/emails/index.d.ts +7 -0
  131. package/dist/nodes/Propstack/v1/resources/emails/index.js +89 -0
  132. package/dist/nodes/Propstack/v1/resources/emails/index.js.map +1 -0
  133. package/dist/nodes/Propstack/v1/resources/emails/send.d.ts +4 -0
  134. package/dist/nodes/Propstack/v1/resources/emails/send.js +159 -0
  135. package/dist/nodes/Propstack/v1/resources/emails/send.js.map +1 -0
  136. package/dist/nodes/Propstack/v1/resources/emails/update.d.ts +4 -0
  137. package/dist/nodes/Propstack/v1/resources/emails/update.js +110 -0
  138. package/dist/nodes/Propstack/v1/resources/emails/update.js.map +1 -0
  139. package/dist/nodes/Propstack/v1/resources/events/getAll.d.ts +4 -0
  140. package/dist/nodes/Propstack/v1/resources/events/getAll.js +162 -0
  141. package/dist/nodes/Propstack/v1/resources/events/getAll.js.map +1 -0
  142. package/dist/nodes/Propstack/v1/resources/events/index.d.ts +4 -0
  143. package/dist/nodes/Propstack/v1/resources/events/index.js +134 -0
  144. package/dist/nodes/Propstack/v1/resources/events/index.js.map +1 -0
  145. package/dist/nodes/Propstack/v1/resources/features/create.d.ts +4 -0
  146. package/dist/nodes/Propstack/v1/resources/features/create.js +70 -0
  147. package/dist/nodes/Propstack/v1/resources/features/create.js.map +1 -0
  148. package/dist/nodes/Propstack/v1/resources/features/getAll.d.ts +4 -0
  149. package/dist/nodes/Propstack/v1/resources/features/getAll.js +65 -0
  150. package/dist/nodes/Propstack/v1/resources/features/getAll.js.map +1 -0
  151. package/dist/nodes/Propstack/v1/resources/features/index.d.ts +6 -0
  152. package/dist/nodes/Propstack/v1/resources/features/index.js +123 -0
  153. package/dist/nodes/Propstack/v1/resources/features/index.js.map +1 -0
  154. package/dist/nodes/Propstack/v1/resources/features/parentGetAll.d.ts +4 -0
  155. package/dist/nodes/Propstack/v1/resources/features/parentGetAll.js +56 -0
  156. package/dist/nodes/Propstack/v1/resources/features/parentGetAll.js.map +1 -0
  157. package/dist/nodes/Propstack/v1/resources/locations/getAll.d.ts +4 -0
  158. package/dist/nodes/Propstack/v1/resources/locations/getAll.js +16 -0
  159. package/dist/nodes/Propstack/v1/resources/locations/getAll.js.map +1 -0
  160. package/dist/nodes/Propstack/v1/resources/locations/index.d.ts +4 -0
  161. package/dist/nodes/Propstack/v1/resources/locations/index.js +29 -0
  162. package/dist/nodes/Propstack/v1/resources/locations/index.js.map +1 -0
  163. package/dist/nodes/Propstack/v1/resources/notes/getAll.d.ts +4 -0
  164. package/dist/nodes/Propstack/v1/resources/notes/getAll.js +98 -0
  165. package/dist/nodes/Propstack/v1/resources/notes/getAll.js.map +1 -0
  166. package/dist/nodes/Propstack/v1/resources/notes/index.d.ts +4 -0
  167. package/dist/nodes/Propstack/v1/resources/notes/index.js +87 -0
  168. package/dist/nodes/Propstack/v1/resources/notes/index.js.map +1 -0
  169. package/dist/nodes/Propstack/v1/resources/portalExport/index.d.ts +4 -0
  170. package/dist/nodes/Propstack/v1/resources/portalExport/index.js +87 -0
  171. package/dist/nodes/Propstack/v1/resources/portalExport/index.js.map +1 -0
  172. package/dist/nodes/Propstack/v1/resources/portalExport/publish.d.ts +4 -0
  173. package/dist/nodes/Propstack/v1/resources/portalExport/publish.js +88 -0
  174. package/dist/nodes/Propstack/v1/resources/portalExport/publish.js.map +1 -0
  175. package/dist/nodes/Propstack/v1/resources/projects/create.d.ts +4 -0
  176. package/dist/nodes/Propstack/v1/resources/projects/create.js +230 -0
  177. package/dist/nodes/Propstack/v1/resources/projects/create.js.map +1 -0
  178. package/dist/nodes/Propstack/v1/resources/projects/delete.d.ts +4 -0
  179. package/dist/nodes/Propstack/v1/resources/projects/delete.js +17 -0
  180. package/dist/nodes/Propstack/v1/resources/projects/delete.js.map +1 -0
  181. package/dist/nodes/Propstack/v1/resources/projects/get.d.ts +4 -0
  182. package/dist/nodes/Propstack/v1/resources/projects/get.js +23 -0
  183. package/dist/nodes/Propstack/v1/resources/projects/get.js.map +1 -0
  184. package/dist/nodes/Propstack/v1/resources/projects/getAll.d.ts +4 -0
  185. package/dist/nodes/Propstack/v1/resources/projects/getAll.js +124 -0
  186. package/dist/nodes/Propstack/v1/resources/projects/getAll.js.map +1 -0
  187. package/dist/nodes/Propstack/v1/resources/projects/index.d.ts +8 -0
  188. package/dist/nodes/Propstack/v1/resources/projects/index.js +111 -0
  189. package/dist/nodes/Propstack/v1/resources/projects/index.js.map +1 -0
  190. package/dist/nodes/Propstack/v1/resources/projects/update.d.ts +4 -0
  191. package/dist/nodes/Propstack/v1/resources/projects/update.js +231 -0
  192. package/dist/nodes/Propstack/v1/resources/projects/update.js.map +1 -0
  193. package/dist/nodes/Propstack/v1/resources/properties/create.d.ts +4 -0
  194. package/dist/nodes/Propstack/v1/resources/properties/create.js +359 -0
  195. package/dist/nodes/Propstack/v1/resources/properties/create.js.map +1 -0
  196. package/dist/nodes/Propstack/v1/resources/properties/delete.d.ts +4 -0
  197. package/dist/nodes/Propstack/v1/resources/properties/delete.js +17 -0
  198. package/dist/nodes/Propstack/v1/resources/properties/delete.js.map +1 -0
  199. package/dist/nodes/Propstack/v1/resources/properties/get.d.ts +4 -0
  200. package/dist/nodes/Propstack/v1/resources/properties/get.js +66 -0
  201. package/dist/nodes/Propstack/v1/resources/properties/get.js.map +1 -0
  202. package/dist/nodes/Propstack/v1/resources/properties/getAll.d.ts +4 -0
  203. package/dist/nodes/Propstack/v1/resources/properties/getAll.js +493 -0
  204. package/dist/nodes/Propstack/v1/resources/properties/getAll.js.map +1 -0
  205. package/dist/nodes/Propstack/v1/resources/properties/index.d.ts +8 -0
  206. package/dist/nodes/Propstack/v1/resources/properties/index.js +111 -0
  207. package/dist/nodes/Propstack/v1/resources/properties/index.js.map +1 -0
  208. package/dist/nodes/Propstack/v1/resources/properties/update.d.ts +4 -0
  209. package/dist/nodes/Propstack/v1/resources/properties/update.js +377 -0
  210. package/dist/nodes/Propstack/v1/resources/properties/update.js.map +1 -0
  211. package/dist/nodes/Propstack/v1/resources/searchProfiles/create.d.ts +4 -0
  212. package/dist/nodes/Propstack/v1/resources/searchProfiles/create.js +292 -0
  213. package/dist/nodes/Propstack/v1/resources/searchProfiles/create.js.map +1 -0
  214. package/dist/nodes/Propstack/v1/resources/searchProfiles/delete.d.ts +4 -0
  215. package/dist/nodes/Propstack/v1/resources/searchProfiles/delete.js +33 -0
  216. package/dist/nodes/Propstack/v1/resources/searchProfiles/delete.js.map +1 -0
  217. package/dist/nodes/Propstack/v1/resources/searchProfiles/getAll.d.ts +4 -0
  218. package/dist/nodes/Propstack/v1/resources/searchProfiles/getAll.js +106 -0
  219. package/dist/nodes/Propstack/v1/resources/searchProfiles/getAll.js.map +1 -0
  220. package/dist/nodes/Propstack/v1/resources/searchProfiles/index.d.ts +7 -0
  221. package/dist/nodes/Propstack/v1/resources/searchProfiles/index.js +448 -0
  222. package/dist/nodes/Propstack/v1/resources/searchProfiles/index.js.map +1 -0
  223. package/dist/nodes/Propstack/v1/resources/searchProfiles/update.d.ts +4 -0
  224. package/dist/nodes/Propstack/v1/resources/searchProfiles/update.js +287 -0
  225. package/dist/nodes/Propstack/v1/resources/searchProfiles/update.js.map +1 -0
  226. package/dist/nodes/Propstack/v1/resources/tasks/create.d.ts +4 -0
  227. package/dist/nodes/Propstack/v1/resources/tasks/create.js +236 -0
  228. package/dist/nodes/Propstack/v1/resources/tasks/create.js.map +1 -0
  229. package/dist/nodes/Propstack/v1/resources/tasks/delete.d.ts +2 -0
  230. package/dist/nodes/Propstack/v1/resources/tasks/delete.js +14 -0
  231. package/dist/nodes/Propstack/v1/resources/tasks/delete.js.map +1 -0
  232. package/dist/nodes/Propstack/v1/resources/tasks/get.d.ts +2 -0
  233. package/dist/nodes/Propstack/v1/resources/tasks/get.js +14 -0
  234. package/dist/nodes/Propstack/v1/resources/tasks/get.js.map +1 -0
  235. package/dist/nodes/Propstack/v1/resources/tasks/getAll.d.ts +2 -0
  236. package/dist/nodes/Propstack/v1/resources/tasks/getAll.js +47 -0
  237. package/dist/nodes/Propstack/v1/resources/tasks/getAll.js.map +1 -0
  238. package/dist/nodes/Propstack/v1/resources/tasks/index.d.ts +8 -0
  239. package/dist/nodes/Propstack/v1/resources/tasks/index.js +485 -0
  240. package/dist/nodes/Propstack/v1/resources/tasks/index.js.map +1 -0
  241. package/dist/nodes/Propstack/v1/resources/tasks/update.d.ts +2 -0
  242. package/dist/nodes/Propstack/v1/resources/tasks/update.js +87 -0
  243. package/dist/nodes/Propstack/v1/resources/tasks/update.js.map +1 -0
  244. package/dist/nodes/Propstack/v1/resources/teams/create.d.ts +4 -0
  245. package/dist/nodes/Propstack/v1/resources/teams/create.js +133 -0
  246. package/dist/nodes/Propstack/v1/resources/teams/create.js.map +1 -0
  247. package/dist/nodes/Propstack/v1/resources/teams/delete.d.ts +4 -0
  248. package/dist/nodes/Propstack/v1/resources/teams/delete.js +17 -0
  249. package/dist/nodes/Propstack/v1/resources/teams/delete.js.map +1 -0
  250. package/dist/nodes/Propstack/v1/resources/teams/get.d.ts +4 -0
  251. package/dist/nodes/Propstack/v1/resources/teams/get.js +17 -0
  252. package/dist/nodes/Propstack/v1/resources/teams/get.js.map +1 -0
  253. package/dist/nodes/Propstack/v1/resources/teams/getAll.d.ts +4 -0
  254. package/dist/nodes/Propstack/v1/resources/teams/getAll.js +80 -0
  255. package/dist/nodes/Propstack/v1/resources/teams/getAll.js.map +1 -0
  256. package/dist/nodes/Propstack/v1/resources/teams/index.d.ts +8 -0
  257. package/dist/nodes/Propstack/v1/resources/teams/index.js +273 -0
  258. package/dist/nodes/Propstack/v1/resources/teams/index.js.map +1 -0
  259. package/dist/nodes/Propstack/v1/resources/teams/update.d.ts +4 -0
  260. package/dist/nodes/Propstack/v1/resources/teams/update.js +45 -0
  261. package/dist/nodes/Propstack/v1/resources/teams/update.js.map +1 -0
  262. package/dist/nodes/Propstack/v1/resources/webhooks/create.d.ts +2 -0
  263. package/dist/nodes/Propstack/v1/resources/webhooks/create.js +25 -0
  264. package/dist/nodes/Propstack/v1/resources/webhooks/create.js.map +1 -0
  265. package/dist/nodes/Propstack/v1/resources/webhooks/delete.d.ts +2 -0
  266. package/dist/nodes/Propstack/v1/resources/webhooks/delete.js +14 -0
  267. package/dist/nodes/Propstack/v1/resources/webhooks/delete.js.map +1 -0
  268. package/dist/nodes/Propstack/v1/resources/webhooks/getAll.d.ts +2 -0
  269. package/dist/nodes/Propstack/v1/resources/webhooks/getAll.js +18 -0
  270. package/dist/nodes/Propstack/v1/resources/webhooks/getAll.js.map +1 -0
  271. package/dist/nodes/Propstack/v1/resources/webhooks/index.d.ts +7 -0
  272. package/dist/nodes/Propstack/v1/resources/webhooks/index.js +126 -0
  273. package/dist/nodes/Propstack/v1/resources/webhooks/index.js.map +1 -0
  274. package/dist/nodes/Propstack/v2/PropstackV2.d.ts +18 -0
  275. package/dist/nodes/Propstack/v2/PropstackV2.js +195 -0
  276. package/dist/nodes/Propstack/v2/PropstackV2.js.map +1 -0
  277. package/dist/nodes/Propstack/v2/constants.d.ts +49 -0
  278. package/dist/nodes/Propstack/v2/constants.js +53 -0
  279. package/dist/nodes/Propstack/v2/constants.js.map +1 -0
  280. package/dist/nodes/Propstack/v2/helpers.d.ts +20 -0
  281. package/dist/nodes/Propstack/v2/helpers.js +218 -0
  282. package/dist/nodes/Propstack/v2/helpers.js.map +1 -0
  283. package/dist/nodes/Propstack/v2/listSearch.d.ts +9 -0
  284. package/dist/nodes/Propstack/v2/listSearch.js +80 -0
  285. package/dist/nodes/Propstack/v2/listSearch.js.map +1 -0
  286. package/dist/nodes/Propstack/v2/resources/activities/index.d.ts +4 -0
  287. package/dist/nodes/Propstack/v2/resources/activities/index.js +20 -0
  288. package/dist/nodes/Propstack/v2/resources/activities/index.js.map +1 -0
  289. package/dist/nodes/Propstack/v2/resources/activities/scroll.d.ts +3 -0
  290. package/dist/nodes/Propstack/v2/resources/activities/scroll.js +38 -0
  291. package/dist/nodes/Propstack/v2/resources/activities/scroll.js.map +1 -0
  292. package/dist/nodes/Propstack/v2/resources/brokers/create.d.ts +3 -0
  293. package/dist/nodes/Propstack/v2/resources/brokers/create.js +48 -0
  294. package/dist/nodes/Propstack/v2/resources/brokers/create.js.map +1 -0
  295. package/dist/nodes/Propstack/v2/resources/brokers/fields.d.ts +5 -0
  296. package/dist/nodes/Propstack/v2/resources/brokers/fields.js +54 -0
  297. package/dist/nodes/Propstack/v2/resources/brokers/fields.js.map +1 -0
  298. package/dist/nodes/Propstack/v2/resources/brokers/get.d.ts +2 -0
  299. package/dist/nodes/Propstack/v2/resources/brokers/get.js +19 -0
  300. package/dist/nodes/Propstack/v2/resources/brokers/get.js.map +1 -0
  301. package/dist/nodes/Propstack/v2/resources/brokers/getAll.d.ts +3 -0
  302. package/dist/nodes/Propstack/v2/resources/brokers/getAll.js +57 -0
  303. package/dist/nodes/Propstack/v2/resources/brokers/getAll.js.map +1 -0
  304. package/dist/nodes/Propstack/v2/resources/brokers/index.d.ts +7 -0
  305. package/dist/nodes/Propstack/v2/resources/brokers/index.js +65 -0
  306. package/dist/nodes/Propstack/v2/resources/brokers/index.js.map +1 -0
  307. package/dist/nodes/Propstack/v2/resources/brokers/update.d.ts +3 -0
  308. package/dist/nodes/Propstack/v2/resources/brokers/update.js +25 -0
  309. package/dist/nodes/Propstack/v2/resources/brokers/update.js.map +1 -0
  310. package/dist/nodes/Propstack/v2/resources/clientProperties/create.d.ts +3 -0
  311. package/dist/nodes/Propstack/v2/resources/clientProperties/create.js +90 -0
  312. package/dist/nodes/Propstack/v2/resources/clientProperties/create.js.map +1 -0
  313. package/dist/nodes/Propstack/v2/resources/clientProperties/delete.d.ts +2 -0
  314. package/dist/nodes/Propstack/v2/resources/clientProperties/delete.js +14 -0
  315. package/dist/nodes/Propstack/v2/resources/clientProperties/delete.js.map +1 -0
  316. package/dist/nodes/Propstack/v2/resources/clientProperties/fields.d.ts +5 -0
  317. package/dist/nodes/Propstack/v2/resources/clientProperties/fields.js +118 -0
  318. package/dist/nodes/Propstack/v2/resources/clientProperties/fields.js.map +1 -0
  319. package/dist/nodes/Propstack/v2/resources/clientProperties/get.d.ts +2 -0
  320. package/dist/nodes/Propstack/v2/resources/clientProperties/get.js +20 -0
  321. package/dist/nodes/Propstack/v2/resources/clientProperties/get.js.map +1 -0
  322. package/dist/nodes/Propstack/v2/resources/clientProperties/getAll.d.ts +3 -0
  323. package/dist/nodes/Propstack/v2/resources/clientProperties/getAll.js +125 -0
  324. package/dist/nodes/Propstack/v2/resources/clientProperties/getAll.js.map +1 -0
  325. package/dist/nodes/Propstack/v2/resources/clientProperties/index.d.ts +9 -0
  326. package/dist/nodes/Propstack/v2/resources/clientProperties/index.js +116 -0
  327. package/dist/nodes/Propstack/v2/resources/clientProperties/index.js.map +1 -0
  328. package/dist/nodes/Propstack/v2/resources/clientProperties/scroll.d.ts +3 -0
  329. package/dist/nodes/Propstack/v2/resources/clientProperties/scroll.js +69 -0
  330. package/dist/nodes/Propstack/v2/resources/clientProperties/scroll.js.map +1 -0
  331. package/dist/nodes/Propstack/v2/resources/clientProperties/update.d.ts +3 -0
  332. package/dist/nodes/Propstack/v2/resources/clientProperties/update.js +45 -0
  333. package/dist/nodes/Propstack/v2/resources/clientProperties/update.js.map +1 -0
  334. package/dist/nodes/Propstack/v2/resources/clients/create.d.ts +3 -0
  335. package/dist/nodes/Propstack/v2/resources/clients/create.js +33 -0
  336. package/dist/nodes/Propstack/v2/resources/clients/create.js.map +1 -0
  337. package/dist/nodes/Propstack/v2/resources/clients/delete.d.ts +2 -0
  338. package/dist/nodes/Propstack/v2/resources/clients/delete.js +14 -0
  339. package/dist/nodes/Propstack/v2/resources/clients/delete.js.map +1 -0
  340. package/dist/nodes/Propstack/v2/resources/clients/fields.d.ts +5 -0
  341. package/dist/nodes/Propstack/v2/resources/clients/fields.js +470 -0
  342. package/dist/nodes/Propstack/v2/resources/clients/fields.js.map +1 -0
  343. package/dist/nodes/Propstack/v2/resources/clients/get.d.ts +2 -0
  344. package/dist/nodes/Propstack/v2/resources/clients/get.js +20 -0
  345. package/dist/nodes/Propstack/v2/resources/clients/get.js.map +1 -0
  346. package/dist/nodes/Propstack/v2/resources/clients/getAll.d.ts +3 -0
  347. package/dist/nodes/Propstack/v2/resources/clients/getAll.js +115 -0
  348. package/dist/nodes/Propstack/v2/resources/clients/getAll.js.map +1 -0
  349. package/dist/nodes/Propstack/v2/resources/clients/getDeleted.d.ts +3 -0
  350. package/dist/nodes/Propstack/v2/resources/clients/getDeleted.js +81 -0
  351. package/dist/nodes/Propstack/v2/resources/clients/getDeleted.js.map +1 -0
  352. package/dist/nodes/Propstack/v2/resources/clients/index.d.ts +10 -0
  353. package/dist/nodes/Propstack/v2/resources/clients/index.js +127 -0
  354. package/dist/nodes/Propstack/v2/resources/clients/index.js.map +1 -0
  355. package/dist/nodes/Propstack/v2/resources/clients/scroll.d.ts +3 -0
  356. package/dist/nodes/Propstack/v2/resources/clients/scroll.js +71 -0
  357. package/dist/nodes/Propstack/v2/resources/clients/scroll.js.map +1 -0
  358. package/dist/nodes/Propstack/v2/resources/clients/update.d.ts +3 -0
  359. package/dist/nodes/Propstack/v2/resources/clients/update.js +34 -0
  360. package/dist/nodes/Propstack/v2/resources/clients/update.js.map +1 -0
  361. package/dist/nodes/Propstack/v2/resources/customFields/create.d.ts +3 -0
  362. package/dist/nodes/Propstack/v2/resources/customFields/create.js +42 -0
  363. package/dist/nodes/Propstack/v2/resources/customFields/create.js.map +1 -0
  364. package/dist/nodes/Propstack/v2/resources/customFields/createOption.d.ts +3 -0
  365. package/dist/nodes/Propstack/v2/resources/customFields/createOption.js +27 -0
  366. package/dist/nodes/Propstack/v2/resources/customFields/createOption.js.map +1 -0
  367. package/dist/nodes/Propstack/v2/resources/customFields/delete.d.ts +2 -0
  368. package/dist/nodes/Propstack/v2/resources/customFields/delete.js +11 -0
  369. package/dist/nodes/Propstack/v2/resources/customFields/delete.js.map +1 -0
  370. package/dist/nodes/Propstack/v2/resources/customFields/deleteOption.d.ts +3 -0
  371. package/dist/nodes/Propstack/v2/resources/customFields/deleteOption.js +23 -0
  372. package/dist/nodes/Propstack/v2/resources/customFields/deleteOption.js.map +1 -0
  373. package/dist/nodes/Propstack/v2/resources/customFields/fields.d.ts +3 -0
  374. package/dist/nodes/Propstack/v2/resources/customFields/fields.js +18 -0
  375. package/dist/nodes/Propstack/v2/resources/customFields/fields.js.map +1 -0
  376. package/dist/nodes/Propstack/v2/resources/customFields/get.d.ts +2 -0
  377. package/dist/nodes/Propstack/v2/resources/customFields/get.js +11 -0
  378. package/dist/nodes/Propstack/v2/resources/customFields/get.js.map +1 -0
  379. package/dist/nodes/Propstack/v2/resources/customFields/getAll.d.ts +3 -0
  380. package/dist/nodes/Propstack/v2/resources/customFields/getAll.js +29 -0
  381. package/dist/nodes/Propstack/v2/resources/customFields/getAll.js.map +1 -0
  382. package/dist/nodes/Propstack/v2/resources/customFields/index.d.ts +10 -0
  383. package/dist/nodes/Propstack/v2/resources/customFields/index.js +63 -0
  384. package/dist/nodes/Propstack/v2/resources/customFields/index.js.map +1 -0
  385. package/dist/nodes/Propstack/v2/resources/customFields/update.d.ts +3 -0
  386. package/dist/nodes/Propstack/v2/resources/customFields/update.js +29 -0
  387. package/dist/nodes/Propstack/v2/resources/customFields/update.js.map +1 -0
  388. package/dist/nodes/Propstack/v2/resources/history/get.d.ts +2 -0
  389. package/dist/nodes/Propstack/v2/resources/history/get.js +27 -0
  390. package/dist/nodes/Propstack/v2/resources/history/get.js.map +1 -0
  391. package/dist/nodes/Propstack/v2/resources/history/index.d.ts +4 -0
  392. package/dist/nodes/Propstack/v2/resources/history/index.js +60 -0
  393. package/dist/nodes/Propstack/v2/resources/history/index.js.map +1 -0
  394. package/dist/nodes/Propstack/v2/resources/noteAttachments/create.d.ts +3 -0
  395. package/dist/nodes/Propstack/v2/resources/noteAttachments/create.js +51 -0
  396. package/dist/nodes/Propstack/v2/resources/noteAttachments/create.js.map +1 -0
  397. package/dist/nodes/Propstack/v2/resources/noteAttachments/index.d.ts +4 -0
  398. package/dist/nodes/Propstack/v2/resources/noteAttachments/index.js +20 -0
  399. package/dist/nodes/Propstack/v2/resources/noteAttachments/index.js.map +1 -0
  400. package/dist/nodes/Propstack/v2/resources/projects/create.d.ts +3 -0
  401. package/dist/nodes/Propstack/v2/resources/projects/create.js +30 -0
  402. package/dist/nodes/Propstack/v2/resources/projects/create.js.map +1 -0
  403. package/dist/nodes/Propstack/v2/resources/projects/delete.d.ts +2 -0
  404. package/dist/nodes/Propstack/v2/resources/projects/delete.js +14 -0
  405. package/dist/nodes/Propstack/v2/resources/projects/delete.js.map +1 -0
  406. package/dist/nodes/Propstack/v2/resources/projects/fields.d.ts +5 -0
  407. package/dist/nodes/Propstack/v2/resources/projects/fields.js +114 -0
  408. package/dist/nodes/Propstack/v2/resources/projects/fields.js.map +1 -0
  409. package/dist/nodes/Propstack/v2/resources/projects/get.d.ts +2 -0
  410. package/dist/nodes/Propstack/v2/resources/projects/get.js +20 -0
  411. package/dist/nodes/Propstack/v2/resources/projects/get.js.map +1 -0
  412. package/dist/nodes/Propstack/v2/resources/projects/getAll.d.ts +3 -0
  413. package/dist/nodes/Propstack/v2/resources/projects/getAll.js +91 -0
  414. package/dist/nodes/Propstack/v2/resources/projects/getAll.js.map +1 -0
  415. package/dist/nodes/Propstack/v2/resources/projects/index.d.ts +8 -0
  416. package/dist/nodes/Propstack/v2/resources/projects/index.js +107 -0
  417. package/dist/nodes/Propstack/v2/resources/projects/index.js.map +1 -0
  418. package/dist/nodes/Propstack/v2/resources/projects/update.d.ts +3 -0
  419. package/dist/nodes/Propstack/v2/resources/projects/update.js +31 -0
  420. package/dist/nodes/Propstack/v2/resources/projects/update.js.map +1 -0
  421. package/dist/nodes/Propstack/v2/resources/properties/create.d.ts +3 -0
  422. package/dist/nodes/Propstack/v2/resources/properties/create.js +93 -0
  423. package/dist/nodes/Propstack/v2/resources/properties/create.js.map +1 -0
  424. package/dist/nodes/Propstack/v2/resources/properties/createLink.d.ts +3 -0
  425. package/dist/nodes/Propstack/v2/resources/properties/createLink.js +98 -0
  426. package/dist/nodes/Propstack/v2/resources/properties/createLink.js.map +1 -0
  427. package/dist/nodes/Propstack/v2/resources/properties/delete.d.ts +2 -0
  428. package/dist/nodes/Propstack/v2/resources/properties/delete.js +14 -0
  429. package/dist/nodes/Propstack/v2/resources/properties/delete.js.map +1 -0
  430. package/dist/nodes/Propstack/v2/resources/properties/deleteLink.d.ts +3 -0
  431. package/dist/nodes/Propstack/v2/resources/properties/deleteLink.js +31 -0
  432. package/dist/nodes/Propstack/v2/resources/properties/deleteLink.js.map +1 -0
  433. package/dist/nodes/Propstack/v2/resources/properties/fields.d.ts +5 -0
  434. package/dist/nodes/Propstack/v2/resources/properties/fields.js +1237 -0
  435. package/dist/nodes/Propstack/v2/resources/properties/fields.js.map +1 -0
  436. package/dist/nodes/Propstack/v2/resources/properties/get.d.ts +2 -0
  437. package/dist/nodes/Propstack/v2/resources/properties/get.js +21 -0
  438. package/dist/nodes/Propstack/v2/resources/properties/get.js.map +1 -0
  439. package/dist/nodes/Propstack/v2/resources/properties/getAll.d.ts +3 -0
  440. package/dist/nodes/Propstack/v2/resources/properties/getAll.js +166 -0
  441. package/dist/nodes/Propstack/v2/resources/properties/getAll.js.map +1 -0
  442. package/dist/nodes/Propstack/v2/resources/properties/getDeleted.d.ts +3 -0
  443. package/dist/nodes/Propstack/v2/resources/properties/getDeleted.js +82 -0
  444. package/dist/nodes/Propstack/v2/resources/properties/getDeleted.js.map +1 -0
  445. package/dist/nodes/Propstack/v2/resources/properties/getOptions.d.ts +3 -0
  446. package/dist/nodes/Propstack/v2/resources/properties/getOptions.js +50 -0
  447. package/dist/nodes/Propstack/v2/resources/properties/getOptions.js.map +1 -0
  448. package/dist/nodes/Propstack/v2/resources/properties/index.d.ts +14 -0
  449. package/dist/nodes/Propstack/v2/resources/properties/index.js +163 -0
  450. package/dist/nodes/Propstack/v2/resources/properties/index.js.map +1 -0
  451. package/dist/nodes/Propstack/v2/resources/properties/scroll.d.ts +3 -0
  452. package/dist/nodes/Propstack/v2/resources/properties/scroll.js +56 -0
  453. package/dist/nodes/Propstack/v2/resources/properties/scroll.js.map +1 -0
  454. package/dist/nodes/Propstack/v2/resources/properties/update.d.ts +3 -0
  455. package/dist/nodes/Propstack/v2/resources/properties/update.js +34 -0
  456. package/dist/nodes/Propstack/v2/resources/properties/update.js.map +1 -0
  457. package/dist/nodes/Propstack/v2/resources/properties/updateLink.d.ts +3 -0
  458. package/dist/nodes/Propstack/v2/resources/properties/updateLink.js +100 -0
  459. package/dist/nodes/Propstack/v2/resources/properties/updateLink.js.map +1 -0
  460. package/dist/nodes/Propstack/v2/resources/reference/getAll.d.ts +2 -0
  461. package/dist/nodes/Propstack/v2/resources/reference/getAll.js +30 -0
  462. package/dist/nodes/Propstack/v2/resources/reference/getAll.js.map +1 -0
  463. package/dist/nodes/Propstack/v2/resources/reference/index.d.ts +3 -0
  464. package/dist/nodes/Propstack/v2/resources/reference/index.js +55 -0
  465. package/dist/nodes/Propstack/v2/resources/reference/index.js.map +1 -0
  466. package/dist/nodes/Propstack/v2/resources/relationships/create.d.ts +3 -0
  467. package/dist/nodes/Propstack/v2/resources/relationships/create.js +64 -0
  468. package/dist/nodes/Propstack/v2/resources/relationships/create.js.map +1 -0
  469. package/dist/nodes/Propstack/v2/resources/relationships/delete.d.ts +2 -0
  470. package/dist/nodes/Propstack/v2/resources/relationships/delete.js +11 -0
  471. package/dist/nodes/Propstack/v2/resources/relationships/delete.js.map +1 -0
  472. package/dist/nodes/Propstack/v2/resources/relationships/getAll.d.ts +3 -0
  473. package/dist/nodes/Propstack/v2/resources/relationships/getAll.js +53 -0
  474. package/dist/nodes/Propstack/v2/resources/relationships/getAll.js.map +1 -0
  475. package/dist/nodes/Propstack/v2/resources/relationships/index.d.ts +6 -0
  476. package/dist/nodes/Propstack/v2/resources/relationships/index.js +48 -0
  477. package/dist/nodes/Propstack/v2/resources/relationships/index.js.map +1 -0
  478. package/dist/nodes/Propstack/v2/resources/snippets/addAttachment.d.ts +3 -0
  479. package/dist/nodes/Propstack/v2/resources/snippets/addAttachment.js +36 -0
  480. package/dist/nodes/Propstack/v2/resources/snippets/addAttachment.js.map +1 -0
  481. package/dist/nodes/Propstack/v2/resources/snippets/create.d.ts +3 -0
  482. package/dist/nodes/Propstack/v2/resources/snippets/create.js +43 -0
  483. package/dist/nodes/Propstack/v2/resources/snippets/create.js.map +1 -0
  484. package/dist/nodes/Propstack/v2/resources/snippets/delete.d.ts +2 -0
  485. package/dist/nodes/Propstack/v2/resources/snippets/delete.js +11 -0
  486. package/dist/nodes/Propstack/v2/resources/snippets/delete.js.map +1 -0
  487. package/dist/nodes/Propstack/v2/resources/snippets/fields.d.ts +4 -0
  488. package/dist/nodes/Propstack/v2/resources/snippets/fields.js +19 -0
  489. package/dist/nodes/Propstack/v2/resources/snippets/fields.js.map +1 -0
  490. package/dist/nodes/Propstack/v2/resources/snippets/getAll.d.ts +3 -0
  491. package/dist/nodes/Propstack/v2/resources/snippets/getAll.js +45 -0
  492. package/dist/nodes/Propstack/v2/resources/snippets/getAll.js.map +1 -0
  493. package/dist/nodes/Propstack/v2/resources/snippets/index.d.ts +8 -0
  494. package/dist/nodes/Propstack/v2/resources/snippets/index.js +56 -0
  495. package/dist/nodes/Propstack/v2/resources/snippets/index.js.map +1 -0
  496. package/dist/nodes/Propstack/v2/resources/snippets/update.d.ts +3 -0
  497. package/dist/nodes/Propstack/v2/resources/snippets/update.js +29 -0
  498. package/dist/nodes/Propstack/v2/resources/snippets/update.js.map +1 -0
  499. package/dist/package.json +71 -0
  500. package/dist/tsconfig.tsbuildinfo +1 -0
  501. package/package.json +69 -29
  502. package/index.js +0 -1
@@ -0,0 +1,191 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.documentsGetAllDescription = void 0;
4
+ exports.documentsGetAll = documentsGetAll;
5
+ const constants_1 = require("../../constants");
6
+ const helpers_1 = require("../../helpers");
7
+ const showForDocumentsGetAll = {
8
+ operation: ["getAll"],
9
+ resource: ["documents"],
10
+ };
11
+ exports.documentsGetAllDescription = [
12
+ {
13
+ displayName: "Return All",
14
+ name: "returnAll",
15
+ type: "boolean",
16
+ default: false,
17
+ displayOptions: {
18
+ show: showForDocumentsGetAll,
19
+ },
20
+ description: "Whether to return all results or only up to a given limit",
21
+ },
22
+ {
23
+ displayName: "Limit",
24
+ name: "limit",
25
+ type: "number",
26
+ default: 50,
27
+ displayOptions: {
28
+ show: {
29
+ ...showForDocumentsGetAll,
30
+ returnAll: [false],
31
+ },
32
+ },
33
+ description: "Max number of results to return",
34
+ typeOptions: {
35
+ minValue: 1,
36
+ maxValue: 100,
37
+ },
38
+ },
39
+ {
40
+ displayName: "Additional Fields",
41
+ name: "additionalFields",
42
+ type: "collection",
43
+ placeholder: "Add Field",
44
+ default: {},
45
+ displayOptions: {
46
+ show: showForDocumentsGetAll,
47
+ },
48
+ options: [
49
+ {
50
+ displayName: "Client ID",
51
+ name: "client",
52
+ type: "string",
53
+ default: "",
54
+ description: "Filter by associated contact ID",
55
+ },
56
+ {
57
+ displayName: "Deal ID",
58
+ name: "client_property",
59
+ type: "string",
60
+ default: "",
61
+ description: "Filter by associated deal ID",
62
+ },
63
+ {
64
+ displayName: "Is Private",
65
+ name: "is_private",
66
+ type: "boolean",
67
+ default: false,
68
+ description: "Whether to filter by privacy status",
69
+ },
70
+ {
71
+ displayName: "Order By",
72
+ name: "order_by",
73
+ type: "string",
74
+ default: "position,asc",
75
+ description: 'Sort results (e.g., "position,asc" or "created_at,desc")',
76
+ },
77
+ {
78
+ displayName: "Page",
79
+ name: "page",
80
+ type: "number",
81
+ default: 1,
82
+ description: "Page number for pagination",
83
+ typeOptions: {
84
+ minValue: 1,
85
+ },
86
+ },
87
+ {
88
+ displayName: "Project ID",
89
+ name: "project",
90
+ type: "string",
91
+ default: "",
92
+ description: "Filter by associated project ID",
93
+ },
94
+ {
95
+ displayName: "Property ID",
96
+ name: "property",
97
+ type: "string",
98
+ default: "",
99
+ description: "Filter by associated property ID",
100
+ },
101
+ {
102
+ displayName: "Tag",
103
+ name: "tag",
104
+ type: "string",
105
+ default: "",
106
+ description: "Filter by document tag",
107
+ },
108
+ ],
109
+ },
110
+ ];
111
+ async function documentsGetAll() {
112
+ const returnAll = this.getNodeParameter("returnAll", 0);
113
+ const limit = this.getNodeParameter("limit", 0, 50);
114
+ const options = this.getNodeParameter("additionalFields", 0);
115
+ const page = (options === null || options === void 0 ? void 0 : options.page) || 1;
116
+ if (returnAll) {
117
+ let allResults = [];
118
+ let currentPage = 1;
119
+ let hasMore = true;
120
+ while (hasMore) {
121
+ const qs = {
122
+ page: currentPage,
123
+ per_page: 100,
124
+ };
125
+ if (options) {
126
+ if (options.order_by)
127
+ qs.order_by = options.order_by;
128
+ if (options.tag)
129
+ qs.tag = options.tag;
130
+ if (options.is_private !== undefined &&
131
+ options.is_private !== "") {
132
+ qs.is_private = options.is_private;
133
+ }
134
+ if (options.client)
135
+ qs.client = options.client;
136
+ if (options.property)
137
+ qs.property = options.property;
138
+ if (options.project)
139
+ qs.project = options.project;
140
+ if (options.client_property) {
141
+ qs.client_property = options.client_property;
142
+ }
143
+ }
144
+ const response = await helpers_1.propstackRequest.call(this, {
145
+ method: "GET",
146
+ url: constants_1.API_ENDPOINTS.DOCUMENTS_GET_ALL,
147
+ qs,
148
+ });
149
+ const results = Array.isArray(response) ? response : [response];
150
+ allResults = allResults.concat(results);
151
+ if (results.length < 100) {
152
+ hasMore = false;
153
+ }
154
+ else {
155
+ currentPage++;
156
+ }
157
+ }
158
+ return this.helpers.returnJsonArray(allResults);
159
+ }
160
+ const qs = {
161
+ page,
162
+ per_page: limit,
163
+ };
164
+ if (options) {
165
+ if (options.order_by)
166
+ qs.order_by = options.order_by;
167
+ if (options.tag)
168
+ qs.tag = options.tag;
169
+ if (options.is_private !== undefined &&
170
+ options.is_private !== "") {
171
+ qs.is_private = options.is_private;
172
+ }
173
+ if (options.client)
174
+ qs.client = options.client;
175
+ if (options.property)
176
+ qs.property = options.property;
177
+ if (options.project)
178
+ qs.project = options.project;
179
+ if (options.client_property) {
180
+ qs.client_property = options.client_property;
181
+ }
182
+ }
183
+ const response = await helpers_1.propstackRequest.call(this, {
184
+ method: "GET",
185
+ url: constants_1.API_ENDPOINTS.DOCUMENTS_GET_ALL,
186
+ qs,
187
+ });
188
+ return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
189
+ }
190
+ exports.default = exports.documentsGetAllDescription;
191
+ //# sourceMappingURL=getAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["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,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,yBAAa,CAAC,iBAAiB;QACpC,EAAE;KACH,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CACjC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAChD,CAAC;AACJ,CAAC;AAED,kBAAe,kCAA0B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { INodeProperties } from "n8n-workflow";
2
+ import { documentsCreate } from "./create";
3
+ import { documentsGet } from "./get";
4
+ import { documentsGetAll } from "./getAll";
5
+ import { documentsUpdate } from "./update";
6
+ import { documentsDelete } from "./delete";
7
+ export { documentsCreate, documentsDelete, documentsGet, documentsGetAll, documentsUpdate, };
8
+ export declare const documentsDescription: INodeProperties[];
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.documentsDescription = exports.documentsUpdate = exports.documentsGetAll = exports.documentsGet = exports.documentsDelete = exports.documentsCreate = void 0;
4
+ const create_1 = require("./create");
5
+ Object.defineProperty(exports, "documentsCreate", { enumerable: true, get: function () { return create_1.documentsCreate; } });
6
+ const get_1 = require("./get");
7
+ Object.defineProperty(exports, "documentsGet", { enumerable: true, get: function () { return get_1.documentsGet; } });
8
+ const getAll_1 = require("./getAll");
9
+ Object.defineProperty(exports, "documentsGetAll", { enumerable: true, get: function () { return getAll_1.documentsGetAll; } });
10
+ const update_1 = require("./update");
11
+ Object.defineProperty(exports, "documentsUpdate", { enumerable: true, get: function () { return update_1.documentsUpdate; } });
12
+ const delete_1 = require("./delete");
13
+ Object.defineProperty(exports, "documentsDelete", { enumerable: true, get: function () { return delete_1.documentsDelete; } });
14
+ const documentIdField = {
15
+ displayName: "Document",
16
+ name: "documentId",
17
+ type: "resourceLocator",
18
+ required: true,
19
+ default: { mode: "list", value: "" },
20
+ description: "The document to operate on",
21
+ displayOptions: {
22
+ show: {
23
+ resource: ["documents"],
24
+ operation: ["get", "update", "delete"],
25
+ },
26
+ },
27
+ modes: [
28
+ {
29
+ displayName: "From List",
30
+ name: "list",
31
+ type: "list",
32
+ typeOptions: {
33
+ searchListMethod: "searchDocuments",
34
+ searchable: true,
35
+ searchFilterRequired: false,
36
+ },
37
+ },
38
+ {
39
+ displayName: "By ID",
40
+ name: "id",
41
+ type: "string",
42
+ placeholder: "e.g. 12345",
43
+ },
44
+ ],
45
+ };
46
+ exports.documentsDescription = [
47
+ {
48
+ displayName: "Operation",
49
+ name: "operation",
50
+ type: "options",
51
+ noDataExpression: true,
52
+ displayOptions: {
53
+ show: {
54
+ resource: ["documents"],
55
+ },
56
+ },
57
+ options: [
58
+ {
59
+ name: "Create",
60
+ value: "create",
61
+ action: "Create document",
62
+ description: "Create a new document",
63
+ },
64
+ {
65
+ name: "Delete",
66
+ value: "delete",
67
+ action: "Delete document",
68
+ description: "Permanently remove a document",
69
+ },
70
+ {
71
+ name: "Get",
72
+ value: "get",
73
+ action: "Get document",
74
+ description: "Retrieve a document",
75
+ },
76
+ {
77
+ name: "Get Many",
78
+ value: "getAll",
79
+ action: "Get many documents",
80
+ description: "Retrieve a list of documents",
81
+ },
82
+ {
83
+ name: "Update",
84
+ value: "update",
85
+ action: "Update document",
86
+ description: "Update an existing document",
87
+ },
88
+ ],
89
+ default: "create",
90
+ },
91
+ documentIdField,
92
+ ...create_1.documentsCreateDescription,
93
+ ...get_1.documentsGetDescription,
94
+ ...getAll_1.documentsGetAllDescription,
95
+ ...update_1.documentsUpdateDescription,
96
+ ...delete_1.documentsDeleteDescription,
97
+ ];
98
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/documents/index.ts"],"names":[],"mappings":";;;AACA,qCAAuE;AAOrE,gGAPO,wBAAe,OAOP;AANjB,+BAA8D;A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AAK,EAAE,QAAQ;gBACf,MAAM,EAAE,iBAAiB;gBACzB,WAAW,EAAE,+BAA+B;aAC7C;YACD;gBACE,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,cAAc;gBACtB,WAAW,EAAE,qBAAqB;aACnC;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,8BAA8B;aAC5C;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,iBAAiB;gBACzB,WAAW,EAAE,6BAA6B;aAC3C;SACF;QACD,OAAO,EAAE,QAAQ;KAClB;IACD,eAAe;IACf,GAAG,mCAA0B;IAC7B,GAAG,6BAAuB;IAC1B,GAAG,mCAA0B;IAC7B,GAAG,mCAA0B;IAC7B,GAAG,mCAA0B;CAC9B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
2
+ export declare const documentsUpdateDescription: INodeProperties[];
3
+ export declare function documentsUpdate(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
4
+ export default documentsUpdateDescription;
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.documentsUpdateDescription = void 0;
4
+ exports.documentsUpdate = documentsUpdate;
5
+ const constants_1 = require("../../constants");
6
+ const helpers_1 = require("../../helpers");
7
+ const showForDocumentsUpdate = {
8
+ operation: ["update"],
9
+ resource: ["documents"],
10
+ };
11
+ exports.documentsUpdateDescription = [
12
+ {
13
+ displayName: "Additional Fields",
14
+ name: "additionalFields",
15
+ type: "collection",
16
+ placeholder: "Add Field",
17
+ default: {},
18
+ displayOptions: {
19
+ show: showForDocumentsUpdate,
20
+ },
21
+ options: [
22
+ {
23
+ displayName: "Client ID",
24
+ name: "client_id",
25
+ type: "string",
26
+ default: "",
27
+ description: "Associate with contact",
28
+ },
29
+ {
30
+ displayName: "Document (Base64)",
31
+ name: "doc",
32
+ type: "string",
33
+ default: "",
34
+ description: "Base64-encoded file content",
35
+ typeOptions: {
36
+ rows: 4,
37
+ },
38
+ },
39
+ {
40
+ displayName: "Is Exposee",
41
+ name: "is_exposee",
42
+ type: "boolean",
43
+ default: false,
44
+ description: "Whether to use as PDF brochure",
45
+ },
46
+ {
47
+ displayName: "Is Floorplan",
48
+ name: "is_floorplan",
49
+ type: "boolean",
50
+ default: false,
51
+ description: "Whether to designate as floor plan",
52
+ },
53
+ {
54
+ displayName: "Is Private",
55
+ name: "is_private",
56
+ type: "boolean",
57
+ default: false,
58
+ description: "Whether the document is private",
59
+ },
60
+ {
61
+ displayName: "On Landing Page",
62
+ name: "on_landing_page",
63
+ type: "boolean",
64
+ default: false,
65
+ description: "Whether to display on landing page",
66
+ },
67
+ {
68
+ displayName: "Project ID",
69
+ name: "project_id",
70
+ type: "string",
71
+ default: "",
72
+ description: "Associate with project",
73
+ },
74
+ {
75
+ displayName: "Property ID",
76
+ name: "property_id",
77
+ type: "string",
78
+ default: "",
79
+ description: "Associate with property",
80
+ },
81
+ {
82
+ displayName: "Tags",
83
+ name: "tags",
84
+ type: "string",
85
+ default: "",
86
+ description: "Document tags (comma-separated, new tags auto-created)",
87
+ },
88
+ {
89
+ displayName: "Title",
90
+ name: "title",
91
+ type: "string",
92
+ default: "",
93
+ description: "Custom document name",
94
+ },
95
+ ],
96
+ },
97
+ ];
98
+ function buildDocumentsUpdateBody() {
99
+ const body = {};
100
+ const options = this.getNodeParameter("additionalFields", 0);
101
+ if (options) {
102
+ const fields = [
103
+ "title",
104
+ "doc",
105
+ "client_id",
106
+ "property_id",
107
+ "project_id",
108
+ "on_landing_page",
109
+ "is_floorplan",
110
+ "is_exposee",
111
+ "is_private",
112
+ ];
113
+ for (const field of fields) {
114
+ if (options[field] !== undefined && options[field] !== "") {
115
+ body[field] = options[field];
116
+ }
117
+ }
118
+ if (options.tags) {
119
+ body.tags = options.tags
120
+ .split(",")
121
+ .map((tag) => tag.trim());
122
+ }
123
+ }
124
+ return body;
125
+ }
126
+ async function documentsUpdate() {
127
+ const documentId = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("documentId", 0));
128
+ const body = buildDocumentsUpdateBody.call(this);
129
+ const response = await helpers_1.propstackRequest.call(this, {
130
+ method: "PUT",
131
+ url: constants_1.API_ENDPOINTS.DOCUMENTS_UPDATE(documentId),
132
+ body,
133
+ });
134
+ return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
135
+ }
136
+ exports.default = exports.documentsUpdateDescription;
137
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/documents/update.ts"],"names":[],"mappings":";;;AA8IA,0CAiBC;AAxJD,+CAAgD;AAChD,2CAA8E;AAE9E,MAAM,sBAAsB,GAAG;IAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,WAAW,CAAC;CACxB,CAAC;AAEW,QAAA,0BAA0B,GAAsB;IAC3D;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE,sBAAsB;SAC7B;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,wBAAwB;aACtC;YACD;gBACE,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,6BAA6B;gBAC1C,WAAW,EAAE;oBACX,IAAI,EAAE,CAAC;i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QAAQ,CAAC,CAChD,CAAC;AACJ,CAAC;AAED,kBAAe,kCAA0B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
2
+ export declare const emailsGetDescription: INodeProperties[];
3
+ export declare function emailsGet(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
4
+ export default emailsGetDescription;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.emailsGetDescription = void 0;
4
+ exports.emailsGet = emailsGet;
5
+ const constants_1 = require("../../constants");
6
+ const helpers_1 = require("../../helpers");
7
+ exports.emailsGetDescription = [];
8
+ async function emailsGet() {
9
+ const emailId = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("emailId", 0));
10
+ const response = await helpers_1.propstackRequest.call(this, {
11
+ method: "GET",
12
+ url: constants_1.API_ENDPOINTS.EMAILS_GET(emailId),
13
+ });
14
+ return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
15
+ }
16
+ exports.default = exports.emailsGetDescription;
17
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/emails/get.ts"],"names":[],"mappings":";;;AAWA,8BAeC;AApBD,+CAAgD;AAChD,2CAA8E;AAEjE,QAAA,oBAAoB,GAAsB,EAAE,CAAC;AAEnD,KAAK,UAAU,SAAS;IAG7B,MAAM,OAAO,GAAG,IAAA,qCAA2B,EACzC,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAC,CACpC,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,yBAAa,CAAC,UAAU,CAAC,OAAO,CAAC;KACvC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CACjC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAChD,CAAC;AACJ,CAAC;AAED,kBAAe,4BAAoB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
2
+ export declare const emailsGetAllDescription: INodeProperties[];
3
+ export declare function emailsGetAll(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
4
+ export default emailsGetAllDescription;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.emailsGetAllDescription = void 0;
4
+ exports.emailsGetAll = emailsGetAll;
5
+ const constants_1 = require("../../constants");
6
+ const helpers_1 = require("../../helpers");
7
+ const showForEmailsGetAll = {
8
+ operation: ["getAll"],
9
+ resource: ["emails"],
10
+ };
11
+ exports.emailsGetAllDescription = [
12
+ {
13
+ displayName: "Return All",
14
+ name: "returnAll",
15
+ type: "boolean",
16
+ default: false,
17
+ displayOptions: {
18
+ show: showForEmailsGetAll,
19
+ },
20
+ description: "Whether to return all results or only up to a given limit",
21
+ },
22
+ {
23
+ displayName: "Limit",
24
+ name: "limit",
25
+ type: "number",
26
+ default: 50,
27
+ displayOptions: {
28
+ show: {
29
+ ...showForEmailsGetAll,
30
+ returnAll: [false],
31
+ },
32
+ },
33
+ description: "Max number of results to return",
34
+ typeOptions: {
35
+ minValue: 1,
36
+ maxValue: 100,
37
+ },
38
+ },
39
+ {
40
+ displayName: "Additional Fields",
41
+ name: "additionalFields",
42
+ type: "collection",
43
+ placeholder: "Add Field",
44
+ default: {},
45
+ displayOptions: {
46
+ show: showForEmailsGetAll,
47
+ },
48
+ options: [
49
+ {
50
+ displayName: "Page",
51
+ name: "page",
52
+ type: "number",
53
+ default: 1,
54
+ description: "Page number for pagination",
55
+ typeOptions: {
56
+ minValue: 1,
57
+ },
58
+ },
59
+ ],
60
+ },
61
+ ];
62
+ async function emailsGetAll() {
63
+ const returnAll = this.getNodeParameter("returnAll", 0);
64
+ const limit = this.getNodeParameter("limit", 0, 50);
65
+ const options = this.getNodeParameter("additionalFields", 0);
66
+ const page = (options === null || options === void 0 ? void 0 : options.page) || 1;
67
+ if (returnAll) {
68
+ let allResults = [];
69
+ let currentPage = 1;
70
+ let hasMore = true;
71
+ while (hasMore) {
72
+ const qs = {
73
+ page: currentPage,
74
+ per_page: 100,
75
+ };
76
+ const response = await helpers_1.propstackRequest.call(this, {
77
+ method: "GET",
78
+ url: constants_1.API_ENDPOINTS.EMAILS_GET_ALL,
79
+ qs,
80
+ });
81
+ const results = Array.isArray(response) ? response : [response];
82
+ allResults = allResults.concat(results);
83
+ if (results.length < 100) {
84
+ hasMore = false;
85
+ }
86
+ else {
87
+ currentPage++;
88
+ }
89
+ }
90
+ return this.helpers.returnJsonArray(allResults);
91
+ }
92
+ const qs = {
93
+ page,
94
+ per_page: limit,
95
+ };
96
+ const response = await helpers_1.propstackRequest.call(this, {
97
+ method: "GET",
98
+ url: constants_1.API_ENDPOINTS.EMAILS_GET_ALL,
99
+ qs,
100
+ });
101
+ return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
102
+ }
103
+ exports.default = exports.emailsGetAllDescription;
104
+ //# sourceMappingURL=getAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/emails/getAll.ts"],"names":[],"mappings":";;;AAmEA,oCAwDC;AApHD,+CAAgD;AAChD,2CAAiD;AAEjD,MAAM,mBAAmB,GAAG;IAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,QAAQ,CAAC;CACrB,CAAC;AAEW,QAAA,uBAAuB,GAAsB;IACxD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAA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perties } from "n8n-workflow";
2
+ import { emailsSend } from "./send";
3
+ import { emailsGet } from "./get";
4
+ import { emailsGetAll } from "./getAll";
5
+ import { emailsUpdate } from "./update";
6
+ export { emailsGet, emailsGetAll, emailsSend, emailsUpdate };
7
+ export declare const emailsDescription: INodeProperties[];