@memberjunction/actions-bizapps-formbuilders 2.113.2 → 2.115.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 +20 -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
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { RegisterClass } from '@memberjunction/global';
|
|
2
|
+
import { TypeformBaseAction } from '../typeform-base.action';
|
|
3
|
+
import { ActionParam, ActionResultSimple, RunActionParams } from '@memberjunction/actions-base';
|
|
4
|
+
import { BaseAction } from '@memberjunction/actions';
|
|
5
|
+
import { LogError, LogStatus } from '@memberjunction/core';
|
|
6
|
+
import axios, { AxiosResponse } from 'axios';
|
|
7
|
+
import { FileContentProcessor } from '../../../shared/file-content-processor';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Action to download file content from Typeform using file URL
|
|
11
|
+
*
|
|
12
|
+
* This action retrieves the actual file content from Typeform's file storage
|
|
13
|
+
* using the file_url that comes in response data. It handles authentication
|
|
14
|
+
* and returns the file content in various formats for processing.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* await runAction({
|
|
19
|
+
* ActionName: 'Get Typeform File Content',
|
|
20
|
+
* Params: [{
|
|
21
|
+
* Name: 'CompanyID',
|
|
22
|
+
* Value: '12345'
|
|
23
|
+
* }, {
|
|
24
|
+
* Name: 'FileURL',
|
|
25
|
+
* Value: 'https://api.typeform.com/responses/files/abc123/download.pdf'
|
|
26
|
+
* }, {
|
|
27
|
+
* Name: 'Format',
|
|
28
|
+
* Value: 'text'
|
|
29
|
+
* }]
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* Format Options:
|
|
34
|
+
* - 'auto' (default): Intelligent content extraction based on file type
|
|
35
|
+
* - 'text': Force text extraction when possible
|
|
36
|
+
* - 'base64': Return raw base64 encoded content
|
|
37
|
+
* - 'raw': Return raw binary content as base64
|
|
38
|
+
*/
|
|
39
|
+
@RegisterClass(BaseAction, 'TypeformGetFileContentAction')
|
|
40
|
+
export class GetTypeformFileContentAction extends TypeformBaseAction {
|
|
41
|
+
|
|
42
|
+
public get Description(): string {
|
|
43
|
+
return 'Downloads file content from Typeform using the file URL from response data. Features intelligent content extraction for PDFs, Office documents, images, and text files. Supports auto, text, base64, and raw output formats.';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
protected async InternalRunAction(params: RunActionParams): Promise<ActionResultSimple> {
|
|
47
|
+
try {
|
|
48
|
+
const contextUser = params.ContextUser;
|
|
49
|
+
if (!contextUser) {
|
|
50
|
+
return {
|
|
51
|
+
Success: false,
|
|
52
|
+
ResultCode: 'MISSING_CONTEXT_USER',
|
|
53
|
+
Message: 'Context user is required for Typeform API calls'
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const companyId = this.getParamValue(params.Params, 'CompanyID');
|
|
58
|
+
const fileUrl = this.getParamValue(params.Params, 'FileURL');
|
|
59
|
+
const format = this.getParamValue(params.Params, 'Format') || 'auto';
|
|
60
|
+
|
|
61
|
+
if (!fileUrl) {
|
|
62
|
+
return {
|
|
63
|
+
Success: false,
|
|
64
|
+
ResultCode: 'MISSING_FILE_URL',
|
|
65
|
+
Message: 'FileURL parameter is required'
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Validate format parameter
|
|
70
|
+
const validFormats = ['auto', 'text', 'base64', 'raw'];
|
|
71
|
+
if (!validFormats.includes(format)) {
|
|
72
|
+
return {
|
|
73
|
+
Success: false,
|
|
74
|
+
ResultCode: 'INVALID_FORMAT',
|
|
75
|
+
Message: `Format must be one of: ${validFormats.join(', ')}`
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
// Securely retrieve API token using company integration
|
|
81
|
+
const apiToken = await this.getSecureAPIToken(companyId, contextUser);
|
|
82
|
+
if (!apiToken) {
|
|
83
|
+
return {
|
|
84
|
+
Success: false,
|
|
85
|
+
ResultCode: 'MISSING_API_TOKEN',
|
|
86
|
+
Message: 'Could not retrieve Typeform API token. Please check your company integration settings.'
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
LogStatus(`Downloading file from Typeform: ${fileUrl}`);
|
|
91
|
+
|
|
92
|
+
// Download file content with authentication
|
|
93
|
+
const response: AxiosResponse<ArrayBuffer> = await axios.get(fileUrl, {
|
|
94
|
+
headers: {
|
|
95
|
+
'Authorization': `Bearer ${apiToken}`,
|
|
96
|
+
'Accept': this.getAcceptHeader(format)
|
|
97
|
+
},
|
|
98
|
+
responseType: 'arraybuffer',
|
|
99
|
+
timeout: 30000 // 30 second timeout for file downloads
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// Extract file metadata from response headers
|
|
103
|
+
const contentType = response.headers['content-type'] || 'application/octet-stream';
|
|
104
|
+
const contentLength = response.headers['content-length'] || response.data.byteLength;
|
|
105
|
+
const filename = FileContentProcessor.extractFilename(fileUrl, response.headers['content-disposition']);
|
|
106
|
+
|
|
107
|
+
// Process file content using the helper
|
|
108
|
+
const processResult = await FileContentProcessor.processContent(
|
|
109
|
+
Buffer.from(response.data),
|
|
110
|
+
contentType,
|
|
111
|
+
{
|
|
112
|
+
format: format as any,
|
|
113
|
+
includeWarnings: true,
|
|
114
|
+
maxFileSize: 50 * 1024 * 1024 // 50MB limit
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
|
|
118
|
+
if (!processResult.success) {
|
|
119
|
+
return {
|
|
120
|
+
Success: false,
|
|
121
|
+
ResultCode: 'PROCESSING_ERROR',
|
|
122
|
+
Message: `Failed to process file content: ${processResult.error}`
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
const outputParams: ActionParam[] = [
|
|
127
|
+
{
|
|
128
|
+
Name: 'Content',
|
|
129
|
+
Type: 'Output',
|
|
130
|
+
Value: processResult.content
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
Name: 'ContentType',
|
|
134
|
+
Type: 'Output',
|
|
135
|
+
Value: processResult.contentType
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
Name: 'ContentFormat',
|
|
139
|
+
Type: 'Output',
|
|
140
|
+
Value: processResult.format
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
Name: 'Size',
|
|
144
|
+
Type: 'Output',
|
|
145
|
+
Value: processResult.size
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
Name: 'Filename',
|
|
149
|
+
Type: 'Output',
|
|
150
|
+
Value: filename
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
Name: 'ExtractionMethod',
|
|
154
|
+
Type: 'Output',
|
|
155
|
+
Value: processResult.extractionMethod
|
|
156
|
+
}
|
|
157
|
+
];
|
|
158
|
+
|
|
159
|
+
// Add warning if present
|
|
160
|
+
if (processResult.warning) {
|
|
161
|
+
outputParams.push({
|
|
162
|
+
Name: 'Warning',
|
|
163
|
+
Type: 'Output',
|
|
164
|
+
Value: processResult.warning
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
for (const outputParam of outputParams) {
|
|
169
|
+
const existingParam = params.Params.find(p => p.Name === outputParam.Name);
|
|
170
|
+
if (existingParam) {
|
|
171
|
+
existingParam.Value = outputParam.Value;
|
|
172
|
+
} else {
|
|
173
|
+
params.Params.push(outputParam);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return {
|
|
178
|
+
Success: true,
|
|
179
|
+
ResultCode: 'SUCCESS',
|
|
180
|
+
Message: `Successfully downloaded file ${filename} (${contentLength} bytes) from Typeform`
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
} catch (error) {
|
|
184
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
185
|
+
LogError('Failed to download Typeform file:', error);
|
|
186
|
+
|
|
187
|
+
// Handle specific error cases
|
|
188
|
+
if (axios.isAxiosError(error)) {
|
|
189
|
+
const axiosError = error as any;
|
|
190
|
+
const status = axiosError.response?.status;
|
|
191
|
+
|
|
192
|
+
if (status === 401) {
|
|
193
|
+
return {
|
|
194
|
+
Success: false,
|
|
195
|
+
ResultCode: 'UNAUTHORIZED',
|
|
196
|
+
Message: 'Invalid Typeform API token or insufficient permissions to access file'
|
|
197
|
+
};
|
|
198
|
+
} else if (status === 404) {
|
|
199
|
+
return {
|
|
200
|
+
Success: false,
|
|
201
|
+
ResultCode: 'FILE_NOT_FOUND',
|
|
202
|
+
Message: 'File not found or has been removed from Typeform'
|
|
203
|
+
};
|
|
204
|
+
} else if (status === 413) {
|
|
205
|
+
return {
|
|
206
|
+
Success: false,
|
|
207
|
+
ResultCode: 'FILE_TOO_LARGE',
|
|
208
|
+
Message: 'File is too large to download (Typeform limit: 256MB)'
|
|
209
|
+
};
|
|
210
|
+
} else if (status === 429) {
|
|
211
|
+
return {
|
|
212
|
+
Success: false,
|
|
213
|
+
ResultCode: 'RATE_LIMITED',
|
|
214
|
+
Message: 'Typeform API rate limit exceeded. Please try again later.'
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
return {
|
|
220
|
+
Success: false,
|
|
221
|
+
ResultCode: 'ERROR',
|
|
222
|
+
Message: this.buildFormErrorMessage('Get Typeform File Content', errorMessage, error)
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Get appropriate Accept header based on requested format
|
|
229
|
+
*/
|
|
230
|
+
private getAcceptHeader(format: string): string {
|
|
231
|
+
switch (format) {
|
|
232
|
+
case 'text':
|
|
233
|
+
return 'text/*, application/*, */*';
|
|
234
|
+
case 'raw':
|
|
235
|
+
case 'base64':
|
|
236
|
+
return 'application/octet-stream, */*';
|
|
237
|
+
case 'auto':
|
|
238
|
+
default:
|
|
239
|
+
return '*/*';
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
public get Params(): ActionParam[] {
|
|
244
|
+
return [
|
|
245
|
+
{
|
|
246
|
+
Name: 'CompanyID',
|
|
247
|
+
Type: 'Input',
|
|
248
|
+
Value: null,
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
Name: 'FileURL',
|
|
252
|
+
Type: 'Input',
|
|
253
|
+
Value: null,
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
Name: 'Format',
|
|
257
|
+
Type: 'Input',
|
|
258
|
+
Value: 'auto', // Options: auto, text, base64, raw
|
|
259
|
+
}
|
|
260
|
+
];
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Load function to prevent tree shaking
|
|
266
|
+
*/
|
|
267
|
+
export function LoadTypeformGetFileContentAction(): void {
|
|
268
|
+
// Empty function to create static code path and prevent tree shaking
|
|
269
|
+
}
|
|
@@ -23,7 +23,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
23
23
|
* });
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
@RegisterClass(BaseAction, '
|
|
26
|
+
@RegisterClass(BaseAction, 'GetTypeformAction')
|
|
27
27
|
export class GetTypeformAction extends TypeformBaseAction {
|
|
28
28
|
|
|
29
29
|
public get Description(): string {
|
|
@@ -171,3 +171,10 @@ export class GetTypeformAction extends TypeformBaseAction {
|
|
|
171
171
|
];
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Load function to prevent tree shaking
|
|
177
|
+
*/
|
|
178
|
+
export function LoadGetTypeformAction(): void {
|
|
179
|
+
// Empty function to create static code path and prevent tree shaking
|
|
180
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { RegisterClass } from '@memberjunction/global';
|
|
2
|
+
import { TypeformBaseAction } from '../typeform-base.action';
|
|
3
|
+
import { ActionParam, ActionResultSimple, RunActionParams } from '@memberjunction/actions-base';
|
|
4
|
+
import { BaseAction } from '@memberjunction/actions';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Action to retrieve a list of all TypeForms for a company
|
|
8
|
+
*
|
|
9
|
+
* Security: API credentials are retrieved securely from Company Integrations table or environment variables.
|
|
10
|
+
* Never pass API tokens as action parameters.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* await runAction({
|
|
15
|
+
* ActionName: 'Get Typeform Forms',
|
|
16
|
+
* Params: [{
|
|
17
|
+
* Name: 'CompanyID',
|
|
18
|
+
* Value: '12345'
|
|
19
|
+
* }]
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
@RegisterClass(BaseAction, 'GetTypeformFormsAction')
|
|
24
|
+
export class GetTypeformFormsAction extends TypeformBaseAction {
|
|
25
|
+
|
|
26
|
+
public get Description(): string {
|
|
27
|
+
return 'Retrieves a list of all TypeForms for the specified company including form IDs, titles, and basic metadata. Use this to discover available forms before processing submissions.';
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
protected async InternalRunAction(params: RunActionParams): Promise<ActionResultSimple> {
|
|
31
|
+
try {
|
|
32
|
+
const contextUser = params.ContextUser;
|
|
33
|
+
if (!contextUser) {
|
|
34
|
+
return {
|
|
35
|
+
Success: false,
|
|
36
|
+
ResultCode: 'MISSING_CONTEXT_USER',
|
|
37
|
+
Message: 'Context user is required for Typeform API calls'
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const companyId = this.getParamValue(params.Params, 'CompanyID');
|
|
42
|
+
|
|
43
|
+
// Get secure API token
|
|
44
|
+
const apiToken = await this.getSecureAPIToken(companyId, contextUser);
|
|
45
|
+
if (!apiToken) {
|
|
46
|
+
return {
|
|
47
|
+
Success: false,
|
|
48
|
+
ResultCode: 'API_TOKEN_NOT_FOUND',
|
|
49
|
+
Message: 'Typeform API token not found. Please configure Typeform integration for this company.'
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Call Typeform API to list forms
|
|
54
|
+
const response = await fetch('https://api.typeform.com/forms', {
|
|
55
|
+
method: 'GET',
|
|
56
|
+
headers: {
|
|
57
|
+
'Authorization': `Bearer ${apiToken}`,
|
|
58
|
+
'Content-Type': 'application/json'
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
if (!response.ok) {
|
|
63
|
+
const errorText = await response.text();
|
|
64
|
+
return {
|
|
65
|
+
Success: false,
|
|
66
|
+
ResultCode: 'API_ERROR',
|
|
67
|
+
Message: `Typeform API error: ${response.status} ${response.statusText}. ${errorText}`
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const data = await response.json() as { items?: any[] };
|
|
72
|
+
const forms = data.items || [];
|
|
73
|
+
|
|
74
|
+
// Transform to a more user-friendly format
|
|
75
|
+
const transformedForms = forms.map((form: any) => ({
|
|
76
|
+
id: form.id,
|
|
77
|
+
title: form.title,
|
|
78
|
+
description: form.description || '',
|
|
79
|
+
status: form.status,
|
|
80
|
+
lastUpdatedAt: form.last_updated_at ? new Date(form.last_updated_at) : null,
|
|
81
|
+
type: form.type,
|
|
82
|
+
settings: {
|
|
83
|
+
language: form.settings?.language || 'en',
|
|
84
|
+
progress_bar: form.settings?.progress_bar || 'show',
|
|
85
|
+
show_progress_bar: form.settings?.show_progress_bar || false
|
|
86
|
+
},
|
|
87
|
+
statistics: {
|
|
88
|
+
total_responses: form.statistics?.total_responses || 0,
|
|
89
|
+
total_conversions: form.statistics?.total_conversions || 0,
|
|
90
|
+
average_completion_time: form.statistics?.average_completion_time || 0
|
|
91
|
+
}
|
|
92
|
+
}));
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
Success: true,
|
|
96
|
+
ResultCode: 'SUCCESS',
|
|
97
|
+
Message: `Successfully retrieved ${forms.length} TypeForms from Typeform API`,
|
|
98
|
+
Params: [
|
|
99
|
+
{
|
|
100
|
+
Name: 'Forms',
|
|
101
|
+
Type: 'Output',
|
|
102
|
+
Value: transformedForms
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
Name: 'TotalCount',
|
|
106
|
+
Type: 'Output',
|
|
107
|
+
Value: forms.length
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
} catch (error) {
|
|
113
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
114
|
+
return {
|
|
115
|
+
Success: false,
|
|
116
|
+
ResultCode: 'ERROR',
|
|
117
|
+
Message: this.buildFormErrorMessage('Get Typeform Forms', errorMessage, error)
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
public get Params(): ActionParam[] {
|
|
123
|
+
return [
|
|
124
|
+
{
|
|
125
|
+
Name: 'CompanyID',
|
|
126
|
+
Type: 'Input',
|
|
127
|
+
Value: null
|
|
128
|
+
}
|
|
129
|
+
];
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
public get Returns(): ActionParam[] {
|
|
133
|
+
return [
|
|
134
|
+
{
|
|
135
|
+
Name: 'Forms',
|
|
136
|
+
Type: 'Output',
|
|
137
|
+
Value: null
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
Name: 'TotalCount',
|
|
141
|
+
Type: 'Output',
|
|
142
|
+
Value: null
|
|
143
|
+
}
|
|
144
|
+
];
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function LoadGetTypeformFormsAction(): void {
|
|
149
|
+
// This function exists to prevent tree-shaking
|
|
150
|
+
// Call it from consuming packages to ensure the action is included
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
@@ -3,6 +3,7 @@ import { TypeformBaseAction } from '../typeform-base.action';
|
|
|
3
3
|
import { ActionParam, ActionResultSimple, RunActionParams } from '@memberjunction/actions-base';
|
|
4
4
|
import { BaseAction } from '@memberjunction/actions';
|
|
5
5
|
import { FormResponse } from '../../../base/base-form-builder.action';
|
|
6
|
+
import { LogStatus } from '@memberjunction/core';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Action to retrieve responses from a Typeform with comprehensive filtering options
|
|
@@ -30,7 +31,7 @@ import { FormResponse } from '../../../base/base-form-builder.action';
|
|
|
30
31
|
* });
|
|
31
32
|
* ```
|
|
32
33
|
*/
|
|
33
|
-
@RegisterClass(BaseAction, '
|
|
34
|
+
@RegisterClass(BaseAction, 'GetTypeformResponsesAction')
|
|
34
35
|
export class GetTypeformResponsesAction extends TypeformBaseAction {
|
|
35
36
|
|
|
36
37
|
public get Description(): string {
|
|
@@ -78,6 +79,16 @@ export class GetTypeformResponsesAction extends TypeformBaseAction {
|
|
|
78
79
|
let pageCount: number;
|
|
79
80
|
let responseTokens: { before?: string; after?: string } = {};
|
|
80
81
|
|
|
82
|
+
// Get form details to fetch field titles for simpleAnswers
|
|
83
|
+
let formFields: any[] = [];
|
|
84
|
+
try {
|
|
85
|
+
const formDetails = await this.getFormDetails(formId, apiToken);
|
|
86
|
+
formFields = formDetails.fields || [];
|
|
87
|
+
} catch (formError) {
|
|
88
|
+
LogStatus(`Warning: Could not fetch form details for simpleAnswers generation: ${formError.message}`);
|
|
89
|
+
// Continue without simpleAnswers - this is not a critical failure
|
|
90
|
+
}
|
|
91
|
+
|
|
81
92
|
if (getAllPages) {
|
|
82
93
|
const maxResponses = this.getParamValue(params.Params, 'MaxResponses') || 10000;
|
|
83
94
|
const tfResponses = await this.getAllTypeformResponses(formId, apiToken, {
|
|
@@ -89,7 +100,7 @@ export class GetTypeformResponsesAction extends TypeformBaseAction {
|
|
|
89
100
|
maxResponses
|
|
90
101
|
});
|
|
91
102
|
|
|
92
|
-
responses = tfResponses.map(r => this.normalizeTypeformResponse(r));
|
|
103
|
+
responses = tfResponses.map(r => this.normalizeTypeformResponse(r, formFields));
|
|
93
104
|
totalItems = responses.length;
|
|
94
105
|
pageCount = 1;
|
|
95
106
|
} else {
|
|
@@ -107,7 +118,7 @@ export class GetTypeformResponsesAction extends TypeformBaseAction {
|
|
|
107
118
|
fields: fieldsArray
|
|
108
119
|
});
|
|
109
120
|
|
|
110
|
-
responses = result.items.map(r => this.normalizeTypeformResponse(r));
|
|
121
|
+
responses = result.items.map(r => this.normalizeTypeformResponse(r, formFields));
|
|
111
122
|
totalItems = result.total_items;
|
|
112
123
|
pageCount = result.page_count;
|
|
113
124
|
|
|
@@ -142,6 +153,16 @@ export class GetTypeformResponsesAction extends TypeformBaseAction {
|
|
|
142
153
|
Name: 'Count',
|
|
143
154
|
Type: 'Output',
|
|
144
155
|
Value: responses.length
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
Name: 'AnswerDetails',
|
|
159
|
+
Type: 'Output',
|
|
160
|
+
Value: responses.map(r => r.answerDetails)
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
Name: 'Answers',
|
|
164
|
+
Type: 'Output',
|
|
165
|
+
Value: responses.map(r => r.answers)
|
|
145
166
|
}
|
|
146
167
|
];
|
|
147
168
|
|
|
@@ -240,3 +261,10 @@ export class GetTypeformResponsesAction extends TypeformBaseAction {
|
|
|
240
261
|
];
|
|
241
262
|
}
|
|
242
263
|
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Load function to prevent tree shaking
|
|
267
|
+
*/
|
|
268
|
+
export function LoadGetTypeformResponsesAction(): void {
|
|
269
|
+
// Empty function to create static code path and prevent tree shaking
|
|
270
|
+
}
|
|
@@ -2,6 +2,7 @@ import { RegisterClass } from '@memberjunction/global';
|
|
|
2
2
|
import { TypeformBaseAction } from '../typeform-base.action';
|
|
3
3
|
import { ActionParam, ActionResultSimple, RunActionParams } from '@memberjunction/actions-base';
|
|
4
4
|
import { BaseAction } from '@memberjunction/actions';
|
|
5
|
+
import { LogStatus } from '@memberjunction/core';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Action to retrieve a specific response from Typeform by response token
|
|
@@ -26,7 +27,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
26
27
|
* });
|
|
27
28
|
* ```
|
|
28
29
|
*/
|
|
29
|
-
@RegisterClass(BaseAction, '
|
|
30
|
+
@RegisterClass(BaseAction, 'GetSingleTypeformResponseAction')
|
|
30
31
|
export class GetSingleTypeformResponseAction extends TypeformBaseAction {
|
|
31
32
|
|
|
32
33
|
public get Description(): string {
|
|
@@ -67,8 +68,18 @@ export class GetSingleTypeformResponseAction extends TypeformBaseAction {
|
|
|
67
68
|
// Securely retrieve API token using company integration
|
|
68
69
|
const apiToken = await this.getSecureAPIToken(companyId, contextUser);
|
|
69
70
|
|
|
71
|
+
// Get form details to fetch field titles for simpleAnswers
|
|
72
|
+
let formFields: any[] = [];
|
|
73
|
+
try {
|
|
74
|
+
const formDetails = await this.getFormDetails(formId, apiToken);
|
|
75
|
+
formFields = formDetails.fields || [];
|
|
76
|
+
} catch (formError) {
|
|
77
|
+
LogStatus(`Warning: Could not fetch form details for simpleAnswers generation: ${formError.message}`);
|
|
78
|
+
// Continue without simpleAnswers - this is not a critical failure
|
|
79
|
+
}
|
|
80
|
+
|
|
70
81
|
const tfResponse = await this.getSingleTypeformResponse(formId, responseToken, apiToken);
|
|
71
|
-
const normalizedResponse = this.normalizeTypeformResponse(tfResponse);
|
|
82
|
+
const normalizedResponse = this.normalizeTypeformResponse(tfResponse, formFields);
|
|
72
83
|
|
|
73
84
|
const outputParams: ActionParam[] = [
|
|
74
85
|
{
|
|
@@ -91,6 +102,11 @@ export class GetSingleTypeformResponseAction extends TypeformBaseAction {
|
|
|
91
102
|
Type: 'Output',
|
|
92
103
|
Value: normalizedResponse.completed
|
|
93
104
|
},
|
|
105
|
+
{
|
|
106
|
+
Name: 'AnswerDetails',
|
|
107
|
+
Type: 'Output',
|
|
108
|
+
Value: normalizedResponse.answerDetails
|
|
109
|
+
},
|
|
94
110
|
{
|
|
95
111
|
Name: 'Answers',
|
|
96
112
|
Type: 'Output',
|
|
@@ -158,3 +174,10 @@ export class GetSingleTypeformResponseAction extends TypeformBaseAction {
|
|
|
158
174
|
];
|
|
159
175
|
}
|
|
160
176
|
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Load function to prevent tree shaking
|
|
180
|
+
*/
|
|
181
|
+
export function LoadGetSingleTypeformResponseAction(): void {
|
|
182
|
+
// Empty function to create static code path and prevent tree shaking
|
|
183
|
+
}
|
|
@@ -27,7 +27,7 @@ import { FormStatistics } from '../../../base/base-form-builder.action';
|
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
@RegisterClass(BaseAction, '
|
|
30
|
+
@RegisterClass(BaseAction, 'GetTypeformStatisticsAction')
|
|
31
31
|
export class GetTypeformStatisticsAction extends TypeformBaseAction {
|
|
32
32
|
|
|
33
33
|
public get Description(): string {
|
|
@@ -96,7 +96,7 @@ export class GetTypeformStatisticsAction extends TypeformBaseAction {
|
|
|
96
96
|
const allFieldIds = new Set<string>();
|
|
97
97
|
|
|
98
98
|
for (const response of responses) {
|
|
99
|
-
for (const answer of response.
|
|
99
|
+
for (const answer of response.answerDetails) {
|
|
100
100
|
allFieldIds.add(answer.fieldId);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -274,3 +274,10 @@ export class GetTypeformStatisticsAction extends TypeformBaseAction {
|
|
|
274
274
|
];
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Load function to prevent tree shaking
|
|
280
|
+
*/
|
|
281
|
+
export function LoadGetTypeformStatisticsAction(): void {
|
|
282
|
+
// Empty function to create static code path and prevent tree shaking
|
|
283
|
+
}
|
|
@@ -7,5 +7,36 @@ export * from './watch-new-responses.action';
|
|
|
7
7
|
|
|
8
8
|
// Typeform Form Management Actions
|
|
9
9
|
export * from './get-form.action';
|
|
10
|
+
export * from './get-forms.action';
|
|
11
|
+
export * from './get-file-content.action';
|
|
10
12
|
export * from './create-form.action';
|
|
11
13
|
export * from './update-form.action';
|
|
14
|
+
|
|
15
|
+
// Import Load functions
|
|
16
|
+
import { LoadGetTypeformResponsesAction } from './get-responses.action';
|
|
17
|
+
import { LoadGetSingleTypeformResponseAction } from './get-single-response.action';
|
|
18
|
+
import { LoadGetTypeformStatisticsAction } from './get-statistics.action';
|
|
19
|
+
import { LoadExportTypeformCSVAction } from './export-csv.action';
|
|
20
|
+
import { LoadWatchNewTypeformResponsesAction } from './watch-new-responses.action';
|
|
21
|
+
import { LoadGetTypeformAction } from './get-form.action';
|
|
22
|
+
import { LoadGetTypeformFormsAction } from './get-forms.action';
|
|
23
|
+
import { LoadTypeformGetFileContentAction } from './get-file-content.action';
|
|
24
|
+
import { LoadCreateTypeformAction } from './create-form.action';
|
|
25
|
+
import { LoadUpdateTypeformAction } from './update-form.action';
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Load all Typeform actions to prevent tree shaking.
|
|
29
|
+
* Call this function from consuming packages to ensure all action classes are included in the bundle.
|
|
30
|
+
*/
|
|
31
|
+
export function LoadAllTypeformActions(): void {
|
|
32
|
+
LoadGetTypeformResponsesAction();
|
|
33
|
+
LoadGetSingleTypeformResponseAction();
|
|
34
|
+
LoadGetTypeformStatisticsAction();
|
|
35
|
+
LoadExportTypeformCSVAction();
|
|
36
|
+
LoadWatchNewTypeformResponsesAction();
|
|
37
|
+
LoadGetTypeformAction();
|
|
38
|
+
LoadGetTypeformFormsAction();
|
|
39
|
+
LoadTypeformGetFileContentAction();
|
|
40
|
+
LoadCreateTypeformAction();
|
|
41
|
+
LoadUpdateTypeformAction();
|
|
42
|
+
}
|
|
@@ -33,7 +33,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
33
33
|
* });
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
|
-
@RegisterClass(BaseAction, '
|
|
36
|
+
@RegisterClass(BaseAction, 'UpdateTypeformAction')
|
|
37
37
|
export class UpdateTypeformAction extends TypeformBaseAction {
|
|
38
38
|
|
|
39
39
|
public get Description(): string {
|
|
@@ -233,3 +233,10 @@ export class UpdateTypeformAction extends TypeformBaseAction {
|
|
|
233
233
|
];
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Load function to prevent tree shaking
|
|
239
|
+
*/
|
|
240
|
+
export function LoadUpdateTypeformAction(): void {
|
|
241
|
+
// Empty function to create static code path and prevent tree shaking
|
|
242
|
+
}
|