@contrail/entity-types 1.1.54 → 1.1.55-1
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 +31 -4
- package/lib/loader.js +10 -1
- package/package.json +1 -1
package/lib/loader.d.ts
CHANGED
|
@@ -69,7 +69,26 @@ export interface LoaderNumbersSummary {
|
|
|
69
69
|
numberColorsFailed: number;
|
|
70
70
|
numberImagesFailed: number;
|
|
71
71
|
}
|
|
72
|
-
export interface
|
|
72
|
+
export interface ProcessingIssues {
|
|
73
|
+
rowNumber: number;
|
|
74
|
+
columnIssues: ColumnIssueDetails[];
|
|
75
|
+
}
|
|
76
|
+
export interface ColumnIssueDetails {
|
|
77
|
+
columnName: string;
|
|
78
|
+
message: string;
|
|
79
|
+
issueType: IssueType;
|
|
80
|
+
}
|
|
81
|
+
export interface GeneralIssueDetails {
|
|
82
|
+
message: string;
|
|
83
|
+
issueType: IssueType;
|
|
84
|
+
issueKey?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface GeneralLoadResult {
|
|
87
|
+
errors?: ProcessingIssues[];
|
|
88
|
+
warnings?: ProcessingIssues[];
|
|
89
|
+
globalIssues?: GeneralIssueDetails[];
|
|
90
|
+
}
|
|
91
|
+
export interface ColorLoadResult extends GeneralLoadResult {
|
|
73
92
|
colorsCreated: any[];
|
|
74
93
|
colorsUpdated: any[];
|
|
75
94
|
colorsUnchanged: any[];
|
|
@@ -77,7 +96,7 @@ export interface ColorLoadResult {
|
|
|
77
96
|
colorsFailedUpdate: RowLoadError[];
|
|
78
97
|
failed: boolean;
|
|
79
98
|
}
|
|
80
|
-
export interface ItemsLoadResult {
|
|
99
|
+
export interface ItemsLoadResult extends GeneralLoadResult {
|
|
81
100
|
itemsCreated: any[];
|
|
82
101
|
itemsUpdated: any[];
|
|
83
102
|
itemsUnchanged: any[];
|
|
@@ -85,7 +104,7 @@ export interface ItemsLoadResult {
|
|
|
85
104
|
itemsFailedUpdate: RowLoadError[];
|
|
86
105
|
failed: boolean;
|
|
87
106
|
}
|
|
88
|
-
export interface ProjectItemsLoadResult {
|
|
107
|
+
export interface ProjectItemsLoadResult extends GeneralLoadResult {
|
|
89
108
|
projectItemsCreated: any[];
|
|
90
109
|
projectItemsUpdated: any[];
|
|
91
110
|
projectItemsUnchanged: any[];
|
|
@@ -93,7 +112,7 @@ export interface ProjectItemsLoadResult {
|
|
|
93
112
|
projectItemsFailedUpdate: RowLoadError[];
|
|
94
113
|
failed: boolean;
|
|
95
114
|
}
|
|
96
|
-
export interface AssortmentItemsLoadResult {
|
|
115
|
+
export interface AssortmentItemsLoadResult extends GeneralLoadResult {
|
|
97
116
|
assortmentItemsCreated: any[];
|
|
98
117
|
assortmentItemsUpdated: any[];
|
|
99
118
|
assortmentItemsUnchanged: any[];
|
|
@@ -148,3 +167,11 @@ export declare class LoaderProcess implements OrgManagedEntity {
|
|
|
148
167
|
parallelWorkerCount?: number;
|
|
149
168
|
messageGroupId?: string;
|
|
150
169
|
}
|
|
170
|
+
export declare enum IssueType {
|
|
171
|
+
INVALID_DATA = "INVALID_DATA",
|
|
172
|
+
MISSING_DATA = "MISSING_DATA",
|
|
173
|
+
DUPLICATE_FEDERATED_ID = "DUPLICATE_FEDERATED_ID",
|
|
174
|
+
SYSTEM_ERROR = "SYSTEM_ERROR",
|
|
175
|
+
HEADER_MISMATCH = "HEADER_MISMATCH",
|
|
176
|
+
VALIDATION_ERROR = "VALIDATION_ERROR"
|
|
177
|
+
}
|
package/lib/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LoaderProcess = exports.LoadType = exports.LoadStatus = exports.ValueToAssortment = exports.AssortmentSplit = exports.ConditionalValues = exports.ColumnDefinition = void 0;
|
|
3
|
+
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;
|
|
@@ -83,3 +83,12 @@ class LoaderProcess {
|
|
|
83
83
|
messageGroupId;
|
|
84
84
|
}
|
|
85
85
|
exports.LoaderProcess = LoaderProcess;
|
|
86
|
+
var IssueType;
|
|
87
|
+
(function (IssueType) {
|
|
88
|
+
IssueType["INVALID_DATA"] = "INVALID_DATA";
|
|
89
|
+
IssueType["MISSING_DATA"] = "MISSING_DATA";
|
|
90
|
+
IssueType["DUPLICATE_FEDERATED_ID"] = "DUPLICATE_FEDERATED_ID";
|
|
91
|
+
IssueType["SYSTEM_ERROR"] = "SYSTEM_ERROR";
|
|
92
|
+
IssueType["HEADER_MISMATCH"] = "HEADER_MISMATCH";
|
|
93
|
+
IssueType["VALIDATION_ERROR"] = "VALIDATION_ERROR";
|
|
94
|
+
})(IssueType = exports.IssueType || (exports.IssueType = {}));
|