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,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clientsGetDeletedDescription = void 0;
|
|
4
|
+
exports.clientsGetDeleted = clientsGetDeleted;
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
const CLIENTS_SIMPLIFIED_FIELDS = [
|
|
8
|
+
"id", "first_name", "last_name", "company", "emails",
|
|
9
|
+
"phone", "client_status_id", "broker_id", "created_at", "updated_at",
|
|
10
|
+
];
|
|
11
|
+
const displayOptions = {
|
|
12
|
+
operation: ["getDeleted"],
|
|
13
|
+
resource: ["clients"],
|
|
14
|
+
};
|
|
15
|
+
exports.clientsGetDeletedDescription = [
|
|
16
|
+
{
|
|
17
|
+
displayName: "Return All",
|
|
18
|
+
name: "returnAll",
|
|
19
|
+
type: "boolean",
|
|
20
|
+
default: false,
|
|
21
|
+
displayOptions: { show: displayOptions },
|
|
22
|
+
description: "Whether to return all results or only up to a given limit",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
displayName: "Limit",
|
|
26
|
+
name: "limit",
|
|
27
|
+
type: "number",
|
|
28
|
+
default: 50,
|
|
29
|
+
displayOptions: {
|
|
30
|
+
show: { ...displayOptions, returnAll: [false] },
|
|
31
|
+
},
|
|
32
|
+
description: "Max number of results to return",
|
|
33
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: "Filters",
|
|
37
|
+
name: "filters",
|
|
38
|
+
type: "collection",
|
|
39
|
+
placeholder: "Add Filter",
|
|
40
|
+
default: {},
|
|
41
|
+
displayOptions: { show: displayOptions },
|
|
42
|
+
options: [
|
|
43
|
+
{
|
|
44
|
+
displayName: "Deleted At From",
|
|
45
|
+
name: "deleted_at_from",
|
|
46
|
+
type: "dateTime",
|
|
47
|
+
default: "",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: "Deleted At To",
|
|
51
|
+
name: "deleted_at_to",
|
|
52
|
+
type: "dateTime",
|
|
53
|
+
default: "",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
];
|
|
58
|
+
async function clientsGetDeleted() {
|
|
59
|
+
const returnAll = this.getNodeParameter("returnAll", 0);
|
|
60
|
+
const limit = this.getNodeParameter("limit", 0, 50);
|
|
61
|
+
const filters = this.getNodeParameter("filters", 0, {});
|
|
62
|
+
const qs = (0, helpers_1.buildQs)(filters, {
|
|
63
|
+
deleted_at_from: "deleted_at_from",
|
|
64
|
+
deleted_at_to: "deleted_at_to",
|
|
65
|
+
});
|
|
66
|
+
const results = await helpers_1.paginate.call(this, {
|
|
67
|
+
url: constants_1.V2.CLIENTS_DELETED,
|
|
68
|
+
qs,
|
|
69
|
+
returnAll,
|
|
70
|
+
limit,
|
|
71
|
+
});
|
|
72
|
+
const simplify = this.getNodeParameter("simplify", 0, true);
|
|
73
|
+
if (simplify) {
|
|
74
|
+
return results.map((item) => ({
|
|
75
|
+
...item,
|
|
76
|
+
json: (0, helpers_1.simplifyResponse)([item.json], CLIENTS_SIMPLIFIED_FIELDS)[0],
|
|
77
|
+
}));
|
|
78
|
+
}
|
|
79
|
+
return results;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=getDeleted.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDeleted.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v2/resources/clients/getDeleted.ts"],"names":[],"mappings":";;;AA+DA,8CA2BC;AApFD,+CAAqC;AACrC,2CAAoE;AAEpE,MAAM,yBAAyB,GAAG;IAChC,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ;IACpD,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY;CACrE,CAAC;AAEF,MAAM,cAAc,GAAG;IACrB,SAAS,EAAE,CAAC,YAAY,CAAC;IACzB,QAAQ,EAAE,CAAC,SAAS,CAAC;CACtB,CAAC;AAEW,QAAA,4BAA4B,GAAsB;IAC7D;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QACxC,WAAW,EAAE,2DAA2D;KACzE;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE,EAAE,GAAG,cAAc,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE;SAChD;QACD,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE;KAC5C;IACD;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QACxC,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;aACZ;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;aACZ;SACF;KACF;CACF,CAAC;AAEK,KAAK,UAAU,iBAAiB;IAGrC,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAY,CAAC;IACnE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;IAC9D,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAgB,CAAC;IAEvE,MAAM,EAAE,GAAG,IAAA,iBAAO,EAAC,OAAO,EAAE;QAC1B,eAAe,EAAE,iBAAiB;QAClC,aAAa,EAAE,eAAe;KAC/B,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,MAAM,kBAAQ,CAAC,IAAI,CAAC,IAAI,EAAE;QACxC,GAAG,EAAE,cAAE,CAAC,eAAe;QACvB,EAAE;QACF,SAAS;QACT,KAAK;KACN,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,EAAE,IAAI,CAAY,CAAC;IACvE,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAC5B,GAAG,IAAI;YACP,IAAI,EAAE,IAAA,0BAAgB,EAAC,CAAC,IAAI,CAAC,IAAmB,CAAC,EAAE,yBAAyB,CAAC,CAAC,CAAC,CAAC;SACjF,CAAC,CAAC,CAAC;IACN,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { INodeProperties } from "n8n-workflow";
|
|
2
|
+
import { clientsCreate } from "./create";
|
|
3
|
+
import { clientsGet } from "./get";
|
|
4
|
+
import { clientsGetAll } from "./getAll";
|
|
5
|
+
import { clientsUpdate } from "./update";
|
|
6
|
+
import { clientsDelete } from "./delete";
|
|
7
|
+
import { clientsScroll } from "./scroll";
|
|
8
|
+
import { clientsGetDeleted } from "./getDeleted";
|
|
9
|
+
export { clientsCreate, clientsDelete, clientsGet, clientsGetAll, clientsUpdate, clientsScroll, clientsGetDeleted, };
|
|
10
|
+
export declare const clientsDescription: INodeProperties[];
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clientsDescription = exports.clientsGetDeleted = exports.clientsScroll = exports.clientsUpdate = exports.clientsGetAll = exports.clientsGet = exports.clientsDelete = exports.clientsCreate = void 0;
|
|
4
|
+
const create_1 = require("./create");
|
|
5
|
+
Object.defineProperty(exports, "clientsCreate", { enumerable: true, get: function () { return create_1.clientsCreate; } });
|
|
6
|
+
const get_1 = require("./get");
|
|
7
|
+
Object.defineProperty(exports, "clientsGet", { enumerable: true, get: function () { return get_1.clientsGet; } });
|
|
8
|
+
const getAll_1 = require("./getAll");
|
|
9
|
+
Object.defineProperty(exports, "clientsGetAll", { enumerable: true, get: function () { return getAll_1.clientsGetAll; } });
|
|
10
|
+
const update_1 = require("./update");
|
|
11
|
+
Object.defineProperty(exports, "clientsUpdate", { enumerable: true, get: function () { return update_1.clientsUpdate; } });
|
|
12
|
+
const delete_1 = require("./delete");
|
|
13
|
+
Object.defineProperty(exports, "clientsDelete", { enumerable: true, get: function () { return delete_1.clientsDelete; } });
|
|
14
|
+
const scroll_1 = require("./scroll");
|
|
15
|
+
Object.defineProperty(exports, "clientsScroll", { enumerable: true, get: function () { return scroll_1.clientsScroll; } });
|
|
16
|
+
const getDeleted_1 = require("./getDeleted");
|
|
17
|
+
Object.defineProperty(exports, "clientsGetDeleted", { enumerable: true, get: function () { return getDeleted_1.clientsGetDeleted; } });
|
|
18
|
+
const clientIdField = {
|
|
19
|
+
displayName: "Client",
|
|
20
|
+
name: "clientId",
|
|
21
|
+
type: "resourceLocator",
|
|
22
|
+
required: true,
|
|
23
|
+
default: { mode: "list", value: "" },
|
|
24
|
+
description: "The client to operate on",
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ["clients"],
|
|
28
|
+
operation: ["get", "update", "delete"],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
modes: [
|
|
32
|
+
{
|
|
33
|
+
displayName: "From List",
|
|
34
|
+
name: "list",
|
|
35
|
+
type: "list",
|
|
36
|
+
typeOptions: {
|
|
37
|
+
searchListMethod: "searchClients",
|
|
38
|
+
searchable: true,
|
|
39
|
+
searchFilterRequired: false,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: "By ID",
|
|
44
|
+
name: "id",
|
|
45
|
+
type: "string",
|
|
46
|
+
placeholder: "e.g. 12345",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
};
|
|
50
|
+
exports.clientsDescription = [
|
|
51
|
+
{
|
|
52
|
+
displayName: "Operation",
|
|
53
|
+
name: "operation",
|
|
54
|
+
type: "options",
|
|
55
|
+
noDataExpression: true,
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
resource: ["clients"],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
options: [
|
|
62
|
+
{
|
|
63
|
+
name: "Create",
|
|
64
|
+
value: "create",
|
|
65
|
+
action: "Create client",
|
|
66
|
+
description: "Create a new client",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "Delete",
|
|
70
|
+
value: "delete",
|
|
71
|
+
action: "Delete client",
|
|
72
|
+
description: "Permanently remove a client",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "Get",
|
|
76
|
+
value: "get",
|
|
77
|
+
action: "Get client",
|
|
78
|
+
description: "Retrieve a client",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "Get Deleted",
|
|
82
|
+
value: "getDeleted",
|
|
83
|
+
action: "Get deleted clients",
|
|
84
|
+
description: "Retrieve deleted clients",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "Get Many",
|
|
88
|
+
value: "getAll",
|
|
89
|
+
action: "Get many clients",
|
|
90
|
+
description: "Retrieve a list of clients",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "Scroll",
|
|
94
|
+
value: "scroll",
|
|
95
|
+
action: "Scroll all clients",
|
|
96
|
+
description: "Retrieve all clients using scroll pagination",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "Update",
|
|
100
|
+
value: "update",
|
|
101
|
+
action: "Update client",
|
|
102
|
+
description: "Update an existing client",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
default: "getAll",
|
|
106
|
+
},
|
|
107
|
+
clientIdField,
|
|
108
|
+
...create_1.clientsCreateDescription,
|
|
109
|
+
...getAll_1.clientsGetAllDescription,
|
|
110
|
+
...update_1.clientsUpdateDescription,
|
|
111
|
+
...scroll_1.clientsScrollDescription,
|
|
112
|
+
...getDeleted_1.clientsGetDeletedDescription,
|
|
113
|
+
{
|
|
114
|
+
displayName: "Simplify",
|
|
115
|
+
name: "simplify",
|
|
116
|
+
type: "boolean",
|
|
117
|
+
default: true,
|
|
118
|
+
description: "Whether to return a simplified version of the response instead of the raw data",
|
|
119
|
+
displayOptions: {
|
|
120
|
+
show: {
|
|
121
|
+
resource: ["clients"],
|
|
122
|
+
operation: ["get", "getAll", "scroll", "getDeleted"],
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
];
|
|
127
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v2/resources/clients/index.ts"],"names":[],"mappings":";;;AACA,qCAAmE;AASjE,8FATiC,sBAAa,OASjC;AARf,+BAAmC;AAUjC,2FAVO,gBAAU,OAUP;AATZ,qCAAmE;AAUjE,8FAViC,sBAAa,OAUjC;AATf,qCAAmE;AAUjE,8FAViC,sBAAa,OAUjC;AATf,qCAAyC;AAMvC,8FANO,sBAAa,OAMP;AALf,qCAAmE;AASjE,8FATiC,sBAAa,OASjC;AARf,6CAA+E;AAS7E,kGATqC,8BAAiB,OASrC;AAGnB,MAAM,aAAa,GAAoB;IACrC,WAAW,EAAE,QAAQ;IACrB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;IACpC,WAAW,EAAE,0BAA0B;IACvC,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;YACrB,SAAS,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC;SACvC;KACF;IACD,KAAK,EAAE;QACL;YACE,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE;gBACX,gBAAgB,EAAE,eAAe;gBACjC,UAAU,EAAE,IAAI;gBAChB,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD;YACE,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,YAAY;SAC1B;KACF;CACF,CAAC;AAEW,QAAA,kBAAkB,GAAsB;IACnD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,eAAe;gBACvB,WAAW,EAAE,qBAAqB;aACnC;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,eAAe;gBACvB,WAAW,EAAE,6BAA6B;aAC3C;YACD;gBACE,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,YAAY;gBACpB,WAAW,EAAE,mBAAmB;aACjC;YACD;gBACE,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,qBAAqB;gBAC7B,WAAW,EAAE,0BAA0B;aACxC;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,kBAAkB;gBAC1B,WAAW,EAAE,4BAA4B;aAC1C;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,8CAA8C;aAC5D;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,eAAe;gBACvB,WAAW,EAAE,2BAA2B;aACzC;SACF;QACD,OAAO,EAAE,QAAQ;KAClB;IACD,aAAa;IACb,GAAG,iCAAwB;IAC3B,GAAG,iCAAwB;IAC3B,GAAG,iCAAwB;IAC3B,GAAG,iCAAwB;IAC3B,GAAG,yCAA4B;IAC/B;QACE,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EACT,gFAAgF;QAClF,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,CAAC;aACrD;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clientsScrollDescription = void 0;
|
|
4
|
+
exports.clientsScroll = clientsScroll;
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
const CLIENTS_SIMPLIFIED_FIELDS = [
|
|
8
|
+
"id", "first_name", "last_name", "company", "emails",
|
|
9
|
+
"phone", "client_status_id", "broker_id", "created_at", "updated_at",
|
|
10
|
+
];
|
|
11
|
+
const displayOptions = {
|
|
12
|
+
operation: ["scroll"],
|
|
13
|
+
resource: ["clients"],
|
|
14
|
+
};
|
|
15
|
+
exports.clientsScrollDescription = [
|
|
16
|
+
{
|
|
17
|
+
displayName: "Filters",
|
|
18
|
+
name: "filters",
|
|
19
|
+
type: "collection",
|
|
20
|
+
placeholder: "Add Filter",
|
|
21
|
+
default: {},
|
|
22
|
+
displayOptions: { show: displayOptions },
|
|
23
|
+
options: [
|
|
24
|
+
{
|
|
25
|
+
displayName: "Fields",
|
|
26
|
+
name: "fields",
|
|
27
|
+
type: "string",
|
|
28
|
+
default: "",
|
|
29
|
+
description: "Comma-separated list of fields to return",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
displayName: "Include Children",
|
|
33
|
+
name: "include_children",
|
|
34
|
+
type: "boolean",
|
|
35
|
+
default: false,
|
|
36
|
+
description: "Whether to include child contacts",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
displayName: "Updated At From",
|
|
40
|
+
name: "updated_at_from",
|
|
41
|
+
type: "dateTime",
|
|
42
|
+
default: "",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: "Updated At To",
|
|
46
|
+
name: "updated_at_to",
|
|
47
|
+
type: "dateTime",
|
|
48
|
+
default: "",
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
async function clientsScroll() {
|
|
54
|
+
const filters = this.getNodeParameter("filters", 0, {});
|
|
55
|
+
const qs = (0, helpers_1.buildQs)(filters, {
|
|
56
|
+
fields: "fields",
|
|
57
|
+
include_children: "include_children",
|
|
58
|
+
updated_at_from: "updated_at_from",
|
|
59
|
+
updated_at_to: "updated_at_to",
|
|
60
|
+
});
|
|
61
|
+
const results = await helpers_1.scrollAll.call(this, { url: constants_1.V2.CLIENTS_SCROLL, qs });
|
|
62
|
+
const simplify = this.getNodeParameter("simplify", 0, true);
|
|
63
|
+
if (simplify) {
|
|
64
|
+
return results.map((item) => ({
|
|
65
|
+
...item,
|
|
66
|
+
json: (0, helpers_1.simplifyResponse)([item.json], CLIENTS_SIMPLIFIED_FIELDS)[0],
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
return results;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=scroll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v2/resources/clients/scroll.ts"],"names":[],"mappings":";;;AA0DA,sCAsBC;AA1ED,+CAAqC;AACrC,2CAAqE;AAErE,MAAM,yBAAyB,GAAG;IAChC,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ;IACpD,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY;CACrE,CAAC;AAEF,MAAM,cAAc,GAAG;IACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,SAAS,CAAC;CACtB,CAAC;AAEW,QAAA,wBAAwB,GAAsB;IACzD;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QACxC,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0CAA0C;aACxD;YACD;gBACE,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,mCAAmC;aACjD;YACD;gBACE,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;aACZ;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;aACZ;SACF;KACF;CACF,CAAC;AAEK,KAAK,UAAU,aAAa;IAGjC,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAgB,CAAC;IAEvE,MAAM,EAAE,GAAG,IAAA,iBAAO,EAAC,OAAO,EAAE;QAC1B,MAAM,EAAE,QAAQ;QAChB,gBAAgB,EAAE,kBAAkB;QACpC,eAAe,EAAE,iBAAiB;QAClC,aAAa,EAAE,eAAe;KAC/B,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,MAAM,mBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,cAAE,CAAC,cAAc,EAAE,EAAE,EAAE,CAAC,CAAC;IAE3E,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,EAAE,IAAI,CAAY,CAAC;IACvE,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAC5B,GAAG,IAAI;YACP,IAAI,EAAE,IAAA,0BAAgB,EAAC,CAAC,IAAI,CAAC,IAAmB,CAAC,EAAE,yBAAyB,CAAC,CAAC,CAAC,CAAC;SACjF,CAAC,CAAC,CAAC;IACN,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clientsUpdateDescription = void 0;
|
|
4
|
+
exports.clientsUpdate = clientsUpdate;
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
const fields_1 = require("./fields");
|
|
8
|
+
exports.clientsUpdateDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: "Additional Fields",
|
|
11
|
+
name: "additionalFields",
|
|
12
|
+
type: "collection",
|
|
13
|
+
placeholder: "Add Field",
|
|
14
|
+
default: {},
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: {
|
|
17
|
+
resource: ["clients"],
|
|
18
|
+
operation: ["update"],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
options: fields_1.clientFieldOptions,
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
async function clientsUpdate() {
|
|
25
|
+
const clientId = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("clientId", 0));
|
|
26
|
+
const body = helpers_1.buildBody.call(this, "additionalFields", fields_1.CLIENT_DIRECT_FIELDS, fields_1.CLIENT_CSV_FIELDS, fields_1.CLIENT_JSON_FIELDS);
|
|
27
|
+
const response = await helpers_1.propstackV2Request.call(this, {
|
|
28
|
+
method: "PUT",
|
|
29
|
+
url: constants_1.V2.CLIENT(clientId),
|
|
30
|
+
body,
|
|
31
|
+
});
|
|
32
|
+
return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v2/resources/clients/update.ts"],"names":[],"mappings":";;;AAmCA,sCAwBC;AAtDD,+CAAqC;AACrC,2CAIuB;AACvB,qCAKkB;AAEL,QAAA,wBAAwB,GAAsB;IACzD;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE,2BAAkB;KAC5B;CACF,CAAC;AAEK,KAAK,UAAU,aAAa;IAGjC,MAAM,QAAQ,GAAG,IAAA,qCAA2B,EAC1C,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAC,CACrC,CAAC;IAEF,MAAM,IAAI,GAAG,mBAAS,CAAC,IAAI,CACzB,IAAI,EACJ,kBAAkB,EAClB,6BAAoB,EACpB,0BAAiB,EACjB,2BAAkB,CACnB,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,4BAAkB,CAAC,IAAI,CAAC,IAAI,EAAE;QACnD,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,cAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;QACxB,IAAI;KACL,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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customFieldsCreateDescription = void 0;
|
|
4
|
+
exports.customFieldsCreate = customFieldsCreate;
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
const fields_1 = require("./fields");
|
|
8
|
+
exports.customFieldsCreateDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: "Custom Field Group ID",
|
|
11
|
+
name: "customFieldGroupId",
|
|
12
|
+
type: "string",
|
|
13
|
+
required: true,
|
|
14
|
+
default: "",
|
|
15
|
+
displayOptions: { show: { resource: ["customFields"], operation: ["create"] } },
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
displayName: "Name",
|
|
19
|
+
name: "fieldName",
|
|
20
|
+
type: "string",
|
|
21
|
+
required: true,
|
|
22
|
+
default: "",
|
|
23
|
+
displayOptions: { show: { resource: ["customFields"], operation: ["create"] } },
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
displayName: "Additional Fields",
|
|
27
|
+
name: "additionalFields",
|
|
28
|
+
type: "collection",
|
|
29
|
+
placeholder: "Add Field",
|
|
30
|
+
default: {},
|
|
31
|
+
displayOptions: { show: { resource: ["customFields"], operation: ["create"] } },
|
|
32
|
+
options: fields_1.customFieldFieldOptions,
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
async function customFieldsCreate() {
|
|
36
|
+
const body = helpers_1.buildBody.call(this, "additionalFields", fields_1.CF_DIRECT_FIELDS);
|
|
37
|
+
body.custom_field_group_id = this.getNodeParameter("customFieldGroupId", 0);
|
|
38
|
+
body.name = this.getNodeParameter("fieldName", 0);
|
|
39
|
+
const response = await helpers_1.propstackV2Request.call(this, { method: "POST", url: constants_1.V2.CUSTOM_FIELDS, body });
|
|
40
|
+
return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v2/resources/customFields/create.ts"],"names":[],"mappings":";;;AAiCA,gDAOC;AAvCD,+CAAqC;AACrC,2CAA8D;AAC9D,qCAAqE;AAExD,QAAA,6BAA6B,GAAsB;IAC9D;QACE,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;KAChF;IACD;QACE,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;KAChF;IACD;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QAC/E,OAAO,EAAE,gCAAuB;KACjC;CACF,CAAC;AAEK,KAAK,UAAU,kBAAkB;IACtC,MAAM,IAAI,GAAG,mBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,EAAE,yBAAgB,CAAC,CAAC;IACxE,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,CAAC,CAAW,CAAC;IACtF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;IAE5D,MAAM,QAAQ,GAAG,MAAM,4BAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,cAAE,CAAC,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IACtG,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AACvF,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
|
|
2
|
+
export declare const customFieldsCreateOptionDescription: INodeProperties[];
|
|
3
|
+
export declare function customFieldsCreateOption(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customFieldsCreateOptionDescription = void 0;
|
|
4
|
+
exports.customFieldsCreateOption = customFieldsCreateOption;
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
exports.customFieldsCreateOptionDescription = [
|
|
8
|
+
{
|
|
9
|
+
displayName: "Option Name",
|
|
10
|
+
name: "optionName",
|
|
11
|
+
type: "string",
|
|
12
|
+
required: true,
|
|
13
|
+
default: "",
|
|
14
|
+
displayOptions: { show: { resource: ["customFields"], operation: ["createOption"] } },
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
async function customFieldsCreateOption() {
|
|
18
|
+
const fieldId = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("customFieldId", 0));
|
|
19
|
+
const name = this.getNodeParameter("optionName", 0);
|
|
20
|
+
const response = await helpers_1.propstackV2Request.call(this, {
|
|
21
|
+
method: "POST",
|
|
22
|
+
url: constants_1.V2.CUSTOM_FIELD_OPTIONS(fieldId),
|
|
23
|
+
body: { name },
|
|
24
|
+
});
|
|
25
|
+
return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=createOption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createOption.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v2/resources/customFields/createOption.ts"],"names":[],"mappings":";;;AAeA,4DAUC;AAxBD,+CAAqC;AACrC,2CAAgF;AAEnE,QAAA,mCAAmC,GAAsB;IACpE;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE;KACtF;CACF,CAAC;AAEK,KAAK,UAAU,wBAAwB;IAC5C,MAAM,OAAO,GAAG,IAAA,qCAA2B,EAAC,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC;IACvF,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAW,CAAC;IAE9D,MAAM,QAAQ,GAAG,MAAM,4BAAkB,CAAC,IAAI,CAAC,IAAI,EAAE;QACnD,MAAM,EAAE,MAAM;QACd,GAAG,EAAE,cAAE,CAAC,oBAAoB,CAAC,OAAO,CAAC;QACrC,IAAI,EAAE,EAAE,IAAI,EAAE;KACf,CAAC,CAAC;IACH,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AACvF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customFieldsDelete = customFieldsDelete;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
5
|
+
const helpers_1 = require("../../helpers");
|
|
6
|
+
async function customFieldsDelete() {
|
|
7
|
+
const id = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("customFieldId", 0));
|
|
8
|
+
await helpers_1.propstackV2Request.call(this, { method: "DELETE", url: constants_1.V2.CUSTOM_FIELD(id) });
|
|
9
|
+
return [{ json: { deleted: true }, pairedItem: { item: 0 } }];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v2/resources/customFields/delete.ts"],"names":[],"mappings":";;AAIA,gDAIC;AAPD,+CAAqC;AACrC,2CAAgF;AAEzE,KAAK,UAAU,kBAAkB;IACtC,MAAM,EAAE,GAAG,IAAA,qCAA2B,EAAC,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC;IAClF,MAAM,4BAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,cAAE,CAAC,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACpF,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
|
|
2
|
+
export declare const customFieldsDeleteOptionDescription: INodeProperties[];
|
|
3
|
+
export declare function customFieldsDeleteOption(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customFieldsDeleteOptionDescription = void 0;
|
|
4
|
+
exports.customFieldsDeleteOption = customFieldsDeleteOption;
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
exports.customFieldsDeleteOptionDescription = [
|
|
8
|
+
{
|
|
9
|
+
displayName: "Option ID",
|
|
10
|
+
name: "customOptionId",
|
|
11
|
+
type: "string",
|
|
12
|
+
required: true,
|
|
13
|
+
default: "",
|
|
14
|
+
displayOptions: { show: { resource: ["customFields"], operation: ["deleteOption"] } },
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
async function customFieldsDeleteOption() {
|
|
18
|
+
const fieldId = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("customFieldId", 0));
|
|
19
|
+
const optionId = this.getNodeParameter("customOptionId", 0);
|
|
20
|
+
await helpers_1.propstackV2Request.call(this, { method: "DELETE", url: constants_1.V2.CUSTOM_FIELD_OPTION(fieldId, optionId) });
|
|
21
|
+
return [{ json: { deleted: true }, pairedItem: { item: 0 } }];
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=deleteOption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteOption.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v2/resources/customFields/deleteOption.ts"],"names":[],"mappings":";;;AAeA,4DAKC;AAnBD,+CAAqC;AACrC,2CAAgF;AAEnE,QAAA,mCAAmC,GAAsB;IACpE;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE;KACtF;CACF,CAAC;AAEK,KAAK,UAAU,wBAAwB;IAC5C,MAAM,OAAO,GAAG,IAAA,qCAA2B,EAAC,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC;IACvF,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,CAAC,CAAW,CAAC;IACtE,MAAM,4BAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,cAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC1G,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CF_DIRECT_FIELDS = exports.customFieldFieldOptions = void 0;
|
|
4
|
+
exports.customFieldFieldOptions = [
|
|
5
|
+
{ displayName: "Bequest", name: "bequest", type: "string", default: "" },
|
|
6
|
+
{ displayName: "Entity", name: "entity", type: "string", default: "" },
|
|
7
|
+
{ displayName: "Export to OpenImmo", name: "export_to_openimmo", type: "boolean", default: false, description: "Whether to export this field to OpenImmo" },
|
|
8
|
+
{ displayName: "Field Type", name: "field_type", type: "string", default: "" },
|
|
9
|
+
{ displayName: "Formula", name: "formula", type: "string", default: "" },
|
|
10
|
+
{ displayName: "Pretty Name", name: "pretty_name", type: "string", default: "" },
|
|
11
|
+
{ displayName: "Unit", name: "unit", type: "string", default: "" },
|
|
12
|
+
{ displayName: "Use in Search Profile", name: "use_in_search_profile", type: "boolean", default: false, description: "Whether to use this field in search profiles" },
|
|
13
|
+
];
|
|
14
|
+
exports.CF_DIRECT_FIELDS = [
|
|
15
|
+
"pretty_name", "field_type", "entity", "unit",
|
|
16
|
+
"export_to_openimmo", "use_in_search_profile", "formula", "bequest",
|
|
17
|
+
];
|
|
18
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v2/resources/customFields/fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAsB;IACxD,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IACxE,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IACtE,EAAE,WAAW,EAAE,oBAAoB,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,0CAA0C,EAAE;IAC3J,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IAC9E,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IACxE,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IAChF,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IAClE,EAAE,WAAW,EAAE,uBAAuB,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,8CAA8C,EAAE;CACtK,CAAC;AAEW,QAAA,gBAAgB,GAAG;IAC9B,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM;IAC7C,oBAAoB,EAAE,uBAAuB,EAAE,SAAS,EAAE,SAAS;CACpE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customFieldsGet = customFieldsGet;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
5
|
+
const helpers_1 = require("../../helpers");
|
|
6
|
+
async function customFieldsGet() {
|
|
7
|
+
const id = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("customFieldId", 0));
|
|
8
|
+
const response = await helpers_1.propstackV2Request.call(this, { method: "GET", url: constants_1.V2.CUSTOM_FIELD(id) });
|
|
9
|
+
return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v2/resources/customFields/get.ts"],"names":[],"mappings":";;AAIA,0CAIC;AAPD,+CAAqC;AACrC,2CAAgF;AAEzE,KAAK,UAAU,eAAe;IACnC,MAAM,EAAE,GAAG,IAAA,qCAA2B,EAAC,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC;IAClF,MAAM,QAAQ,GAAG,MAAM,4BAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,cAAE,CAAC,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAClG,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AACvF,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customFieldsGetAllDescription = void 0;
|
|
4
|
+
exports.customFieldsGetAll = customFieldsGetAll;
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
const displayOptions = { operation: ["getAll"], resource: ["customFields"] };
|
|
8
|
+
exports.customFieldsGetAllDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: "Filters",
|
|
11
|
+
name: "filters",
|
|
12
|
+
type: "collection",
|
|
13
|
+
placeholder: "Add Filter",
|
|
14
|
+
default: {},
|
|
15
|
+
displayOptions: { show: displayOptions },
|
|
16
|
+
options: [
|
|
17
|
+
{ displayName: "Entity", name: "entity", type: "string", default: "" },
|
|
18
|
+
{ displayName: "Field Type", name: "field_type", type: "string", default: "" },
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
async function customFieldsGetAll() {
|
|
23
|
+
const filters = this.getNodeParameter("filters", 0, {});
|
|
24
|
+
const qs = (0, helpers_1.buildQs)(filters, { entity: "entity", field_type: "field_type" });
|
|
25
|
+
const response = await helpers_1.propstackV2Request.call(this, { method: "GET", url: constants_1.V2.CUSTOM_FIELDS, qs });
|
|
26
|
+
const data = Array.isArray(response) ? response : [response];
|
|
27
|
+
return this.helpers.returnJsonArray(data);
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=getAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v2/resources/customFields/getAll.ts"],"names":[],"mappings":";;;AAqBA,gDAMC;AA1BD,+CAAqC;AACrC,2CAA4D;AAE5D,MAAM,cAAc,GAAG,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC;AAEhE,QAAA,6BAA6B,GAAsB;IAC9D;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QACxC,OAAO,EAAE;YACP,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;YACtE,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;SAC/E;KACF;CACF,CAAC;AAEK,KAAK,UAAU,kBAAkB;IACtC,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAgB,CAAC;IACvE,MAAM,EAAE,GAAG,IAAA,iBAAO,EAAC,OAAO,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,CAAC;IAC5E,MAAM,QAAQ,GAAG,MAAM,4BAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,cAAE,CAAC,aAAa,EAAE,EAAE,EAAE,CAAC,CAAC;IACnG,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { INodeProperties } from "n8n-workflow";
|
|
2
|
+
import { customFieldsCreate } from "./create";
|
|
3
|
+
import { customFieldsGet } from "./get";
|
|
4
|
+
import { customFieldsGetAll } from "./getAll";
|
|
5
|
+
import { customFieldsUpdate } from "./update";
|
|
6
|
+
import { customFieldsDelete } from "./delete";
|
|
7
|
+
import { customFieldsCreateOption } from "./createOption";
|
|
8
|
+
import { customFieldsDeleteOption } from "./deleteOption";
|
|
9
|
+
export { customFieldsCreate, customFieldsDelete, customFieldsGet, customFieldsGetAll, customFieldsUpdate, customFieldsCreateOption, customFieldsDeleteOption, };
|
|
10
|
+
export declare const customFieldsDescription: INodeProperties[];
|