@mparticle/data-planning-models
Advanced tools
Comparing version 0.0.3 to 0.1.0-alpha.0
import { Batch } from '@mparticle/event-models'; | ||
import { ValidationResultEvent } from './validation_result_event'; | ||
export interface DataPlanResults { | ||
results?: Array<{ | ||
[key: string]: any; | ||
}>; | ||
results?: ValidationResultEvent[]; | ||
batch?: Batch; | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
__export(require("./validation_error_type")); | ||
__export(require("./validation_result_event")); | ||
__export(require("./types")); |
@@ -1,2 +0,2 @@ | ||
export declare enum ValidationErrorType { | ||
export declare enum ValidationErrorTypeEnum { | ||
Unknown = "unknown", | ||
@@ -7,3 +7,4 @@ Unplanned = "unplanned", | ||
} | ||
export declare enum ErrorType { | ||
export declare type ValidationErrorType = ValidationErrorTypeEnum.Unknown | ValidationErrorTypeEnum.Unplanned | ValidationErrorTypeEnum.MissingRequired | ValidationErrorTypeEnum.InvalidValue; | ||
export declare enum SchemaKeywordErrorTypeEnum { | ||
AdditionalItems = "additionalItems", | ||
@@ -27,1 +28,2 @@ AdditionalProperties = "additionalProperties", | ||
} | ||
export declare type SchemaKeywordErrorType = SchemaKeywordErrorTypeEnum.AdditionalItems | SchemaKeywordErrorTypeEnum.AdditionalProperties | SchemaKeywordErrorTypeEnum.Const | SchemaKeywordErrorTypeEnum.Dependencies | SchemaKeywordErrorTypeEnum.Enum | SchemaKeywordErrorTypeEnum.ExclusiveMaximum | SchemaKeywordErrorTypeEnum.ExclusiveMinimum | SchemaKeywordErrorTypeEnum.Format | SchemaKeywordErrorTypeEnum.Maximum | SchemaKeywordErrorTypeEnum.MaxLength | SchemaKeywordErrorTypeEnum.Minimum | SchemaKeywordErrorTypeEnum.MinLength | SchemaKeywordErrorTypeEnum.MultipleOf | SchemaKeywordErrorTypeEnum.Pattern | SchemaKeywordErrorTypeEnum.PatternProperties | SchemaKeywordErrorTypeEnum.Required | SchemaKeywordErrorTypeEnum.Type; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ValidationErrorType; | ||
(function (ValidationErrorType) { | ||
ValidationErrorType["Unknown"] = "unknown"; | ||
ValidationErrorType["Unplanned"] = "unplanned"; | ||
ValidationErrorType["MissingRequired"] = "missing_required"; | ||
ValidationErrorType["InvalidValue"] = "invalid_value"; | ||
})(ValidationErrorType = exports.ValidationErrorType || (exports.ValidationErrorType = {})); | ||
var ErrorType; | ||
(function (ErrorType) { | ||
ErrorType["AdditionalItems"] = "additionalItems"; | ||
ErrorType["AdditionalProperties"] = "additionalProperties"; | ||
ErrorType["Const"] = "const"; | ||
ErrorType["Dependencies"] = "dependencies"; | ||
ErrorType["Enum"] = "enum"; | ||
ErrorType["ExclusiveMaximum"] = "exclusiveMaximum"; | ||
ErrorType["ExclusiveMinimum"] = "exclusiveMinimum"; | ||
ErrorType["Format"] = "format"; | ||
ErrorType["Maximum"] = "maximum"; | ||
ErrorType["MaxLength"] = "maxLength"; | ||
ErrorType["Minimum"] = "minimum"; | ||
ErrorType["MinLength"] = "minLength"; | ||
ErrorType["MultipleOf"] = "multipleOf"; | ||
ErrorType["Pattern"] = "pattern"; | ||
ErrorType["PatternProperties"] = "patternProperties"; | ||
ErrorType["Required"] = "required"; | ||
ErrorType["Type"] = "type"; | ||
})(ErrorType = exports.ErrorType || (exports.ErrorType = {})); | ||
var ValidationErrorTypeEnum; | ||
(function (ValidationErrorTypeEnum) { | ||
ValidationErrorTypeEnum["Unknown"] = "unknown"; | ||
ValidationErrorTypeEnum["Unplanned"] = "unplanned"; | ||
ValidationErrorTypeEnum["MissingRequired"] = "missing_required"; | ||
ValidationErrorTypeEnum["InvalidValue"] = "invalid_value"; | ||
})(ValidationErrorTypeEnum = exports.ValidationErrorTypeEnum || (exports.ValidationErrorTypeEnum = {})); | ||
var SchemaKeywordErrorTypeEnum; | ||
(function (SchemaKeywordErrorTypeEnum) { | ||
SchemaKeywordErrorTypeEnum["AdditionalItems"] = "additionalItems"; | ||
SchemaKeywordErrorTypeEnum["AdditionalProperties"] = "additionalProperties"; | ||
SchemaKeywordErrorTypeEnum["Const"] = "const"; | ||
SchemaKeywordErrorTypeEnum["Dependencies"] = "dependencies"; | ||
SchemaKeywordErrorTypeEnum["Enum"] = "enum"; | ||
SchemaKeywordErrorTypeEnum["ExclusiveMaximum"] = "exclusiveMaximum"; | ||
SchemaKeywordErrorTypeEnum["ExclusiveMinimum"] = "exclusiveMinimum"; | ||
SchemaKeywordErrorTypeEnum["Format"] = "format"; | ||
SchemaKeywordErrorTypeEnum["Maximum"] = "maximum"; | ||
SchemaKeywordErrorTypeEnum["MaxLength"] = "maxLength"; | ||
SchemaKeywordErrorTypeEnum["Minimum"] = "minimum"; | ||
SchemaKeywordErrorTypeEnum["MinLength"] = "minLength"; | ||
SchemaKeywordErrorTypeEnum["MultipleOf"] = "multipleOf"; | ||
SchemaKeywordErrorTypeEnum["Pattern"] = "pattern"; | ||
SchemaKeywordErrorTypeEnum["PatternProperties"] = "patternProperties"; | ||
SchemaKeywordErrorTypeEnum["Required"] = "required"; | ||
SchemaKeywordErrorTypeEnum["Type"] = "type"; | ||
})(SchemaKeywordErrorTypeEnum = exports.SchemaKeywordErrorTypeEnum || (exports.SchemaKeywordErrorTypeEnum = {})); |
@@ -0,3 +1,4 @@ | ||
import { ValidationErrorType, SchemaKeywordErrorType } from './validation_error_type'; | ||
export interface ValidationError { | ||
validation_error_type?: string; | ||
validation_error_type?: ValidationErrorType; | ||
key?: string; | ||
@@ -7,3 +8,3 @@ error_pointer?: string; | ||
actual?: string | number; | ||
schema_keyword?: string; | ||
schema_keyword?: SchemaKeywordErrorType; | ||
} |
import { DataPlanMatch } from './data_plan_match'; | ||
import { ValidationError } from './validation_error'; | ||
export interface ValidationResultEvent { | ||
event_type?: string; | ||
data?: { | ||
[key: string]: any; | ||
}; | ||
import { EventTypeEnum } from '@mparticle/event-models'; | ||
export declare enum ValidationResultEventEventTypeEnum { | ||
ValidationResult = "validation_result" | ||
} | ||
export declare type ValidationResultEventEventType = ValidationResultEventEventTypeEnum.ValidationResult; | ||
export interface ValidationResultEventData { | ||
match?: DataPlanMatch; | ||
validation_errors?: ValidationError[]; | ||
} | ||
export interface ValidationResultEvent { | ||
event_type?: EventTypeEnum.validationResult; | ||
data?: ValidationResultEventData; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ValidationResultEventEventTypeEnum; | ||
(function (ValidationResultEventEventTypeEnum) { | ||
ValidationResultEventEventTypeEnum["ValidationResult"] = "validation_result"; | ||
})(ValidationResultEventEventTypeEnum = exports.ValidationResultEventEventTypeEnum || (exports.ValidationResultEventEventTypeEnum = {})); |
{ | ||
"name": "@mparticle/data-planning-models", | ||
"version": "0.0.3", | ||
"version": "0.1.0-alpha.0", | ||
"description": "", | ||
@@ -41,3 +41,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@mparticle/event-models": "^1.0.2" | ||
"@mparticle/event-models": "^1.1.0-alpha.0" | ||
}, | ||
@@ -47,3 +47,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "a7a63b5a8098b5bebd18b40816bfa08f3f64fc69" | ||
"gitHead": "3a6371dee41f9dae1f2a7d88b14559770d0d4b56" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24080
472