@contrail/entity-types 1.5.6-alpha.1 → 1.6.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 +28 -15
- package/lib/loader.js +49 -2
- package/package.json +1 -1
package/lib/loader.d.ts
CHANGED
|
@@ -23,21 +23,12 @@ export declare class ValueToAssortment {
|
|
|
23
23
|
}
|
|
24
24
|
export interface LoaderConfiguration extends OrgManagedEntity {
|
|
25
25
|
name?: string;
|
|
26
|
-
loadType: LoadType[];
|
|
27
|
-
messageGroupId?: string;
|
|
28
26
|
federatedMappings?: any;
|
|
29
27
|
conditionalColumns?: ColumnDefinition[];
|
|
30
28
|
assortmentSplit?: AssortmentSplit;
|
|
31
29
|
workspaceIdentifier?: string;
|
|
32
30
|
propertiesToRemove?: string[];
|
|
33
31
|
skipStaleUpdatesUsing?: string;
|
|
34
|
-
ignoreParameters: IgnoreParameters;
|
|
35
|
-
loaderConfigurationId?: string;
|
|
36
|
-
shouldSkipAssortmentPublish: boolean;
|
|
37
|
-
}
|
|
38
|
-
export interface IgnoreParameters {
|
|
39
|
-
ignoreFamilyNameOnUpdate: boolean;
|
|
40
|
-
ignoreOptionNameOnUpdate: boolean;
|
|
41
32
|
}
|
|
42
33
|
export declare enum LoadStatus {
|
|
43
34
|
ACTIVE = "ACTIVE",
|
|
@@ -131,10 +122,17 @@ export interface ProcessedData {
|
|
|
131
122
|
systemErrors: GeneralIssueDetails[];
|
|
132
123
|
failureArea: LoaderFailureArea;
|
|
133
124
|
}
|
|
134
|
-
export
|
|
125
|
+
export declare class LoaderProcess implements OrgManagedEntity {
|
|
135
126
|
id: string;
|
|
127
|
+
createdOn?: Date;
|
|
128
|
+
updatedOn?: Date;
|
|
129
|
+
createdById?: string;
|
|
130
|
+
updatedById?: string;
|
|
136
131
|
createdBy?: any;
|
|
137
132
|
updatedBy?: any;
|
|
133
|
+
orgId?: string;
|
|
134
|
+
loaderConfigurationId?: string;
|
|
135
|
+
name?: string;
|
|
138
136
|
endedOn?: Date;
|
|
139
137
|
status: LoadStatus;
|
|
140
138
|
logLevel?: LogLevel;
|
|
@@ -149,13 +147,21 @@ export interface LoaderProcess extends LoaderConfiguration {
|
|
|
149
147
|
preprocessingStepResults?: PreprocessingStepStoredResultSummary[];
|
|
150
148
|
processDurationSeconds?: number;
|
|
151
149
|
loadFileId: string;
|
|
150
|
+
loadType: LoadType[];
|
|
151
|
+
federatedMappings?: any;
|
|
152
|
+
conditionalColumns?: ColumnDefinition[];
|
|
153
|
+
assortmentSplit?: AssortmentSplit;
|
|
152
154
|
partialAssortmentUpdate?: boolean;
|
|
153
155
|
assortmentItemDropField?: string;
|
|
156
|
+
workspaceIdentifier?: string;
|
|
157
|
+
propertiesToRemove?: string[];
|
|
154
158
|
badRowsCount?: number;
|
|
155
159
|
uploadErrorCount?: number;
|
|
156
160
|
hasErrors?: boolean;
|
|
157
161
|
parallelWorkerCount?: number;
|
|
162
|
+
messageGroupId?: string;
|
|
158
163
|
isPartialFailure?: boolean;
|
|
164
|
+
skipStaleUpdatesUsing?: string;
|
|
159
165
|
}
|
|
160
166
|
export declare enum IssueType {
|
|
161
167
|
CONFIG = "CONFIG",
|
|
@@ -185,18 +191,26 @@ export declare enum EntityType {
|
|
|
185
191
|
export declare enum PreValidationCategory {
|
|
186
192
|
OPTION_SET = "OPTION_SET",
|
|
187
193
|
FORMAT_BOOLEAN = "FORMAT_BOOLEAN",
|
|
188
|
-
FORMAT_MULTI_SELECT = "FORMAT_MULTI_SELECT"
|
|
189
|
-
CONFIG = "CONFIG"
|
|
194
|
+
FORMAT_MULTI_SELECT = "FORMAT_MULTI_SELECT"
|
|
190
195
|
}
|
|
191
196
|
export declare enum PreValidationSeverity {
|
|
192
197
|
ERROR = "error",
|
|
193
198
|
WARNING = "warning",
|
|
194
199
|
INFO = "info"
|
|
195
200
|
}
|
|
201
|
+
export declare enum SuggestedFixType {
|
|
202
|
+
ADD_OPTION_SET_VALUES = "add-option-set-values",
|
|
203
|
+
REPLACE_VALUES = "replace-values",
|
|
204
|
+
CHANGE_SEPARATOR = "change-separator"
|
|
205
|
+
}
|
|
196
206
|
export interface SuggestedFix {
|
|
197
|
-
type:
|
|
207
|
+
type: SuggestedFixType;
|
|
198
208
|
details: Record<string, any>;
|
|
199
209
|
}
|
|
210
|
+
export interface AffectedRow {
|
|
211
|
+
row: number;
|
|
212
|
+
value: string;
|
|
213
|
+
}
|
|
200
214
|
export interface PreValidationIssue {
|
|
201
215
|
severity: PreValidationSeverity;
|
|
202
216
|
category: PreValidationCategory;
|
|
@@ -204,8 +218,7 @@ export interface PreValidationIssue {
|
|
|
204
218
|
propertySlug: string;
|
|
205
219
|
propertyType: string;
|
|
206
220
|
message: string;
|
|
207
|
-
affectedRows:
|
|
208
|
-
affectedValues: string[];
|
|
221
|
+
affectedRows: AffectedRow[];
|
|
209
222
|
suggestedFix?: SuggestedFix;
|
|
210
223
|
}
|
|
211
224
|
export interface PreValidationSummary {
|
package/lib/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PreValidationSeverity = exports.PreValidationCategory = exports.EntityType = exports.LoaderFailureArea = exports.IssueType = exports.LoadType = exports.LoadStatus = exports.ValueToAssortment = exports.AssortmentSplit = exports.ConditionalValues = exports.ColumnDefinition = void 0;
|
|
3
|
+
exports.SuggestedFixType = exports.PreValidationSeverity = exports.PreValidationCategory = exports.EntityType = exports.LoaderFailureArea = exports.IssueType = exports.LoaderProcess = exports.LoadType = exports.LoadStatus = exports.ValueToAssortment = exports.AssortmentSplit = exports.ConditionalValues = exports.ColumnDefinition = void 0;
|
|
4
4
|
class ColumnDefinition {
|
|
5
5
|
fromProperty;
|
|
6
6
|
toProperty;
|
|
@@ -44,6 +44,48 @@ var LoadType;
|
|
|
44
44
|
LoadType["SIZE_RANGE_TEMPLATE"] = "SIZE_RANGE_TEMPLATE";
|
|
45
45
|
LoadType["PROJECT"] = "PROJECT";
|
|
46
46
|
})(LoadType = exports.LoadType || (exports.LoadType = {}));
|
|
47
|
+
class LoaderProcess {
|
|
48
|
+
id;
|
|
49
|
+
createdOn;
|
|
50
|
+
updatedOn;
|
|
51
|
+
createdById;
|
|
52
|
+
updatedById;
|
|
53
|
+
createdBy;
|
|
54
|
+
updatedBy;
|
|
55
|
+
orgId;
|
|
56
|
+
loaderConfigurationId;
|
|
57
|
+
name;
|
|
58
|
+
endedOn;
|
|
59
|
+
status;
|
|
60
|
+
logLevel;
|
|
61
|
+
processLogs;
|
|
62
|
+
processLogS3File;
|
|
63
|
+
processLogS3FileDownloadLink;
|
|
64
|
+
logsFileId;
|
|
65
|
+
logFileDownloadLink;
|
|
66
|
+
loadProcessResult;
|
|
67
|
+
loadProcessResultFileId;
|
|
68
|
+
loadProcessResultDownloadLink;
|
|
69
|
+
preprocessingStepResults;
|
|
70
|
+
processDurationSeconds;
|
|
71
|
+
loadFileId;
|
|
72
|
+
loadType;
|
|
73
|
+
federatedMappings;
|
|
74
|
+
conditionalColumns;
|
|
75
|
+
assortmentSplit;
|
|
76
|
+
partialAssortmentUpdate;
|
|
77
|
+
assortmentItemDropField;
|
|
78
|
+
workspaceIdentifier;
|
|
79
|
+
propertiesToRemove;
|
|
80
|
+
badRowsCount;
|
|
81
|
+
uploadErrorCount;
|
|
82
|
+
hasErrors;
|
|
83
|
+
parallelWorkerCount;
|
|
84
|
+
messageGroupId;
|
|
85
|
+
isPartialFailure;
|
|
86
|
+
skipStaleUpdatesUsing;
|
|
87
|
+
}
|
|
88
|
+
exports.LoaderProcess = LoaderProcess;
|
|
47
89
|
var IssueType;
|
|
48
90
|
(function (IssueType) {
|
|
49
91
|
IssueType["CONFIG"] = "CONFIG";
|
|
@@ -77,7 +119,6 @@ var PreValidationCategory;
|
|
|
77
119
|
PreValidationCategory["OPTION_SET"] = "OPTION_SET";
|
|
78
120
|
PreValidationCategory["FORMAT_BOOLEAN"] = "FORMAT_BOOLEAN";
|
|
79
121
|
PreValidationCategory["FORMAT_MULTI_SELECT"] = "FORMAT_MULTI_SELECT";
|
|
80
|
-
PreValidationCategory["CONFIG"] = "CONFIG";
|
|
81
122
|
})(PreValidationCategory = exports.PreValidationCategory || (exports.PreValidationCategory = {}));
|
|
82
123
|
var PreValidationSeverity;
|
|
83
124
|
(function (PreValidationSeverity) {
|
|
@@ -85,3 +126,9 @@ var PreValidationSeverity;
|
|
|
85
126
|
PreValidationSeverity["WARNING"] = "warning";
|
|
86
127
|
PreValidationSeverity["INFO"] = "info";
|
|
87
128
|
})(PreValidationSeverity = exports.PreValidationSeverity || (exports.PreValidationSeverity = {}));
|
|
129
|
+
var SuggestedFixType;
|
|
130
|
+
(function (SuggestedFixType) {
|
|
131
|
+
SuggestedFixType["ADD_OPTION_SET_VALUES"] = "add-option-set-values";
|
|
132
|
+
SuggestedFixType["REPLACE_VALUES"] = "replace-values";
|
|
133
|
+
SuggestedFixType["CHANGE_SEPARATOR"] = "change-separator";
|
|
134
|
+
})(SuggestedFixType = exports.SuggestedFixType || (exports.SuggestedFixType = {}));
|