@contrail/entity-types 1.1.59-0 → 1.1.59-2
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 +9 -30
- package/lib/loader.js +3 -0
- package/package.json +1 -1
package/lib/loader.d.ts
CHANGED
|
@@ -47,9 +47,9 @@ export declare enum LoadType {
|
|
|
47
47
|
export interface LoadResult {
|
|
48
48
|
colorsLoadResult?: EntityLoadResult;
|
|
49
49
|
customEntitiesLoadResult?: EntityLoadResult;
|
|
50
|
-
itemsLoadResult?:
|
|
51
|
-
projectItemsLoadResult?:
|
|
52
|
-
assortmentItemsLoadResult?:
|
|
50
|
+
itemsLoadResult?: EntityLoadResult;
|
|
51
|
+
projectItemsLoadResult?: EntityLoadResult;
|
|
52
|
+
assortmentItemsLoadResult?: EntityLoadResult;
|
|
53
53
|
transformErrors: any[];
|
|
54
54
|
transformWarnings?: any[];
|
|
55
55
|
generalErrors?: GeneralIssueDetails[];
|
|
@@ -93,34 +93,10 @@ export interface EntityLoadResult {
|
|
|
93
93
|
created: any[];
|
|
94
94
|
updated: any[];
|
|
95
95
|
unchanged: any[];
|
|
96
|
+
deleted: any[];
|
|
96
97
|
failedCreate: RowLoadError[];
|
|
97
98
|
failedUpdate: RowLoadError[];
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
export interface ItemsLoadResult {
|
|
101
|
-
itemsCreated: any[];
|
|
102
|
-
itemsUpdated: any[];
|
|
103
|
-
itemsUnchanged: any[];
|
|
104
|
-
itemsFailedCreate: RowLoadError[];
|
|
105
|
-
itemsFailedUpdate: RowLoadError[];
|
|
106
|
-
failed: boolean;
|
|
107
|
-
}
|
|
108
|
-
export interface ProjectItemsLoadResult {
|
|
109
|
-
projectItemsCreated: any[];
|
|
110
|
-
projectItemsUpdated: any[];
|
|
111
|
-
projectItemsUnchanged: any[];
|
|
112
|
-
projectItemsFailedCreate: RowLoadError[];
|
|
113
|
-
projectItemsFailedUpdate: RowLoadError[];
|
|
114
|
-
failed: boolean;
|
|
115
|
-
}
|
|
116
|
-
export interface AssortmentItemsLoadResult {
|
|
117
|
-
assortmentItemsCreated: any[];
|
|
118
|
-
assortmentItemsUpdated: any[];
|
|
119
|
-
assortmentItemsUnchanged: any[];
|
|
120
|
-
assortmentItemsDeleted: any[];
|
|
121
|
-
assortmentItemsFailedCreate: RowLoadError[];
|
|
122
|
-
assortmentItemsFailedUpdate: RowLoadError[];
|
|
123
|
-
assortmentItemsFailedDelete: RowLoadError[];
|
|
99
|
+
failedDeleted: RowLoadError[];
|
|
124
100
|
failed: boolean;
|
|
125
101
|
}
|
|
126
102
|
export interface PreprocessingStepStoredResultSummary {
|
|
@@ -197,5 +173,8 @@ export declare enum LoaderFailureArea {
|
|
|
197
173
|
export declare enum EntityType {
|
|
198
174
|
COLOR = "color",
|
|
199
175
|
CUSTOM_ENTITY = "custom-entity",
|
|
200
|
-
ITEM = "item"
|
|
176
|
+
ITEM = "item",
|
|
177
|
+
PROJECT_ITEM = "project-item",
|
|
178
|
+
ASSORTMENT = "assortment",
|
|
179
|
+
PARTIAL_ASSORTMENT = "partial-assortment"
|
|
201
180
|
}
|
package/lib/loader.js
CHANGED
|
@@ -107,4 +107,7 @@ var EntityType;
|
|
|
107
107
|
EntityType["COLOR"] = "color";
|
|
108
108
|
EntityType["CUSTOM_ENTITY"] = "custom-entity";
|
|
109
109
|
EntityType["ITEM"] = "item";
|
|
110
|
+
EntityType["PROJECT_ITEM"] = "project-item";
|
|
111
|
+
EntityType["ASSORTMENT"] = "assortment";
|
|
112
|
+
EntityType["PARTIAL_ASSORTMENT"] = "partial-assortment";
|
|
110
113
|
})(EntityType = exports.EntityType || (exports.EntityType = {}));
|