@contrail/entity-types 1.1.60-1 → 1.1.60-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 CHANGED
@@ -33,7 +33,8 @@ export declare enum LoadStatus {
33
33
  ACTIVE = "ACTIVE",
34
34
  PENDING = "PENDING",
35
35
  FAILED = "FAILED",
36
- COMPLETE = "COMPLETE"
36
+ COMPLETE = "COMPLETE",
37
+ CANCELED = "CANCELED"
37
38
  }
38
39
  export declare enum LoadType {
39
40
  ITEM = "ITEM",
@@ -47,9 +48,9 @@ export declare enum LoadType {
47
48
  export interface LoadResult {
48
49
  colorsLoadResult?: EntityLoadResult;
49
50
  customEntitiesLoadResult?: EntityLoadResult;
50
- itemsLoadResult?: EntityLoadResult;
51
- projectItemsLoadResult?: EntityLoadResult;
52
- assortmentItemsLoadResult?: EntityLoadResult;
51
+ itemsLoadResult?: ItemsLoadResult;
52
+ projectItemsLoadResult?: ProjectItemsLoadResult;
53
+ assortmentItemsLoadResult?: AssortmentItemsLoadResult;
53
54
  transformErrors: any[];
54
55
  transformWarnings?: any[];
55
56
  generalErrors?: GeneralIssueDetails[];
@@ -93,10 +94,34 @@ export interface EntityLoadResult {
93
94
  created: any[];
94
95
  updated: any[];
95
96
  unchanged: any[];
96
- deleted: any[];
97
97
  failedCreate: RowLoadError[];
98
98
  failedUpdate: RowLoadError[];
99
- failedDelete: RowLoadError[];
99
+ failed: boolean;
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
125
  failed: boolean;
101
126
  }
102
127
  export interface PreprocessingStepStoredResultSummary {
@@ -152,7 +177,6 @@ export declare class LoaderProcess implements OrgManagedEntity {
152
177
  hasErrors?: boolean;
153
178
  parallelWorkerCount?: number;
154
179
  messageGroupId?: string;
155
- isPartialFailure?: boolean;
156
180
  }
157
181
  export declare enum IssueType {
158
182
  CONFIG = "CONFIG",
@@ -161,9 +185,7 @@ export declare enum IssueType {
161
185
  DUPLICATE_FEDERATED_ID = "DUPLICATE_FEDERATED_ID",
162
186
  SYSTEM_ERROR = "SYSTEM_ERROR",
163
187
  HEADER_MISMATCH = "HEADER_MISMATCH",
164
- VALIDATION_ERROR = "VALIDATION_ERROR",
165
- PERMISSION_DENIED = "PERMISSION_DENIED",
166
- UNKNOWN_ERROR = "UNKNOWN_ERROR"
188
+ VALIDATION_ERROR = "VALIDATION_ERROR"
167
189
  }
168
190
  export declare enum LoaderFailureArea {
169
191
  PARSING_CSV = "PARSING_CSV",
@@ -174,9 +196,5 @@ export declare enum LoaderFailureArea {
174
196
  }
175
197
  export declare enum EntityType {
176
198
  COLOR = "color",
177
- CUSTOM_ENTITY = "custom-entity",
178
- ITEM = "item",
179
- PROJECT_ITEM = "project-item",
180
- ASSORTMENT = "assortment-item",
181
- PARTIAL_ASSORTMENT = "partial-assortment"
199
+ CUSTOM_ENTITY = "custom-entity"
182
200
  }
package/lib/loader.js CHANGED
@@ -32,6 +32,7 @@ var LoadStatus;
32
32
  LoadStatus["PENDING"] = "PENDING";
33
33
  LoadStatus["FAILED"] = "FAILED";
34
34
  LoadStatus["COMPLETE"] = "COMPLETE";
35
+ LoadStatus["CANCELED"] = "CANCELED";
35
36
  })(LoadStatus = exports.LoadStatus || (exports.LoadStatus = {}));
36
37
  var LoadType;
37
38
  (function (LoadType) {
@@ -81,7 +82,6 @@ class LoaderProcess {
81
82
  hasErrors;
82
83
  parallelWorkerCount;
83
84
  messageGroupId;
84
- isPartialFailure;
85
85
  }
86
86
  exports.LoaderProcess = LoaderProcess;
87
87
  var IssueType;
@@ -93,8 +93,6 @@ 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";
98
96
  })(IssueType = exports.IssueType || (exports.IssueType = {}));
99
97
  var LoaderFailureArea;
100
98
  (function (LoaderFailureArea) {
@@ -108,8 +106,4 @@ var EntityType;
108
106
  (function (EntityType) {
109
107
  EntityType["COLOR"] = "color";
110
108
  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
109
  })(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",
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
- UserList = "userList",
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
- TypeReference = "type_reference"
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;
@@ -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["UserList"] = "userList";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/entity-types",
3
- "version": "1.1.60-1",
3
+ "version": "1.1.60-2",
4
4
  "description": "A types library for Vibeiq entities.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,3 +0,0 @@
1
- {
2
- "prettier.singleQuote": true
3
- }