@contrail/entity-types 1.1.55-1 → 1.1.55-11
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 +16 -3
- package/lib/loader.js +10 -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,11 @@ 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
|
+
systemErrors: GeneralIssueDetails[];
|
|
57
|
+
failureArea?: LoaderFailureArea;
|
|
53
58
|
}
|
|
54
59
|
export interface RowLoadError {
|
|
55
60
|
data: any;
|
|
@@ -77,11 +82,11 @@ export interface ColumnIssueDetails {
|
|
|
77
82
|
columnName: string;
|
|
78
83
|
message: string;
|
|
79
84
|
issueType: IssueType;
|
|
85
|
+
data: string;
|
|
80
86
|
}
|
|
81
87
|
export interface GeneralIssueDetails {
|
|
82
88
|
message: string;
|
|
83
89
|
issueType: IssueType;
|
|
84
|
-
issueKey?: string;
|
|
85
90
|
}
|
|
86
91
|
export interface GeneralLoadResult {
|
|
87
92
|
errors?: ProcessingIssues[];
|
|
@@ -168,6 +173,7 @@ export declare class LoaderProcess implements OrgManagedEntity {
|
|
|
168
173
|
messageGroupId?: string;
|
|
169
174
|
}
|
|
170
175
|
export declare enum IssueType {
|
|
176
|
+
CONFIG = "CONFIG",
|
|
171
177
|
INVALID_DATA = "INVALID_DATA",
|
|
172
178
|
MISSING_DATA = "MISSING_DATA",
|
|
173
179
|
DUPLICATE_FEDERATED_ID = "DUPLICATE_FEDERATED_ID",
|
|
@@ -175,3 +181,10 @@ export declare enum IssueType {
|
|
|
175
181
|
HEADER_MISMATCH = "HEADER_MISMATCH",
|
|
176
182
|
VALIDATION_ERROR = "VALIDATION_ERROR"
|
|
177
183
|
}
|
|
184
|
+
export declare enum LoaderFailureArea {
|
|
185
|
+
PARSING_CSV = "PARSING_CSV",
|
|
186
|
+
TRANSFORMING_DATA = "TRANSFORMING_DATA",
|
|
187
|
+
UPLOADING_DATA = "UPLOADING_DATA",
|
|
188
|
+
VALIDATING_DATA = "VALIDATING_DATA",
|
|
189
|
+
NONE = "NONE"
|
|
190
|
+
}
|
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;
|
|
@@ -85,6 +85,7 @@ class LoaderProcess {
|
|
|
85
85
|
exports.LoaderProcess = LoaderProcess;
|
|
86
86
|
var IssueType;
|
|
87
87
|
(function (IssueType) {
|
|
88
|
+
IssueType["CONFIG"] = "CONFIG";
|
|
88
89
|
IssueType["INVALID_DATA"] = "INVALID_DATA";
|
|
89
90
|
IssueType["MISSING_DATA"] = "MISSING_DATA";
|
|
90
91
|
IssueType["DUPLICATE_FEDERATED_ID"] = "DUPLICATE_FEDERATED_ID";
|
|
@@ -92,3 +93,11 @@ var IssueType;
|
|
|
92
93
|
IssueType["HEADER_MISMATCH"] = "HEADER_MISMATCH";
|
|
93
94
|
IssueType["VALIDATION_ERROR"] = "VALIDATION_ERROR";
|
|
94
95
|
})(IssueType = exports.IssueType || (exports.IssueType = {}));
|
|
96
|
+
var LoaderFailureArea;
|
|
97
|
+
(function (LoaderFailureArea) {
|
|
98
|
+
LoaderFailureArea["PARSING_CSV"] = "PARSING_CSV";
|
|
99
|
+
LoaderFailureArea["TRANSFORMING_DATA"] = "TRANSFORMING_DATA";
|
|
100
|
+
LoaderFailureArea["UPLOADING_DATA"] = "UPLOADING_DATA";
|
|
101
|
+
LoaderFailureArea["VALIDATING_DATA"] = "VALIDATING_DATA";
|
|
102
|
+
LoaderFailureArea["NONE"] = "NONE";
|
|
103
|
+
})(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-11",
|
|
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
|
+
}
|