fuse-importer 0.0.9-testing → 0.1.1-testing

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.
@@ -80,7 +80,7 @@ export default {
80
80
  tooltip: "Exporta tus datos",
81
81
  },
82
82
  transformed_records: {
83
- auto_corrections_done: "correcciones automáticas realizadas",
83
+ auto_corrections_done: "celdas corregidas automáticamente",
84
84
  example: "Ejemplo",
85
85
  auto_corrections_amount: "Hemos corregido automáticamente {{amount}} problemas.",
86
86
  },
@@ -80,7 +80,7 @@ export default {
80
80
  tooltip: "Exporter vos données",
81
81
  },
82
82
  transformed_records: {
83
- auto_corrections_done: "corrections automatiques effectuées",
83
+ auto_corrections_done: "cellules corrigées automatiquement",
84
84
  example: "Exemple",
85
85
  auto_corrections_amount: "Nous avons corrigé automatiquement {{amount}} problèmes.",
86
86
  },
@@ -65,11 +65,12 @@ export type RowValidationError = {
65
65
  export type BatchValidationErrors = {
66
66
  [rowId: string]: ValidationErrors;
67
67
  };
68
+ export type TransformedObj = {
69
+ original: any;
70
+ transformed: any;
71
+ };
68
72
  export type TransformedRecord = {
69
- [recordName: string]: {
70
- original: any;
71
- transformed: any;
72
- };
73
+ [recordName: string]: TransformedObj;
73
74
  };
74
75
  export type AppResponse = {
75
76
  recordsToDisplay?: Record[];
@@ -10,3 +10,4 @@ export declare const getDefaultValidations: (columnType: string) => {
10
10
  validation_type: any;
11
11
  message: string;
12
12
  }[];
13
+ export declare const truncateString: (str: string, maxLength?: number) => string;
@@ -35,3 +35,7 @@ export var getDefaultValidations = function (columnType) {
35
35
  return [];
36
36
  }
37
37
  };
38
+ export var truncateString = function (str, maxLength) {
39
+ if (maxLength === void 0) { maxLength = 10; }
40
+ return (str === null || str === void 0 ? void 0 : str.length) > maxLength ? "".concat(str === null || str === void 0 ? void 0 : str.slice(0, maxLength), "...") : str;
41
+ };