@contrail/entity-types 1.5.5-alpha.0 → 1.5.5-alpha.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
@@ -161,6 +161,7 @@ export declare class LoaderProcess implements OrgManagedEntity {
161
161
  parallelWorkerCount?: number;
162
162
  messageGroupId?: string;
163
163
  isPartialFailure?: boolean;
164
+ skipStaleUpdatesUsing?: string;
164
165
  }
165
166
  export declare enum IssueType {
166
167
  CONFIG = "CONFIG",
@@ -197,10 +198,19 @@ export declare enum PreValidationSeverity {
197
198
  WARNING = "warning",
198
199
  INFO = "info"
199
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
+ }
200
206
  export interface SuggestedFix {
201
- type: 'add-option-set-values' | 'replace-values' | 'change-separator';
207
+ type: SuggestedFixType;
202
208
  details: Record<string, any>;
203
209
  }
210
+ export interface AffectedRow {
211
+ row: number;
212
+ value: string;
213
+ }
204
214
  export interface PreValidationIssue {
205
215
  severity: PreValidationSeverity;
206
216
  category: PreValidationCategory;
@@ -208,8 +218,7 @@ export interface PreValidationIssue {
208
218
  propertySlug: string;
209
219
  propertyType: string;
210
220
  message: string;
211
- affectedRows: number[];
212
- affectedValues: string[];
221
+ affectedRows: AffectedRow[];
213
222
  suggestedFix?: SuggestedFix;
214
223
  }
215
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.LoaderProcess = 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;
@@ -83,6 +83,7 @@ class LoaderProcess {
83
83
  parallelWorkerCount;
84
84
  messageGroupId;
85
85
  isPartialFailure;
86
+ skipStaleUpdatesUsing;
86
87
  }
87
88
  exports.LoaderProcess = LoaderProcess;
88
89
  var IssueType;
@@ -125,3 +126,9 @@ var PreValidationSeverity;
125
126
  PreValidationSeverity["WARNING"] = "warning";
126
127
  PreValidationSeverity["INFO"] = "info";
127
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 = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/entity-types",
3
- "version": "1.5.5-alpha.0",
3
+ "version": "1.5.5-alpha.2",
4
4
  "description": "A types library for Vibeiq entities.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",