@contrail/entity-types 1.5.5-alpha.1 → 1.5.5-alpha.3
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/lib/loader.d.ts +11 -3
- package/lib/loader.js +7 -1
- package/package.json +1 -1
package/lib/loader.d.ts
CHANGED
|
@@ -198,10 +198,19 @@ export declare enum PreValidationSeverity {
|
|
|
198
198
|
WARNING = "warning",
|
|
199
199
|
INFO = "info"
|
|
200
200
|
}
|
|
201
|
+
export declare enum SuggestedFixType {
|
|
202
|
+
ADD_OPTION_SET_VALUES = "add-option-set-values",
|
|
203
|
+
REPLACE_VALUES = "replace-values",
|
|
204
|
+
CHANGE_SEPARATOR = "change-separator"
|
|
205
|
+
}
|
|
201
206
|
export interface SuggestedFix {
|
|
202
|
-
type:
|
|
207
|
+
type: SuggestedFixType;
|
|
203
208
|
details: Record<string, any>;
|
|
204
209
|
}
|
|
210
|
+
export interface AffectedRow {
|
|
211
|
+
row: number;
|
|
212
|
+
value: string;
|
|
213
|
+
}
|
|
205
214
|
export interface PreValidationIssue {
|
|
206
215
|
severity: PreValidationSeverity;
|
|
207
216
|
category: PreValidationCategory;
|
|
@@ -209,8 +218,7 @@ export interface PreValidationIssue {
|
|
|
209
218
|
propertySlug: string;
|
|
210
219
|
propertyType: string;
|
|
211
220
|
message: string;
|
|
212
|
-
affectedRows:
|
|
213
|
-
affectedValues: string[];
|
|
221
|
+
affectedRows: AffectedRow[];
|
|
214
222
|
suggestedFix?: SuggestedFix;
|
|
215
223
|
}
|
|
216
224
|
export interface PreValidationSummary {
|
package/lib/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PreValidationSeverity = exports.PreValidationCategory = exports.EntityType = exports.LoaderFailureArea = exports.IssueType = exports.LoaderProcess = exports.LoadType = exports.LoadStatus = exports.ValueToAssortment = exports.AssortmentSplit = exports.ConditionalValues = exports.ColumnDefinition = void 0;
|
|
3
|
+
exports.SuggestedFixType = exports.PreValidationSeverity = exports.PreValidationCategory = exports.EntityType = exports.LoaderFailureArea = exports.IssueType = exports.LoaderProcess = exports.LoadType = exports.LoadStatus = exports.ValueToAssortment = exports.AssortmentSplit = exports.ConditionalValues = exports.ColumnDefinition = void 0;
|
|
4
4
|
class ColumnDefinition {
|
|
5
5
|
fromProperty;
|
|
6
6
|
toProperty;
|
|
@@ -126,3 +126,9 @@ var PreValidationSeverity;
|
|
|
126
126
|
PreValidationSeverity["WARNING"] = "warning";
|
|
127
127
|
PreValidationSeverity["INFO"] = "info";
|
|
128
128
|
})(PreValidationSeverity = exports.PreValidationSeverity || (exports.PreValidationSeverity = {}));
|
|
129
|
+
var SuggestedFixType;
|
|
130
|
+
(function (SuggestedFixType) {
|
|
131
|
+
SuggestedFixType["ADD_OPTION_SET_VALUES"] = "add-option-set-values";
|
|
132
|
+
SuggestedFixType["REPLACE_VALUES"] = "replace-values";
|
|
133
|
+
SuggestedFixType["CHANGE_SEPARATOR"] = "change-separator";
|
|
134
|
+
})(SuggestedFixType = exports.SuggestedFixType || (exports.SuggestedFixType = {}));
|