n8n-nodes-userpilot 1.0.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/COMMERCIAL_LICENSE.md +31 -0
- package/LICENSE +46 -0
- package/LICENSING_FAQ.md +18 -0
- package/README.md +186 -0
- package/dist/credentials/UserPilotApi.credentials.d.ts +10 -0
- package/dist/credentials/UserPilotApi.credentials.d.ts.map +1 -0
- package/dist/credentials/UserPilotApi.credentials.js +54 -0
- package/dist/credentials/UserPilotApi.credentials.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/UserPilot/UserPilot.node.d.ts +6 -0
- package/dist/nodes/UserPilot/UserPilot.node.d.ts.map +1 -0
- package/dist/nodes/UserPilot/UserPilot.node.js +1216 -0
- package/dist/nodes/UserPilot/UserPilot.node.js.map +1 -0
- package/dist/nodes/UserPilot/UserPilotTrigger.node.d.ts +13 -0
- package/dist/nodes/UserPilot/UserPilotTrigger.node.d.ts.map +1 -0
- package/dist/nodes/UserPilot/UserPilotTrigger.node.js +190 -0
- package/dist/nodes/UserPilot/UserPilotTrigger.node.js.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/create.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/banner/create.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/create.js +23 -0
- package/dist/nodes/UserPilot/actions/banner/create.js.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/delete.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/banner/delete.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/delete.js +16 -0
- package/dist/nodes/UserPilot/actions/banner/delete.js.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/get.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/banner/get.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/get.js +15 -0
- package/dist/nodes/UserPilot/actions/banner/get.js.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/getAnalytics.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/banner/getAnalytics.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/getAnalytics.js +15 -0
- package/dist/nodes/UserPilot/actions/banner/getAnalytics.js.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/index.d.ts +9 -0
- package/dist/nodes/UserPilot/actions/banner/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/index.js +26 -0
- package/dist/nodes/UserPilot/actions/banner/index.js.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/list.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/banner/list.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/list.js +22 -0
- package/dist/nodes/UserPilot/actions/banner/list.js.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/publish.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/banner/publish.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/publish.js +15 -0
- package/dist/nodes/UserPilot/actions/banner/publish.js.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/unpublish.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/banner/unpublish.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/unpublish.js +15 -0
- package/dist/nodes/UserPilot/actions/banner/unpublish.js.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/update.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/banner/update.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/banner/update.js +26 -0
- package/dist/nodes/UserPilot/actions/banner/update.js.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/create.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/checklist/create.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/create.js +23 -0
- package/dist/nodes/UserPilot/actions/checklist/create.js.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/delete.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/checklist/delete.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/delete.js +16 -0
- package/dist/nodes/UserPilot/actions/checklist/delete.js.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/get.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/checklist/get.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/get.js +15 -0
- package/dist/nodes/UserPilot/actions/checklist/get.js.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/getAnalytics.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/checklist/getAnalytics.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/getAnalytics.js +15 -0
- package/dist/nodes/UserPilot/actions/checklist/getAnalytics.js.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/getUserProgress.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/checklist/getUserProgress.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/getUserProgress.js +15 -0
- package/dist/nodes/UserPilot/actions/checklist/getUserProgress.js.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/index.d.ts +10 -0
- package/dist/nodes/UserPilot/actions/checklist/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/index.js +28 -0
- package/dist/nodes/UserPilot/actions/checklist/index.js.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/list.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/checklist/list.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/list.js +22 -0
- package/dist/nodes/UserPilot/actions/checklist/list.js.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/publish.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/checklist/publish.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/publish.js +15 -0
- package/dist/nodes/UserPilot/actions/checklist/publish.js.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/unpublish.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/checklist/unpublish.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/unpublish.js +15 -0
- package/dist/nodes/UserPilot/actions/checklist/unpublish.js.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/update.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/checklist/update.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/checklist/update.js +25 -0
- package/dist/nodes/UserPilot/actions/checklist/update.js.map +1 -0
- package/dist/nodes/UserPilot/actions/company/bulkUpdate.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/company/bulkUpdate.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/company/bulkUpdate.js +40 -0
- package/dist/nodes/UserPilot/actions/company/bulkUpdate.js.map +1 -0
- package/dist/nodes/UserPilot/actions/company/delete.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/company/delete.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/company/delete.js +25 -0
- package/dist/nodes/UserPilot/actions/company/delete.js.map +1 -0
- package/dist/nodes/UserPilot/actions/company/get.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/company/get.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/company/get.js +20 -0
- package/dist/nodes/UserPilot/actions/company/get.js.map +1 -0
- package/dist/nodes/UserPilot/actions/company/getAnalytics.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/company/getAnalytics.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/company/getAnalytics.js +15 -0
- package/dist/nodes/UserPilot/actions/company/getAnalytics.js.map +1 -0
- package/dist/nodes/UserPilot/actions/company/getUsers.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/company/getUsers.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/company/getUsers.js +23 -0
- package/dist/nodes/UserPilot/actions/company/getUsers.js.map +1 -0
- package/dist/nodes/UserPilot/actions/company/identify.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/company/identify.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/company/identify.js +35 -0
- package/dist/nodes/UserPilot/actions/company/identify.js.map +1 -0
- package/dist/nodes/UserPilot/actions/company/index.d.ts +10 -0
- package/dist/nodes/UserPilot/actions/company/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/company/index.js +28 -0
- package/dist/nodes/UserPilot/actions/company/index.js.map +1 -0
- package/dist/nodes/UserPilot/actions/company/list.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/company/list.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/company/list.js +22 -0
- package/dist/nodes/UserPilot/actions/company/list.js.map +1 -0
- package/dist/nodes/UserPilot/actions/company/search.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/company/search.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/company/search.js +25 -0
- package/dist/nodes/UserPilot/actions/company/search.js.map +1 -0
- package/dist/nodes/UserPilot/actions/company/update.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/company/update.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/company/update.js +41 -0
- package/dist/nodes/UserPilot/actions/company/update.js.map +1 -0
- package/dist/nodes/UserPilot/actions/dataExport/cancel.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/dataExport/cancel.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/dataExport/cancel.js +15 -0
- package/dist/nodes/UserPilot/actions/dataExport/cancel.js.map +1 -0
- package/dist/nodes/UserPilot/actions/dataExport/create.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/dataExport/create.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/dataExport/create.js +40 -0
- package/dist/nodes/UserPilot/actions/dataExport/create.js.map +1 -0
- package/dist/nodes/UserPilot/actions/dataExport/download.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/dataExport/download.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/dataExport/download.js +60 -0
- package/dist/nodes/UserPilot/actions/dataExport/download.js.map +1 -0
- package/dist/nodes/UserPilot/actions/dataExport/getStatus.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/dataExport/getStatus.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/dataExport/getStatus.js +20 -0
- package/dist/nodes/UserPilot/actions/dataExport/getStatus.js.map +1 -0
- package/dist/nodes/UserPilot/actions/dataExport/index.d.ts +6 -0
- package/dist/nodes/UserPilot/actions/dataExport/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/dataExport/index.js +20 -0
- package/dist/nodes/UserPilot/actions/dataExport/index.js.map +1 -0
- package/dist/nodes/UserPilot/actions/dataExport/list.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/dataExport/list.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/dataExport/list.js +22 -0
- package/dist/nodes/UserPilot/actions/dataExport/list.js.map +1 -0
- package/dist/nodes/UserPilot/actions/event/bulkImport.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/event/bulkImport.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/event/bulkImport.js +32 -0
- package/dist/nodes/UserPilot/actions/event/bulkImport.js.map +1 -0
- package/dist/nodes/UserPilot/actions/event/bulkTrack.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/event/bulkTrack.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/event/bulkTrack.js +42 -0
- package/dist/nodes/UserPilot/actions/event/bulkTrack.js.map +1 -0
- package/dist/nodes/UserPilot/actions/event/createDefinition.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/event/createDefinition.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/event/createDefinition.js +19 -0
- package/dist/nodes/UserPilot/actions/event/createDefinition.js.map +1 -0
- package/dist/nodes/UserPilot/actions/event/getAnalytics.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/event/getAnalytics.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/event/getAnalytics.js +15 -0
- package/dist/nodes/UserPilot/actions/event/getAnalytics.js.map +1 -0
- package/dist/nodes/UserPilot/actions/event/getDefinition.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/event/getDefinition.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/event/getDefinition.js +15 -0
- package/dist/nodes/UserPilot/actions/event/getDefinition.js.map +1 -0
- package/dist/nodes/UserPilot/actions/event/index.d.ts +8 -0
- package/dist/nodes/UserPilot/actions/event/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/event/index.js +24 -0
- package/dist/nodes/UserPilot/actions/event/index.js.map +1 -0
- package/dist/nodes/UserPilot/actions/event/listDefinitions.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/event/listDefinitions.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/event/listDefinitions.js +22 -0
- package/dist/nodes/UserPilot/actions/event/listDefinitions.js.map +1 -0
- package/dist/nodes/UserPilot/actions/event/track.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/event/track.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/event/track.js +31 -0
- package/dist/nodes/UserPilot/actions/event/track.js.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/create.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/flow/create.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/create.js +22 -0
- package/dist/nodes/UserPilot/actions/flow/create.js.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/delete.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/flow/delete.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/delete.js +16 -0
- package/dist/nodes/UserPilot/actions/flow/delete.js.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/duplicate.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/flow/duplicate.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/duplicate.js +15 -0
- package/dist/nodes/UserPilot/actions/flow/duplicate.js.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/get.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/flow/get.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/get.js +20 -0
- package/dist/nodes/UserPilot/actions/flow/get.js.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/getAnalytics.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/flow/getAnalytics.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/getAnalytics.js +15 -0
- package/dist/nodes/UserPilot/actions/flow/getAnalytics.js.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/index.d.ts +11 -0
- package/dist/nodes/UserPilot/actions/flow/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/index.js +30 -0
- package/dist/nodes/UserPilot/actions/flow/index.js.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/list.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/flow/list.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/list.js +26 -0
- package/dist/nodes/UserPilot/actions/flow/list.js.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/publish.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/flow/publish.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/publish.js +15 -0
- package/dist/nodes/UserPilot/actions/flow/publish.js.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/trigger.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/flow/trigger.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/trigger.js +31 -0
- package/dist/nodes/UserPilot/actions/flow/trigger.js.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/unpublish.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/flow/unpublish.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/unpublish.js +15 -0
- package/dist/nodes/UserPilot/actions/flow/unpublish.js.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/update.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/flow/update.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/flow/update.js +24 -0
- package/dist/nodes/UserPilot/actions/flow/update.js.map +1 -0
- package/dist/nodes/UserPilot/actions/job/cancel.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/job/cancel.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/job/cancel.js +15 -0
- package/dist/nodes/UserPilot/actions/job/cancel.js.map +1 -0
- package/dist/nodes/UserPilot/actions/job/getErrors.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/job/getErrors.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/job/getErrors.js +15 -0
- package/dist/nodes/UserPilot/actions/job/getErrors.js.map +1 -0
- package/dist/nodes/UserPilot/actions/job/getStatus.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/job/getStatus.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/job/getStatus.js +20 -0
- package/dist/nodes/UserPilot/actions/job/getStatus.js.map +1 -0
- package/dist/nodes/UserPilot/actions/job/index.d.ts +6 -0
- package/dist/nodes/UserPilot/actions/job/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/job/index.js +20 -0
- package/dist/nodes/UserPilot/actions/job/index.js.map +1 -0
- package/dist/nodes/UserPilot/actions/job/list.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/job/list.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/job/list.js +29 -0
- package/dist/nodes/UserPilot/actions/job/list.js.map +1 -0
- package/dist/nodes/UserPilot/actions/job/retry.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/job/retry.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/job/retry.js +15 -0
- package/dist/nodes/UserPilot/actions/job/retry.js.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/create.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/nps/create.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/create.js +24 -0
- package/dist/nodes/UserPilot/actions/nps/create.js.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/delete.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/nps/delete.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/delete.js +16 -0
- package/dist/nodes/UserPilot/actions/nps/delete.js.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/exportData.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/nps/exportData.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/exportData.js +15 -0
- package/dist/nodes/UserPilot/actions/nps/exportData.js.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/get.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/nps/get.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/get.js +15 -0
- package/dist/nodes/UserPilot/actions/nps/get.js.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/getAnalytics.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/nps/getAnalytics.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/getAnalytics.js +15 -0
- package/dist/nodes/UserPilot/actions/nps/getAnalytics.js.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/getResponses.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/nps/getResponses.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/getResponses.js +23 -0
- package/dist/nodes/UserPilot/actions/nps/getResponses.js.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/index.d.ts +11 -0
- package/dist/nodes/UserPilot/actions/nps/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/index.js +30 -0
- package/dist/nodes/UserPilot/actions/nps/index.js.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/list.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/nps/list.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/list.js +22 -0
- package/dist/nodes/UserPilot/actions/nps/list.js.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/listSurveys.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/nps/listSurveys.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/listSurveys.js +26 -0
- package/dist/nodes/UserPilot/actions/nps/listSurveys.js.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/publish.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/nps/publish.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/publish.js +15 -0
- package/dist/nodes/UserPilot/actions/nps/publish.js.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/unpublish.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/nps/unpublish.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/unpublish.js +15 -0
- package/dist/nodes/UserPilot/actions/nps/unpublish.js.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/update.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/nps/update.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/nps/update.js +26 -0
- package/dist/nodes/UserPilot/actions/nps/update.js.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/createModule.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/createModule.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/createModule.js +18 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/createModule.js.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/deleteModule.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/deleteModule.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/deleteModule.js +16 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/deleteModule.js.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/get.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/get.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/get.js +14 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/get.js.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/getModuleAnalytics.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/getModuleAnalytics.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/getModuleAnalytics.js +15 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/getModuleAnalytics.js.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/index.d.ts +9 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/index.js +26 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/index.js.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/listModules.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/listModules.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/listModules.js +22 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/listModules.js.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/reorderModules.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/reorderModules.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/reorderModules.js +15 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/reorderModules.js.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/update.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/update.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/update.js +15 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/update.js.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/updateModule.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/updateModule.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/updateModule.js +23 -0
- package/dist/nodes/UserPilot/actions/resourceCenter/updateModule.js.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/create.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/segment/create.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/create.js +20 -0
- package/dist/nodes/UserPilot/actions/segment/create.js.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/delete.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/segment/delete.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/delete.js +16 -0
- package/dist/nodes/UserPilot/actions/segment/delete.js.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/get.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/segment/get.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/get.js +15 -0
- package/dist/nodes/UserPilot/actions/segment/get.js.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/getSize.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/segment/getSize.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/getSize.js +15 -0
- package/dist/nodes/UserPilot/actions/segment/getSize.js.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/getUsers.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/segment/getUsers.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/getUsers.js +23 -0
- package/dist/nodes/UserPilot/actions/segment/getUsers.js.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/index.d.ts +8 -0
- package/dist/nodes/UserPilot/actions/segment/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/index.js +24 -0
- package/dist/nodes/UserPilot/actions/segment/index.js.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/list.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/segment/list.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/list.js +22 -0
- package/dist/nodes/UserPilot/actions/segment/list.js.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/update.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/segment/update.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/segment/update.js +21 -0
- package/dist/nodes/UserPilot/actions/segment/update.js.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/create.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/spotlight/create.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/create.js +24 -0
- package/dist/nodes/UserPilot/actions/spotlight/create.js.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/delete.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/spotlight/delete.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/delete.js +16 -0
- package/dist/nodes/UserPilot/actions/spotlight/delete.js.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/get.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/spotlight/get.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/get.js +15 -0
- package/dist/nodes/UserPilot/actions/spotlight/get.js.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/getAnalytics.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/spotlight/getAnalytics.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/getAnalytics.js +15 -0
- package/dist/nodes/UserPilot/actions/spotlight/getAnalytics.js.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/index.d.ts +9 -0
- package/dist/nodes/UserPilot/actions/spotlight/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/index.js +26 -0
- package/dist/nodes/UserPilot/actions/spotlight/index.js.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/list.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/spotlight/list.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/list.js +22 -0
- package/dist/nodes/UserPilot/actions/spotlight/list.js.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/publish.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/spotlight/publish.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/publish.js +15 -0
- package/dist/nodes/UserPilot/actions/spotlight/publish.js.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/unpublish.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/spotlight/unpublish.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/unpublish.js +15 -0
- package/dist/nodes/UserPilot/actions/spotlight/unpublish.js.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/update.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/spotlight/update.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/spotlight/update.js +26 -0
- package/dist/nodes/UserPilot/actions/spotlight/update.js.map +1 -0
- package/dist/nodes/UserPilot/actions/user/bulkImport.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/user/bulkImport.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/user/bulkImport.js +32 -0
- package/dist/nodes/UserPilot/actions/user/bulkImport.js.map +1 -0
- package/dist/nodes/UserPilot/actions/user/bulkUpdate.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/user/bulkUpdate.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/user/bulkUpdate.js +40 -0
- package/dist/nodes/UserPilot/actions/user/bulkUpdate.js.map +1 -0
- package/dist/nodes/UserPilot/actions/user/delete.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/user/delete.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/user/delete.js +25 -0
- package/dist/nodes/UserPilot/actions/user/delete.js.map +1 -0
- package/dist/nodes/UserPilot/actions/user/get.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/user/get.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/user/get.js +20 -0
- package/dist/nodes/UserPilot/actions/user/get.js.map +1 -0
- package/dist/nodes/UserPilot/actions/user/getEvents.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/user/getEvents.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/user/getEvents.js +15 -0
- package/dist/nodes/UserPilot/actions/user/getEvents.js.map +1 -0
- package/dist/nodes/UserPilot/actions/user/getFlows.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/user/getFlows.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/user/getFlows.js +15 -0
- package/dist/nodes/UserPilot/actions/user/getFlows.js.map +1 -0
- package/dist/nodes/UserPilot/actions/user/identify.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/user/identify.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/user/identify.js +39 -0
- package/dist/nodes/UserPilot/actions/user/identify.js.map +1 -0
- package/dist/nodes/UserPilot/actions/user/index.d.ts +12 -0
- package/dist/nodes/UserPilot/actions/user/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/user/index.js +32 -0
- package/dist/nodes/UserPilot/actions/user/index.js.map +1 -0
- package/dist/nodes/UserPilot/actions/user/list.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/user/list.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/user/list.js +22 -0
- package/dist/nodes/UserPilot/actions/user/list.js.map +1 -0
- package/dist/nodes/UserPilot/actions/user/merge.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/user/merge.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/user/merge.js +19 -0
- package/dist/nodes/UserPilot/actions/user/merge.js.map +1 -0
- package/dist/nodes/UserPilot/actions/user/search.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/user/search.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/user/search.js +25 -0
- package/dist/nodes/UserPilot/actions/user/search.js.map +1 -0
- package/dist/nodes/UserPilot/actions/user/update.d.ts +3 -0
- package/dist/nodes/UserPilot/actions/user/update.d.ts.map +1 -0
- package/dist/nodes/UserPilot/actions/user/update.js +49 -0
- package/dist/nodes/UserPilot/actions/user/update.js.map +1 -0
- package/dist/nodes/UserPilot/transport/apiRequest.d.ts +30 -0
- package/dist/nodes/UserPilot/transport/apiRequest.d.ts.map +1 -0
- package/dist/nodes/UserPilot/transport/apiRequest.js +189 -0
- package/dist/nodes/UserPilot/transport/apiRequest.js.map +1 -0
- package/dist/nodes/UserPilot/transport/index.d.ts +2 -0
- package/dist/nodes/UserPilot/transport/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/transport/index.js +24 -0
- package/dist/nodes/UserPilot/transport/index.js.map +1 -0
- package/dist/nodes/UserPilot/types/UserPilotTypes.d.ts +107 -0
- package/dist/nodes/UserPilot/types/UserPilotTypes.d.ts.map +1 -0
- package/dist/nodes/UserPilot/types/UserPilotTypes.js +9 -0
- package/dist/nodes/UserPilot/types/UserPilotTypes.js.map +1 -0
- package/dist/nodes/UserPilot/userpilot.svg +7 -0
- package/dist/nodes/UserPilot/utils/helpers.d.ts +55 -0
- package/dist/nodes/UserPilot/utils/helpers.d.ts.map +1 -0
- package/dist/nodes/UserPilot/utils/helpers.js +183 -0
- package/dist/nodes/UserPilot/utils/helpers.js.map +1 -0
- package/dist/nodes/UserPilot/utils/index.d.ts +2 -0
- package/dist/nodes/UserPilot/utils/index.d.ts.map +1 -0
- package/dist/nodes/UserPilot/utils/index.js +24 -0
- package/dist/nodes/UserPilot/utils/index.js.map +1 -0
- package/package.json +77 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.update = update;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function update(index) {
|
|
12
|
+
const flowId = this.getNodeParameter('flowId', index);
|
|
13
|
+
const additionalFields = this.getNodeParameter('flowAdditionalFields', index, {});
|
|
14
|
+
const targeting = this.getNodeParameter('flowTargeting', index, '{}');
|
|
15
|
+
const body = {};
|
|
16
|
+
if (additionalFields.name)
|
|
17
|
+
body.name = additionalFields.name;
|
|
18
|
+
if (additionalFields.targetUrl)
|
|
19
|
+
body.target_url = additionalFields.targetUrl;
|
|
20
|
+
if (targeting && targeting !== '{}')
|
|
21
|
+
body.targeting = JSON.parse(targeting);
|
|
22
|
+
return transport_1.userPilotApiRequest.call(this, 'PUT', `/v1/flows/${flowId}`, body);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/flow/update.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,wBAWC;AAbD,+CAAsD;AAE/C,KAAK,UAAU,MAAM,CAA0B,KAAa;IACjE,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAW,CAAC;IAChE,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,sBAAsB,EAAE,KAAK,EAAE,EAAE,CAAgB,CAAC;IACjG,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,KAAK,EAAE,IAAI,CAAW,CAAC;IAEhF,MAAM,IAAI,GAAgB,EAAE,CAAC;IAC7B,IAAI,gBAAgB,CAAC,IAAI;QAAE,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC;IAC7D,IAAI,gBAAgB,CAAC,SAAS;QAAE,IAAI,CAAC,UAAU,GAAG,gBAAgB,CAAC,SAAS,CAAC;IAC7E,IAAI,SAAS,IAAI,SAAS,KAAK,IAAI;QAAE,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAE5E,OAAO,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,aAAa,MAAM,EAAE,EAAE,IAAI,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/job/cancel.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,wBAAsB,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAGjF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.cancel = cancel;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function cancel(index) {
|
|
12
|
+
const jobId = this.getNodeParameter('jobId', index);
|
|
13
|
+
return transport_1.userPilotApiRequest.call(this, 'POST', `/v1/jobs/${jobId}/cancel`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=cancel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/job/cancel.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,wBAGC;AALD,+CAAsD;AAE/C,KAAK,UAAU,MAAM,CAA0B,KAAa;IACjE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;IAC9D,OAAO,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,KAAK,SAAS,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getErrors.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/job/getErrors.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,wBAAsB,SAAS,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAGpF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.getErrors = getErrors;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function getErrors(index) {
|
|
12
|
+
const jobId = this.getNodeParameter('jobId', index);
|
|
13
|
+
return transport_1.userPilotApiRequest.call(this, 'GET', `/v1/jobs/${jobId}/errors`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=getErrors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getErrors.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/job/getErrors.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,8BAGC;AALD,+CAAsD;AAE/C,KAAK,UAAU,SAAS,CAA0B,KAAa;IACpE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;IAC9D,OAAO,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,KAAK,SAAS,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStatus.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/job/getStatus.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAG1E,wBAAsB,SAAS,CAC7B,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAc/B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.getStatus = getStatus;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function getStatus(index) {
|
|
12
|
+
const jobId = this.getNodeParameter('jobId', index);
|
|
13
|
+
const response = await transport_1.userPilotApiRequest.call(this, 'GET', `/v1/jobs/${encodeURIComponent(jobId)}`);
|
|
14
|
+
return [
|
|
15
|
+
{
|
|
16
|
+
json: response,
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=getStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStatus.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/job/getStatus.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,8BAiBC;AAnBD,+CAAsD;AAE/C,KAAK,UAAU,SAAS,CAE7B,KAAa;IAEb,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;IAE9D,MAAM,QAAQ,GAAG,MAAM,+BAAmB,CAAC,IAAI,CAC7C,IAAI,EACJ,KAAK,EACL,YAAY,kBAAkB,CAAC,KAAK,CAAC,EAAE,CACxC,CAAC;IAEF,OAAO;QACL;YACE,IAAI,EAAE,QAAQ;SACf;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/job/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.getErrors = exports.retry = exports.cancel = exports.list = exports.getStatus = void 0;
|
|
10
|
+
var getStatus_1 = require("./getStatus");
|
|
11
|
+
Object.defineProperty(exports, "getStatus", { enumerable: true, get: function () { return getStatus_1.getStatus; } });
|
|
12
|
+
var list_1 = require("./list");
|
|
13
|
+
Object.defineProperty(exports, "list", { enumerable: true, get: function () { return list_1.list; } });
|
|
14
|
+
var cancel_1 = require("./cancel");
|
|
15
|
+
Object.defineProperty(exports, "cancel", { enumerable: true, get: function () { return cancel_1.cancel; } });
|
|
16
|
+
var retry_1 = require("./retry");
|
|
17
|
+
Object.defineProperty(exports, "retry", { enumerable: true, get: function () { return retry_1.retry; } });
|
|
18
|
+
var getErrors_1 = require("./getErrors");
|
|
19
|
+
Object.defineProperty(exports, "getErrors", { enumerable: true, get: function () { return getErrors_1.getErrors; } });
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/job/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,yCAAwC;AAA/B,sGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/job/list.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAe,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGvF,wBAAsB,IAAI,CACxB,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAuB/B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.list = list;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function list(index) {
|
|
12
|
+
const returnAll = this.getNodeParameter('returnAll', index, false);
|
|
13
|
+
const additionalFields = this.getNodeParameter('additionalFields', index, {});
|
|
14
|
+
const query = {};
|
|
15
|
+
if (additionalFields.status) {
|
|
16
|
+
query.status = additionalFields.status;
|
|
17
|
+
}
|
|
18
|
+
if (additionalFields.type) {
|
|
19
|
+
query.type = additionalFields.type;
|
|
20
|
+
}
|
|
21
|
+
if (!returnAll) {
|
|
22
|
+
const limit = this.getNodeParameter('limit', index, 50);
|
|
23
|
+
query.limit = limit;
|
|
24
|
+
}
|
|
25
|
+
const response = await transport_1.userPilotApiRequest.call(this, 'GET', '/v1/jobs', undefined, query);
|
|
26
|
+
const jobs = Array.isArray(response) ? response : response.data || response.jobs || [];
|
|
27
|
+
return jobs.map((job) => ({ json: job }));
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/job/list.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,oBA0BC;AA5BD,+CAAsD;AAE/C,KAAK,UAAU,IAAI,CAExB,KAAa;IAEb,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,EAAE,KAAK,CAAY,CAAC;IAC9E,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,KAAK,EAAE,EAAE,CAAgB,CAAC;IAE7F,MAAM,KAAK,GAAgB,EAAE,CAAC;IAE9B,IAAI,gBAAgB,CAAC,MAAM,EAAE,CAAC;QAC5B,KAAK,CAAC,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC;IACzC,CAAC;IACD,IAAI,gBAAgB,CAAC,IAAI,EAAE,CAAC;QAC1B,KAAK,CAAC,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC;IACrC,CAAC;IAED,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAW,CAAC;QAClE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IAE3F,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;IAEvF,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAgB,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/job/retry.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,wBAAsB,KAAK,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAGhF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.retry = retry;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function retry(index) {
|
|
12
|
+
const jobId = this.getNodeParameter('jobId', index);
|
|
13
|
+
return transport_1.userPilotApiRequest.call(this, 'POST', `/v1/jobs/${jobId}/retry`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=retry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/job/retry.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,sBAGC;AALD,+CAAsD;AAE/C,KAAK,UAAU,KAAK,CAA0B,KAAa;IAChE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;IAC9D,OAAO,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,KAAK,QAAQ,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/create.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAe,MAAM,cAAc,CAAC;AAGnE,wBAAsB,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAWjF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.create = create;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function create(index) {
|
|
12
|
+
const name = this.getNodeParameter('npsName', index);
|
|
13
|
+
const additionalFields = this.getNodeParameter('npsAdditionalFields', index, {});
|
|
14
|
+
const targeting = this.getNodeParameter('npsTargeting', index, '{}');
|
|
15
|
+
const body = { name };
|
|
16
|
+
if (additionalFields.question)
|
|
17
|
+
body.question = additionalFields.question;
|
|
18
|
+
if (additionalFields.followUpEnabled !== undefined)
|
|
19
|
+
body.follow_up_enabled = additionalFields.followUpEnabled;
|
|
20
|
+
if (targeting && targeting !== '{}')
|
|
21
|
+
body.targeting = JSON.parse(targeting);
|
|
22
|
+
return transport_1.userPilotApiRequest.call(this, 'POST', '/v1/nps', body);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/create.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,wBAWC;AAbD,+CAAsD;AAE/C,KAAK,UAAU,MAAM,CAA0B,KAAa;IACjE,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,KAAK,CAAW,CAAC;IAC/D,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,KAAK,EAAE,EAAE,CAAgB,CAAC;IAChG,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,KAAK,EAAE,IAAI,CAAW,CAAC;IAE/E,MAAM,IAAI,GAAgB,EAAE,IAAI,EAAE,CAAC;IACnC,IAAI,gBAAgB,CAAC,QAAQ;QAAE,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,QAAQ,CAAC;IACzE,IAAI,gBAAgB,CAAC,eAAe,KAAK,SAAS;QAAE,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC,eAAe,CAAC;IAC9G,IAAI,SAAS,IAAI,SAAS,KAAK,IAAI;QAAE,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAE5E,OAAO,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;AACjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/delete.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,wBAAsB,SAAS,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAIpF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.deleteNps = deleteNps;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function deleteNps(index) {
|
|
12
|
+
const surveyId = this.getNodeParameter('surveyId', index);
|
|
13
|
+
await transport_1.userPilotApiRequest.call(this, 'DELETE', `/v1/nps/${surveyId}`);
|
|
14
|
+
return { success: true, deleted: surveyId };
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/delete.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,8BAIC;AAND,+CAAsD;AAE/C,KAAK,UAAU,SAAS,CAA0B,KAAa;IACpE,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAW,CAAC;IACpE,MAAM,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,QAAQ,EAAE,CAAC,CAAC;IACtE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportData.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/exportData.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,wBAAsB,UAAU,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAGrF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.exportData = exportData;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function exportData(index) {
|
|
12
|
+
const surveyId = this.getNodeParameter('surveyId', index);
|
|
13
|
+
return transport_1.userPilotApiRequest.call(this, 'POST', `/v1/nps/${surveyId}/export`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=exportData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportData.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/exportData.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,gCAGC;AALD,+CAAsD;AAE/C,KAAK,UAAU,UAAU,CAA0B,KAAa;IACrE,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAW,CAAC;IACpE,OAAO,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,QAAQ,SAAS,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/get.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,wBAAsB,GAAG,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAG9E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.get = get;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function get(index) {
|
|
12
|
+
const surveyId = this.getNodeParameter('surveyId', index);
|
|
13
|
+
return transport_1.userPilotApiRequest.call(this, 'GET', `/v1/nps/${surveyId}`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/get.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,kBAGC;AALD,+CAAsD;AAE/C,KAAK,UAAU,GAAG,CAA0B,KAAa;IAC9D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAW,CAAC;IACpE,OAAO,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,QAAQ,EAAE,CAAC,CAAC;AACtE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAnalytics.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/getAnalytics.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,wBAAsB,YAAY,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAGvF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.getAnalytics = getAnalytics;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function getAnalytics(index) {
|
|
12
|
+
const surveyId = this.getNodeParameter('surveyId', index);
|
|
13
|
+
return transport_1.userPilotApiRequest.call(this, 'GET', `/v1/nps/${surveyId}/analytics`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=getAnalytics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAnalytics.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/getAnalytics.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,oCAGC;AALD,+CAAsD;AAE/C,KAAK,UAAU,YAAY,CAA0B,KAAa;IACvE,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAW,CAAC;IACpE,OAAO,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,QAAQ,YAAY,CAAC,CAAC;AAChF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getResponses.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/getResponses.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAG1E,wBAAsB,YAAY,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAaxG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.getResponses = getResponses;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function getResponses(index) {
|
|
12
|
+
const surveyId = this.getNodeParameter('surveyId', index);
|
|
13
|
+
const returnAll = this.getNodeParameter('returnAll', index);
|
|
14
|
+
const limit = this.getNodeParameter('limit', index, 50);
|
|
15
|
+
if (returnAll) {
|
|
16
|
+
const response = await transport_1.userPilotApiRequestAllItems.call(this, 'GET', `/v1/nps/${surveyId}/responses`);
|
|
17
|
+
return response.map((item) => ({ json: item }));
|
|
18
|
+
}
|
|
19
|
+
const response = await transport_1.userPilotApiRequest.call(this, 'GET', `/v1/nps/${surveyId}/responses`, undefined, { limit });
|
|
20
|
+
const items = response.results || response.data || response;
|
|
21
|
+
return Array.isArray(items) ? items.map((item) => ({ json: item })) : [{ json: items }];
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=getResponses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getResponses.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/getResponses.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,oCAaC;AAfD,+CAAmF;AAE5E,KAAK,UAAU,YAAY,CAA0B,KAAa;IACvE,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAW,CAAC;IACpE,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAY,CAAC;IACvE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAW,CAAC;IAElE,IAAI,SAAS,EAAE,CAAC;QACd,MAAM,QAAQ,GAAG,MAAM,uCAA2B,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,QAAQ,YAAY,CAAC,CAAC;QACtG,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,QAAQ,YAAY,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACpH,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC;IAC5D,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;AAC/F,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { list } from './list';
|
|
2
|
+
export { get } from './get';
|
|
3
|
+
export { create } from './create';
|
|
4
|
+
export { update } from './update';
|
|
5
|
+
export { deleteNps } from './delete';
|
|
6
|
+
export { getResponses } from './getResponses';
|
|
7
|
+
export { publish } from './publish';
|
|
8
|
+
export { unpublish } from './unpublish';
|
|
9
|
+
export { getAnalytics } from './getAnalytics';
|
|
10
|
+
export { exportData } from './exportData';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.exportData = exports.getAnalytics = exports.unpublish = exports.publish = exports.getResponses = exports.deleteNps = exports.update = exports.create = exports.get = exports.list = void 0;
|
|
10
|
+
var list_1 = require("./list");
|
|
11
|
+
Object.defineProperty(exports, "list", { enumerable: true, get: function () { return list_1.list; } });
|
|
12
|
+
var get_1 = require("./get");
|
|
13
|
+
Object.defineProperty(exports, "get", { enumerable: true, get: function () { return get_1.get; } });
|
|
14
|
+
var create_1 = require("./create");
|
|
15
|
+
Object.defineProperty(exports, "create", { enumerable: true, get: function () { return create_1.create; } });
|
|
16
|
+
var update_1 = require("./update");
|
|
17
|
+
Object.defineProperty(exports, "update", { enumerable: true, get: function () { return update_1.update; } });
|
|
18
|
+
var delete_1 = require("./delete");
|
|
19
|
+
Object.defineProperty(exports, "deleteNps", { enumerable: true, get: function () { return delete_1.deleteNps; } });
|
|
20
|
+
var getResponses_1 = require("./getResponses");
|
|
21
|
+
Object.defineProperty(exports, "getResponses", { enumerable: true, get: function () { return getResponses_1.getResponses; } });
|
|
22
|
+
var publish_1 = require("./publish");
|
|
23
|
+
Object.defineProperty(exports, "publish", { enumerable: true, get: function () { return publish_1.publish; } });
|
|
24
|
+
var unpublish_1 = require("./unpublish");
|
|
25
|
+
Object.defineProperty(exports, "unpublish", { enumerable: true, get: function () { return unpublish_1.unpublish; } });
|
|
26
|
+
var getAnalytics_1 = require("./getAnalytics");
|
|
27
|
+
Object.defineProperty(exports, "getAnalytics", { enumerable: true, get: function () { return getAnalytics_1.getAnalytics; } });
|
|
28
|
+
var exportData_1 = require("./exportData");
|
|
29
|
+
Object.defineProperty(exports, "exportData", { enumerable: true, get: function () { return exportData_1.exportData; } });
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,6BAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAqC;AAA5B,mGAAA,SAAS,OAAA;AAClB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/list.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAG1E,wBAAsB,IAAI,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAYhG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.list = list;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function list(index) {
|
|
12
|
+
const returnAll = this.getNodeParameter('returnAll', index);
|
|
13
|
+
const limit = this.getNodeParameter('limit', index, 50);
|
|
14
|
+
if (returnAll) {
|
|
15
|
+
const response = await transport_1.userPilotApiRequestAllItems.call(this, 'GET', '/v1/nps');
|
|
16
|
+
return response.map((item) => ({ json: item }));
|
|
17
|
+
}
|
|
18
|
+
const response = await transport_1.userPilotApiRequest.call(this, 'GET', '/v1/nps', undefined, { limit });
|
|
19
|
+
const items = response.results || response.data || response;
|
|
20
|
+
return Array.isArray(items) ? items.map((item) => ({ json: item })) : [{ json: items }];
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/list.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,oBAYC;AAdD,+CAAmF;AAE5E,KAAK,UAAU,IAAI,CAA0B,KAAa;IAC/D,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAY,CAAC;IACvE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAW,CAAC;IAElE,IAAI,SAAS,EAAE,CAAC;QACd,MAAM,QAAQ,GAAG,MAAM,uCAA2B,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;QAChF,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9F,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC;IAC5D,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;AAC/F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listSurveys.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/listSurveys.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAe,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGvF,wBAAsB,WAAW,CAC/B,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAoB/B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.listSurveys = listSurveys;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function listSurveys(index) {
|
|
12
|
+
const returnAll = this.getNodeParameter('returnAll', index, false);
|
|
13
|
+
const additionalFields = this.getNodeParameter('additionalFields', index, {});
|
|
14
|
+
const query = {};
|
|
15
|
+
if (additionalFields.status) {
|
|
16
|
+
query.status = additionalFields.status;
|
|
17
|
+
}
|
|
18
|
+
if (!returnAll) {
|
|
19
|
+
const limit = this.getNodeParameter('limit', index, 50);
|
|
20
|
+
query.limit = limit;
|
|
21
|
+
}
|
|
22
|
+
const response = await transport_1.userPilotApiRequest.call(this, 'GET', '/v1/nps/surveys', undefined, query);
|
|
23
|
+
const surveys = Array.isArray(response) ? response : response.data || response.surveys || [];
|
|
24
|
+
return surveys.map((survey) => ({ json: survey }));
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=listSurveys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listSurveys.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/listSurveys.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,kCAuBC;AAzBD,+CAAsD;AAE/C,KAAK,UAAU,WAAW,CAE/B,KAAa;IAEb,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,EAAE,KAAK,CAAY,CAAC;IAC9E,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,KAAK,EAAE,EAAE,CAAgB,CAAC;IAE7F,MAAM,KAAK,GAAgB,EAAE,CAAC;IAE9B,IAAI,gBAAgB,CAAC,MAAM,EAAE,CAAC;QAC5B,KAAK,CAAC,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC;IACzC,CAAC;IAED,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAW,CAAC;QAClE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IAElG,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC;IAE7F,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/publish.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,wBAAsB,OAAO,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAGlF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Velocity BPA, LLC
|
|
4
|
+
* Licensed under the Business Source License 1.1
|
|
5
|
+
* Commercial use requires a separate commercial license.
|
|
6
|
+
* See LICENSE file for details.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.publish = publish;
|
|
10
|
+
const transport_1 = require("../../transport");
|
|
11
|
+
async function publish(index) {
|
|
12
|
+
const surveyId = this.getNodeParameter('surveyId', index);
|
|
13
|
+
return transport_1.userPilotApiRequest.call(this, 'POST', `/v1/nps/${surveyId}/publish`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=publish.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../../nodes/UserPilot/actions/nps/publish.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,0BAGC;AALD,+CAAsD;AAE/C,KAAK,UAAU,OAAO,CAA0B,KAAa;IAClE,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAW,CAAC;IACpE,OAAO,+BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,QAAQ,UAAU,CAAC,CAAC;AAC/E,CAAC"}
|