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,281 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.searchActivities = searchActivities;
4
+ exports.searchContacts = searchContacts;
5
+ exports.searchDeals = searchDeals;
6
+ exports.searchDealPipelines = searchDealPipelines;
7
+ exports.searchDocuments = searchDocuments;
8
+ exports.searchEmails = searchEmails;
9
+ exports.searchParentFeatures = searchParentFeatures;
10
+ exports.searchProjects = searchProjects;
11
+ exports.searchProperties = searchProperties;
12
+ exports.searchSearchProfiles = searchSearchProfiles;
13
+ exports.searchTasks = searchTasks;
14
+ exports.searchTeams = searchTeams;
15
+ exports.searchWebhooks = searchWebhooks;
16
+ const constants_1 = require("./constants");
17
+ const helpers_1 = require("./helpers");
18
+ async function searchActivities(filter) {
19
+ const response = await helpers_1.propstackRequest.call(this, {
20
+ method: "GET",
21
+ url: constants_1.API_ENDPOINTS.ACTIVITIES_GET_ALL,
22
+ qs: { per: 100 },
23
+ });
24
+ const items = Array.isArray(response) ? response : [response];
25
+ let results = items
26
+ .filter((item) => item && item.id)
27
+ .map((item) => ({
28
+ name: String(item.title || `Activity #${item.id}`),
29
+ value: String(item.id),
30
+ }));
31
+ if (filter) {
32
+ const lowerFilter = filter.toLowerCase();
33
+ results = results.filter((r) => r.name.toLowerCase().includes(lowerFilter));
34
+ }
35
+ return { results };
36
+ }
37
+ async function searchContacts(filter) {
38
+ const qs = { per_page: 100 };
39
+ if (filter)
40
+ qs.q = filter;
41
+ const response = await helpers_1.propstackRequest.call(this, {
42
+ method: "GET",
43
+ url: constants_1.API_ENDPOINTS.CONTACTS_GET_ALL,
44
+ qs,
45
+ });
46
+ const items = Array.isArray(response) ? response : [response];
47
+ const results = items
48
+ .filter((item) => item && item.id)
49
+ .map((item) => ({
50
+ name: [item.first_name, item.last_name].filter(Boolean).join(" ") ||
51
+ `Contact #${item.id}`,
52
+ value: String(item.id),
53
+ }));
54
+ return { results };
55
+ }
56
+ async function searchDeals(filter) {
57
+ const response = await helpers_1.propstackRequest.call(this, {
58
+ method: "GET",
59
+ url: constants_1.API_ENDPOINTS.DEALS_GET_ALL,
60
+ qs: { per_page: 100, include: "client,property" },
61
+ });
62
+ const items = Array.isArray(response) ? response : [response];
63
+ let results = items
64
+ .filter((item) => item && item.id)
65
+ .map((item) => {
66
+ const parts = [`Deal #${item.id}`];
67
+ const client = item.client;
68
+ const property = item.property;
69
+ if ((client === null || client === void 0 ? void 0 : client.first_name) || (client === null || client === void 0 ? void 0 : client.last_name)) {
70
+ parts.push([client.first_name, client.last_name]
71
+ .filter(Boolean)
72
+ .join(" "));
73
+ }
74
+ if (property === null || property === void 0 ? void 0 : property.title) {
75
+ parts.push(String(property.title));
76
+ }
77
+ return {
78
+ name: parts.join(" - "),
79
+ value: String(item.id),
80
+ };
81
+ });
82
+ if (filter) {
83
+ const lowerFilter = filter.toLowerCase();
84
+ results = results.filter((r) => r.name.toLowerCase().includes(lowerFilter));
85
+ }
86
+ return { results };
87
+ }
88
+ async function searchDealPipelines(filter) {
89
+ const response = await helpers_1.propstackRequest.call(this, {
90
+ method: "GET",
91
+ url: constants_1.API_ENDPOINTS.DEAL_PIPELINES_GET_ALL,
92
+ });
93
+ const items = Array.isArray(response) ? response : [response];
94
+ let results = items
95
+ .filter((item) => item && item.id)
96
+ .map((item) => ({
97
+ name: String(item.name || `Pipeline #${item.id}`),
98
+ value: String(item.id),
99
+ }));
100
+ if (filter) {
101
+ const lowerFilter = filter.toLowerCase();
102
+ results = results.filter((r) => r.name.toLowerCase().includes(lowerFilter));
103
+ }
104
+ return { results };
105
+ }
106
+ async function searchDocuments(filter) {
107
+ const response = await helpers_1.propstackRequest.call(this, {
108
+ method: "GET",
109
+ url: constants_1.API_ENDPOINTS.DOCUMENTS_GET_ALL,
110
+ qs: { per_page: 100 },
111
+ });
112
+ const items = Array.isArray(response) ? response : [response];
113
+ let results = items
114
+ .filter((item) => item && item.id)
115
+ .map((item) => ({
116
+ name: String(item.name || item.title || `Document #${item.id}`),
117
+ value: String(item.id),
118
+ }));
119
+ if (filter) {
120
+ const lowerFilter = filter.toLowerCase();
121
+ results = results.filter((r) => r.name.toLowerCase().includes(lowerFilter));
122
+ }
123
+ return { results };
124
+ }
125
+ async function searchEmails(filter) {
126
+ const response = await helpers_1.propstackRequest.call(this, {
127
+ method: "GET",
128
+ url: constants_1.API_ENDPOINTS.EMAILS_GET_ALL,
129
+ qs: { per_page: 100 },
130
+ });
131
+ const items = Array.isArray(response) ? response : [response];
132
+ let results = items
133
+ .filter((item) => item && item.id)
134
+ .map((item) => ({
135
+ name: String(item.subject || `Email #${item.id}`),
136
+ value: String(item.id),
137
+ }));
138
+ if (filter) {
139
+ const lowerFilter = filter.toLowerCase();
140
+ results = results.filter((r) => r.name.toLowerCase().includes(lowerFilter));
141
+ }
142
+ return { results };
143
+ }
144
+ async function searchParentFeatures(filter) {
145
+ const entities = ["for_clients", "for_properties", "for_activities"];
146
+ let allResults = [];
147
+ for (const entity of entities) {
148
+ const response = await helpers_1.propstackRequest.call(this, {
149
+ method: "GET",
150
+ url: constants_1.API_ENDPOINTS.FEATURES_PARENT_GET_ALL,
151
+ qs: { entity },
152
+ });
153
+ const items = Array.isArray(response) ? response : [response];
154
+ allResults = allResults.concat(items
155
+ .filter((item) => item && item.id)
156
+ .map((item) => ({
157
+ name: `${item.name || `Parent Feature #${item.id}`} (${entity.replace("for_", "")})`,
158
+ value: String(item.id),
159
+ })));
160
+ }
161
+ if (filter) {
162
+ const lowerFilter = filter.toLowerCase();
163
+ allResults = allResults.filter((r) => r.name.toLowerCase().includes(lowerFilter));
164
+ }
165
+ return { results: allResults };
166
+ }
167
+ async function searchProjects(filter) {
168
+ const response = await helpers_1.propstackRequest.call(this, {
169
+ method: "GET",
170
+ url: constants_1.API_ENDPOINTS.PROJECTS_GET_ALL,
171
+ qs: { per_page: 100 },
172
+ });
173
+ const items = Array.isArray(response) ? response : [response];
174
+ let results = items
175
+ .filter((item) => item && item.id)
176
+ .map((item) => ({
177
+ name: String(item.title || item.name || `Project #${item.id}`),
178
+ value: String(item.id),
179
+ }));
180
+ if (filter) {
181
+ const lowerFilter = filter.toLowerCase();
182
+ results = results.filter((r) => r.name.toLowerCase().includes(lowerFilter));
183
+ }
184
+ return { results };
185
+ }
186
+ async function searchProperties(filter) {
187
+ const qs = { per_page: 100 };
188
+ if (filter)
189
+ qs.q = filter;
190
+ const response = await helpers_1.propstackRequest.call(this, {
191
+ method: "GET",
192
+ url: constants_1.API_ENDPOINTS.PROPERTIES_GET_ALL,
193
+ qs,
194
+ });
195
+ const items = Array.isArray(response) ? response : [response];
196
+ const results = items
197
+ .filter((item) => item && item.id)
198
+ .map((item) => ({
199
+ name: String(item.title || `Property #${item.id}`),
200
+ value: String(item.id),
201
+ }));
202
+ return { results };
203
+ }
204
+ async function searchSearchProfiles(filter) {
205
+ const response = await helpers_1.propstackRequest.call(this, {
206
+ method: "GET",
207
+ url: constants_1.API_ENDPOINTS.SEARCH_PROFILES_GET_ALL,
208
+ qs: { per_page: 100 },
209
+ });
210
+ const items = Array.isArray(response) ? response : [response];
211
+ let results = items
212
+ .filter((item) => item && item.id)
213
+ .map((item) => ({
214
+ name: String(item.name || `Search Profile #${item.id}`),
215
+ value: String(item.id),
216
+ }));
217
+ if (filter) {
218
+ const lowerFilter = filter.toLowerCase();
219
+ results = results.filter((r) => r.name.toLowerCase().includes(lowerFilter));
220
+ }
221
+ return { results };
222
+ }
223
+ async function searchTasks(filter) {
224
+ const response = await helpers_1.propstackRequest.call(this, {
225
+ method: "GET",
226
+ url: constants_1.API_ENDPOINTS.TASKS_GET_ALL,
227
+ qs: { per_page: 100 },
228
+ });
229
+ const items = Array.isArray(response) ? response : [response];
230
+ let results = items
231
+ .filter((item) => item && item.id)
232
+ .map((item) => ({
233
+ name: String(item.title || `Task #${item.id}`),
234
+ value: String(item.id),
235
+ }));
236
+ if (filter) {
237
+ const lowerFilter = filter.toLowerCase();
238
+ results = results.filter((r) => r.name.toLowerCase().includes(lowerFilter));
239
+ }
240
+ return { results };
241
+ }
242
+ async function searchTeams(filter) {
243
+ const response = await helpers_1.propstackRequest.call(this, {
244
+ method: "GET",
245
+ url: constants_1.API_ENDPOINTS.TEAMS_GET_ALL,
246
+ qs: { per_page: 100 },
247
+ });
248
+ const items = Array.isArray(response) ? response : [response];
249
+ let results = items
250
+ .filter((item) => item && item.id)
251
+ .map((item) => ({
252
+ name: String(item.name || `Team #${item.id}`),
253
+ value: String(item.id),
254
+ }));
255
+ if (filter) {
256
+ const lowerFilter = filter.toLowerCase();
257
+ results = results.filter((r) => r.name.toLowerCase().includes(lowerFilter));
258
+ }
259
+ return { results };
260
+ }
261
+ async function searchWebhooks(filter) {
262
+ const response = await helpers_1.propstackRequest.call(this, {
263
+ method: "GET",
264
+ url: constants_1.API_ENDPOINTS.WEBHOOKS_GET_ALL,
265
+ });
266
+ const items = Array.isArray(response) ? response : [response];
267
+ let results = items
268
+ .filter((item) => item && item.id)
269
+ .map((item) => ({
270
+ name: String(item.event && item.target_url
271
+ ? `${item.event} → ${item.target_url}`
272
+ : `Webhook #${item.id}`),
273
+ value: String(item.id),
274
+ }));
275
+ if (filter) {
276
+ const lowerFilter = filter.toLowerCase();
277
+ results = results.filter((r) => r.name.toLowerCase().includes(lowerFilter));
278
+ }
279
+ return { results };
280
+ }
281
+ //# sourceMappingURL=listSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listSearch.js","sourceRoot":"","sources":["../../../../nodes/Propstack/v1/listSearch.ts"],"names":[],"mappings":";;AAQA,4CAuBC;AAED,wCAqBC;AAED,kCAsCC;AAED,kDAsBC;AAED,0CAuBC;AAED,oCAuBC;AAED,oDA+BC;AAED,wCAuBC;AAED,4CAmBC;AAED,oDAuBC;AAED,kCAuBC;AAED,kCAuBC;AAED,wCA0BC;AAzVD,2CAA4C;AAC5C,uCAA6C;AAEtC,KAAK,UAAU,gBAAgB,CAEpC,MAAe;IAEf,MAAM,QAAQ,GAAG,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,yBAAa,CAAC,kBAAkB;QACrC,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE;KACjB,CAAC,CAAC;IACH,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC9D,IAAI,OAAO,GAAG,KAAK;SAChB,MAAM,CAAC,CAAC,IAAiB,EAAE,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,CAAC;SAC9C,GAAG,CAAC,CAAC,IAAiB,EAAE,EAAE,CAAC,CAAC;QAC3B,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,IAAI,aAAa,IAAI,CAAC,EAAE,EAAE,CAAC;QAClD,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,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AAC;IAC9D,IAAI,OAAO,GAAG,KAAK;SAChB,MAAM,CAAC,CAAC,IAAiB,EAAE,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,CAAC;SAC9C,GAAG,CAAC,CAAC,IAAiB,EAAE,EAAE,CAAC,CAAC;QAC3B,IAAI,EAAE,MAAM,CACV,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,UAAU;YAC3B,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,MAAM,IAAI,CAAC,UAAU,EAAE;YACtC,CAAC,CAAC,YAAY,IAAI,CAAC,EAAE,EAAE,CAC1B;QACD,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;KACvB,CAAC,CAAC,CAAC;IACN,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;QACzC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAC7B,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAC3C,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,CAAC;AACrB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
2
+ export declare const activityTypesGetAllDescription: INodeProperties[];
3
+ export declare function activityTypesGetAll(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
4
+ export default activityTypesGetAllDescription;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.activityTypesGetAllDescription = void 0;
4
+ exports.activityTypesGetAll = activityTypesGetAll;
5
+ const constants_1 = require("../../constants");
6
+ const helpers_1 = require("../../helpers");
7
+ exports.activityTypesGetAllDescription = [];
8
+ async function activityTypesGetAll() {
9
+ const response = await helpers_1.propstackRequest.call(this, {
10
+ method: "GET",
11
+ url: constants_1.API_ENDPOINTS.ACTIVITY_TYPES_GET_ALL,
12
+ });
13
+ return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
14
+ }
15
+ exports.default = exports.activityTypesGetAllDescription;
16
+ //# sourceMappingURL=activityTypesGetAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activityTypesGetAll.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/activities/activityTypesGetAll.ts"],"names":[],"mappings":";;;AAWA,kDAWC;AAhBD,+CAAgD;AAChD,2CAAiD;AAEpC,QAAA,8BAA8B,GAAsB,EAAE,CAAC;AAE7D,KAAK,UAAU,mBAAmB;IAGvC,MAAM,QAAQ,GAAG,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,yBAAa,CAAC,sBAAsB;KAC1C,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,sCAA8B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
2
+ export declare const activitiesGetDescription: INodeProperties[];
3
+ export declare function activitiesGet(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
4
+ export default activitiesGetDescription;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.activitiesGetDescription = void 0;
4
+ exports.activitiesGet = activitiesGet;
5
+ const constants_1 = require("../../constants");
6
+ const helpers_1 = require("../../helpers");
7
+ const showForActivitiesGet = {
8
+ operation: ["get"],
9
+ resource: ["activities"],
10
+ };
11
+ exports.activitiesGetDescription = [
12
+ {
13
+ displayName: "Activity ID",
14
+ name: "activityId",
15
+ type: "string",
16
+ required: true,
17
+ default: "",
18
+ displayOptions: {
19
+ show: showForActivitiesGet,
20
+ },
21
+ description: "The ID of the activity to retrieve",
22
+ },
23
+ ];
24
+ async function activitiesGet() {
25
+ const activityId = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("activityId", 0));
26
+ const response = await helpers_1.propstackRequest.call(this, {
27
+ method: "GET",
28
+ url: constants_1.API_ENDPOINTS.ACTIVITIES_GET(activityId),
29
+ });
30
+ return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
31
+ }
32
+ exports.default = exports.activitiesGetDescription;
33
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/activities/get.ts"],"names":[],"mappings":";;;AA4BA,sCAeC;AArCD,+CAAgD;AAChD,2CAA8E;AAE9E,MAAM,oBAAoB,GAAG;IAC3B,SAAS,EAAE,CAAC,KAAK,CAAC;IAClB,QAAQ,EAAE,CAAC,YAAY,CAAC;CACzB,CAAC;AAEW,QAAA,wBAAwB,GAAsB;IACzD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE,oBAAoB;SAC3B;QACD,WAAW,EAAE,oCAAoC;KAClD;CACF,CAAC;AAEK,KAAK,UAAU,aAAa;IAGjC,MAAM,UAAU,GAAG,IAAA,qCAA2B,EAC5C,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAC,CACvC,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,yBAAa,CAAC,cAAc,CAAC,UAAU,CAAC;KAC9C,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,gCAAwB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
2
+ export declare const activitiesGetAllDescription: INodeProperties[];
3
+ export declare function activitiesGetAll(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
4
+ export default activitiesGetAllDescription;
@@ -0,0 +1,278 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.activitiesGetAllDescription = void 0;
4
+ exports.activitiesGetAll = activitiesGetAll;
5
+ const constants_1 = require("../../constants");
6
+ const helpers_1 = require("../../helpers");
7
+ const showForActivitiesGetAll = {
8
+ operation: ["getAll"],
9
+ resource: ["activities"],
10
+ };
11
+ exports.activitiesGetAllDescription = [
12
+ {
13
+ displayName: "Return All",
14
+ name: "returnAll",
15
+ type: "boolean",
16
+ default: false,
17
+ displayOptions: {
18
+ show: showForActivitiesGetAll,
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
+ ...showForActivitiesGetAll,
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: showForActivitiesGetAll,
47
+ },
48
+ options: [
49
+ {
50
+ displayName: "Broker ID",
51
+ name: "broker_id",
52
+ type: "string",
53
+ default: "",
54
+ description: "Activity owner/assignee ID",
55
+ },
56
+ {
57
+ displayName: "Client IDs",
58
+ name: "client_ids",
59
+ type: "string",
60
+ default: "",
61
+ description: "Contact identifiers (comma-separated)",
62
+ },
63
+ {
64
+ displayName: "Creator ID",
65
+ name: "creator_id",
66
+ type: "string",
67
+ default: "",
68
+ description: "Creator identifier",
69
+ },
70
+ {
71
+ displayName: "Expand",
72
+ name: "expand",
73
+ type: "boolean",
74
+ default: false,
75
+ description: "Whether to return detailed JSON with custom fields",
76
+ },
77
+ {
78
+ displayName: "Item Type",
79
+ name: "item_type",
80
+ type: "options",
81
+ default: "message",
82
+ options: [
83
+ { name: "Cancellation", value: "cancelation" },
84
+ { name: "Decision", value: "decision" },
85
+ { name: "Event", value: "event" },
86
+ { name: "Letter", value: "letter" },
87
+ { name: "Message", value: "message" },
88
+ { name: "Note", value: "note" },
89
+ { name: "Policy", value: "policy" },
90
+ { name: "Reminder", value: "reminder" },
91
+ { name: "SMS", value: "sms" },
92
+ ],
93
+ description: "Activity type filter",
94
+ },
95
+ {
96
+ displayName: "Not Completed",
97
+ name: "not_completed",
98
+ type: "boolean",
99
+ default: false,
100
+ description: "Whether to fetch incomplete items only",
101
+ },
102
+ {
103
+ displayName: "Order",
104
+ name: "order",
105
+ type: "options",
106
+ default: "desc",
107
+ options: [
108
+ { name: "Ascending", value: "asc" },
109
+ { name: "Descending", value: "desc" },
110
+ ],
111
+ description: "Sort order",
112
+ },
113
+ {
114
+ displayName: "Project IDs",
115
+ name: "project_ids",
116
+ type: "string",
117
+ default: "",
118
+ description: "Project identifiers (comma-separated)",
119
+ },
120
+ {
121
+ displayName: "Property IDs",
122
+ name: "property_ids",
123
+ type: "string",
124
+ default: "",
125
+ description: "Property identifiers (comma-separated)",
126
+ },
127
+ {
128
+ displayName: "Reason IDs",
129
+ name: "reason_ids",
130
+ type: "string",
131
+ default: "",
132
+ description: "Cancellation reason identifiers (comma-separated)",
133
+ },
134
+ {
135
+ displayName: "Starts At From",
136
+ name: "starts_at_from",
137
+ type: "dateTime",
138
+ default: "",
139
+ description: "Start date range from (ISO 8601 format)",
140
+ },
141
+ {
142
+ displayName: "Starts At To",
143
+ name: "starts_at_to",
144
+ type: "dateTime",
145
+ default: "",
146
+ description: "Start date range to (ISO 8601 format)",
147
+ },
148
+ ],
149
+ },
150
+ ];
151
+ async function activitiesGetAll() {
152
+ const returnAll = this.getNodeParameter("returnAll", 0);
153
+ const limit = this.getNodeParameter("limit", 0, 20);
154
+ const options = this.getNodeParameter("additionalFields", 0);
155
+ if (returnAll) {
156
+ let allResults = [];
157
+ let currentPage = 1;
158
+ let hasMore = true;
159
+ while (hasMore) {
160
+ const qs = {
161
+ page: currentPage,
162
+ per: 100,
163
+ };
164
+ if (options) {
165
+ if (options.broker_id) {
166
+ qs.broker_id = options.broker_id;
167
+ }
168
+ if (options.creator_id) {
169
+ qs.creator_id = options.creator_id;
170
+ }
171
+ if (options.expand)
172
+ qs.expand = options.expand;
173
+ if (options.item_type) {
174
+ qs.item_type = options.item_type;
175
+ }
176
+ if (options.not_completed) {
177
+ qs.not_completed = options.not_completed;
178
+ }
179
+ if (options.order)
180
+ qs.order = options.order;
181
+ if (options.client_ids) {
182
+ qs.client_ids = options.client_ids
183
+ .split(",")
184
+ .map((id) => id.trim());
185
+ }
186
+ if (options.project_ids) {
187
+ qs.project_ids = options.project_ids
188
+ .split(",")
189
+ .map((id) => id.trim());
190
+ }
191
+ if (options.property_ids) {
192
+ qs.property_ids = options.property_ids
193
+ .split(",")
194
+ .map((id) => id.trim());
195
+ }
196
+ if (options.reason_ids) {
197
+ qs.reason_ids = options.reason_ids
198
+ .split(",")
199
+ .map((id) => id.trim());
200
+ }
201
+ if (options.starts_at_from) {
202
+ qs.starts_at_from = options.starts_at_from;
203
+ }
204
+ if (options.starts_at_to) {
205
+ qs.starts_at_to = options.starts_at_to;
206
+ }
207
+ }
208
+ const response = await helpers_1.propstackRequest.call(this, {
209
+ method: "GET",
210
+ url: constants_1.API_ENDPOINTS.ACTIVITIES_GET_ALL,
211
+ qs,
212
+ });
213
+ const results = Array.isArray(response) ? response : [response];
214
+ allResults = allResults.concat(results);
215
+ if (results.length < 100) {
216
+ hasMore = false;
217
+ }
218
+ else {
219
+ currentPage++;
220
+ }
221
+ }
222
+ return this.helpers.returnJsonArray(allResults);
223
+ }
224
+ const qs = {
225
+ page: 1,
226
+ per: limit,
227
+ };
228
+ if (options) {
229
+ if (options.broker_id)
230
+ qs.broker_id = options.broker_id;
231
+ if (options.creator_id) {
232
+ qs.creator_id = options.creator_id;
233
+ }
234
+ if (options.expand)
235
+ qs.expand = options.expand;
236
+ if (options.item_type)
237
+ qs.item_type = options.item_type;
238
+ if (options.not_completed) {
239
+ qs.not_completed = options.not_completed;
240
+ }
241
+ if (options.order)
242
+ qs.order = options.order;
243
+ if (options.client_ids) {
244
+ qs.client_ids = options.client_ids
245
+ .split(",")
246
+ .map((id) => id.trim());
247
+ }
248
+ if (options.project_ids) {
249
+ qs.project_ids = options.project_ids
250
+ .split(",")
251
+ .map((id) => id.trim());
252
+ }
253
+ if (options.property_ids) {
254
+ qs.property_ids = options.property_ids
255
+ .split(",")
256
+ .map((id) => id.trim());
257
+ }
258
+ if (options.reason_ids) {
259
+ qs.reason_ids = options.reason_ids
260
+ .split(",")
261
+ .map((id) => id.trim());
262
+ }
263
+ if (options.starts_at_from) {
264
+ qs.starts_at_from = options.starts_at_from;
265
+ }
266
+ if (options.starts_at_to) {
267
+ qs.starts_at_to = options.starts_at_to;
268
+ }
269
+ }
270
+ const response = await helpers_1.propstackRequest.call(this, {
271
+ method: "GET",
272
+ url: constants_1.API_ENDPOINTS.ACTIVITIES_GET_ALL,
273
+ qs,
274
+ });
275
+ return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
276
+ }
277
+ exports.default = exports.activitiesGetAllDescription;
278
+ //# sourceMappingURL=getAll.js.map