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