@contrail/entity-types 1.1.59 → 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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "prettier.singleQuote": true
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?: ItemsLoadResult;
51
- projectItemsLoadResult?: ProjectItemsLoadResult;
52
- assortmentItemsLoadResult?: 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
- 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[];
99
+ failedDelete: RowLoadError[];
124
100
  failed: boolean;
125
101
  }
126
102
  export interface PreprocessingStepStoredResultSummary {
@@ -176,6 +152,7 @@ export declare class LoaderProcess implements OrgManagedEntity {
176
152
  hasErrors?: boolean;
177
153
  parallelWorkerCount?: number;
178
154
  messageGroupId?: string;
155
+ isPartialFailure?: boolean;
179
156
  }
180
157
  export declare enum IssueType {
181
158
  CONFIG = "CONFIG",
@@ -184,7 +161,9 @@ export declare enum IssueType {
184
161
  DUPLICATE_FEDERATED_ID = "DUPLICATE_FEDERATED_ID",
185
162
  SYSTEM_ERROR = "SYSTEM_ERROR",
186
163
  HEADER_MISMATCH = "HEADER_MISMATCH",
187
- VALIDATION_ERROR = "VALIDATION_ERROR"
164
+ VALIDATION_ERROR = "VALIDATION_ERROR",
165
+ PERMISSION_DENIED = "PERMISSION_DENIED",
166
+ UNKNOWN_ERROR = "UNKNOWN_ERROR"
188
167
  }
189
168
  export declare enum LoaderFailureArea {
190
169
  PARSING_CSV = "PARSING_CSV",
@@ -195,5 +174,9 @@ export declare enum LoaderFailureArea {
195
174
  }
196
175
  export declare enum EntityType {
197
176
  COLOR = "color",
198
- 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"
199
182
  }
package/lib/loader.js CHANGED
@@ -81,6 +81,7 @@ class LoaderProcess {
81
81
  hasErrors;
82
82
  parallelWorkerCount;
83
83
  messageGroupId;
84
+ isPartialFailure;
84
85
  }
85
86
  exports.LoaderProcess = LoaderProcess;
86
87
  var IssueType;
@@ -92,6 +93,8 @@ var IssueType;
92
93
  IssueType["SYSTEM_ERROR"] = "SYSTEM_ERROR";
93
94
  IssueType["HEADER_MISMATCH"] = "HEADER_MISMATCH";
94
95
  IssueType["VALIDATION_ERROR"] = "VALIDATION_ERROR";
96
+ IssueType["PERMISSION_DENIED"] = "PERMISSION_DENIED";
97
+ IssueType["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
95
98
  })(IssueType = exports.IssueType || (exports.IssueType = {}));
96
99
  var LoaderFailureArea;
97
100
  (function (LoaderFailureArea) {
@@ -105,4 +108,8 @@ var EntityType;
105
108
  (function (EntityType) {
106
109
  EntityType["COLOR"] = "color";
107
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";
108
115
  })(EntityType = exports.EntityType || (exports.EntityType = {}));
@@ -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
- CascadingSelect = "cascading_select",
4
- Composite = "composite",
5
- Constant = "constant",
7
+ MultiSelect = "multi_select",
8
+ SingleSelect = "choice",
9
+ Url = "url",
6
10
  Currency = "currency",
7
- DataGrid = "data_grid",
8
- Date = "date",
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
- Password = "password",
17
- Percent = "percent",
18
- Rating = "rating",
16
+ DataGrid = "data_grid",
17
+ CascadingSelect = "cascading_select",
19
18
  Sequence = "sequence",
20
- SingleSelect = "choice",
19
+ Constant = "constant",
20
+ Composite = "composite",
21
+ UserList = "userList",
22
+ Image = "image",
23
+ Json = "json",
24
+ Password = "password",
21
25
  SizeRange = "size_range",
22
- String = "string",
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;
@@ -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["CascadingSelect"] = "cascading_select";
8
- PropertyType["Composite"] = "composite";
9
- PropertyType["Constant"] = "constant";
11
+ PropertyType["MultiSelect"] = "multi_select";
12
+ PropertyType["SingleSelect"] = "choice";
13
+ PropertyType["Url"] = "url";
10
14
  PropertyType["Currency"] = "currency";
11
- PropertyType["DataGrid"] = "data_grid";
12
- PropertyType["Date"] = "date";
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["Password"] = "password";
21
- PropertyType["Percent"] = "percent";
22
- PropertyType["Rating"] = "rating";
20
+ PropertyType["DataGrid"] = "data_grid";
21
+ PropertyType["CascadingSelect"] = "cascading_select";
23
22
  PropertyType["Sequence"] = "sequence";
24
- PropertyType["SingleSelect"] = "choice";
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 = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/entity-types",
3
- "version": "1.1.59",
3
+ "version": "1.1.60-1",
4
4
  "description": "A types library for Vibeiq entities.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",