@contrail/entity-types 1.1.55-1 → 1.1.55-10
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 +23 -2
- package/lib/loader.js +9 -1
- package/package.json +2 -2
package/lib/loader.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LogLevel } from
|
|
2
|
-
import { OrgManagedEntity } from
|
|
1
|
+
import { LogLevel } from "./log-level";
|
|
2
|
+
import { OrgManagedEntity } from "./org-managed-entity";
|
|
3
3
|
export declare class ColumnDefinition {
|
|
4
4
|
fromProperty?: string;
|
|
5
5
|
toProperty: string;
|
|
@@ -50,6 +50,19 @@ export interface LoadResult {
|
|
|
50
50
|
projectItemsLoadResult?: ProjectItemsLoadResult;
|
|
51
51
|
assortmentItemsLoadResult?: AssortmentItemsLoadResult;
|
|
52
52
|
transformErrors: any[];
|
|
53
|
+
transformWarnings?: any[];
|
|
54
|
+
generalErrors?: GeneralIssueDetails[];
|
|
55
|
+
generalWarnings?: GeneralIssueDetails[];
|
|
56
|
+
failureArea?: LoaderFailureArea;
|
|
57
|
+
preprocessingStepResults: PreProcessingStep[];
|
|
58
|
+
systemErrors: GeneralIssueDetails[];
|
|
59
|
+
systemWarnings: GeneralIssueDetails[];
|
|
60
|
+
}
|
|
61
|
+
export interface PreProcessingStep {
|
|
62
|
+
preprocessingStepName: string;
|
|
63
|
+
numberOfWarnings: Number;
|
|
64
|
+
fileId: string;
|
|
65
|
+
numberOfErrors: Number;
|
|
53
66
|
}
|
|
54
67
|
export interface RowLoadError {
|
|
55
68
|
data: any;
|
|
@@ -77,6 +90,7 @@ export interface ColumnIssueDetails {
|
|
|
77
90
|
columnName: string;
|
|
78
91
|
message: string;
|
|
79
92
|
issueType: IssueType;
|
|
93
|
+
data: string;
|
|
80
94
|
}
|
|
81
95
|
export interface GeneralIssueDetails {
|
|
82
96
|
message: string;
|
|
@@ -175,3 +189,10 @@ export declare enum IssueType {
|
|
|
175
189
|
HEADER_MISMATCH = "HEADER_MISMATCH",
|
|
176
190
|
VALIDATION_ERROR = "VALIDATION_ERROR"
|
|
177
191
|
}
|
|
192
|
+
export declare enum LoaderFailureArea {
|
|
193
|
+
PARSING_CSV = "PARSING_CSV",
|
|
194
|
+
TRANSFORMING_DATA = "TRANSFORMING_DATA",
|
|
195
|
+
UPLOADING_DATA = "UPLOADING_DATA",
|
|
196
|
+
VALIDATING_DATA = "VALIDATING_DATA",
|
|
197
|
+
NONE = "NONE"
|
|
198
|
+
}
|
package/lib/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IssueType = exports.LoaderProcess = exports.LoadType = exports.LoadStatus = exports.ValueToAssortment = exports.AssortmentSplit = exports.ConditionalValues = exports.ColumnDefinition = void 0;
|
|
3
|
+
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;
|
|
@@ -92,3 +92,11 @@ var IssueType;
|
|
|
92
92
|
IssueType["HEADER_MISMATCH"] = "HEADER_MISMATCH";
|
|
93
93
|
IssueType["VALIDATION_ERROR"] = "VALIDATION_ERROR";
|
|
94
94
|
})(IssueType = exports.IssueType || (exports.IssueType = {}));
|
|
95
|
+
var LoaderFailureArea;
|
|
96
|
+
(function (LoaderFailureArea) {
|
|
97
|
+
LoaderFailureArea["PARSING_CSV"] = "PARSING_CSV";
|
|
98
|
+
LoaderFailureArea["TRANSFORMING_DATA"] = "TRANSFORMING_DATA";
|
|
99
|
+
LoaderFailureArea["UPLOADING_DATA"] = "UPLOADING_DATA";
|
|
100
|
+
LoaderFailureArea["VALIDATING_DATA"] = "VALIDATING_DATA";
|
|
101
|
+
LoaderFailureArea["NONE"] = "NONE";
|
|
102
|
+
})(LoaderFailureArea = exports.LoaderFailureArea || (exports.LoaderFailureArea = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrail/entity-types",
|
|
3
|
-
"version": "1.1.55-
|
|
3
|
+
"version": "1.1.55-10",
|
|
4
4
|
"description": "A types library for Vibeiq entities.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -23,4 +23,4 @@
|
|
|
23
23
|
"typedoc-plugin-extras": "^3.0.0",
|
|
24
24
|
"typescript": "^4.2"
|
|
25
25
|
}
|
|
26
|
-
}
|
|
26
|
+
}
|