@contrail/entity-types 1.1.59-5 → 1.1.59-alpha-0
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 -14
- package/lib/loader.js +0 -7
- package/lib/property-type.d.ts +18 -18
- package/lib/property-type.js +17 -17
- package/package.json +1 -1
- package/.vscode/settings.json +0 -3
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?: ItemsLoadResult;
|
|
51
|
+
projectItemsLoadResult?: ProjectItemsLoadResult;
|
|
52
|
+
assortmentItemsLoadResult?: AssortmentItemsLoadResult;
|
|
53
53
|
transformErrors: any[];
|
|
54
54
|
transformWarnings?: any[];
|
|
55
55
|
generalErrors?: GeneralIssueDetails[];
|
|
@@ -93,10 +93,34 @@ export interface EntityLoadResult {
|
|
|
93
93
|
created: any[];
|
|
94
94
|
updated: any[];
|
|
95
95
|
unchanged: any[];
|
|
96
|
-
deleted: any[];
|
|
97
96
|
failedCreate: RowLoadError[];
|
|
98
97
|
failedUpdate: RowLoadError[];
|
|
99
|
-
|
|
98
|
+
failed: boolean;
|
|
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[];
|
|
100
124
|
failed: boolean;
|
|
101
125
|
}
|
|
102
126
|
export interface PreprocessingStepStoredResultSummary {
|
|
@@ -152,7 +176,6 @@ export declare class LoaderProcess implements OrgManagedEntity {
|
|
|
152
176
|
hasErrors?: boolean;
|
|
153
177
|
parallelWorkerCount?: number;
|
|
154
178
|
messageGroupId?: string;
|
|
155
|
-
isPartialFailure?: boolean;
|
|
156
179
|
}
|
|
157
180
|
export declare enum IssueType {
|
|
158
181
|
CONFIG = "CONFIG",
|
|
@@ -161,9 +184,7 @@ export declare enum IssueType {
|
|
|
161
184
|
DUPLICATE_FEDERATED_ID = "DUPLICATE_FEDERATED_ID",
|
|
162
185
|
SYSTEM_ERROR = "SYSTEM_ERROR",
|
|
163
186
|
HEADER_MISMATCH = "HEADER_MISMATCH",
|
|
164
|
-
VALIDATION_ERROR = "VALIDATION_ERROR"
|
|
165
|
-
PERMISSION_DENIED = "PERMISSION_DENIED",
|
|
166
|
-
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
187
|
+
VALIDATION_ERROR = "VALIDATION_ERROR"
|
|
167
188
|
}
|
|
168
189
|
export declare enum LoaderFailureArea {
|
|
169
190
|
PARSING_CSV = "PARSING_CSV",
|
|
@@ -174,9 +195,5 @@ export declare enum LoaderFailureArea {
|
|
|
174
195
|
}
|
|
175
196
|
export declare enum EntityType {
|
|
176
197
|
COLOR = "color",
|
|
177
|
-
CUSTOM_ENTITY = "custom-entity"
|
|
178
|
-
ITEM = "item",
|
|
179
|
-
PROJECT_ITEM = "project-item",
|
|
180
|
-
ASSORTMENT = "assortment-item",
|
|
181
|
-
PARTIAL_ASSORTMENT = "partial-assortment"
|
|
198
|
+
CUSTOM_ENTITY = "custom-entity"
|
|
182
199
|
}
|
package/lib/loader.js
CHANGED
|
@@ -81,7 +81,6 @@ class LoaderProcess {
|
|
|
81
81
|
hasErrors;
|
|
82
82
|
parallelWorkerCount;
|
|
83
83
|
messageGroupId;
|
|
84
|
-
isPartialFailure;
|
|
85
84
|
}
|
|
86
85
|
exports.LoaderProcess = LoaderProcess;
|
|
87
86
|
var IssueType;
|
|
@@ -93,8 +92,6 @@ var IssueType;
|
|
|
93
92
|
IssueType["SYSTEM_ERROR"] = "SYSTEM_ERROR";
|
|
94
93
|
IssueType["HEADER_MISMATCH"] = "HEADER_MISMATCH";
|
|
95
94
|
IssueType["VALIDATION_ERROR"] = "VALIDATION_ERROR";
|
|
96
|
-
IssueType["PERMISSION_DENIED"] = "PERMISSION_DENIED";
|
|
97
|
-
IssueType["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
98
95
|
})(IssueType = exports.IssueType || (exports.IssueType = {}));
|
|
99
96
|
var LoaderFailureArea;
|
|
100
97
|
(function (LoaderFailureArea) {
|
|
@@ -108,8 +105,4 @@ var EntityType;
|
|
|
108
105
|
(function (EntityType) {
|
|
109
106
|
EntityType["COLOR"] = "color";
|
|
110
107
|
EntityType["CUSTOM_ENTITY"] = "custom-entity";
|
|
111
|
-
EntityType["ITEM"] = "item";
|
|
112
|
-
EntityType["PROJECT_ITEM"] = "project-item";
|
|
113
|
-
EntityType["ASSORTMENT"] = "assortment-item";
|
|
114
|
-
EntityType["PARTIAL_ASSORTMENT"] = "partial-assortment";
|
|
115
108
|
})(EntityType = exports.EntityType || (exports.EntityType = {}));
|
package/lib/property-type.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
export declare enum PropertyType {
|
|
2
|
-
Text = "text",
|
|
3
|
-
String = "string",
|
|
4
|
-
Number = "number",
|
|
5
|
-
Date = "date",
|
|
6
2
|
Boolean = "boolean",
|
|
7
|
-
MultiSelect = "multi_select",
|
|
8
|
-
SingleSelect = "choice",
|
|
9
|
-
Url = "url",
|
|
10
|
-
Currency = "currency",
|
|
11
|
-
Percent = "percent",
|
|
12
|
-
Rating = "rating",
|
|
13
|
-
Formula = "formula",
|
|
14
|
-
ObjectReference = "object_reference",
|
|
15
|
-
ObjectReferenceList = "object_ref_list",
|
|
16
|
-
DataGrid = "data_grid",
|
|
17
3
|
CascadingSelect = "cascading_select",
|
|
18
|
-
Sequence = "sequence",
|
|
19
|
-
Constant = "constant",
|
|
20
4
|
Composite = "composite",
|
|
21
|
-
|
|
5
|
+
Constant = "constant",
|
|
6
|
+
Currency = "currency",
|
|
7
|
+
DataGrid = "data_grid",
|
|
8
|
+
Date = "date",
|
|
9
|
+
Formula = "formula",
|
|
22
10
|
Image = "image",
|
|
23
11
|
Json = "json",
|
|
12
|
+
MultiSelect = "multi_select",
|
|
13
|
+
Number = "number",
|
|
14
|
+
ObjectReference = "object_reference",
|
|
15
|
+
ObjectReferenceList = "object_ref_list",
|
|
24
16
|
Password = "password",
|
|
17
|
+
Percent = "percent",
|
|
18
|
+
Rating = "rating",
|
|
19
|
+
Sequence = "sequence",
|
|
20
|
+
SingleSelect = "choice",
|
|
25
21
|
SizeRange = "size_range",
|
|
26
|
-
|
|
22
|
+
String = "string",
|
|
23
|
+
Text = "text",
|
|
24
|
+
TypeReference = "type_reference",
|
|
25
|
+
Url = "url",
|
|
26
|
+
UserList = "userList"
|
|
27
27
|
}
|
|
28
28
|
export interface PropertyTypeMetaData {
|
|
29
29
|
label: string;
|
package/lib/property-type.js
CHANGED
|
@@ -3,29 +3,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PropertyType = void 0;
|
|
4
4
|
var PropertyType;
|
|
5
5
|
(function (PropertyType) {
|
|
6
|
-
PropertyType["Text"] = "text";
|
|
7
|
-
PropertyType["String"] = "string";
|
|
8
|
-
PropertyType["Number"] = "number";
|
|
9
|
-
PropertyType["Date"] = "date";
|
|
10
6
|
PropertyType["Boolean"] = "boolean";
|
|
11
|
-
PropertyType["MultiSelect"] = "multi_select";
|
|
12
|
-
PropertyType["SingleSelect"] = "choice";
|
|
13
|
-
PropertyType["Url"] = "url";
|
|
14
|
-
PropertyType["Currency"] = "currency";
|
|
15
|
-
PropertyType["Percent"] = "percent";
|
|
16
|
-
PropertyType["Rating"] = "rating";
|
|
17
|
-
PropertyType["Formula"] = "formula";
|
|
18
|
-
PropertyType["ObjectReference"] = "object_reference";
|
|
19
|
-
PropertyType["ObjectReferenceList"] = "object_ref_list";
|
|
20
|
-
PropertyType["DataGrid"] = "data_grid";
|
|
21
7
|
PropertyType["CascadingSelect"] = "cascading_select";
|
|
22
|
-
PropertyType["Sequence"] = "sequence";
|
|
23
|
-
PropertyType["Constant"] = "constant";
|
|
24
8
|
PropertyType["Composite"] = "composite";
|
|
25
|
-
PropertyType["
|
|
9
|
+
PropertyType["Constant"] = "constant";
|
|
10
|
+
PropertyType["Currency"] = "currency";
|
|
11
|
+
PropertyType["DataGrid"] = "data_grid";
|
|
12
|
+
PropertyType["Date"] = "date";
|
|
13
|
+
PropertyType["Formula"] = "formula";
|
|
26
14
|
PropertyType["Image"] = "image";
|
|
27
15
|
PropertyType["Json"] = "json";
|
|
16
|
+
PropertyType["MultiSelect"] = "multi_select";
|
|
17
|
+
PropertyType["Number"] = "number";
|
|
18
|
+
PropertyType["ObjectReference"] = "object_reference";
|
|
19
|
+
PropertyType["ObjectReferenceList"] = "object_ref_list";
|
|
28
20
|
PropertyType["Password"] = "password";
|
|
21
|
+
PropertyType["Percent"] = "percent";
|
|
22
|
+
PropertyType["Rating"] = "rating";
|
|
23
|
+
PropertyType["Sequence"] = "sequence";
|
|
24
|
+
PropertyType["SingleSelect"] = "choice";
|
|
29
25
|
PropertyType["SizeRange"] = "size_range";
|
|
26
|
+
PropertyType["String"] = "string";
|
|
27
|
+
PropertyType["Text"] = "text";
|
|
30
28
|
PropertyType["TypeReference"] = "type_reference";
|
|
29
|
+
PropertyType["Url"] = "url";
|
|
30
|
+
PropertyType["UserList"] = "userList";
|
|
31
31
|
})(PropertyType = exports.PropertyType || (exports.PropertyType = {}));
|
package/package.json
CHANGED
package/.vscode/settings.json
DELETED