@memberjunction/actions-bizapps-formbuilders 2.112.0-beta
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/IMPLEMENTATION_PLAN.md +311 -0
- package/README.md +498 -0
- package/dist/base/base-form-builder.action.d.ts +153 -0
- package/dist/base/base-form-builder.action.d.ts.map +1 -0
- package/dist/base/base-form-builder.action.js +301 -0
- package/dist/base/base-form-builder.action.js.map +1 -0
- package/dist/base/index.d.ts +2 -0
- package/dist/base/index.d.ts.map +1 -0
- package/dist/base/index.js +18 -0
- package/dist/base/index.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/google-forms/actions/export-csv.action.d.ts +31 -0
- package/dist/providers/google-forms/actions/export-csv.action.d.ts.map +1 -0
- package/dist/providers/google-forms/actions/export-csv.action.js +165 -0
- package/dist/providers/google-forms/actions/export-csv.action.js.map +1 -0
- package/dist/providers/google-forms/actions/get-form.action.d.ts +28 -0
- package/dist/providers/google-forms/actions/get-form.action.d.ts.map +1 -0
- package/dist/providers/google-forms/actions/get-form.action.js +151 -0
- package/dist/providers/google-forms/actions/get-form.action.js.map +1 -0
- package/dist/providers/google-forms/actions/get-single-response.action.d.ts +31 -0
- package/dist/providers/google-forms/actions/get-single-response.action.d.ts.map +1 -0
- package/dist/providers/google-forms/actions/get-single-response.action.js +150 -0
- package/dist/providers/google-forms/actions/get-single-response.action.js.map +1 -0
- package/dist/providers/google-forms/actions/get-statistics.action.d.ts +36 -0
- package/dist/providers/google-forms/actions/get-statistics.action.d.ts.map +1 -0
- package/dist/providers/google-forms/actions/get-statistics.action.js +254 -0
- package/dist/providers/google-forms/actions/get-statistics.action.js.map +1 -0
- package/dist/providers/google-forms/actions/index.d.ts +5 -0
- package/dist/providers/google-forms/actions/index.d.ts.map +1 -0
- package/dist/providers/google-forms/actions/index.js +23 -0
- package/dist/providers/google-forms/actions/index.js.map +1 -0
- package/dist/providers/google-forms/googleforms-base.action.d.ts +197 -0
- package/dist/providers/google-forms/googleforms-base.action.d.ts.map +1 -0
- package/dist/providers/google-forms/googleforms-base.action.js +352 -0
- package/dist/providers/google-forms/googleforms-base.action.js.map +1 -0
- package/dist/providers/google-forms/index.d.ts +3 -0
- package/dist/providers/google-forms/index.d.ts.map +1 -0
- package/dist/providers/google-forms/index.js +21 -0
- package/dist/providers/google-forms/index.js.map +1 -0
- package/dist/providers/jotform/actions/create-form.action.d.ts +61 -0
- package/dist/providers/jotform/actions/create-form.action.d.ts.map +1 -0
- package/dist/providers/jotform/actions/create-form.action.js +259 -0
- package/dist/providers/jotform/actions/create-form.action.js.map +1 -0
- package/dist/providers/jotform/actions/export-csv.action.d.ts +31 -0
- package/dist/providers/jotform/actions/export-csv.action.d.ts.map +1 -0
- package/dist/providers/jotform/actions/export-csv.action.js +187 -0
- package/dist/providers/jotform/actions/export-csv.action.js.map +1 -0
- package/dist/providers/jotform/actions/get-form.action.d.ts +31 -0
- package/dist/providers/jotform/actions/get-form.action.d.ts.map +1 -0
- package/dist/providers/jotform/actions/get-form.action.js +188 -0
- package/dist/providers/jotform/actions/get-form.action.js.map +1 -0
- package/dist/providers/jotform/actions/get-single-submission.action.d.ts +31 -0
- package/dist/providers/jotform/actions/get-single-submission.action.d.ts.map +1 -0
- package/dist/providers/jotform/actions/get-single-submission.action.js +138 -0
- package/dist/providers/jotform/actions/get-single-submission.action.js.map +1 -0
- package/dist/providers/jotform/actions/get-statistics.action.d.ts +39 -0
- package/dist/providers/jotform/actions/get-statistics.action.d.ts.map +1 -0
- package/dist/providers/jotform/actions/get-statistics.action.js +290 -0
- package/dist/providers/jotform/actions/get-statistics.action.js.map +1 -0
- package/dist/providers/jotform/actions/get-submissions.action.d.ts +34 -0
- package/dist/providers/jotform/actions/get-submissions.action.d.ts.map +1 -0
- package/dist/providers/jotform/actions/get-submissions.action.js +218 -0
- package/dist/providers/jotform/actions/get-submissions.action.js.map +1 -0
- package/dist/providers/jotform/actions/index.d.ts +9 -0
- package/dist/providers/jotform/actions/index.d.ts.map +1 -0
- package/dist/providers/jotform/actions/index.js +27 -0
- package/dist/providers/jotform/actions/index.js.map +1 -0
- package/dist/providers/jotform/actions/update-form.action.d.ts +38 -0
- package/dist/providers/jotform/actions/update-form.action.d.ts.map +1 -0
- package/dist/providers/jotform/actions/update-form.action.js +232 -0
- package/dist/providers/jotform/actions/update-form.action.js.map +1 -0
- package/dist/providers/jotform/actions/watch-new-submissions.action.d.ts +32 -0
- package/dist/providers/jotform/actions/watch-new-submissions.action.d.ts.map +1 -0
- package/dist/providers/jotform/actions/watch-new-submissions.action.js +229 -0
- package/dist/providers/jotform/actions/watch-new-submissions.action.js.map +1 -0
- package/dist/providers/jotform/index.d.ts +3 -0
- package/dist/providers/jotform/index.d.ts.map +1 -0
- package/dist/providers/jotform/index.js +21 -0
- package/dist/providers/jotform/index.js.map +1 -0
- package/dist/providers/jotform/jotform-base.action.d.ts +96 -0
- package/dist/providers/jotform/jotform-base.action.d.ts.map +1 -0
- package/dist/providers/jotform/jotform-base.action.js +269 -0
- package/dist/providers/jotform/jotform-base.action.js.map +1 -0
- package/dist/providers/surveymonkey/actions/create-survey.action.d.ts +48 -0
- package/dist/providers/surveymonkey/actions/create-survey.action.d.ts.map +1 -0
- package/dist/providers/surveymonkey/actions/create-survey.action.js +192 -0
- package/dist/providers/surveymonkey/actions/create-survey.action.js.map +1 -0
- package/dist/providers/surveymonkey/actions/export-csv.action.d.ts +30 -0
- package/dist/providers/surveymonkey/actions/export-csv.action.d.ts.map +1 -0
- package/dist/providers/surveymonkey/actions/export-csv.action.js +173 -0
- package/dist/providers/surveymonkey/actions/export-csv.action.js.map +1 -0
- package/dist/providers/surveymonkey/actions/get-responses.action.d.ts +33 -0
- package/dist/providers/surveymonkey/actions/get-responses.action.d.ts.map +1 -0
- package/dist/providers/surveymonkey/actions/get-responses.action.js +243 -0
- package/dist/providers/surveymonkey/actions/get-responses.action.js.map +1 -0
- package/dist/providers/surveymonkey/actions/get-single-response.action.d.ts +30 -0
- package/dist/providers/surveymonkey/actions/get-single-response.action.d.ts.map +1 -0
- package/dist/providers/surveymonkey/actions/get-single-response.action.js +149 -0
- package/dist/providers/surveymonkey/actions/get-single-response.action.js.map +1 -0
- package/dist/providers/surveymonkey/actions/get-statistics.action.d.ts +38 -0
- package/dist/providers/surveymonkey/actions/get-statistics.action.d.ts.map +1 -0
- package/dist/providers/surveymonkey/actions/get-statistics.action.js +261 -0
- package/dist/providers/surveymonkey/actions/get-statistics.action.js.map +1 -0
- package/dist/providers/surveymonkey/actions/get-survey.action.d.ts +27 -0
- package/dist/providers/surveymonkey/actions/get-survey.action.d.ts.map +1 -0
- package/dist/providers/surveymonkey/actions/get-survey.action.js +180 -0
- package/dist/providers/surveymonkey/actions/get-survey.action.js.map +1 -0
- package/dist/providers/surveymonkey/actions/index.d.ts +9 -0
- package/dist/providers/surveymonkey/actions/index.d.ts.map +1 -0
- package/dist/providers/surveymonkey/actions/index.js +27 -0
- package/dist/providers/surveymonkey/actions/index.js.map +1 -0
- package/dist/providers/surveymonkey/actions/update-survey.action.d.ts +39 -0
- package/dist/providers/surveymonkey/actions/update-survey.action.d.ts.map +1 -0
- package/dist/providers/surveymonkey/actions/update-survey.action.js +217 -0
- package/dist/providers/surveymonkey/actions/update-survey.action.js.map +1 -0
- package/dist/providers/surveymonkey/actions/watch-new-responses.action.d.ts +31 -0
- package/dist/providers/surveymonkey/actions/watch-new-responses.action.d.ts.map +1 -0
- package/dist/providers/surveymonkey/actions/watch-new-responses.action.js +214 -0
- package/dist/providers/surveymonkey/actions/watch-new-responses.action.js.map +1 -0
- package/dist/providers/surveymonkey/index.d.ts +3 -0
- package/dist/providers/surveymonkey/index.d.ts.map +1 -0
- package/dist/providers/surveymonkey/index.js +21 -0
- package/dist/providers/surveymonkey/index.js.map +1 -0
- package/dist/providers/surveymonkey/surveymonkey-base.action.d.ts +193 -0
- package/dist/providers/surveymonkey/surveymonkey-base.action.d.ts.map +1 -0
- package/dist/providers/surveymonkey/surveymonkey-base.action.js +329 -0
- package/dist/providers/surveymonkey/surveymonkey-base.action.js.map +1 -0
- package/dist/providers/typeform/actions/create-form.action.d.ts +40 -0
- package/dist/providers/typeform/actions/create-form.action.d.ts.map +1 -0
- package/dist/providers/typeform/actions/create-form.action.js +205 -0
- package/dist/providers/typeform/actions/create-form.action.js.map +1 -0
- package/dist/providers/typeform/actions/export-csv.action.d.ts +31 -0
- package/dist/providers/typeform/actions/export-csv.action.d.ts.map +1 -0
- package/dist/providers/typeform/actions/export-csv.action.js +182 -0
- package/dist/providers/typeform/actions/export-csv.action.js.map +1 -0
- package/dist/providers/typeform/actions/get-form.action.d.ts +28 -0
- package/dist/providers/typeform/actions/get-form.action.d.ts.map +1 -0
- package/dist/providers/typeform/actions/get-form.action.js +172 -0
- package/dist/providers/typeform/actions/get-form.action.js.map +1 -0
- package/dist/providers/typeform/actions/get-responses.action.d.ts +34 -0
- package/dist/providers/typeform/actions/get-responses.action.d.ts.map +1 -0
- package/dist/providers/typeform/actions/get-responses.action.js +238 -0
- package/dist/providers/typeform/actions/get-responses.action.js.map +1 -0
- package/dist/providers/typeform/actions/get-single-response.action.d.ts +31 -0
- package/dist/providers/typeform/actions/get-single-response.action.d.ts.map +1 -0
- package/dist/providers/typeform/actions/get-single-response.action.js +161 -0
- package/dist/providers/typeform/actions/get-single-response.action.js.map +1 -0
- package/dist/providers/typeform/actions/get-statistics.action.d.ts +33 -0
- package/dist/providers/typeform/actions/get-statistics.action.d.ts.map +1 -0
- package/dist/providers/typeform/actions/get-statistics.action.js +257 -0
- package/dist/providers/typeform/actions/get-statistics.action.js.map +1 -0
- package/dist/providers/typeform/actions/index.d.ts +9 -0
- package/dist/providers/typeform/actions/index.d.ts.map +1 -0
- package/dist/providers/typeform/actions/index.js +27 -0
- package/dist/providers/typeform/actions/index.js.map +1 -0
- package/dist/providers/typeform/actions/update-form.action.d.ts +38 -0
- package/dist/providers/typeform/actions/update-form.action.d.ts.map +1 -0
- package/dist/providers/typeform/actions/update-form.action.js +228 -0
- package/dist/providers/typeform/actions/update-form.action.js.map +1 -0
- package/dist/providers/typeform/actions/watch-new-responses.action.d.ts +32 -0
- package/dist/providers/typeform/actions/watch-new-responses.action.d.ts.map +1 -0
- package/dist/providers/typeform/actions/watch-new-responses.action.js +215 -0
- package/dist/providers/typeform/actions/watch-new-responses.action.js.map +1 -0
- package/dist/providers/typeform/index.d.ts +3 -0
- package/dist/providers/typeform/index.d.ts.map +1 -0
- package/dist/providers/typeform/index.js +21 -0
- package/dist/providers/typeform/index.js.map +1 -0
- package/dist/providers/typeform/typeform-base.action.d.ts +121 -0
- package/dist/providers/typeform/typeform-base.action.d.ts.map +1 -0
- package/dist/providers/typeform/typeform-base.action.js +292 -0
- package/dist/providers/typeform/typeform-base.action.js.map +1 -0
- package/package.json +41 -0
- package/src/base/base-form-builder.action.ts +403 -0
- package/src/base/index.ts +1 -0
- package/src/index.ts +18 -0
- package/src/providers/google-forms/actions/export-csv.action.ts +167 -0
- package/src/providers/google-forms/actions/get-form.action.ts +151 -0
- package/src/providers/google-forms/actions/get-single-response.action.ts +150 -0
- package/src/providers/google-forms/actions/get-statistics.action.ts +273 -0
- package/src/providers/google-forms/actions/index.ts +7 -0
- package/src/providers/google-forms/googleforms-base.action.ts +517 -0
- package/src/providers/google-forms/index.ts +5 -0
- package/src/providers/jotform/actions/create-form.action.ts +281 -0
- package/src/providers/jotform/actions/export-csv.action.ts +189 -0
- package/src/providers/jotform/actions/get-form.action.ts +189 -0
- package/src/providers/jotform/actions/get-single-submission.action.ts +137 -0
- package/src/providers/jotform/actions/get-statistics.action.ts +308 -0
- package/src/providers/jotform/actions/get-submissions.action.ts +220 -0
- package/src/providers/jotform/actions/index.ts +11 -0
- package/src/providers/jotform/actions/update-form.action.ts +254 -0
- package/src/providers/jotform/actions/watch-new-submissions.action.ts +238 -0
- package/src/providers/jotform/index.ts +5 -0
- package/src/providers/jotform/jotform-base.action.ts +365 -0
- package/src/providers/surveymonkey/actions/create-survey.action.ts +196 -0
- package/src/providers/surveymonkey/actions/export-csv.action.ts +175 -0
- package/src/providers/surveymonkey/actions/get-responses.action.ts +245 -0
- package/src/providers/surveymonkey/actions/get-single-response.action.ts +148 -0
- package/src/providers/surveymonkey/actions/get-statistics.action.ts +280 -0
- package/src/providers/surveymonkey/actions/get-survey.action.ts +181 -0
- package/src/providers/surveymonkey/actions/index.ts +11 -0
- package/src/providers/surveymonkey/actions/update-survey.action.ts +234 -0
- package/src/providers/surveymonkey/actions/watch-new-responses.action.ts +221 -0
- package/src/providers/surveymonkey/index.ts +5 -0
- package/src/providers/surveymonkey/surveymonkey-base.action.ts +505 -0
- package/src/providers/typeform/actions/create-form.action.ts +211 -0
- package/src/providers/typeform/actions/export-csv.action.ts +184 -0
- package/src/providers/typeform/actions/get-form.action.ts +173 -0
- package/src/providers/typeform/actions/get-responses.action.ts +242 -0
- package/src/providers/typeform/actions/get-single-response.action.ts +160 -0
- package/src/providers/typeform/actions/get-statistics.action.ts +276 -0
- package/src/providers/typeform/actions/index.ts +11 -0
- package/src/providers/typeform/actions/update-form.action.ts +235 -0
- package/src/providers/typeform/actions/watch-new-responses.action.ts +222 -0
- package/src/providers/typeform/index.ts +5 -0
- package/src/providers/typeform/typeform-base.action.ts +387 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.ExportSurveyMonkeyCSVAction = void 0;
|
|
10
|
+
const global_1 = require("@memberjunction/global");
|
|
11
|
+
const surveymonkey_base_action_1 = require("../surveymonkey-base.action");
|
|
12
|
+
const actions_1 = require("@memberjunction/actions");
|
|
13
|
+
/**
|
|
14
|
+
* Action to export SurveyMonkey responses as CSV format
|
|
15
|
+
*
|
|
16
|
+
* Security: Uses secure credential lookup via CompanyID instead of accepting tokens directly.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* await runAction({
|
|
21
|
+
* ActionName: 'Export SurveyMonkey Responses to CSV',
|
|
22
|
+
* Params: [{
|
|
23
|
+
* Name: 'CompanyID',
|
|
24
|
+
* Value: 'your-company-id'
|
|
25
|
+
* }, {
|
|
26
|
+
* Name: 'SurveyID',
|
|
27
|
+
* Value: 'abc123'
|
|
28
|
+
* }, {
|
|
29
|
+
* Name: 'IncludeMetadata',
|
|
30
|
+
* Value: true
|
|
31
|
+
* }]
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
let ExportSurveyMonkeyCSVAction = class ExportSurveyMonkeyCSVAction extends surveymonkey_base_action_1.SurveyMonkeyBaseAction {
|
|
36
|
+
get Description() {
|
|
37
|
+
return 'Exports SurveyMonkey responses to CSV format for use in spreadsheets, data analysis tools, or archival. Supports custom delimiters, date range filtering, and optional metadata columns.';
|
|
38
|
+
}
|
|
39
|
+
async InternalRunAction(params) {
|
|
40
|
+
try {
|
|
41
|
+
const contextUser = params.ContextUser;
|
|
42
|
+
if (!contextUser) {
|
|
43
|
+
return {
|
|
44
|
+
Success: false,
|
|
45
|
+
ResultCode: 'MISSING_CONTEXT_USER',
|
|
46
|
+
Message: 'Context user is required for SurveyMonkey API calls'
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
const companyId = this.getParamValue(params.Params, 'CompanyID');
|
|
50
|
+
const surveyId = this.getParamValue(params.Params, 'SurveyID');
|
|
51
|
+
if (!surveyId) {
|
|
52
|
+
return {
|
|
53
|
+
Success: false,
|
|
54
|
+
ResultCode: 'MISSING_SURVEY_ID',
|
|
55
|
+
Message: 'SurveyID parameter is required'
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
const accessToken = await this.getSecureAPIToken(companyId, contextUser);
|
|
59
|
+
const startCreatedAt = this.getParamValue(params.Params, 'StartCreatedAt');
|
|
60
|
+
const endCreatedAt = this.getParamValue(params.Params, 'EndCreatedAt');
|
|
61
|
+
const includeMetadata = this.getParamValue(params.Params, 'IncludeMetadata') !== false;
|
|
62
|
+
const delimiter = this.getParamValue(params.Params, 'Delimiter') || ',';
|
|
63
|
+
const maxResponses = this.getParamValue(params.Params, 'MaxResponses') || 10000;
|
|
64
|
+
const smResponses = await this.getAllSurveyMonkeyResponses(surveyId, accessToken, {
|
|
65
|
+
start_created_at: startCreatedAt,
|
|
66
|
+
end_created_at: endCreatedAt,
|
|
67
|
+
maxResponses
|
|
68
|
+
});
|
|
69
|
+
if (smResponses.length === 0) {
|
|
70
|
+
return {
|
|
71
|
+
Success: true,
|
|
72
|
+
ResultCode: 'NO_DATA',
|
|
73
|
+
Message: 'No responses found matching the criteria'
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
const responses = smResponses.map(r => this.normalizeSurveyMonkeyResponse(r));
|
|
77
|
+
const { csv, headers } = this.convertToCSV(responses, includeMetadata, delimiter);
|
|
78
|
+
const outputParams = [
|
|
79
|
+
{
|
|
80
|
+
Name: 'CSVData',
|
|
81
|
+
Type: 'Output',
|
|
82
|
+
Value: csv
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
Name: 'RowCount',
|
|
86
|
+
Type: 'Output',
|
|
87
|
+
Value: responses.length
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
Name: 'Headers',
|
|
91
|
+
Type: 'Output',
|
|
92
|
+
Value: headers
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
Name: 'ColumnCount',
|
|
96
|
+
Type: 'Output',
|
|
97
|
+
Value: headers.length
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
Name: 'FileSize',
|
|
101
|
+
Type: 'Output',
|
|
102
|
+
Value: Buffer.byteLength(csv, 'utf8')
|
|
103
|
+
}
|
|
104
|
+
];
|
|
105
|
+
for (const outputParam of outputParams) {
|
|
106
|
+
const existingParam = params.Params.find(p => p.Name === outputParam.Name);
|
|
107
|
+
if (existingParam) {
|
|
108
|
+
existingParam.Value = outputParam.Value;
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
params.Params.push(outputParam);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
Success: true,
|
|
116
|
+
ResultCode: 'SUCCESS',
|
|
117
|
+
Message: `Successfully exported ${responses.length} responses to CSV (${headers.length} columns, ${Buffer.byteLength(csv, 'utf8')} bytes)`
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
122
|
+
return {
|
|
123
|
+
Success: false,
|
|
124
|
+
ResultCode: 'ERROR',
|
|
125
|
+
Message: this.buildFormErrorMessage('Export SurveyMonkey to CSV', errorMessage, error)
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
get Params() {
|
|
130
|
+
return [
|
|
131
|
+
{
|
|
132
|
+
Name: 'CompanyID',
|
|
133
|
+
Type: 'Input',
|
|
134
|
+
Value: null
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
Name: 'SurveyID',
|
|
138
|
+
Type: 'Input',
|
|
139
|
+
Value: null
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
Name: 'StartCreatedAt',
|
|
143
|
+
Type: 'Input',
|
|
144
|
+
Value: null
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
Name: 'EndCreatedAt',
|
|
148
|
+
Type: 'Input',
|
|
149
|
+
Value: null
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
Name: 'IncludeMetadata',
|
|
153
|
+
Type: 'Input',
|
|
154
|
+
Value: true
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
Name: 'Delimiter',
|
|
158
|
+
Type: 'Input',
|
|
159
|
+
Value: ','
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
Name: 'MaxResponses',
|
|
163
|
+
Type: 'Input',
|
|
164
|
+
Value: 10000
|
|
165
|
+
}
|
|
166
|
+
];
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
exports.ExportSurveyMonkeyCSVAction = ExportSurveyMonkeyCSVAction;
|
|
170
|
+
exports.ExportSurveyMonkeyCSVAction = ExportSurveyMonkeyCSVAction = __decorate([
|
|
171
|
+
(0, global_1.RegisterClass)(actions_1.BaseAction, 'Export SurveyMonkey Responses to CSV')
|
|
172
|
+
], ExportSurveyMonkeyCSVAction);
|
|
173
|
+
//# sourceMappingURL=export-csv.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-csv.action.js","sourceRoot":"","sources":["../../../../src/providers/surveymonkey/actions/export-csv.action.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAAuD;AACvD,0EAAqE;AAErE,qDAAqD;AAErD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEI,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,iDAAsB;IAEnE,IAAW,WAAW;QAClB,OAAO,0LAA0L,CAAC;IACtM,CAAC;IAES,KAAK,CAAC,iBAAiB,CAAC,MAAuB;QACrD,IAAI,CAAC;YACD,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;YACvC,IAAI,CAAC,WAAW,EAAE,CAAC;gBACf,OAAO;oBACH,OAAO,EAAE,KAAK;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B;sCAA3B,2BAA2B;IADvC,IAAA,sBAAa,EAAC,oBAAU,EAAE,sCAAsC,CAAC;GACrD,2BAA2B,CAkJvC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SurveyMonkeyBaseAction } from '../surveymonkey-base.action';
|
|
2
|
+
import { ActionParam, ActionResultSimple, RunActionParams } from '@memberjunction/actions-base';
|
|
3
|
+
/**
|
|
4
|
+
* Action to retrieve responses from a SurveyMonkey survey with comprehensive filtering options
|
|
5
|
+
*
|
|
6
|
+
* Security: Uses secure credential lookup via CompanyID instead of accepting tokens directly.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* await runAction({
|
|
11
|
+
* ActionName: 'Get SurveyMonkey Responses',
|
|
12
|
+
* Params: [{
|
|
13
|
+
* Name: 'CompanyID',
|
|
14
|
+
* Value: 'your-company-id'
|
|
15
|
+
* }, {
|
|
16
|
+
* Name: 'SurveyID',
|
|
17
|
+
* Value: '12345678'
|
|
18
|
+
* }, {
|
|
19
|
+
* Name: 'StartCreatedAt',
|
|
20
|
+
* Value: '2024-01-01T00:00:00Z'
|
|
21
|
+
* }, {
|
|
22
|
+
* Name: 'Status',
|
|
23
|
+
* Value: 'completed'
|
|
24
|
+
* }]
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class GetSurveyMonkeyResponsesAction extends SurveyMonkeyBaseAction {
|
|
29
|
+
get Description(): string;
|
|
30
|
+
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
|
|
31
|
+
get Params(): ActionParam[];
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=get-responses.action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-responses.action.d.ts","sourceRoot":"","sources":["../../../../src/providers/surveymonkey/actions/get-responses.action.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAIhG;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBACa,8BAA+B,SAAQ,sBAAsB;IAEtE,IAAW,WAAW,IAAI,MAAM,CAE/B;cAEe,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAyIvF,IAAW,MAAM,IAAI,WAAW,EAAE,CAoEjC;CACJ"}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.GetSurveyMonkeyResponsesAction = void 0;
|
|
10
|
+
const global_1 = require("@memberjunction/global");
|
|
11
|
+
const surveymonkey_base_action_1 = require("../surveymonkey-base.action");
|
|
12
|
+
const actions_1 = require("@memberjunction/actions");
|
|
13
|
+
/**
|
|
14
|
+
* Action to retrieve responses from a SurveyMonkey survey with comprehensive filtering options
|
|
15
|
+
*
|
|
16
|
+
* Security: Uses secure credential lookup via CompanyID instead of accepting tokens directly.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* await runAction({
|
|
21
|
+
* ActionName: 'Get SurveyMonkey Responses',
|
|
22
|
+
* Params: [{
|
|
23
|
+
* Name: 'CompanyID',
|
|
24
|
+
* Value: 'your-company-id'
|
|
25
|
+
* }, {
|
|
26
|
+
* Name: 'SurveyID',
|
|
27
|
+
* Value: '12345678'
|
|
28
|
+
* }, {
|
|
29
|
+
* Name: 'StartCreatedAt',
|
|
30
|
+
* Value: '2024-01-01T00:00:00Z'
|
|
31
|
+
* }, {
|
|
32
|
+
* Name: 'Status',
|
|
33
|
+
* Value: 'completed'
|
|
34
|
+
* }]
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
let GetSurveyMonkeyResponsesAction = class GetSurveyMonkeyResponsesAction extends surveymonkey_base_action_1.SurveyMonkeyBaseAction {
|
|
39
|
+
get Description() {
|
|
40
|
+
return 'Retrieves responses from a SurveyMonkey survey with filtering, pagination, and sorting capabilities. Supports date ranges, completion status, and response status filtering.';
|
|
41
|
+
}
|
|
42
|
+
async InternalRunAction(params) {
|
|
43
|
+
try {
|
|
44
|
+
const contextUser = params.ContextUser;
|
|
45
|
+
if (!contextUser) {
|
|
46
|
+
return {
|
|
47
|
+
Success: false,
|
|
48
|
+
ResultCode: 'MISSING_CONTEXT_USER',
|
|
49
|
+
Message: 'Context user is required for SurveyMonkey API calls'
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
const companyId = this.getParamValue(params.Params, 'CompanyID');
|
|
53
|
+
const surveyId = this.getParamValue(params.Params, 'SurveyID');
|
|
54
|
+
if (!surveyId) {
|
|
55
|
+
return {
|
|
56
|
+
Success: false,
|
|
57
|
+
ResultCode: 'MISSING_SURVEY_ID',
|
|
58
|
+
Message: 'SurveyID parameter is required'
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const accessToken = await this.getSecureAPIToken(companyId, contextUser);
|
|
62
|
+
const pageSize = this.getParamValue(params.Params, 'PageSize') || 100;
|
|
63
|
+
const page = this.getParamValue(params.Params, 'Page');
|
|
64
|
+
const startCreatedAt = this.getParamValue(params.Params, 'StartCreatedAt');
|
|
65
|
+
const endCreatedAt = this.getParamValue(params.Params, 'EndCreatedAt');
|
|
66
|
+
const startModifiedAt = this.getParamValue(params.Params, 'StartModifiedAt');
|
|
67
|
+
const endModifiedAt = this.getParamValue(params.Params, 'EndModifiedAt');
|
|
68
|
+
const sortOrder = this.getParamValue(params.Params, 'SortOrder');
|
|
69
|
+
const sortBy = this.getParamValue(params.Params, 'SortBy');
|
|
70
|
+
const status = this.getParamValue(params.Params, 'Status');
|
|
71
|
+
const getAllPages = this.getParamValue(params.Params, 'GetAllPages') === true;
|
|
72
|
+
let responses;
|
|
73
|
+
let totalResponses;
|
|
74
|
+
let currentPage;
|
|
75
|
+
let totalPages;
|
|
76
|
+
let hasMore;
|
|
77
|
+
if (getAllPages) {
|
|
78
|
+
const maxResponses = this.getParamValue(params.Params, 'MaxResponses') || 10000;
|
|
79
|
+
const smResponses = await this.getAllSurveyMonkeyResponses(surveyId, accessToken, {
|
|
80
|
+
start_created_at: startCreatedAt,
|
|
81
|
+
end_created_at: endCreatedAt,
|
|
82
|
+
start_modified_at: startModifiedAt,
|
|
83
|
+
end_modified_at: endModifiedAt,
|
|
84
|
+
sort_order: sortOrder,
|
|
85
|
+
sort_by: sortBy,
|
|
86
|
+
status,
|
|
87
|
+
maxResponses
|
|
88
|
+
});
|
|
89
|
+
responses = smResponses.map(r => this.normalizeSurveyMonkeyResponse(r));
|
|
90
|
+
totalResponses = responses.length;
|
|
91
|
+
currentPage = 1;
|
|
92
|
+
totalPages = 1;
|
|
93
|
+
hasMore = false;
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
const result = await this.getSurveyMonkeyResponses(surveyId, accessToken, {
|
|
97
|
+
per_page: Math.min(pageSize, 100),
|
|
98
|
+
page,
|
|
99
|
+
start_created_at: startCreatedAt,
|
|
100
|
+
end_created_at: endCreatedAt,
|
|
101
|
+
start_modified_at: startModifiedAt,
|
|
102
|
+
end_modified_at: endModifiedAt,
|
|
103
|
+
sort_order: sortOrder,
|
|
104
|
+
sort_by: sortBy,
|
|
105
|
+
status
|
|
106
|
+
});
|
|
107
|
+
responses = result.data.map(r => this.normalizeSurveyMonkeyResponse(r));
|
|
108
|
+
totalResponses = result.total;
|
|
109
|
+
currentPage = result.page;
|
|
110
|
+
totalPages = Math.ceil(result.total / result.per_page);
|
|
111
|
+
hasMore = !!result.links.next;
|
|
112
|
+
}
|
|
113
|
+
const outputParams = [
|
|
114
|
+
{
|
|
115
|
+
Name: 'Responses',
|
|
116
|
+
Type: 'Output',
|
|
117
|
+
Value: responses
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
Name: 'TotalResponses',
|
|
121
|
+
Type: 'Output',
|
|
122
|
+
Value: totalResponses
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
Name: 'Count',
|
|
126
|
+
Type: 'Output',
|
|
127
|
+
Value: responses.length
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
Name: 'CurrentPage',
|
|
131
|
+
Type: 'Output',
|
|
132
|
+
Value: currentPage
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
Name: 'TotalPages',
|
|
136
|
+
Type: 'Output',
|
|
137
|
+
Value: totalPages
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
Name: 'HasMore',
|
|
141
|
+
Type: 'Output',
|
|
142
|
+
Value: hasMore
|
|
143
|
+
}
|
|
144
|
+
];
|
|
145
|
+
for (const outputParam of outputParams) {
|
|
146
|
+
const existingParam = params.Params.find(p => p.Name === outputParam.Name);
|
|
147
|
+
if (existingParam) {
|
|
148
|
+
existingParam.Value = outputParam.Value;
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
params.Params.push(outputParam);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return {
|
|
155
|
+
Success: true,
|
|
156
|
+
ResultCode: 'SUCCESS',
|
|
157
|
+
Message: `Successfully retrieved ${responses.length} responses from SurveyMonkey${getAllPages ? '' : ` (page ${currentPage} of ${totalPages}, ${totalResponses} total)`}`
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
catch (error) {
|
|
161
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
162
|
+
return {
|
|
163
|
+
Success: false,
|
|
164
|
+
ResultCode: 'ERROR',
|
|
165
|
+
Message: this.buildFormErrorMessage('Get SurveyMonkey Responses', errorMessage, error)
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
get Params() {
|
|
170
|
+
return [
|
|
171
|
+
{
|
|
172
|
+
Name: 'CompanyID',
|
|
173
|
+
Type: 'Input',
|
|
174
|
+
Value: null
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
Name: 'SurveyID',
|
|
178
|
+
Type: 'Input',
|
|
179
|
+
Value: null
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
Name: 'PageSize',
|
|
183
|
+
Type: 'Input',
|
|
184
|
+
Value: 100
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
Name: 'Page',
|
|
188
|
+
Type: 'Input',
|
|
189
|
+
Value: null
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
Name: 'StartCreatedAt',
|
|
193
|
+
Type: 'Input',
|
|
194
|
+
Value: null
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
Name: 'EndCreatedAt',
|
|
198
|
+
Type: 'Input',
|
|
199
|
+
Value: null
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
Name: 'StartModifiedAt',
|
|
203
|
+
Type: 'Input',
|
|
204
|
+
Value: null
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
Name: 'EndModifiedAt',
|
|
208
|
+
Type: 'Input',
|
|
209
|
+
Value: null
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
Name: 'SortOrder',
|
|
213
|
+
Type: 'Input',
|
|
214
|
+
Value: null
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
Name: 'SortBy',
|
|
218
|
+
Type: 'Input',
|
|
219
|
+
Value: null
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
Name: 'Status',
|
|
223
|
+
Type: 'Input',
|
|
224
|
+
Value: null
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
Name: 'GetAllPages',
|
|
228
|
+
Type: 'Input',
|
|
229
|
+
Value: false
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
Name: 'MaxResponses',
|
|
233
|
+
Type: 'Input',
|
|
234
|
+
Value: 10000
|
|
235
|
+
}
|
|
236
|
+
];
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
exports.GetSurveyMonkeyResponsesAction = GetSurveyMonkeyResponsesAction;
|
|
240
|
+
exports.GetSurveyMonkeyResponsesAction = GetSurveyMonkeyResponsesAction = __decorate([
|
|
241
|
+
(0, global_1.RegisterClass)(actions_1.BaseAction, 'Get SurveyMonkey Responses')
|
|
242
|
+
], GetSurveyMonkeyResponsesAction);
|
|
243
|
+
//# sourceMappingURL=get-responses.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-responses.action.js","sourceRoot":"","sources":["../../../../src/providers/surveymonkey/actions/get-responses.action.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAAuD;AACvD,0EAAqE;AAErE,qDAAqD;AAGrD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEI,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,iDAAsB;IAEtE,IAAW,WAAW;QAClB,OAAO,8KAA8K,CAAC;IAC1L,CAAC;IAES,KAAK,CAAC,iBAAiB,CAAC,MAAuB;QACrD,IAAI,CAAC;YACD,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;YACvC,IAAI,CAAC,WAAW,EAAE,CAAC;gBACf,OAAO;oBACH,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,sBAAsB;oBAClC,OAAO,EAAE,qDAAqD;iBACjE,CAAC;YACN,CAAC;YAED,M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AAc;gBACpB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,IAAI;aACd;YACD;gBACI,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,IAAI;aACd;YACD;gBACI,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,IAAI;aACd;YACD;gBACI,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,IAAI;aACd;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,IAAI;aACd;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,IAAI;aACd;YACD;gBACI,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,KAAK;aACf;YACD;gBACI,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,KAAK;aACf;SACJ,CAAC;IACN,CAAC;CACJ,CAAA;AApNY,wEAA8B;yCAA9B,8BAA8B;IAD1C,IAAA,sBAAa,EAAC,oBAAU,EAAE,4BAA4B,CAAC;GAC3C,8BAA8B,CAoN1C"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SurveyMonkeyBaseAction } from '../surveymonkey-base.action';
|
|
2
|
+
import { ActionParam, ActionResultSimple, RunActionParams } from '@memberjunction/actions-base';
|
|
3
|
+
/**
|
|
4
|
+
* Action to retrieve a specific response from SurveyMonkey by response ID
|
|
5
|
+
*
|
|
6
|
+
* Security: Uses secure credential lookup via CompanyID instead of accepting tokens directly.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* await runAction({
|
|
11
|
+
* ActionName: 'Get Single SurveyMonkey Response',
|
|
12
|
+
* Params: [{
|
|
13
|
+
* Name: 'CompanyID',
|
|
14
|
+
* Value: 'your-company-id'
|
|
15
|
+
* }, {
|
|
16
|
+
* Name: 'SurveyID',
|
|
17
|
+
* Value: '123456789'
|
|
18
|
+
* }, {
|
|
19
|
+
* Name: 'ResponseID',
|
|
20
|
+
* Value: '987654321'
|
|
21
|
+
* }]
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare class GetSingleSurveyMonkeyResponseAction extends SurveyMonkeyBaseAction {
|
|
26
|
+
get Description(): string;
|
|
27
|
+
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
|
|
28
|
+
get Params(): ActionParam[];
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=get-single-response.action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-single-response.action.d.ts","sourceRoot":"","sources":["../../../../src/providers/surveymonkey/actions/get-single-response.action.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAGhG;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBACa,mCAAoC,SAAQ,sBAAsB;IAE3E,IAAW,WAAW,IAAI,MAAM,CAE/B;cAEe,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA8FvF,IAAW,MAAM,IAAI,WAAW,EAAE,CAkBjC;CACJ"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.GetSingleSurveyMonkeyResponseAction = void 0;
|
|
10
|
+
const global_1 = require("@memberjunction/global");
|
|
11
|
+
const surveymonkey_base_action_1 = require("../surveymonkey-base.action");
|
|
12
|
+
const actions_1 = require("@memberjunction/actions");
|
|
13
|
+
/**
|
|
14
|
+
* Action to retrieve a specific response from SurveyMonkey by response ID
|
|
15
|
+
*
|
|
16
|
+
* Security: Uses secure credential lookup via CompanyID instead of accepting tokens directly.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* await runAction({
|
|
21
|
+
* ActionName: 'Get Single SurveyMonkey Response',
|
|
22
|
+
* Params: [{
|
|
23
|
+
* Name: 'CompanyID',
|
|
24
|
+
* Value: 'your-company-id'
|
|
25
|
+
* }, {
|
|
26
|
+
* Name: 'SurveyID',
|
|
27
|
+
* Value: '123456789'
|
|
28
|
+
* }, {
|
|
29
|
+
* Name: 'ResponseID',
|
|
30
|
+
* Value: '987654321'
|
|
31
|
+
* }]
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
let GetSingleSurveyMonkeyResponseAction = class GetSingleSurveyMonkeyResponseAction extends surveymonkey_base_action_1.SurveyMonkeyBaseAction {
|
|
36
|
+
get Description() {
|
|
37
|
+
return 'Retrieves details of a specific SurveyMonkey response by its unique response ID. Includes all answers, metadata, response status, and submission timing information.';
|
|
38
|
+
}
|
|
39
|
+
async InternalRunAction(params) {
|
|
40
|
+
try {
|
|
41
|
+
const contextUser = params.ContextUser;
|
|
42
|
+
if (!contextUser) {
|
|
43
|
+
return {
|
|
44
|
+
Success: false,
|
|
45
|
+
ResultCode: 'MISSING_CONTEXT_USER',
|
|
46
|
+
Message: 'Context user is required for SurveyMonkey API calls'
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
const companyId = this.getParamValue(params.Params, 'CompanyID');
|
|
50
|
+
const surveyId = this.getParamValue(params.Params, 'SurveyID');
|
|
51
|
+
if (!surveyId) {
|
|
52
|
+
return {
|
|
53
|
+
Success: false,
|
|
54
|
+
ResultCode: 'MISSING_SURVEY_ID',
|
|
55
|
+
Message: 'SurveyID parameter is required'
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
const responseId = this.getParamValue(params.Params, 'ResponseID');
|
|
59
|
+
if (!responseId) {
|
|
60
|
+
return {
|
|
61
|
+
Success: false,
|
|
62
|
+
ResultCode: 'MISSING_RESPONSE_ID',
|
|
63
|
+
Message: 'ResponseID parameter is required'
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
const accessToken = await this.getSecureAPIToken(companyId, contextUser);
|
|
67
|
+
const smResponse = await this.getSingleSurveyMonkeyResponse(surveyId, responseId, accessToken);
|
|
68
|
+
const normalizedResponse = this.normalizeSurveyMonkeyResponse(smResponse);
|
|
69
|
+
const outputParams = [
|
|
70
|
+
{
|
|
71
|
+
Name: 'Response',
|
|
72
|
+
Type: 'Output',
|
|
73
|
+
Value: normalizedResponse
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
Name: 'ResponseID',
|
|
77
|
+
Type: 'Output',
|
|
78
|
+
Value: normalizedResponse.responseId
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
Name: 'Status',
|
|
82
|
+
Type: 'Output',
|
|
83
|
+
Value: smResponse.response_status
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
Name: 'SubmittedAt',
|
|
87
|
+
Type: 'Output',
|
|
88
|
+
Value: normalizedResponse.submittedAt
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
Name: 'Answers',
|
|
92
|
+
Type: 'Output',
|
|
93
|
+
Value: normalizedResponse.answers
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
Name: 'Metadata',
|
|
97
|
+
Type: 'Output',
|
|
98
|
+
Value: normalizedResponse.metadata
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
for (const outputParam of outputParams) {
|
|
102
|
+
const existingParam = params.Params.find(p => p.Name === outputParam.Name);
|
|
103
|
+
if (existingParam) {
|
|
104
|
+
existingParam.Value = outputParam.Value;
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
params.Params.push(outputParam);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
Success: true,
|
|
112
|
+
ResultCode: 'SUCCESS',
|
|
113
|
+
Message: `Successfully retrieved response ${responseId} from SurveyMonkey`
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
catch (error) {
|
|
117
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
118
|
+
return {
|
|
119
|
+
Success: false,
|
|
120
|
+
ResultCode: 'ERROR',
|
|
121
|
+
Message: this.buildFormErrorMessage('Get Single SurveyMonkey Response', errorMessage, error)
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
get Params() {
|
|
126
|
+
return [
|
|
127
|
+
{
|
|
128
|
+
Name: 'CompanyID',
|
|
129
|
+
Type: 'Input',
|
|
130
|
+
Value: null
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
Name: 'SurveyID',
|
|
134
|
+
Type: 'Input',
|
|
135
|
+
Value: null
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
Name: 'ResponseID',
|
|
139
|
+
Type: 'Input',
|
|
140
|
+
Value: null
|
|
141
|
+
}
|
|
142
|
+
];
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
exports.GetSingleSurveyMonkeyResponseAction = GetSingleSurveyMonkeyResponseAction;
|
|
146
|
+
exports.GetSingleSurveyMonkeyResponseAction = GetSingleSurveyMonkeyResponseAction = __decorate([
|
|
147
|
+
(0, global_1.RegisterClass)(actions_1.BaseAction, 'Get Single SurveyMonkey Response')
|
|
148
|
+
], GetSingleSurveyMonkeyResponseAction);
|
|
149
|
+
//# sourceMappingURL=get-single-response.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-single-response.action.js","sourceRoot":"","sources":["../../../../src/providers/surveymonkey/actions/get-single-response.action.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAAuD;AACvD,0EAAqE;AAErE,qDAAqD;AAErD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEI,IAAM,mCAAmC,GAAzC,MAAM,mCAAoC,SAAQ,iDAAsB;IAE3E,IAAW,WAAW;QAClB,OAAO,sKAAsK,CAAC;IAClL,CAAC;IAES,KAAK,CAAC,iBAAiB,CAAC,MAAuB;QACrD,IAAI,CAAC;YACD,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;YACvC,IAAI,CAAC,WAAW,EAAE,CAAC;gBACf,OAAO;oBACH,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,sBAAsB;oBAClC,OAAO,EAAE,qDAAqD;iBACjE,CAAC;YACN,CAAC;YAED,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;YAEjE,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;YAC/D,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACZ,OAAO;oBACH,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,mBAAmB;oBAC/B,OAAO,EAAE,gCAAgC;iBAC5C,CAAC;YACN,CAAC;YAED,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;YACnE,IAAI,CAAC,UAAU,EAAE,CAAC;gBACd,OAAO;oBACH,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,qBAA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