@ozguraltan/strapi-content-input 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +387 -230
- package/dist/admin/AnalyticsHubPage-DNREITPq.js +637 -0
- package/dist/admin/AnalyticsHubPage-Dj4roAe0.mjs +637 -0
- package/dist/admin/{ContentInputField-figtXsYp.js → ContentInputField-2hk9xG8p.js} +5881 -4757
- package/dist/admin/{ContentInputField-B917gT8j.mjs → ContentInputField-Ko-r12jl.mjs} +5744 -4619
- package/dist/admin/SurveyWidgetEditor-B1S83aBE.mjs +7956 -0
- package/dist/admin/SurveyWidgetEditor-B3F4DE5r.js +7957 -0
- package/dist/admin/{en-D7v9nv9J.mjs → en-DnLdDKyq.mjs} +2 -1
- package/dist/admin/{en-DF-a59T_.js → en-bneQpRJa.js} +2 -1
- package/dist/admin/{index-WlNKw5Qo.js → index-B4FpXxnK.js} +43 -4
- package/dist/admin/{index-DV8S3QWG.mjs → index-gn-4eO6g.mjs} +43 -4
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/analytics/SurveyAnalyticsView.d.ts +6 -0
- package/dist/admin/src/components/widgets/ContentFormWidgetEditor.d.ts +81 -0
- package/dist/admin/src/components/widgets/EntityCardWidgetEditor.d.ts +46 -0
- package/dist/admin/src/components/widgets/SurveyWidgetEditor.d.ts +91 -0
- package/dist/admin/src/core/useStrapiLocales.d.ts +13 -0
- package/dist/admin/src/pages/AnalyticsHubPage.d.ts +3 -0
- package/dist/admin/{tr-ByHzf64V.mjs → tr-00QqO0E7.mjs} +2 -1
- package/dist/admin/{tr-SNvSmKZQ.js → tr-O0nhB9er.js} +2 -1
- package/dist/server/index.js +4148 -46
- package/dist/server/index.mjs +4148 -46
- package/dist/server/src/bootstrap.d.ts +1 -1
- package/dist/server/src/content-types/ci-form/schema.json.d.ts +77 -0
- package/dist/server/src/content-types/ci-form-submission/schema.json.d.ts +54 -0
- package/dist/server/src/content-types/ci-survey/schema.json.d.ts +111 -0
- package/dist/server/src/content-types/ci-survey-response/schema.json.d.ts +81 -0
- package/dist/server/src/content-types/index.d.ts +315 -0
- package/dist/server/src/controllers/ci-form.d.ts +17 -0
- package/dist/server/src/controllers/ci-survey.d.ts +18 -0
- package/dist/server/src/controllers/index.d.ts +31 -0
- package/dist/server/src/index.d.ts +731 -1
- package/dist/server/src/services/ci-form.d.ts +250 -0
- package/dist/server/src/services/ci-survey.d.ts +296 -0
- package/dist/server/src/services/index.d.ts +384 -0
- package/dist/server/src/utils/formValidator.d.ts +19 -0
- package/dist/server/src/utils/mailer.d.ts +41 -0
- package/dist/server/src/utils/surveyEngine.d.ts +252 -0
- package/dist/server/src/utils/surveySeedData.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { Core } from '@strapi/strapi';
|
|
2
|
+
import { CIFieldDefinition, ValidationLocale } from '../utils/formValidator';
|
|
3
|
+
import { CIMailConfig } from '../utils/mailer';
|
|
4
|
+
export declare const DEFAULT_SEED_FORMS: {
|
|
5
|
+
title: string;
|
|
6
|
+
slug: string;
|
|
7
|
+
to: string;
|
|
8
|
+
subject: string;
|
|
9
|
+
buttonLabel: {
|
|
10
|
+
tr: string;
|
|
11
|
+
en: string;
|
|
12
|
+
};
|
|
13
|
+
successMessage: {
|
|
14
|
+
tr: string;
|
|
15
|
+
en: string;
|
|
16
|
+
};
|
|
17
|
+
redirect: string;
|
|
18
|
+
hideLabels: boolean;
|
|
19
|
+
useRecaptcha: boolean;
|
|
20
|
+
recaptchaSiteKey: string;
|
|
21
|
+
recaptchaSecretKey: string;
|
|
22
|
+
mailConfig: {
|
|
23
|
+
driver: string;
|
|
24
|
+
};
|
|
25
|
+
fields: {
|
|
26
|
+
full_name: {
|
|
27
|
+
name: string;
|
|
28
|
+
field_type: string;
|
|
29
|
+
alias: {
|
|
30
|
+
tr: string;
|
|
31
|
+
en: string;
|
|
32
|
+
};
|
|
33
|
+
placeholder: {
|
|
34
|
+
tr: string;
|
|
35
|
+
en: string;
|
|
36
|
+
};
|
|
37
|
+
validation: string;
|
|
38
|
+
options: {};
|
|
39
|
+
};
|
|
40
|
+
email: {
|
|
41
|
+
name: string;
|
|
42
|
+
field_type: string;
|
|
43
|
+
alias: {
|
|
44
|
+
tr: string;
|
|
45
|
+
en: string;
|
|
46
|
+
};
|
|
47
|
+
placeholder: {
|
|
48
|
+
tr: string;
|
|
49
|
+
en: string;
|
|
50
|
+
};
|
|
51
|
+
validation: string;
|
|
52
|
+
options: {};
|
|
53
|
+
};
|
|
54
|
+
phone: {
|
|
55
|
+
name: string;
|
|
56
|
+
field_type: string;
|
|
57
|
+
alias: {
|
|
58
|
+
tr: string;
|
|
59
|
+
en: string;
|
|
60
|
+
};
|
|
61
|
+
placeholder: {
|
|
62
|
+
tr: string;
|
|
63
|
+
en: string;
|
|
64
|
+
};
|
|
65
|
+
hint: {
|
|
66
|
+
tr: string;
|
|
67
|
+
en: string;
|
|
68
|
+
};
|
|
69
|
+
validation: string;
|
|
70
|
+
options: {};
|
|
71
|
+
};
|
|
72
|
+
department: {
|
|
73
|
+
name: string;
|
|
74
|
+
field_type: string;
|
|
75
|
+
alias: {
|
|
76
|
+
tr: string;
|
|
77
|
+
en: string;
|
|
78
|
+
};
|
|
79
|
+
placeholder: {
|
|
80
|
+
tr: string;
|
|
81
|
+
en: string;
|
|
82
|
+
};
|
|
83
|
+
validation: string;
|
|
84
|
+
options: {
|
|
85
|
+
optionList: {
|
|
86
|
+
tr: string[];
|
|
87
|
+
en: string[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
priority: {
|
|
92
|
+
name: string;
|
|
93
|
+
field_type: string;
|
|
94
|
+
alias: {
|
|
95
|
+
tr: string;
|
|
96
|
+
en: string;
|
|
97
|
+
};
|
|
98
|
+
validation: string;
|
|
99
|
+
options: {
|
|
100
|
+
inline: boolean;
|
|
101
|
+
optionList: {
|
|
102
|
+
tr: string[];
|
|
103
|
+
en: string[];
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
services: {
|
|
108
|
+
name: string;
|
|
109
|
+
field_type: string;
|
|
110
|
+
alias: {
|
|
111
|
+
tr: string;
|
|
112
|
+
en: string;
|
|
113
|
+
};
|
|
114
|
+
validation: string;
|
|
115
|
+
options: {
|
|
116
|
+
optionList: {
|
|
117
|
+
tr: string[];
|
|
118
|
+
en: string[];
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
message: {
|
|
123
|
+
name: string;
|
|
124
|
+
field_type: string;
|
|
125
|
+
alias: {
|
|
126
|
+
tr: string;
|
|
127
|
+
en: string;
|
|
128
|
+
};
|
|
129
|
+
placeholder: {
|
|
130
|
+
tr: string;
|
|
131
|
+
en: string;
|
|
132
|
+
};
|
|
133
|
+
validation: string;
|
|
134
|
+
options: {
|
|
135
|
+
rows: number;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
kvkk_consent: {
|
|
139
|
+
name: string;
|
|
140
|
+
field_type: string;
|
|
141
|
+
alias: {
|
|
142
|
+
tr: string;
|
|
143
|
+
en: string;
|
|
144
|
+
};
|
|
145
|
+
validation: string;
|
|
146
|
+
options: {};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
form: {
|
|
150
|
+
_uId: string;
|
|
151
|
+
blocks: {
|
|
152
|
+
_uId: string;
|
|
153
|
+
cols: number[];
|
|
154
|
+
fields: string[];
|
|
155
|
+
}[];
|
|
156
|
+
}[];
|
|
157
|
+
}[];
|
|
158
|
+
declare const ciFormService: ({ strapi }: {
|
|
159
|
+
strapi: Core.Strapi;
|
|
160
|
+
}) => {
|
|
161
|
+
listStrapiLocales(): Promise<Array<{
|
|
162
|
+
code: string;
|
|
163
|
+
name: string;
|
|
164
|
+
isDefault: boolean;
|
|
165
|
+
}>>;
|
|
166
|
+
ensureSampleSubmissions(force?: boolean): Promise<void>;
|
|
167
|
+
ensureSeeded(): Promise<void>;
|
|
168
|
+
findRawByIdOrSlug(idOrSlug: string | number): Promise<any>;
|
|
169
|
+
findAllAdmin(): Promise<any[]>;
|
|
170
|
+
findAllPublic(): Promise<any[]>;
|
|
171
|
+
findOneAdmin(idOrSlug: string | number): Promise<any>;
|
|
172
|
+
findOnePublic(idOrSlug: string | number): Promise<any>;
|
|
173
|
+
save(payload: {
|
|
174
|
+
id?: string | number;
|
|
175
|
+
title: string;
|
|
176
|
+
slug?: string;
|
|
177
|
+
to?: string;
|
|
178
|
+
subject?: string;
|
|
179
|
+
buttonLabel?: any;
|
|
180
|
+
successMessage?: any;
|
|
181
|
+
redirect?: string;
|
|
182
|
+
hideLabels?: boolean;
|
|
183
|
+
useRecaptcha?: boolean;
|
|
184
|
+
recaptchaSiteKey?: string;
|
|
185
|
+
recaptchaSecretKey?: string;
|
|
186
|
+
mailConfig?: CIMailConfig;
|
|
187
|
+
fields?: Record<string, CIFieldDefinition>;
|
|
188
|
+
form?: any[];
|
|
189
|
+
}): Promise<any>;
|
|
190
|
+
remove(idOrDocId: string | number): Promise<{
|
|
191
|
+
success: boolean;
|
|
192
|
+
}>;
|
|
193
|
+
listSubmissions(formIdOrSlug?: string): Promise<any[]>;
|
|
194
|
+
getPublicRecaptchaConfig(): {
|
|
195
|
+
publicKey: string;
|
|
196
|
+
enabled: boolean;
|
|
197
|
+
};
|
|
198
|
+
submitForm(idOrSlug: string | number, rawBody: Record<string, any>, meta?: {
|
|
199
|
+
ip?: string;
|
|
200
|
+
userAgent?: string;
|
|
201
|
+
locale?: ValidationLocale;
|
|
202
|
+
}): Promise<{
|
|
203
|
+
ok: boolean;
|
|
204
|
+
status: number;
|
|
205
|
+
message: string;
|
|
206
|
+
errors?: undefined;
|
|
207
|
+
submissionId?: undefined;
|
|
208
|
+
redirect?: undefined;
|
|
209
|
+
mailSent?: undefined;
|
|
210
|
+
mailDriver?: undefined;
|
|
211
|
+
} | {
|
|
212
|
+
ok: boolean;
|
|
213
|
+
status: number;
|
|
214
|
+
errors: Record<string, string[]>;
|
|
215
|
+
message?: undefined;
|
|
216
|
+
submissionId?: undefined;
|
|
217
|
+
redirect?: undefined;
|
|
218
|
+
mailSent?: undefined;
|
|
219
|
+
mailDriver?: undefined;
|
|
220
|
+
} | {
|
|
221
|
+
ok: boolean;
|
|
222
|
+
status: number;
|
|
223
|
+
submissionId: any;
|
|
224
|
+
message: string;
|
|
225
|
+
redirect: any;
|
|
226
|
+
mailSent: boolean;
|
|
227
|
+
mailDriver: string;
|
|
228
|
+
errors?: undefined;
|
|
229
|
+
}>;
|
|
230
|
+
resolveEntityCard(params: {
|
|
231
|
+
uid?: string;
|
|
232
|
+
documentId?: string;
|
|
233
|
+
id?: string | number;
|
|
234
|
+
slug?: string;
|
|
235
|
+
}): Promise<{
|
|
236
|
+
id: any;
|
|
237
|
+
documentId: string;
|
|
238
|
+
uid: string;
|
|
239
|
+
collectionName: any;
|
|
240
|
+
collectionLabel: any;
|
|
241
|
+
title: string;
|
|
242
|
+
subtitle: string;
|
|
243
|
+
description: string;
|
|
244
|
+
image: any;
|
|
245
|
+
url: string;
|
|
246
|
+
slug: string;
|
|
247
|
+
publishedAt: any;
|
|
248
|
+
}>;
|
|
249
|
+
};
|
|
250
|
+
export default ciFormService;
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { Core } from '@strapi/strapi';
|
|
2
|
+
import { ValidationLocale } from '../utils/formValidator';
|
|
3
|
+
import { CISurveyAnalyticsFilter, CISurveyDefinition } from '../utils/surveyEngine';
|
|
4
|
+
declare const ciSurveyService: ({ strapi }: {
|
|
5
|
+
strapi: Core.Strapi;
|
|
6
|
+
}) => {
|
|
7
|
+
ensureSeeded(forceReseedResponses?: boolean): Promise<void>;
|
|
8
|
+
reseedSampleData(): Promise<{
|
|
9
|
+
ok: boolean;
|
|
10
|
+
totalSurveyResponses: number;
|
|
11
|
+
}>;
|
|
12
|
+
findRawByIdOrSlug(idOrSlug: string | number): Promise<any>;
|
|
13
|
+
getResponsesForSurvey(survey: any): Promise<any[]>;
|
|
14
|
+
findAllAdmin(): Promise<any[]>;
|
|
15
|
+
findOneAdmin(idOrSlug: string | number): Promise<any>;
|
|
16
|
+
findAllPublic(): Promise<any[]>;
|
|
17
|
+
findOnePublic(idOrSlug: string | number, meta?: {
|
|
18
|
+
ip?: string;
|
|
19
|
+
userAgent?: string;
|
|
20
|
+
voterToken?: string;
|
|
21
|
+
}): Promise<any>;
|
|
22
|
+
save(payload: Partial<CISurveyDefinition> & {
|
|
23
|
+
id?: string | number;
|
|
24
|
+
}): Promise<any>;
|
|
25
|
+
remove(idOrSlug: string | number): Promise<{
|
|
26
|
+
success: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
submitSurvey(idOrSlug: string | number, rawBody: Record<string, any>, meta?: {
|
|
29
|
+
ip?: string;
|
|
30
|
+
userAgent?: string;
|
|
31
|
+
locale?: ValidationLocale;
|
|
32
|
+
}): Promise<{
|
|
33
|
+
ok: boolean;
|
|
34
|
+
status: number;
|
|
35
|
+
message: string;
|
|
36
|
+
closedReason?: undefined;
|
|
37
|
+
alreadyVoted?: undefined;
|
|
38
|
+
publicResults?: undefined;
|
|
39
|
+
errors?: undefined;
|
|
40
|
+
responseId?: undefined;
|
|
41
|
+
thankYouTitle?: undefined;
|
|
42
|
+
redirectUrl?: undefined;
|
|
43
|
+
} | {
|
|
44
|
+
ok: boolean;
|
|
45
|
+
status: number;
|
|
46
|
+
closedReason: "draft" | "closed" | "not_started" | "expired" | "quota_reached";
|
|
47
|
+
message: string;
|
|
48
|
+
alreadyVoted?: undefined;
|
|
49
|
+
publicResults?: undefined;
|
|
50
|
+
errors?: undefined;
|
|
51
|
+
responseId?: undefined;
|
|
52
|
+
thankYouTitle?: undefined;
|
|
53
|
+
redirectUrl?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
ok: boolean;
|
|
56
|
+
status: number;
|
|
57
|
+
alreadyVoted: boolean;
|
|
58
|
+
message: string;
|
|
59
|
+
publicResults: {
|
|
60
|
+
totalResponses: number;
|
|
61
|
+
questions: {
|
|
62
|
+
key: any;
|
|
63
|
+
type: any;
|
|
64
|
+
title: any;
|
|
65
|
+
answeredCount: any;
|
|
66
|
+
optionsBreakdown: any;
|
|
67
|
+
average: any;
|
|
68
|
+
distribution: any;
|
|
69
|
+
npsBreakdown: any;
|
|
70
|
+
rankingBreakdown: any;
|
|
71
|
+
}[];
|
|
72
|
+
};
|
|
73
|
+
closedReason?: undefined;
|
|
74
|
+
errors?: undefined;
|
|
75
|
+
responseId?: undefined;
|
|
76
|
+
thankYouTitle?: undefined;
|
|
77
|
+
redirectUrl?: undefined;
|
|
78
|
+
} | {
|
|
79
|
+
ok: boolean;
|
|
80
|
+
status: number;
|
|
81
|
+
alreadyVoted: boolean;
|
|
82
|
+
message: string;
|
|
83
|
+
closedReason?: undefined;
|
|
84
|
+
publicResults?: undefined;
|
|
85
|
+
errors?: undefined;
|
|
86
|
+
responseId?: undefined;
|
|
87
|
+
thankYouTitle?: undefined;
|
|
88
|
+
redirectUrl?: undefined;
|
|
89
|
+
} | {
|
|
90
|
+
ok: boolean;
|
|
91
|
+
status: number;
|
|
92
|
+
errors: Record<string, string[]>;
|
|
93
|
+
message?: undefined;
|
|
94
|
+
closedReason?: undefined;
|
|
95
|
+
alreadyVoted?: undefined;
|
|
96
|
+
publicResults?: undefined;
|
|
97
|
+
responseId?: undefined;
|
|
98
|
+
thankYouTitle?: undefined;
|
|
99
|
+
redirectUrl?: undefined;
|
|
100
|
+
} | {
|
|
101
|
+
ok: boolean;
|
|
102
|
+
status: number;
|
|
103
|
+
responseId: any;
|
|
104
|
+
thankYouTitle: string;
|
|
105
|
+
message: string;
|
|
106
|
+
redirectUrl: any;
|
|
107
|
+
publicResults: {
|
|
108
|
+
totalResponses: number;
|
|
109
|
+
questions: {
|
|
110
|
+
key: any;
|
|
111
|
+
type: any;
|
|
112
|
+
title: any;
|
|
113
|
+
answeredCount: any;
|
|
114
|
+
optionsBreakdown: any;
|
|
115
|
+
average: any;
|
|
116
|
+
distribution: any;
|
|
117
|
+
npsBreakdown: any;
|
|
118
|
+
rankingBreakdown: any;
|
|
119
|
+
}[];
|
|
120
|
+
};
|
|
121
|
+
closedReason?: undefined;
|
|
122
|
+
alreadyVoted?: undefined;
|
|
123
|
+
errors?: undefined;
|
|
124
|
+
}>;
|
|
125
|
+
getPublicResults(idOrSlug: string | number): Promise<{
|
|
126
|
+
ok: boolean;
|
|
127
|
+
status: number;
|
|
128
|
+
message: string;
|
|
129
|
+
data?: undefined;
|
|
130
|
+
} | {
|
|
131
|
+
ok: boolean;
|
|
132
|
+
status: number;
|
|
133
|
+
data: {
|
|
134
|
+
totalResponses: number;
|
|
135
|
+
questions: {
|
|
136
|
+
key: any;
|
|
137
|
+
type: any;
|
|
138
|
+
title: any;
|
|
139
|
+
answeredCount: any;
|
|
140
|
+
optionsBreakdown: any;
|
|
141
|
+
average: any;
|
|
142
|
+
distribution: any;
|
|
143
|
+
npsBreakdown: any;
|
|
144
|
+
rankingBreakdown: any;
|
|
145
|
+
}[];
|
|
146
|
+
};
|
|
147
|
+
message?: undefined;
|
|
148
|
+
}>;
|
|
149
|
+
getAnalytics(idOrSlug: string | number, filter?: CISurveyAnalyticsFilter): Promise<{
|
|
150
|
+
summary: {
|
|
151
|
+
totalResponses: number;
|
|
152
|
+
unfilteredTotalResponses: number;
|
|
153
|
+
quotaLimit: number;
|
|
154
|
+
quotaPercentage: number;
|
|
155
|
+
avgDurationSeconds: number;
|
|
156
|
+
medianDurationSeconds: number;
|
|
157
|
+
lastSubmittedAt: string;
|
|
158
|
+
localeBreakdown: {
|
|
159
|
+
locale: string;
|
|
160
|
+
count: number;
|
|
161
|
+
percentage: number;
|
|
162
|
+
}[];
|
|
163
|
+
dailyTrend: {
|
|
164
|
+
date: string;
|
|
165
|
+
count: number;
|
|
166
|
+
}[];
|
|
167
|
+
nps: {
|
|
168
|
+
hasNps: boolean;
|
|
169
|
+
score: number;
|
|
170
|
+
promoters: number;
|
|
171
|
+
passives: number;
|
|
172
|
+
detractors: number;
|
|
173
|
+
promotersPct: number;
|
|
174
|
+
passivesPct: number;
|
|
175
|
+
detractorsPct: number;
|
|
176
|
+
totalNpsResponses: number;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
questionStats: ({
|
|
180
|
+
answeredCount: number;
|
|
181
|
+
optionsBreakdown: {
|
|
182
|
+
id: string;
|
|
183
|
+
labels: Record<string, string>;
|
|
184
|
+
image: any;
|
|
185
|
+
count: number;
|
|
186
|
+
percentage: number;
|
|
187
|
+
}[];
|
|
188
|
+
otherSamples: {
|
|
189
|
+
text: string;
|
|
190
|
+
locale: string;
|
|
191
|
+
submittedAt: string;
|
|
192
|
+
}[];
|
|
193
|
+
key: string;
|
|
194
|
+
type: import('../utils/surveyEngine').CISurveyQuestionType;
|
|
195
|
+
title: string | Record<string, string>;
|
|
196
|
+
required: boolean;
|
|
197
|
+
hasConditions: boolean;
|
|
198
|
+
} | {
|
|
199
|
+
answeredCount: number;
|
|
200
|
+
min: number;
|
|
201
|
+
max: number;
|
|
202
|
+
lowLabel: string | Record<string, string>;
|
|
203
|
+
highLabel: string | Record<string, string>;
|
|
204
|
+
average: number;
|
|
205
|
+
distribution: {
|
|
206
|
+
value: number;
|
|
207
|
+
count: number;
|
|
208
|
+
percentage: number;
|
|
209
|
+
}[];
|
|
210
|
+
npsBreakdown: {
|
|
211
|
+
score: number;
|
|
212
|
+
promoters: number;
|
|
213
|
+
passives: number;
|
|
214
|
+
detractors: number;
|
|
215
|
+
promotersPct: number;
|
|
216
|
+
passivesPct: number;
|
|
217
|
+
detractorsPct: number;
|
|
218
|
+
};
|
|
219
|
+
key: string;
|
|
220
|
+
type: import('../utils/surveyEngine').CISurveyQuestionType;
|
|
221
|
+
title: string | Record<string, string>;
|
|
222
|
+
required: boolean;
|
|
223
|
+
hasConditions: boolean;
|
|
224
|
+
} | {
|
|
225
|
+
answeredCount: number;
|
|
226
|
+
rowsBreakdown: {
|
|
227
|
+
rowId: string;
|
|
228
|
+
labels: Record<string, string>;
|
|
229
|
+
total: number;
|
|
230
|
+
columns: {
|
|
231
|
+
colId: string;
|
|
232
|
+
labels: Record<string, string>;
|
|
233
|
+
count: number;
|
|
234
|
+
percentage: number;
|
|
235
|
+
}[];
|
|
236
|
+
}[];
|
|
237
|
+
key: string;
|
|
238
|
+
type: import('../utils/surveyEngine').CISurveyQuestionType;
|
|
239
|
+
title: string | Record<string, string>;
|
|
240
|
+
required: boolean;
|
|
241
|
+
hasConditions: boolean;
|
|
242
|
+
} | {
|
|
243
|
+
answeredCount: number;
|
|
244
|
+
rankingBreakdown: {
|
|
245
|
+
id: string;
|
|
246
|
+
labels: Record<string, string>;
|
|
247
|
+
averageRank: number;
|
|
248
|
+
bordaPoints: number;
|
|
249
|
+
scorePercentage: number;
|
|
250
|
+
firstPlaceCount: number;
|
|
251
|
+
firstPlacePercentage: number;
|
|
252
|
+
}[];
|
|
253
|
+
key: string;
|
|
254
|
+
type: import('../utils/surveyEngine').CISurveyQuestionType;
|
|
255
|
+
title: string | Record<string, string>;
|
|
256
|
+
required: boolean;
|
|
257
|
+
hasConditions: boolean;
|
|
258
|
+
} | {
|
|
259
|
+
answeredCount: number;
|
|
260
|
+
acceptedCount: number;
|
|
261
|
+
acceptedPercentage: number;
|
|
262
|
+
key: string;
|
|
263
|
+
type: import('../utils/surveyEngine').CISurveyQuestionType;
|
|
264
|
+
title: string | Record<string, string>;
|
|
265
|
+
required: boolean;
|
|
266
|
+
hasConditions: boolean;
|
|
267
|
+
} | {
|
|
268
|
+
answeredCount: number;
|
|
269
|
+
textResponses: {
|
|
270
|
+
id: any;
|
|
271
|
+
text: string;
|
|
272
|
+
locale: string;
|
|
273
|
+
submittedAt: string;
|
|
274
|
+
npsValue?: number | null;
|
|
275
|
+
}[];
|
|
276
|
+
key: string;
|
|
277
|
+
type: import('../utils/surveyEngine').CISurveyQuestionType;
|
|
278
|
+
title: string | Record<string, string>;
|
|
279
|
+
required: boolean;
|
|
280
|
+
hasConditions: boolean;
|
|
281
|
+
})[];
|
|
282
|
+
survey: any;
|
|
283
|
+
}>;
|
|
284
|
+
listResponses(idOrSlug: string | number, limit?: number): Promise<any>;
|
|
285
|
+
exportResponses(idOrSlug: string | number, options?: {
|
|
286
|
+
format?: "csv" | "json";
|
|
287
|
+
locale?: ValidationLocale;
|
|
288
|
+
from?: string;
|
|
289
|
+
to?: string;
|
|
290
|
+
}): Promise<{
|
|
291
|
+
filename: string;
|
|
292
|
+
contentType: string;
|
|
293
|
+
body: string;
|
|
294
|
+
}>;
|
|
295
|
+
};
|
|
296
|
+
export default ciSurveyService;
|