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.
- package/README.md +132 -28
- package/dist/credentials/PropstackApi.credentials.d.ts +10 -0
- package/dist/credentials/PropstackApi.credentials.js +40 -0
- package/dist/credentials/PropstackApi.credentials.js.map +1 -0
- package/dist/credentials/PropstackV2Api.credentials.d.ts +10 -0
- package/dist/credentials/PropstackV2Api.credentials.js +41 -0
- package/dist/credentials/PropstackV2Api.credentials.js.map +1 -0
- package/dist/icons/propstack-logo.svg +1 -0
- package/dist/icons/propstack.dark.svg +1 -0
- package/dist/icons/propstack.svg +1 -0
- package/dist/nodes/Propstack/Propstack.node.d.ts +4 -0
- package/dist/nodes/Propstack/Propstack.node.js +30 -0
- package/dist/nodes/Propstack/Propstack.node.js.map +1 -0
- package/dist/nodes/Propstack/Propstack.node.json +17 -0
- package/dist/nodes/Propstack/PropstackTrigger.node.d.ts +12 -0
- package/dist/nodes/Propstack/PropstackTrigger.node.js +138 -0
- package/dist/nodes/Propstack/PropstackTrigger.node.js.map +1 -0
- package/dist/nodes/Propstack/PropstackTrigger.node.json +17 -0
- package/dist/nodes/Propstack/types.d.ts +59 -0
- package/dist/nodes/Propstack/types.js +3 -0
- package/dist/nodes/Propstack/types.js.map +1 -0
- package/dist/nodes/Propstack/v1/PropstackV1.d.ts +24 -0
- package/dist/nodes/Propstack/v1/PropstackV1.js +314 -0
- package/dist/nodes/Propstack/v1/PropstackV1.js.map +1 -0
- package/dist/nodes/Propstack/v1/constants.d.ts +66 -0
- package/dist/nodes/Propstack/v1/constants.js +70 -0
- package/dist/nodes/Propstack/v1/constants.js.map +1 -0
- package/dist/nodes/Propstack/v1/helpers.d.ts +7 -0
- package/dist/nodes/Propstack/v1/helpers.js +102 -0
- package/dist/nodes/Propstack/v1/helpers.js.map +1 -0
- package/dist/nodes/Propstack/v1/listSearch.d.ts +14 -0
- package/dist/nodes/Propstack/v1/listSearch.js +281 -0
- package/dist/nodes/Propstack/v1/listSearch.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/activities/activityTypesGetAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/activities/activityTypesGetAll.js +16 -0
- package/dist/nodes/Propstack/v1/resources/activities/activityTypesGetAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/activities/get.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/activities/get.js +33 -0
- package/dist/nodes/Propstack/v1/resources/activities/get.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/activities/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/activities/getAll.js +278 -0
- package/dist/nodes/Propstack/v1/resources/activities/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/activities/index.d.ts +7 -0
- package/dist/nodes/Propstack/v1/resources/activities/index.js +230 -0
- package/dist/nodes/Propstack/v1/resources/activities/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/activities/reservationReasonsGetAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/activities/reservationReasonsGetAll.js +16 -0
- package/dist/nodes/Propstack/v1/resources/activities/reservationReasonsGetAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/brokers/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/brokers/getAll.js +16 -0
- package/dist/nodes/Propstack/v1/resources/brokers/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/brokers/index.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/brokers/index.js +29 -0
- package/dist/nodes/Propstack/v1/resources/brokers/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/contacts/create.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/contacts/create.js +233 -0
- package/dist/nodes/Propstack/v1/resources/contacts/create.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/contacts/delete.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/contacts/delete.js +17 -0
- package/dist/nodes/Propstack/v1/resources/contacts/delete.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/contacts/get.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/contacts/get.js +94 -0
- package/dist/nodes/Propstack/v1/resources/contacts/get.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/contacts/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/contacts/getAll.js +287 -0
- package/dist/nodes/Propstack/v1/resources/contacts/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/contacts/index.d.ts +8 -0
- package/dist/nodes/Propstack/v1/resources/contacts/index.js +111 -0
- package/dist/nodes/Propstack/v1/resources/contacts/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/contacts/update.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/contacts/update.js +258 -0
- package/dist/nodes/Propstack/v1/resources/contacts/update.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/customFields/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/customFields/getAll.js +63 -0
- package/dist/nodes/Propstack/v1/resources/customFields/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/customFields/index.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/customFields/index.js +70 -0
- package/dist/nodes/Propstack/v1/resources/customFields/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/dealPipelines/get.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/dealPipelines/get.js +17 -0
- package/dist/nodes/Propstack/v1/resources/dealPipelines/get.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/dealPipelines/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/dealPipelines/getAll.js +16 -0
- package/dist/nodes/Propstack/v1/resources/dealPipelines/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/dealPipelines/index.d.ts +5 -0
- package/dist/nodes/Propstack/v1/resources/dealPipelines/index.js +71 -0
- package/dist/nodes/Propstack/v1/resources/dealPipelines/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/deals/create.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/deals/create.js +197 -0
- package/dist/nodes/Propstack/v1/resources/deals/create.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/deals/delete.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/deals/delete.js +17 -0
- package/dist/nodes/Propstack/v1/resources/deals/delete.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/deals/get.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/deals/get.js +59 -0
- package/dist/nodes/Propstack/v1/resources/deals/get.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/deals/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/deals/getAll.js +366 -0
- package/dist/nodes/Propstack/v1/resources/deals/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/deals/index.d.ts +8 -0
- package/dist/nodes/Propstack/v1/resources/deals/index.js +111 -0
- package/dist/nodes/Propstack/v1/resources/deals/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/deals/update.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/deals/update.js +150 -0
- package/dist/nodes/Propstack/v1/resources/deals/update.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/documents/create.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/documents/create.js +140 -0
- package/dist/nodes/Propstack/v1/resources/documents/create.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/documents/delete.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/documents/delete.js +17 -0
- package/dist/nodes/Propstack/v1/resources/documents/delete.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/documents/get.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/documents/get.js +17 -0
- package/dist/nodes/Propstack/v1/resources/documents/get.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/documents/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/documents/getAll.js +191 -0
- package/dist/nodes/Propstack/v1/resources/documents/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/documents/index.d.ts +8 -0
- package/dist/nodes/Propstack/v1/resources/documents/index.js +98 -0
- package/dist/nodes/Propstack/v1/resources/documents/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/documents/update.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/documents/update.js +137 -0
- package/dist/nodes/Propstack/v1/resources/documents/update.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/emails/get.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/emails/get.js +17 -0
- package/dist/nodes/Propstack/v1/resources/emails/get.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/emails/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/emails/getAll.js +104 -0
- package/dist/nodes/Propstack/v1/resources/emails/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/emails/index.d.ts +7 -0
- package/dist/nodes/Propstack/v1/resources/emails/index.js +89 -0
- package/dist/nodes/Propstack/v1/resources/emails/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/emails/send.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/emails/send.js +159 -0
- package/dist/nodes/Propstack/v1/resources/emails/send.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/emails/update.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/emails/update.js +110 -0
- package/dist/nodes/Propstack/v1/resources/emails/update.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/events/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/events/getAll.js +162 -0
- package/dist/nodes/Propstack/v1/resources/events/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/events/index.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/events/index.js +134 -0
- package/dist/nodes/Propstack/v1/resources/events/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/features/create.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/features/create.js +70 -0
- package/dist/nodes/Propstack/v1/resources/features/create.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/features/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/features/getAll.js +65 -0
- package/dist/nodes/Propstack/v1/resources/features/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/features/index.d.ts +6 -0
- package/dist/nodes/Propstack/v1/resources/features/index.js +123 -0
- package/dist/nodes/Propstack/v1/resources/features/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/features/parentGetAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/features/parentGetAll.js +56 -0
- package/dist/nodes/Propstack/v1/resources/features/parentGetAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/locations/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/locations/getAll.js +16 -0
- package/dist/nodes/Propstack/v1/resources/locations/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/locations/index.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/locations/index.js +29 -0
- package/dist/nodes/Propstack/v1/resources/locations/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/notes/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/notes/getAll.js +98 -0
- package/dist/nodes/Propstack/v1/resources/notes/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/notes/index.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/notes/index.js +87 -0
- package/dist/nodes/Propstack/v1/resources/notes/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/portalExport/index.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/portalExport/index.js +87 -0
- package/dist/nodes/Propstack/v1/resources/portalExport/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/portalExport/publish.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/portalExport/publish.js +88 -0
- package/dist/nodes/Propstack/v1/resources/portalExport/publish.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/projects/create.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/projects/create.js +230 -0
- package/dist/nodes/Propstack/v1/resources/projects/create.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/projects/delete.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/projects/delete.js +17 -0
- package/dist/nodes/Propstack/v1/resources/projects/delete.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/projects/get.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/projects/get.js +23 -0
- package/dist/nodes/Propstack/v1/resources/projects/get.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/projects/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/projects/getAll.js +124 -0
- package/dist/nodes/Propstack/v1/resources/projects/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/projects/index.d.ts +8 -0
- package/dist/nodes/Propstack/v1/resources/projects/index.js +111 -0
- package/dist/nodes/Propstack/v1/resources/projects/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/projects/update.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/projects/update.js +231 -0
- package/dist/nodes/Propstack/v1/resources/projects/update.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/properties/create.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/properties/create.js +359 -0
- package/dist/nodes/Propstack/v1/resources/properties/create.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/properties/delete.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/properties/delete.js +17 -0
- package/dist/nodes/Propstack/v1/resources/properties/delete.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/properties/get.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/properties/get.js +66 -0
- package/dist/nodes/Propstack/v1/resources/properties/get.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/properties/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/properties/getAll.js +493 -0
- package/dist/nodes/Propstack/v1/resources/properties/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/properties/index.d.ts +8 -0
- package/dist/nodes/Propstack/v1/resources/properties/index.js +111 -0
- package/dist/nodes/Propstack/v1/resources/properties/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/properties/update.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/properties/update.js +377 -0
- package/dist/nodes/Propstack/v1/resources/properties/update.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/create.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/create.js +292 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/create.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/delete.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/delete.js +33 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/delete.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/getAll.js +106 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/index.d.ts +7 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/index.js +448 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/update.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/update.js +287 -0
- package/dist/nodes/Propstack/v1/resources/searchProfiles/update.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/tasks/create.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/tasks/create.js +236 -0
- package/dist/nodes/Propstack/v1/resources/tasks/create.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/tasks/delete.d.ts +2 -0
- package/dist/nodes/Propstack/v1/resources/tasks/delete.js +14 -0
- package/dist/nodes/Propstack/v1/resources/tasks/delete.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/tasks/get.d.ts +2 -0
- package/dist/nodes/Propstack/v1/resources/tasks/get.js +14 -0
- package/dist/nodes/Propstack/v1/resources/tasks/get.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/tasks/getAll.d.ts +2 -0
- package/dist/nodes/Propstack/v1/resources/tasks/getAll.js +47 -0
- package/dist/nodes/Propstack/v1/resources/tasks/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/tasks/index.d.ts +8 -0
- package/dist/nodes/Propstack/v1/resources/tasks/index.js +485 -0
- package/dist/nodes/Propstack/v1/resources/tasks/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/tasks/update.d.ts +2 -0
- package/dist/nodes/Propstack/v1/resources/tasks/update.js +87 -0
- package/dist/nodes/Propstack/v1/resources/tasks/update.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/teams/create.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/teams/create.js +133 -0
- package/dist/nodes/Propstack/v1/resources/teams/create.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/teams/delete.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/teams/delete.js +17 -0
- package/dist/nodes/Propstack/v1/resources/teams/delete.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/teams/get.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/teams/get.js +17 -0
- package/dist/nodes/Propstack/v1/resources/teams/get.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/teams/getAll.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/teams/getAll.js +80 -0
- package/dist/nodes/Propstack/v1/resources/teams/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/teams/index.d.ts +8 -0
- package/dist/nodes/Propstack/v1/resources/teams/index.js +273 -0
- package/dist/nodes/Propstack/v1/resources/teams/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/teams/update.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/teams/update.js +45 -0
- package/dist/nodes/Propstack/v1/resources/teams/update.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/webhooks/create.d.ts +2 -0
- package/dist/nodes/Propstack/v1/resources/webhooks/create.js +25 -0
- package/dist/nodes/Propstack/v1/resources/webhooks/create.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/webhooks/delete.d.ts +2 -0
- package/dist/nodes/Propstack/v1/resources/webhooks/delete.js +14 -0
- package/dist/nodes/Propstack/v1/resources/webhooks/delete.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/webhooks/getAll.d.ts +2 -0
- package/dist/nodes/Propstack/v1/resources/webhooks/getAll.js +18 -0
- package/dist/nodes/Propstack/v1/resources/webhooks/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/webhooks/index.d.ts +7 -0
- package/dist/nodes/Propstack/v1/resources/webhooks/index.js +126 -0
- package/dist/nodes/Propstack/v1/resources/webhooks/index.js.map +1 -0
- package/dist/nodes/Propstack/v2/PropstackV2.d.ts +18 -0
- package/dist/nodes/Propstack/v2/PropstackV2.js +195 -0
- package/dist/nodes/Propstack/v2/PropstackV2.js.map +1 -0
- package/dist/nodes/Propstack/v2/constants.d.ts +49 -0
- package/dist/nodes/Propstack/v2/constants.js +53 -0
- package/dist/nodes/Propstack/v2/constants.js.map +1 -0
- package/dist/nodes/Propstack/v2/helpers.d.ts +20 -0
- package/dist/nodes/Propstack/v2/helpers.js +218 -0
- package/dist/nodes/Propstack/v2/helpers.js.map +1 -0
- package/dist/nodes/Propstack/v2/listSearch.d.ts +9 -0
- package/dist/nodes/Propstack/v2/listSearch.js +80 -0
- package/dist/nodes/Propstack/v2/listSearch.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/activities/index.d.ts +4 -0
- package/dist/nodes/Propstack/v2/resources/activities/index.js +20 -0
- package/dist/nodes/Propstack/v2/resources/activities/index.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/activities/scroll.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/activities/scroll.js +38 -0
- package/dist/nodes/Propstack/v2/resources/activities/scroll.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/brokers/create.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/brokers/create.js +48 -0
- package/dist/nodes/Propstack/v2/resources/brokers/create.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/brokers/fields.d.ts +5 -0
- package/dist/nodes/Propstack/v2/resources/brokers/fields.js +54 -0
- package/dist/nodes/Propstack/v2/resources/brokers/fields.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/brokers/get.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/brokers/get.js +19 -0
- package/dist/nodes/Propstack/v2/resources/brokers/get.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/brokers/getAll.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/brokers/getAll.js +57 -0
- package/dist/nodes/Propstack/v2/resources/brokers/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/brokers/index.d.ts +7 -0
- package/dist/nodes/Propstack/v2/resources/brokers/index.js +65 -0
- package/dist/nodes/Propstack/v2/resources/brokers/index.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/brokers/update.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/brokers/update.js +25 -0
- package/dist/nodes/Propstack/v2/resources/brokers/update.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/create.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/create.js +90 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/create.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/delete.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/delete.js +14 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/delete.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/fields.d.ts +5 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/fields.js +118 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/fields.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/get.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/get.js +20 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/get.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/getAll.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/getAll.js +125 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/index.d.ts +9 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/index.js +116 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/index.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/scroll.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/scroll.js +69 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/scroll.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/update.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/update.js +45 -0
- package/dist/nodes/Propstack/v2/resources/clientProperties/update.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clients/create.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/clients/create.js +33 -0
- package/dist/nodes/Propstack/v2/resources/clients/create.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clients/delete.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/clients/delete.js +14 -0
- package/dist/nodes/Propstack/v2/resources/clients/delete.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clients/fields.d.ts +5 -0
- package/dist/nodes/Propstack/v2/resources/clients/fields.js +470 -0
- package/dist/nodes/Propstack/v2/resources/clients/fields.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clients/get.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/clients/get.js +20 -0
- package/dist/nodes/Propstack/v2/resources/clients/get.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clients/getAll.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/clients/getAll.js +115 -0
- package/dist/nodes/Propstack/v2/resources/clients/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clients/getDeleted.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/clients/getDeleted.js +81 -0
- package/dist/nodes/Propstack/v2/resources/clients/getDeleted.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clients/index.d.ts +10 -0
- package/dist/nodes/Propstack/v2/resources/clients/index.js +127 -0
- package/dist/nodes/Propstack/v2/resources/clients/index.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clients/scroll.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/clients/scroll.js +71 -0
- package/dist/nodes/Propstack/v2/resources/clients/scroll.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/clients/update.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/clients/update.js +34 -0
- package/dist/nodes/Propstack/v2/resources/clients/update.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/customFields/create.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/customFields/create.js +42 -0
- package/dist/nodes/Propstack/v2/resources/customFields/create.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/customFields/createOption.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/customFields/createOption.js +27 -0
- package/dist/nodes/Propstack/v2/resources/customFields/createOption.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/customFields/delete.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/customFields/delete.js +11 -0
- package/dist/nodes/Propstack/v2/resources/customFields/delete.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/customFields/deleteOption.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/customFields/deleteOption.js +23 -0
- package/dist/nodes/Propstack/v2/resources/customFields/deleteOption.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/customFields/fields.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/customFields/fields.js +18 -0
- package/dist/nodes/Propstack/v2/resources/customFields/fields.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/customFields/get.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/customFields/get.js +11 -0
- package/dist/nodes/Propstack/v2/resources/customFields/get.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/customFields/getAll.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/customFields/getAll.js +29 -0
- package/dist/nodes/Propstack/v2/resources/customFields/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/customFields/index.d.ts +10 -0
- package/dist/nodes/Propstack/v2/resources/customFields/index.js +63 -0
- package/dist/nodes/Propstack/v2/resources/customFields/index.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/customFields/update.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/customFields/update.js +29 -0
- package/dist/nodes/Propstack/v2/resources/customFields/update.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/history/get.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/history/get.js +27 -0
- package/dist/nodes/Propstack/v2/resources/history/get.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/history/index.d.ts +4 -0
- package/dist/nodes/Propstack/v2/resources/history/index.js +60 -0
- package/dist/nodes/Propstack/v2/resources/history/index.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/noteAttachments/create.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/noteAttachments/create.js +51 -0
- package/dist/nodes/Propstack/v2/resources/noteAttachments/create.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/noteAttachments/index.d.ts +4 -0
- package/dist/nodes/Propstack/v2/resources/noteAttachments/index.js +20 -0
- package/dist/nodes/Propstack/v2/resources/noteAttachments/index.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/projects/create.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/projects/create.js +30 -0
- package/dist/nodes/Propstack/v2/resources/projects/create.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/projects/delete.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/projects/delete.js +14 -0
- package/dist/nodes/Propstack/v2/resources/projects/delete.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/projects/fields.d.ts +5 -0
- package/dist/nodes/Propstack/v2/resources/projects/fields.js +114 -0
- package/dist/nodes/Propstack/v2/resources/projects/fields.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/projects/get.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/projects/get.js +20 -0
- package/dist/nodes/Propstack/v2/resources/projects/get.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/projects/getAll.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/projects/getAll.js +91 -0
- package/dist/nodes/Propstack/v2/resources/projects/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/projects/index.d.ts +8 -0
- package/dist/nodes/Propstack/v2/resources/projects/index.js +107 -0
- package/dist/nodes/Propstack/v2/resources/projects/index.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/projects/update.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/projects/update.js +31 -0
- package/dist/nodes/Propstack/v2/resources/projects/update.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/properties/create.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/properties/create.js +93 -0
- package/dist/nodes/Propstack/v2/resources/properties/create.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/properties/createLink.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/properties/createLink.js +98 -0
- package/dist/nodes/Propstack/v2/resources/properties/createLink.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/properties/delete.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/properties/delete.js +14 -0
- package/dist/nodes/Propstack/v2/resources/properties/delete.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/properties/deleteLink.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/properties/deleteLink.js +31 -0
- package/dist/nodes/Propstack/v2/resources/properties/deleteLink.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/properties/fields.d.ts +5 -0
- package/dist/nodes/Propstack/v2/resources/properties/fields.js +1237 -0
- package/dist/nodes/Propstack/v2/resources/properties/fields.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/properties/get.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/properties/get.js +21 -0
- package/dist/nodes/Propstack/v2/resources/properties/get.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/properties/getAll.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/properties/getAll.js +166 -0
- package/dist/nodes/Propstack/v2/resources/properties/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/properties/getDeleted.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/properties/getDeleted.js +82 -0
- package/dist/nodes/Propstack/v2/resources/properties/getDeleted.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/properties/getOptions.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/properties/getOptions.js +50 -0
- package/dist/nodes/Propstack/v2/resources/properties/getOptions.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/properties/index.d.ts +14 -0
- package/dist/nodes/Propstack/v2/resources/properties/index.js +163 -0
- package/dist/nodes/Propstack/v2/resources/properties/index.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/properties/scroll.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/properties/scroll.js +56 -0
- package/dist/nodes/Propstack/v2/resources/properties/scroll.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/properties/update.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/properties/update.js +34 -0
- package/dist/nodes/Propstack/v2/resources/properties/update.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/properties/updateLink.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/properties/updateLink.js +100 -0
- package/dist/nodes/Propstack/v2/resources/properties/updateLink.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/reference/getAll.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/reference/getAll.js +30 -0
- package/dist/nodes/Propstack/v2/resources/reference/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/reference/index.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/reference/index.js +55 -0
- package/dist/nodes/Propstack/v2/resources/reference/index.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/relationships/create.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/relationships/create.js +64 -0
- package/dist/nodes/Propstack/v2/resources/relationships/create.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/relationships/delete.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/relationships/delete.js +11 -0
- package/dist/nodes/Propstack/v2/resources/relationships/delete.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/relationships/getAll.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/relationships/getAll.js +53 -0
- package/dist/nodes/Propstack/v2/resources/relationships/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/relationships/index.d.ts +6 -0
- package/dist/nodes/Propstack/v2/resources/relationships/index.js +48 -0
- package/dist/nodes/Propstack/v2/resources/relationships/index.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/snippets/addAttachment.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/snippets/addAttachment.js +36 -0
- package/dist/nodes/Propstack/v2/resources/snippets/addAttachment.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/snippets/create.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/snippets/create.js +43 -0
- package/dist/nodes/Propstack/v2/resources/snippets/create.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/snippets/delete.d.ts +2 -0
- package/dist/nodes/Propstack/v2/resources/snippets/delete.js +11 -0
- package/dist/nodes/Propstack/v2/resources/snippets/delete.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/snippets/fields.d.ts +4 -0
- package/dist/nodes/Propstack/v2/resources/snippets/fields.js +19 -0
- package/dist/nodes/Propstack/v2/resources/snippets/fields.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/snippets/getAll.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/snippets/getAll.js +45 -0
- package/dist/nodes/Propstack/v2/resources/snippets/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/snippets/index.d.ts +8 -0
- package/dist/nodes/Propstack/v2/resources/snippets/index.js +56 -0
- package/dist/nodes/Propstack/v2/resources/snippets/index.js.map +1 -0
- package/dist/nodes/Propstack/v2/resources/snippets/update.d.ts +3 -0
- package/dist/nodes/Propstack/v2/resources/snippets/update.js +29 -0
- package/dist/nodes/Propstack/v2/resources/snippets/update.js.map +1 -0
- package/dist/package.json +71 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +69 -29
- 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;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,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
|