@ozguraltan/strapi-content-input 1.0.22 → 1.0.23

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.
@@ -330,6 +330,7 @@ declare const _default: {
330
330
  optionsBreakdown: any;
331
331
  average: any;
332
332
  distribution: any;
333
+ scaleLabels: any;
333
334
  npsBreakdown: any;
334
335
  rankingBreakdown: any;
335
336
  }[];
@@ -378,6 +379,7 @@ declare const _default: {
378
379
  optionsBreakdown: any;
379
380
  average: any;
380
381
  distribution: any;
382
+ scaleLabels: any;
381
383
  npsBreakdown: any;
382
384
  rankingBreakdown: any;
383
385
  }[];
@@ -404,6 +406,7 @@ declare const _default: {
404
406
  optionsBreakdown: any;
405
407
  average: any;
406
408
  distribution: any;
409
+ scaleLabels: any;
407
410
  npsBreakdown: any;
408
411
  rankingBreakdown: any;
409
412
  }[];
@@ -465,9 +468,11 @@ declare const _default: {
465
468
  max: number;
466
469
  lowLabel: string | Record<string, string>;
467
470
  highLabel: string | Record<string, string>;
471
+ scaleLabels: Record<string, string | Record<string, string>>;
468
472
  average: number;
469
473
  distribution: {
470
474
  value: number;
475
+ labels: string | Record<string, string>;
471
476
  count: number;
472
477
  percentage: number;
473
478
  }[];
@@ -547,11 +552,15 @@ declare const _default: {
547
552
  }>;
548
553
  listResponses(idOrSlug: string | number, limit?: number): Promise<any>;
549
554
  exportResponses(idOrSlug: string | number, options?: {
550
- format?: "csv" | "json";
555
+ format?: "xlsx" | "csv" | "json";
551
556
  locale?: import('./utils/formValidator').ValidationLocale;
552
557
  from?: string;
553
558
  to?: string;
554
559
  }): Promise<{
560
+ filename: string;
561
+ contentType: string;
562
+ body: Buffer<ArrayBufferLike>;
563
+ } | {
555
564
  filename: string;
556
565
  contentType: string;
557
566
  body: string;
@@ -66,6 +66,7 @@ declare const ciSurveyService: ({ strapi }: {
66
66
  optionsBreakdown: any;
67
67
  average: any;
68
68
  distribution: any;
69
+ scaleLabels: any;
69
70
  npsBreakdown: any;
70
71
  rankingBreakdown: any;
71
72
  }[];
@@ -114,6 +115,7 @@ declare const ciSurveyService: ({ strapi }: {
114
115
  optionsBreakdown: any;
115
116
  average: any;
116
117
  distribution: any;
118
+ scaleLabels: any;
117
119
  npsBreakdown: any;
118
120
  rankingBreakdown: any;
119
121
  }[];
@@ -140,6 +142,7 @@ declare const ciSurveyService: ({ strapi }: {
140
142
  optionsBreakdown: any;
141
143
  average: any;
142
144
  distribution: any;
145
+ scaleLabels: any;
143
146
  npsBreakdown: any;
144
147
  rankingBreakdown: any;
145
148
  }[];
@@ -201,9 +204,11 @@ declare const ciSurveyService: ({ strapi }: {
201
204
  max: number;
202
205
  lowLabel: string | Record<string, string>;
203
206
  highLabel: string | Record<string, string>;
207
+ scaleLabels: Record<string, string | Record<string, string>>;
204
208
  average: number;
205
209
  distribution: {
206
210
  value: number;
211
+ labels: string | Record<string, string>;
207
212
  count: number;
208
213
  percentage: number;
209
214
  }[];
@@ -283,11 +288,15 @@ declare const ciSurveyService: ({ strapi }: {
283
288
  }>;
284
289
  listResponses(idOrSlug: string | number, limit?: number): Promise<any>;
285
290
  exportResponses(idOrSlug: string | number, options?: {
286
- format?: "csv" | "json";
291
+ format?: "xlsx" | "csv" | "json";
287
292
  locale?: ValidationLocale;
288
293
  from?: string;
289
294
  to?: string;
290
295
  }): Promise<{
296
+ filename: string;
297
+ contentType: string;
298
+ body: Buffer<ArrayBufferLike>;
299
+ } | {
291
300
  filename: string;
292
301
  contentType: string;
293
302
  body: string;
@@ -204,6 +204,7 @@ declare const _default: {
204
204
  optionsBreakdown: any;
205
205
  average: any;
206
206
  distribution: any;
207
+ scaleLabels: any;
207
208
  npsBreakdown: any;
208
209
  rankingBreakdown: any;
209
210
  }[];
@@ -252,6 +253,7 @@ declare const _default: {
252
253
  optionsBreakdown: any;
253
254
  average: any;
254
255
  distribution: any;
256
+ scaleLabels: any;
255
257
  npsBreakdown: any;
256
258
  rankingBreakdown: any;
257
259
  }[];
@@ -278,6 +280,7 @@ declare const _default: {
278
280
  optionsBreakdown: any;
279
281
  average: any;
280
282
  distribution: any;
283
+ scaleLabels: any;
281
284
  npsBreakdown: any;
282
285
  rankingBreakdown: any;
283
286
  }[];
@@ -339,9 +342,11 @@ declare const _default: {
339
342
  max: number;
340
343
  lowLabel: string | Record<string, string>;
341
344
  highLabel: string | Record<string, string>;
345
+ scaleLabels: Record<string, string | Record<string, string>>;
342
346
  average: number;
343
347
  distribution: {
344
348
  value: number;
349
+ labels: string | Record<string, string>;
345
350
  count: number;
346
351
  percentage: number;
347
352
  }[];
@@ -421,11 +426,15 @@ declare const _default: {
421
426
  }>;
422
427
  listResponses(idOrSlug: string | number, limit?: number): Promise<any>;
423
428
  exportResponses(idOrSlug: string | number, options?: {
424
- format?: "csv" | "json";
429
+ format?: "xlsx" | "csv" | "json";
425
430
  locale?: import('../utils/formValidator').ValidationLocale;
426
431
  from?: string;
427
432
  to?: string;
428
433
  }): Promise<{
434
+ filename: string;
435
+ contentType: string;
436
+ body: Buffer<ArrayBufferLike>;
437
+ } | {
429
438
  filename: string;
430
439
  contentType: string;
431
440
  body: string;
@@ -41,6 +41,7 @@ export interface CISurveyQuestion {
41
41
  scaleMax?: number;
42
42
  lowLabel?: Record<string, string> | string;
43
43
  highLabel?: Record<string, string> | string;
44
+ scaleLabels?: Record<string, Record<string, string> | string>;
44
45
  options?: CISurveyOption[];
45
46
  matrixRows?: CISurveyOption[];
46
47
  matrixColumns?: CISurveyOption[];
@@ -156,9 +157,11 @@ export declare function computeSurveyAnalytics(survey: CISurveyDefinition, rawRe
156
157
  max: number;
157
158
  lowLabel: string | Record<string, string>;
158
159
  highLabel: string | Record<string, string>;
160
+ scaleLabels: Record<string, string | Record<string, string>>;
159
161
  average: number;
160
162
  distribution: {
161
163
  value: number;
164
+ labels: string | Record<string, string>;
162
165
  count: number;
163
166
  percentage: number;
164
167
  }[];
@@ -245,8 +248,10 @@ export declare function computePublicSurveyResults(survey: CISurveyDefinition, r
245
248
  optionsBreakdown: any;
246
249
  average: any;
247
250
  distribution: any;
251
+ scaleLabels: any;
248
252
  npsBreakdown: any;
249
253
  rankingBreakdown: any;
250
254
  }[];
251
255
  };
252
256
  export declare function exportSurveyResponsesToCsv(survey: CISurveyDefinition, rawResponses: any[], locale?: ValidationLocale): string;
257
+ export declare function exportSurveyResponsesToXlsxBuffer(survey: CISurveyDefinition, rawResponses: any[], locale?: ValidationLocale): Buffer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozguraltan/strapi-content-input",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Locomotive CMS ContentInput visual page/content builder ported to Strapi v5 as a native JSONB Custom Field plugin.",
5
5
  "license": "MIT",
6
6
  "author": "Ozgur Altan <ozguraltan05@gmail.com>",