@contrail/entity-types 1.1.60 → 1.1.61
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/.vscode/settings.json +3 -0
- package/lib/loader.d.ts +14 -31
- package/lib/loader.js +7 -0
- package/package.json +1 -1
package/lib/loader.d.ts
CHANGED
|
@@ -48,9 +48,9 @@ export declare enum LoadType {
|
|
|
48
48
|
export interface LoadResult {
|
|
49
49
|
colorsLoadResult?: EntityLoadResult;
|
|
50
50
|
customEntitiesLoadResult?: EntityLoadResult;
|
|
51
|
-
itemsLoadResult?:
|
|
52
|
-
projectItemsLoadResult?:
|
|
53
|
-
assortmentItemsLoadResult?:
|
|
51
|
+
itemsLoadResult?: EntityLoadResult;
|
|
52
|
+
projectItemsLoadResult?: EntityLoadResult;
|
|
53
|
+
assortmentItemsLoadResult?: EntityLoadResult;
|
|
54
54
|
transformErrors: any[];
|
|
55
55
|
transformWarnings?: any[];
|
|
56
56
|
generalErrors?: GeneralIssueDetails[];
|
|
@@ -94,34 +94,10 @@ export interface EntityLoadResult {
|
|
|
94
94
|
created: any[];
|
|
95
95
|
updated: any[];
|
|
96
96
|
unchanged: any[];
|
|
97
|
+
deleted: any[];
|
|
97
98
|
failedCreate: RowLoadError[];
|
|
98
99
|
failedUpdate: RowLoadError[];
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
export interface ItemsLoadResult {
|
|
102
|
-
itemsCreated: any[];
|
|
103
|
-
itemsUpdated: any[];
|
|
104
|
-
itemsUnchanged: any[];
|
|
105
|
-
itemsFailedCreate: RowLoadError[];
|
|
106
|
-
itemsFailedUpdate: RowLoadError[];
|
|
107
|
-
failed: boolean;
|
|
108
|
-
}
|
|
109
|
-
export interface ProjectItemsLoadResult {
|
|
110
|
-
projectItemsCreated: any[];
|
|
111
|
-
projectItemsUpdated: any[];
|
|
112
|
-
projectItemsUnchanged: any[];
|
|
113
|
-
projectItemsFailedCreate: RowLoadError[];
|
|
114
|
-
projectItemsFailedUpdate: RowLoadError[];
|
|
115
|
-
failed: boolean;
|
|
116
|
-
}
|
|
117
|
-
export interface AssortmentItemsLoadResult {
|
|
118
|
-
assortmentItemsCreated: any[];
|
|
119
|
-
assortmentItemsUpdated: any[];
|
|
120
|
-
assortmentItemsUnchanged: any[];
|
|
121
|
-
assortmentItemsDeleted: any[];
|
|
122
|
-
assortmentItemsFailedCreate: RowLoadError[];
|
|
123
|
-
assortmentItemsFailedUpdate: RowLoadError[];
|
|
124
|
-
assortmentItemsFailedDelete: RowLoadError[];
|
|
100
|
+
failedDelete: RowLoadError[];
|
|
125
101
|
failed: boolean;
|
|
126
102
|
}
|
|
127
103
|
export interface PreprocessingStepStoredResultSummary {
|
|
@@ -177,6 +153,7 @@ export declare class LoaderProcess implements OrgManagedEntity {
|
|
|
177
153
|
hasErrors?: boolean;
|
|
178
154
|
parallelWorkerCount?: number;
|
|
179
155
|
messageGroupId?: string;
|
|
156
|
+
isPartialFailure?: boolean;
|
|
180
157
|
}
|
|
181
158
|
export declare enum IssueType {
|
|
182
159
|
CONFIG = "CONFIG",
|
|
@@ -185,7 +162,9 @@ export declare enum IssueType {
|
|
|
185
162
|
DUPLICATE_FEDERATED_ID = "DUPLICATE_FEDERATED_ID",
|
|
186
163
|
SYSTEM_ERROR = "SYSTEM_ERROR",
|
|
187
164
|
HEADER_MISMATCH = "HEADER_MISMATCH",
|
|
188
|
-
VALIDATION_ERROR = "VALIDATION_ERROR"
|
|
165
|
+
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
166
|
+
PERMISSION_DENIED = "PERMISSION_DENIED",
|
|
167
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
189
168
|
}
|
|
190
169
|
export declare enum LoaderFailureArea {
|
|
191
170
|
PARSING_CSV = "PARSING_CSV",
|
|
@@ -196,5 +175,9 @@ export declare enum LoaderFailureArea {
|
|
|
196
175
|
}
|
|
197
176
|
export declare enum EntityType {
|
|
198
177
|
COLOR = "color",
|
|
199
|
-
CUSTOM_ENTITY = "custom-entity"
|
|
178
|
+
CUSTOM_ENTITY = "custom-entity",
|
|
179
|
+
ITEM = "item",
|
|
180
|
+
PROJECT_ITEM = "project-item",
|
|
181
|
+
ASSORTMENT = "assortment-item",
|
|
182
|
+
PARTIAL_ASSORTMENT = "partial-assortment"
|
|
200
183
|
}
|
package/lib/loader.js
CHANGED
|
@@ -82,6 +82,7 @@ class LoaderProcess {
|
|
|
82
82
|
hasErrors;
|
|
83
83
|
parallelWorkerCount;
|
|
84
84
|
messageGroupId;
|
|
85
|
+
isPartialFailure;
|
|
85
86
|
}
|
|
86
87
|
exports.LoaderProcess = LoaderProcess;
|
|
87
88
|
var IssueType;
|
|
@@ -93,6 +94,8 @@ var IssueType;
|
|
|
93
94
|
IssueType["SYSTEM_ERROR"] = "SYSTEM_ERROR";
|
|
94
95
|
IssueType["HEADER_MISMATCH"] = "HEADER_MISMATCH";
|
|
95
96
|
IssueType["VALIDATION_ERROR"] = "VALIDATION_ERROR";
|
|
97
|
+
IssueType["PERMISSION_DENIED"] = "PERMISSION_DENIED";
|
|
98
|
+
IssueType["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
96
99
|
})(IssueType = exports.IssueType || (exports.IssueType = {}));
|
|
97
100
|
var LoaderFailureArea;
|
|
98
101
|
(function (LoaderFailureArea) {
|
|
@@ -106,4 +109,8 @@ var EntityType;
|
|
|
106
109
|
(function (EntityType) {
|
|
107
110
|
EntityType["COLOR"] = "color";
|
|
108
111
|
EntityType["CUSTOM_ENTITY"] = "custom-entity";
|
|
112
|
+
EntityType["ITEM"] = "item";
|
|
113
|
+
EntityType["PROJECT_ITEM"] = "project-item";
|
|
114
|
+
EntityType["ASSORTMENT"] = "assortment-item";
|
|
115
|
+
EntityType["PARTIAL_ASSORTMENT"] = "partial-assortment";
|
|
109
116
|
})(EntityType = exports.EntityType || (exports.EntityType = {}));
|