@memberjunction/actions-bizapps-formbuilders 2.113.2 → 2.114.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +10 -0
- package/dist/base/base-form-builder.action.d.ts +15 -2
- package/dist/base/base-form-builder.action.d.ts.map +1 -1
- package/dist/base/base-form-builder.action.js +55 -13
- package/dist/base/base-form-builder.action.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -4
- package/dist/index.js.map +1 -1
- package/dist/providers/google-forms/actions/export-csv.action.d.ts +4 -0
- package/dist/providers/google-forms/actions/export-csv.action.d.ts.map +1 -1
- package/dist/providers/google-forms/actions/export-csv.action.js +9 -2
- package/dist/providers/google-forms/actions/export-csv.action.js.map +1 -1
- package/dist/providers/google-forms/actions/get-form.action.d.ts +4 -0
- package/dist/providers/google-forms/actions/get-form.action.d.ts.map +1 -1
- package/dist/providers/google-forms/actions/get-form.action.js +9 -2
- package/dist/providers/google-forms/actions/get-form.action.js.map +1 -1
- package/dist/providers/google-forms/actions/get-single-response.action.d.ts +4 -0
- package/dist/providers/google-forms/actions/get-single-response.action.d.ts.map +1 -1
- package/dist/providers/google-forms/actions/get-single-response.action.js +9 -2
- package/dist/providers/google-forms/actions/get-single-response.action.js.map +1 -1
- package/dist/providers/google-forms/actions/get-statistics.action.d.ts +4 -0
- package/dist/providers/google-forms/actions/get-statistics.action.d.ts.map +1 -1
- package/dist/providers/google-forms/actions/get-statistics.action.js +10 -3
- package/dist/providers/google-forms/actions/get-statistics.action.js.map +1 -1
- package/dist/providers/google-forms/actions/index.d.ts +5 -0
- package/dist/providers/google-forms/actions/index.d.ts.map +1 -1
- package/dist/providers/google-forms/actions/index.js +17 -0
- package/dist/providers/google-forms/actions/index.js.map +1 -1
- package/dist/providers/google-forms/googleforms-base.action.d.ts.map +1 -1
- package/dist/providers/google-forms/googleforms-base.action.js +2 -1
- package/dist/providers/google-forms/googleforms-base.action.js.map +1 -1
- package/dist/providers/jotform/actions/create-form.action.d.ts +4 -0
- package/dist/providers/jotform/actions/create-form.action.d.ts.map +1 -1
- package/dist/providers/jotform/actions/create-form.action.js +9 -2
- package/dist/providers/jotform/actions/create-form.action.js.map +1 -1
- package/dist/providers/jotform/actions/export-csv.action.d.ts +4 -0
- package/dist/providers/jotform/actions/export-csv.action.d.ts.map +1 -1
- package/dist/providers/jotform/actions/export-csv.action.js +9 -2
- package/dist/providers/jotform/actions/export-csv.action.js.map +1 -1
- package/dist/providers/jotform/actions/get-form.action.d.ts +4 -0
- package/dist/providers/jotform/actions/get-form.action.d.ts.map +1 -1
- package/dist/providers/jotform/actions/get-form.action.js +9 -2
- package/dist/providers/jotform/actions/get-form.action.js.map +1 -1
- package/dist/providers/jotform/actions/get-single-submission.action.d.ts +4 -0
- package/dist/providers/jotform/actions/get-single-submission.action.d.ts.map +1 -1
- package/dist/providers/jotform/actions/get-single-submission.action.js +9 -2
- package/dist/providers/jotform/actions/get-single-submission.action.js.map +1 -1
- package/dist/providers/jotform/actions/get-statistics.action.d.ts +4 -0
- package/dist/providers/jotform/actions/get-statistics.action.d.ts.map +1 -1
- package/dist/providers/jotform/actions/get-statistics.action.js +10 -3
- package/dist/providers/jotform/actions/get-statistics.action.js.map +1 -1
- package/dist/providers/jotform/actions/get-submissions.action.d.ts +4 -0
- package/dist/providers/jotform/actions/get-submissions.action.d.ts.map +1 -1
- package/dist/providers/jotform/actions/get-submissions.action.js +9 -2
- package/dist/providers/jotform/actions/get-submissions.action.js.map +1 -1
- package/dist/providers/jotform/actions/index.d.ts +5 -0
- package/dist/providers/jotform/actions/index.d.ts.map +1 -1
- package/dist/providers/jotform/actions/index.js +25 -0
- package/dist/providers/jotform/actions/index.js.map +1 -1
- package/dist/providers/jotform/actions/update-form.action.d.ts +4 -0
- package/dist/providers/jotform/actions/update-form.action.d.ts.map +1 -1
- package/dist/providers/jotform/actions/update-form.action.js +9 -2
- package/dist/providers/jotform/actions/update-form.action.js.map +1 -1
- package/dist/providers/jotform/actions/watch-new-submissions.action.d.ts +4 -0
- package/dist/providers/jotform/actions/watch-new-submissions.action.d.ts.map +1 -1
- package/dist/providers/jotform/actions/watch-new-submissions.action.js +11 -4
- package/dist/providers/jotform/actions/watch-new-submissions.action.js.map +1 -1
- package/dist/providers/jotform/jotform-base.action.d.ts.map +1 -1
- package/dist/providers/jotform/jotform-base.action.js +2 -1
- package/dist/providers/jotform/jotform-base.action.js.map +1 -1
- package/dist/providers/surveymonkey/actions/create-survey.action.d.ts +4 -0
- package/dist/providers/surveymonkey/actions/create-survey.action.d.ts.map +1 -1
- package/dist/providers/surveymonkey/actions/create-survey.action.js +9 -2
- package/dist/providers/surveymonkey/actions/create-survey.action.js.map +1 -1
- package/dist/providers/surveymonkey/actions/export-csv.action.d.ts +4 -0
- package/dist/providers/surveymonkey/actions/export-csv.action.d.ts.map +1 -1
- package/dist/providers/surveymonkey/actions/export-csv.action.js +9 -2
- package/dist/providers/surveymonkey/actions/export-csv.action.js.map +1 -1
- package/dist/providers/surveymonkey/actions/get-responses.action.d.ts +4 -0
- package/dist/providers/surveymonkey/actions/get-responses.action.d.ts.map +1 -1
- package/dist/providers/surveymonkey/actions/get-responses.action.js +9 -2
- package/dist/providers/surveymonkey/actions/get-responses.action.js.map +1 -1
- package/dist/providers/surveymonkey/actions/get-single-response.action.d.ts +4 -0
- package/dist/providers/surveymonkey/actions/get-single-response.action.d.ts.map +1 -1
- package/dist/providers/surveymonkey/actions/get-single-response.action.js +9 -2
- package/dist/providers/surveymonkey/actions/get-single-response.action.js.map +1 -1
- package/dist/providers/surveymonkey/actions/get-statistics.action.d.ts +4 -0
- package/dist/providers/surveymonkey/actions/get-statistics.action.d.ts.map +1 -1
- package/dist/providers/surveymonkey/actions/get-statistics.action.js +10 -3
- package/dist/providers/surveymonkey/actions/get-statistics.action.js.map +1 -1
- package/dist/providers/surveymonkey/actions/get-survey.action.d.ts +4 -0
- package/dist/providers/surveymonkey/actions/get-survey.action.d.ts.map +1 -1
- package/dist/providers/surveymonkey/actions/get-survey.action.js +9 -2
- package/dist/providers/surveymonkey/actions/get-survey.action.js.map +1 -1
- package/dist/providers/surveymonkey/actions/index.d.ts +5 -0
- package/dist/providers/surveymonkey/actions/index.d.ts.map +1 -1
- package/dist/providers/surveymonkey/actions/index.js +25 -0
- package/dist/providers/surveymonkey/actions/index.js.map +1 -1
- package/dist/providers/surveymonkey/actions/update-survey.action.d.ts +4 -0
- package/dist/providers/surveymonkey/actions/update-survey.action.d.ts.map +1 -1
- package/dist/providers/surveymonkey/actions/update-survey.action.js +9 -2
- package/dist/providers/surveymonkey/actions/update-survey.action.js.map +1 -1
- package/dist/providers/surveymonkey/actions/watch-new-responses.action.d.ts +4 -0
- package/dist/providers/surveymonkey/actions/watch-new-responses.action.d.ts.map +1 -1
- package/dist/providers/surveymonkey/actions/watch-new-responses.action.js +11 -4
- package/dist/providers/surveymonkey/actions/watch-new-responses.action.js.map +1 -1
- package/dist/providers/surveymonkey/surveymonkey-base.action.d.ts.map +1 -1
- package/dist/providers/surveymonkey/surveymonkey-base.action.js +2 -1
- package/dist/providers/surveymonkey/surveymonkey-base.action.js.map +1 -1
- package/dist/providers/typeform/actions/create-form.action.d.ts +4 -0
- package/dist/providers/typeform/actions/create-form.action.d.ts.map +1 -1
- package/dist/providers/typeform/actions/create-form.action.js +9 -2
- package/dist/providers/typeform/actions/create-form.action.js.map +1 -1
- package/dist/providers/typeform/actions/export-csv.action.d.ts +4 -0
- package/dist/providers/typeform/actions/export-csv.action.d.ts.map +1 -1
- package/dist/providers/typeform/actions/export-csv.action.js +9 -2
- package/dist/providers/typeform/actions/export-csv.action.js.map +1 -1
- package/dist/providers/typeform/actions/get-file-content.action.d.ts +46 -0
- package/dist/providers/typeform/actions/get-file-content.action.d.ts.map +1 -0
- package/dist/providers/typeform/actions/get-file-content.action.js +262 -0
- package/dist/providers/typeform/actions/get-file-content.action.js.map +1 -0
- package/dist/providers/typeform/actions/get-form.action.d.ts +4 -0
- package/dist/providers/typeform/actions/get-form.action.d.ts.map +1 -1
- package/dist/providers/typeform/actions/get-form.action.js +9 -2
- package/dist/providers/typeform/actions/get-form.action.js.map +1 -1
- package/dist/providers/typeform/actions/get-forms.action.d.ts +27 -0
- package/dist/providers/typeform/actions/get-forms.action.d.ts.map +1 -0
- package/dist/providers/typeform/actions/get-forms.action.js +152 -0
- package/dist/providers/typeform/actions/get-forms.action.js.map +1 -0
- package/dist/providers/typeform/actions/get-responses.action.d.ts +4 -0
- package/dist/providers/typeform/actions/get-responses.action.d.ts.map +1 -1
- package/dist/providers/typeform/actions/get-responses.action.js +32 -4
- package/dist/providers/typeform/actions/get-responses.action.js.map +1 -1
- package/dist/providers/typeform/actions/get-single-response.action.d.ts +4 -0
- package/dist/providers/typeform/actions/get-single-response.action.d.ts.map +1 -1
- package/dist/providers/typeform/actions/get-single-response.action.js +26 -3
- package/dist/providers/typeform/actions/get-single-response.action.js.map +1 -1
- package/dist/providers/typeform/actions/get-statistics.action.d.ts +4 -0
- package/dist/providers/typeform/actions/get-statistics.action.d.ts.map +1 -1
- package/dist/providers/typeform/actions/get-statistics.action.js +10 -3
- package/dist/providers/typeform/actions/get-statistics.action.js.map +1 -1
- package/dist/providers/typeform/actions/index.d.ts +7 -0
- package/dist/providers/typeform/actions/index.d.ts.map +1 -1
- package/dist/providers/typeform/actions/index.js +31 -0
- package/dist/providers/typeform/actions/index.js.map +1 -1
- package/dist/providers/typeform/actions/update-form.action.d.ts +4 -0
- package/dist/providers/typeform/actions/update-form.action.d.ts.map +1 -1
- package/dist/providers/typeform/actions/update-form.action.js +9 -2
- package/dist/providers/typeform/actions/update-form.action.js.map +1 -1
- package/dist/providers/typeform/actions/watch-new-responses.action.d.ts +4 -0
- package/dist/providers/typeform/actions/watch-new-responses.action.d.ts.map +1 -1
- package/dist/providers/typeform/actions/watch-new-responses.action.js +11 -4
- package/dist/providers/typeform/actions/watch-new-responses.action.js.map +1 -1
- package/dist/providers/typeform/typeform-base.action.d.ts +15 -1
- package/dist/providers/typeform/typeform-base.action.d.ts.map +1 -1
- package/dist/providers/typeform/typeform-base.action.js +67 -4
- package/dist/providers/typeform/typeform-base.action.js.map +1 -1
- package/dist/shared/file-content-processor.d.ts +77 -0
- package/dist/shared/file-content-processor.d.ts.map +1 -0
- package/dist/shared/file-content-processor.js +291 -0
- package/dist/shared/file-content-processor.js.map +1 -0
- package/package.json +6 -6
- package/src/base/base-form-builder.action.ts +64 -15
- package/src/index.ts +1 -5
- package/src/providers/google-forms/actions/export-csv.action.ts +8 -1
- package/src/providers/google-forms/actions/get-form.action.ts +8 -1
- package/src/providers/google-forms/actions/get-single-response.action.ts +8 -1
- package/src/providers/google-forms/actions/get-statistics.action.ts +9 -2
- package/src/providers/google-forms/actions/index.ts +17 -0
- package/src/providers/google-forms/googleforms-base.action.ts +2 -1
- package/src/providers/jotform/actions/create-form.action.ts +8 -1
- package/src/providers/jotform/actions/export-csv.action.ts +8 -1
- package/src/providers/jotform/actions/get-form.action.ts +8 -1
- package/src/providers/jotform/actions/get-single-submission.action.ts +8 -1
- package/src/providers/jotform/actions/get-statistics.action.ts +9 -2
- package/src/providers/jotform/actions/get-submissions.action.ts +8 -1
- package/src/providers/jotform/actions/index.ts +25 -0
- package/src/providers/jotform/actions/update-form.action.ts +8 -1
- package/src/providers/jotform/actions/watch-new-submissions.action.ts +10 -3
- package/src/providers/jotform/jotform-base.action.ts +2 -1
- package/src/providers/surveymonkey/actions/create-survey.action.ts +8 -1
- package/src/providers/surveymonkey/actions/export-csv.action.ts +8 -1
- package/src/providers/surveymonkey/actions/get-responses.action.ts +8 -1
- package/src/providers/surveymonkey/actions/get-single-response.action.ts +8 -1
- package/src/providers/surveymonkey/actions/get-statistics.action.ts +9 -2
- package/src/providers/surveymonkey/actions/get-survey.action.ts +8 -1
- package/src/providers/surveymonkey/actions/index.ts +25 -0
- package/src/providers/surveymonkey/actions/update-survey.action.ts +8 -1
- package/src/providers/surveymonkey/actions/watch-new-responses.action.ts +10 -3
- package/src/providers/surveymonkey/surveymonkey-base.action.ts +2 -1
- package/src/providers/typeform/actions/create-form.action.ts +8 -1
- package/src/providers/typeform/actions/export-csv.action.ts +8 -1
- package/src/providers/typeform/actions/get-file-content.action.ts +269 -0
- package/src/providers/typeform/actions/get-form.action.ts +8 -1
- package/src/providers/typeform/actions/get-forms.action.ts +152 -0
- package/src/providers/typeform/actions/get-responses.action.ts +31 -3
- package/src/providers/typeform/actions/get-single-response.action.ts +25 -2
- package/src/providers/typeform/actions/get-statistics.action.ts +9 -2
- package/src/providers/typeform/actions/index.ts +31 -0
- package/src/providers/typeform/actions/update-form.action.ts +8 -1
- package/src/providers/typeform/actions/watch-new-responses.action.ts +10 -3
- package/src/providers/typeform/typeform-base.action.ts +74 -4
- package/src/shared/file-content-processor.ts +322 -0
|
@@ -42,7 +42,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
42
42
|
* });
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
@RegisterClass(BaseAction, '
|
|
45
|
+
@RegisterClass(BaseAction, 'CreateJotFormAction')
|
|
46
46
|
export class CreateJotFormAction extends JotFormBaseAction {
|
|
47
47
|
|
|
48
48
|
public get Description(): string {
|
|
@@ -279,3 +279,10 @@ export class CreateJotFormAction extends JotFormBaseAction {
|
|
|
279
279
|
];
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Load function to prevent tree shaking
|
|
285
|
+
*/
|
|
286
|
+
export function LoadCreateJotFormAction(): void {
|
|
287
|
+
// Empty function to create static code path and prevent tree shaking
|
|
288
|
+
}
|
|
@@ -26,7 +26,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
@RegisterClass(BaseAction, '
|
|
29
|
+
@RegisterClass(BaseAction, 'ExportJotFormCSVAction')
|
|
30
30
|
export class ExportJotFormCSVAction extends JotFormBaseAction {
|
|
31
31
|
|
|
32
32
|
public get Description(): string {
|
|
@@ -187,3 +187,10 @@ export class ExportJotFormCSVAction extends JotFormBaseAction {
|
|
|
187
187
|
];
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Load function to prevent tree shaking
|
|
193
|
+
*/
|
|
194
|
+
export function LoadExportJotFormCSVAction(): void {
|
|
195
|
+
// Empty function to create static code path and prevent tree shaking
|
|
196
|
+
}
|
|
@@ -26,7 +26,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
@RegisterClass(BaseAction, '
|
|
29
|
+
@RegisterClass(BaseAction, 'GetJotFormAction')
|
|
30
30
|
export class GetJotFormAction extends JotFormBaseAction {
|
|
31
31
|
|
|
32
32
|
public get Description(): string {
|
|
@@ -187,3 +187,10 @@ export class GetJotFormAction extends JotFormBaseAction {
|
|
|
187
187
|
];
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Load function to prevent tree shaking
|
|
193
|
+
*/
|
|
194
|
+
export function LoadGetJotFormAction(): void {
|
|
195
|
+
// Empty function to create static code path and prevent tree shaking
|
|
196
|
+
}
|
|
@@ -26,7 +26,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
@RegisterClass(BaseAction, '
|
|
29
|
+
@RegisterClass(BaseAction, 'GetSingleJotFormSubmissionAction')
|
|
30
30
|
export class GetSingleJotFormSubmissionAction extends JotFormBaseAction {
|
|
31
31
|
|
|
32
32
|
public get Description(): string {
|
|
@@ -135,3 +135,10 @@ export class GetSingleJotFormSubmissionAction extends JotFormBaseAction {
|
|
|
135
135
|
];
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Load function to prevent tree shaking
|
|
141
|
+
*/
|
|
142
|
+
export function LoadGetSingleJotFormSubmissionAction(): void {
|
|
143
|
+
// Empty function to create static code path and prevent tree shaking
|
|
144
|
+
}
|
|
@@ -27,7 +27,7 @@ import { FormStatistics } from '../../../base/base-form-builder.action';
|
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
@RegisterClass(BaseAction, '
|
|
30
|
+
@RegisterClass(BaseAction, 'GetJotFormStatisticsAction')
|
|
31
31
|
export class GetJotFormStatisticsAction extends JotFormBaseAction {
|
|
32
32
|
|
|
33
33
|
public get Description(): string {
|
|
@@ -117,7 +117,7 @@ export class GetJotFormStatisticsAction extends JotFormBaseAction {
|
|
|
117
117
|
const allFieldIds = new Set<string>();
|
|
118
118
|
|
|
119
119
|
for (const submission of submissions) {
|
|
120
|
-
for (const answer of submission.
|
|
120
|
+
for (const answer of submission.answerDetails) {
|
|
121
121
|
allFieldIds.add(answer.fieldId);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -306,3 +306,10 @@ export class GetJotFormStatisticsAction extends JotFormBaseAction {
|
|
|
306
306
|
];
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Load function to prevent tree shaking
|
|
312
|
+
*/
|
|
313
|
+
export function LoadGetJotFormStatisticsAction(): void {
|
|
314
|
+
// Empty function to create static code path and prevent tree shaking
|
|
315
|
+
}
|
|
@@ -30,7 +30,7 @@ import { FormResponse } from '../../../base/base-form-builder.action';
|
|
|
30
30
|
* });
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
@RegisterClass(BaseAction, '
|
|
33
|
+
@RegisterClass(BaseAction, 'GetJotFormSubmissionsAction')
|
|
34
34
|
export class GetJotFormSubmissionsAction extends JotFormBaseAction {
|
|
35
35
|
|
|
36
36
|
public get Description(): string {
|
|
@@ -218,3 +218,10 @@ export class GetJotFormSubmissionsAction extends JotFormBaseAction {
|
|
|
218
218
|
];
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Load function to prevent tree shaking
|
|
224
|
+
*/
|
|
225
|
+
export function LoadGetJotFormSubmissionsAction(): void {
|
|
226
|
+
// Empty function to create static code path and prevent tree shaking
|
|
227
|
+
}
|
|
@@ -9,3 +9,28 @@ export * from './get-single-submission.action';
|
|
|
9
9
|
export * from './get-statistics.action';
|
|
10
10
|
export * from './export-csv.action';
|
|
11
11
|
export * from './watch-new-submissions.action';
|
|
12
|
+
|
|
13
|
+
// Import Load functions
|
|
14
|
+
import { LoadCreateJotFormAction } from './create-form.action';
|
|
15
|
+
import { LoadGetJotFormAction } from './get-form.action';
|
|
16
|
+
import { LoadUpdateJotFormAction } from './update-form.action';
|
|
17
|
+
import { LoadGetJotFormSubmissionsAction } from './get-submissions.action';
|
|
18
|
+
import { LoadGetSingleJotFormSubmissionAction } from './get-single-submission.action';
|
|
19
|
+
import { LoadGetJotFormStatisticsAction } from './get-statistics.action';
|
|
20
|
+
import { LoadExportJotFormCSVAction } from './export-csv.action';
|
|
21
|
+
import { LoadWatchNewJotFormSubmissionsAction } from './watch-new-submissions.action';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Load all JotForm actions to prevent tree shaking.
|
|
25
|
+
* Call this function from consuming packages to ensure all action classes are included in the bundle.
|
|
26
|
+
*/
|
|
27
|
+
export function LoadAllJotFormActions(): void {
|
|
28
|
+
LoadCreateJotFormAction();
|
|
29
|
+
LoadGetJotFormAction();
|
|
30
|
+
LoadUpdateJotFormAction();
|
|
31
|
+
LoadGetJotFormSubmissionsAction();
|
|
32
|
+
LoadGetSingleJotFormSubmissionAction();
|
|
33
|
+
LoadGetJotFormStatisticsAction();
|
|
34
|
+
LoadExportJotFormCSVAction();
|
|
35
|
+
LoadWatchNewJotFormSubmissionsAction();
|
|
36
|
+
}
|
|
@@ -33,7 +33,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
33
33
|
* });
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
|
-
@RegisterClass(BaseAction, '
|
|
36
|
+
@RegisterClass(BaseAction, 'UpdateJotFormAction')
|
|
37
37
|
export class UpdateJotFormAction extends JotFormBaseAction {
|
|
38
38
|
|
|
39
39
|
public get Description(): string {
|
|
@@ -252,3 +252,10 @@ export class UpdateJotFormAction extends JotFormBaseAction {
|
|
|
252
252
|
];
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Load function to prevent tree shaking
|
|
258
|
+
*/
|
|
259
|
+
export function LoadUpdateJotFormAction(): void {
|
|
260
|
+
// Empty function to create static code path and prevent tree shaking
|
|
261
|
+
}
|
|
@@ -27,7 +27,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
@RegisterClass(BaseAction, '
|
|
30
|
+
@RegisterClass(BaseAction, 'WatchNewJotFormSubmissionsAction')
|
|
31
31
|
export class WatchNewJotFormSubmissionsAction extends JotFormBaseAction {
|
|
32
32
|
|
|
33
33
|
public get Description(): string {
|
|
@@ -98,12 +98,12 @@ export class WatchNewJotFormSubmissionsAction extends JotFormBaseAction {
|
|
|
98
98
|
const submissionsByType: Record<string, any[]> = {};
|
|
99
99
|
if (newSubmissions.length > 0) {
|
|
100
100
|
const firstSubmission = newSubmissions[0];
|
|
101
|
-
for (const answer of firstSubmission.
|
|
101
|
+
for (const answer of firstSubmission.answerDetails) {
|
|
102
102
|
submissionsByType[answer.fieldType] = [];
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
for (const submission of newSubmissions) {
|
|
106
|
-
for (const answer of submission.
|
|
106
|
+
for (const answer of submission.answerDetails) {
|
|
107
107
|
if (!submissionsByType[answer.fieldType]) {
|
|
108
108
|
submissionsByType[answer.fieldType] = [];
|
|
109
109
|
}
|
|
@@ -236,3 +236,10 @@ export class WatchNewJotFormSubmissionsAction extends JotFormBaseAction {
|
|
|
236
236
|
];
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Load function to prevent tree shaking
|
|
242
|
+
*/
|
|
243
|
+
export function LoadWatchNewJotFormSubmissionsAction(): void {
|
|
244
|
+
// Empty function to create static code path and prevent tree shaking
|
|
245
|
+
}
|
|
@@ -323,7 +323,8 @@ export abstract class JotFormBaseAction extends BaseFormBuilderAction {
|
|
|
323
323
|
formId: jfSubmission.form_id,
|
|
324
324
|
submittedAt,
|
|
325
325
|
completed,
|
|
326
|
-
answers,
|
|
326
|
+
answerDetails: answers, // For now, use answers as answerDetails since JotForm doesn't have simpleAnswers
|
|
327
|
+
answers: {}, // Empty object for now - could be implemented later
|
|
327
328
|
metadata: {
|
|
328
329
|
userAgent: jfSubmission.ip,
|
|
329
330
|
platform: 'JotForm'
|
|
@@ -43,7 +43,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
43
43
|
* });
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
@RegisterClass(BaseAction, '
|
|
46
|
+
@RegisterClass(BaseAction, 'CreateSurveyMonkeyAction')
|
|
47
47
|
export class CreateSurveyMonkeyAction extends SurveyMonkeyBaseAction {
|
|
48
48
|
|
|
49
49
|
public get Description(): string {
|
|
@@ -194,3 +194,10 @@ export class CreateSurveyMonkeyAction extends SurveyMonkeyBaseAction {
|
|
|
194
194
|
];
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Load function to prevent tree shaking
|
|
200
|
+
*/
|
|
201
|
+
export function LoadCreateSurveyMonkeyAction(): void {
|
|
202
|
+
// Empty function to create static code path and prevent tree shaking
|
|
203
|
+
}
|
|
@@ -25,7 +25,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
25
25
|
* });
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
@RegisterClass(BaseAction, '
|
|
28
|
+
@RegisterClass(BaseAction, 'ExportSurveyMonkeyCSVAction')
|
|
29
29
|
export class ExportSurveyMonkeyCSVAction extends SurveyMonkeyBaseAction {
|
|
30
30
|
|
|
31
31
|
public get Description(): string {
|
|
@@ -173,3 +173,10 @@ export class ExportSurveyMonkeyCSVAction extends SurveyMonkeyBaseAction {
|
|
|
173
173
|
];
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Load function to prevent tree shaking
|
|
179
|
+
*/
|
|
180
|
+
export function LoadExportSurveyMonkeyCSVAction(): void {
|
|
181
|
+
// Empty function to create static code path and prevent tree shaking
|
|
182
|
+
}
|
|
@@ -29,7 +29,7 @@ import { FormResponse } from '../../../base/base-form-builder.action';
|
|
|
29
29
|
* });
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
@RegisterClass(BaseAction, '
|
|
32
|
+
@RegisterClass(BaseAction, 'GetSurveyMonkeyResponsesAction')
|
|
33
33
|
export class GetSurveyMonkeyResponsesAction extends SurveyMonkeyBaseAction {
|
|
34
34
|
|
|
35
35
|
public get Description(): string {
|
|
@@ -243,3 +243,10 @@ export class GetSurveyMonkeyResponsesAction extends SurveyMonkeyBaseAction {
|
|
|
243
243
|
];
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Load function to prevent tree shaking
|
|
249
|
+
*/
|
|
250
|
+
export function LoadGetSurveyMonkeyResponsesAction(): void {
|
|
251
|
+
// Empty function to create static code path and prevent tree shaking
|
|
252
|
+
}
|
|
@@ -25,7 +25,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
25
25
|
* });
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
@RegisterClass(BaseAction, '
|
|
28
|
+
@RegisterClass(BaseAction, 'GetSingleSurveyMonkeyResponseAction')
|
|
29
29
|
export class GetSingleSurveyMonkeyResponseAction extends SurveyMonkeyBaseAction {
|
|
30
30
|
|
|
31
31
|
public get Description(): string {
|
|
@@ -146,3 +146,10 @@ export class GetSingleSurveyMonkeyResponseAction extends SurveyMonkeyBaseAction
|
|
|
146
146
|
];
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Load function to prevent tree shaking
|
|
152
|
+
*/
|
|
153
|
+
export function LoadGetSingleSurveyMonkeyResponseAction(): void {
|
|
154
|
+
// Empty function to create static code path and prevent tree shaking
|
|
155
|
+
}
|
|
@@ -26,7 +26,7 @@ import { FormStatistics } from '../../../base/base-form-builder.action';
|
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
@RegisterClass(BaseAction, '
|
|
29
|
+
@RegisterClass(BaseAction, 'GetSurveyMonkeyStatisticsAction')
|
|
30
30
|
export class GetSurveyMonkeyStatisticsAction extends SurveyMonkeyBaseAction {
|
|
31
31
|
|
|
32
32
|
public get Description(): string {
|
|
@@ -94,7 +94,7 @@ export class GetSurveyMonkeyStatisticsAction extends SurveyMonkeyBaseAction {
|
|
|
94
94
|
const allFieldIds = new Set<string>();
|
|
95
95
|
|
|
96
96
|
for (const response of responses) {
|
|
97
|
-
for (const answer of response.
|
|
97
|
+
for (const answer of response.answerDetails) {
|
|
98
98
|
allFieldIds.add(answer.fieldId);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -278,3 +278,10 @@ export class GetSurveyMonkeyStatisticsAction extends SurveyMonkeyBaseAction {
|
|
|
278
278
|
];
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Load function to prevent tree shaking
|
|
284
|
+
*/
|
|
285
|
+
export function LoadGetSurveyMonkeyStatisticsAction(): void {
|
|
286
|
+
// Empty function to create static code path and prevent tree shaking
|
|
287
|
+
}
|
|
@@ -22,7 +22,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
22
22
|
* });
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
@RegisterClass(BaseAction, '
|
|
25
|
+
@RegisterClass(BaseAction, 'GetSurveyMonkeyAction')
|
|
26
26
|
export class GetSurveyMonkeyDetailsAction extends SurveyMonkeyBaseAction {
|
|
27
27
|
|
|
28
28
|
public get Description(): string {
|
|
@@ -179,3 +179,10 @@ export class GetSurveyMonkeyDetailsAction extends SurveyMonkeyBaseAction {
|
|
|
179
179
|
];
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Load function to prevent tree shaking
|
|
185
|
+
*/
|
|
186
|
+
export function LoadGetSurveyMonkeyAction(): void {
|
|
187
|
+
// Empty function to create static code path and prevent tree shaking
|
|
188
|
+
}
|
|
@@ -9,3 +9,28 @@ export * from './watch-new-responses.action';
|
|
|
9
9
|
export * from './get-survey.action';
|
|
10
10
|
export * from './create-survey.action';
|
|
11
11
|
export * from './update-survey.action';
|
|
12
|
+
|
|
13
|
+
// Import Load functions
|
|
14
|
+
import { LoadGetSurveyMonkeyResponsesAction } from './get-responses.action';
|
|
15
|
+
import { LoadGetSingleSurveyMonkeyResponseAction } from './get-single-response.action';
|
|
16
|
+
import { LoadGetSurveyMonkeyStatisticsAction } from './get-statistics.action';
|
|
17
|
+
import { LoadExportSurveyMonkeyCSVAction } from './export-csv.action';
|
|
18
|
+
import { LoadWatchNewSurveyMonkeyResponsesAction } from './watch-new-responses.action';
|
|
19
|
+
import { LoadGetSurveyMonkeyAction } from './get-survey.action';
|
|
20
|
+
import { LoadCreateSurveyMonkeyAction } from './create-survey.action';
|
|
21
|
+
import { LoadUpdateSurveyMonkeyAction } from './update-survey.action';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Load all SurveyMonkey actions to prevent tree shaking.
|
|
25
|
+
* Call this function from consuming packages to ensure all action classes are included in the bundle.
|
|
26
|
+
*/
|
|
27
|
+
export function LoadAllSurveyMonkeyActions(): void {
|
|
28
|
+
LoadGetSurveyMonkeyResponsesAction();
|
|
29
|
+
LoadGetSingleSurveyMonkeyResponseAction();
|
|
30
|
+
LoadGetSurveyMonkeyStatisticsAction();
|
|
31
|
+
LoadExportSurveyMonkeyCSVAction();
|
|
32
|
+
LoadWatchNewSurveyMonkeyResponsesAction();
|
|
33
|
+
LoadGetSurveyMonkeyAction();
|
|
34
|
+
LoadCreateSurveyMonkeyAction();
|
|
35
|
+
LoadUpdateSurveyMonkeyAction();
|
|
36
|
+
}
|
|
@@ -34,7 +34,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
34
34
|
* });
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
@RegisterClass(BaseAction, '
|
|
37
|
+
@RegisterClass(BaseAction, 'UpdateSurveyMonkeyAction')
|
|
38
38
|
export class UpdateSurveyMonkeyAction extends SurveyMonkeyBaseAction {
|
|
39
39
|
public get Description(): string {
|
|
40
40
|
return 'Updates an existing SurveyMonkey survey. Set MergeWithExisting=true (default) to safely update only specified properties while preserving others. Set to false to replace entire survey data (not recommended).';
|
|
@@ -232,3 +232,10 @@ export class UpdateSurveyMonkeyAction extends SurveyMonkeyBaseAction {
|
|
|
232
232
|
];
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Load function to prevent tree shaking
|
|
238
|
+
*/
|
|
239
|
+
export function LoadUpdateSurveyMonkeyAction(): void {
|
|
240
|
+
// Empty function to create static code path and prevent tree shaking
|
|
241
|
+
}
|
|
@@ -26,7 +26,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
@RegisterClass(BaseAction, '
|
|
29
|
+
@RegisterClass(BaseAction, 'WatchNewSurveyMonkeyResponsesAction')
|
|
30
30
|
export class WatchNewSurveyMonkeyResponsesAction extends SurveyMonkeyBaseAction {
|
|
31
31
|
|
|
32
32
|
public get Description(): string {
|
|
@@ -86,12 +86,12 @@ export class WatchNewSurveyMonkeyResponsesAction extends SurveyMonkeyBaseAction
|
|
|
86
86
|
const responsesByType: Record<string, any[]> = {};
|
|
87
87
|
if (newResponses.length > 0) {
|
|
88
88
|
const firstResponse = newResponses[0];
|
|
89
|
-
for (const answer of firstResponse.
|
|
89
|
+
for (const answer of firstResponse.answerDetails) {
|
|
90
90
|
responsesByType[answer.fieldType] = [];
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
for (const response of newResponses) {
|
|
94
|
-
for (const answer of response.
|
|
94
|
+
for (const answer of response.answerDetails) {
|
|
95
95
|
if (!responsesByType[answer.fieldType]) {
|
|
96
96
|
responsesByType[answer.fieldType] = [];
|
|
97
97
|
}
|
|
@@ -219,3 +219,10 @@ export class WatchNewSurveyMonkeyResponsesAction extends SurveyMonkeyBaseAction
|
|
|
219
219
|
];
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Load function to prevent tree shaking
|
|
225
|
+
*/
|
|
226
|
+
export function LoadWatchNewSurveyMonkeyResponsesAction(): void {
|
|
227
|
+
// Empty function to create static code path and prevent tree shaking
|
|
228
|
+
}
|
|
@@ -441,7 +441,8 @@ export abstract class SurveyMonkeyBaseAction extends BaseFormBuilderAction {
|
|
|
441
441
|
formId: smResponse.survey_id,
|
|
442
442
|
submittedAt,
|
|
443
443
|
completed,
|
|
444
|
-
answers,
|
|
444
|
+
answerDetails: answers, // For now, use answers as answerDetails since SurveyMonkey doesn't have simpleAnswers
|
|
445
|
+
answers: {}, // Empty object for now - could be implemented later
|
|
445
446
|
metadata: {
|
|
446
447
|
userAgent: smResponse.ip_address,
|
|
447
448
|
platform: 'SurveyMonkey'
|
|
@@ -35,7 +35,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
35
35
|
* });
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
|
-
@RegisterClass(BaseAction, '
|
|
38
|
+
@RegisterClass(BaseAction, 'CreateTypeformAction')
|
|
39
39
|
export class CreateTypeformAction extends TypeformBaseAction {
|
|
40
40
|
|
|
41
41
|
public get Description(): string {
|
|
@@ -209,3 +209,10 @@ export class CreateTypeformAction extends TypeformBaseAction {
|
|
|
209
209
|
];
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Load function to prevent tree shaking
|
|
215
|
+
*/
|
|
216
|
+
export function LoadCreateTypeformAction(): void {
|
|
217
|
+
// Empty function to create static code path and prevent tree shaking
|
|
218
|
+
}
|
|
@@ -26,7 +26,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
@RegisterClass(BaseAction, '
|
|
29
|
+
@RegisterClass(BaseAction, 'ExportTypeformCSVAction')
|
|
30
30
|
export class ExportTypeformCSVAction extends TypeformBaseAction {
|
|
31
31
|
|
|
32
32
|
public get Description(): string {
|
|
@@ -182,3 +182,10 @@ export class ExportTypeformCSVAction extends TypeformBaseAction {
|
|
|
182
182
|
];
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Load function to prevent tree shaking
|
|
188
|
+
*/
|
|
189
|
+
export function LoadExportTypeformCSVAction(): void {
|
|
190
|
+
// Empty function to create static code path and prevent tree shaking
|
|
191
|
+
}
|