@groupby/beacon-models
Advanced tools
Comparing version 1.0.1-alpha.1 to 1.0.1-alpha.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../partials/cart/schema"); | ||
const schema_2 = require("../partials/clientVersion/schema"); | ||
const schema_3 = require("../partials/customer/schema"); | ||
const schema_4 = require("../partials/eventType/schema"); | ||
const schema_5 = require("../partials/id/schema"); | ||
const schema_6 = require("../partials/metadata/schema"); | ||
const schema_7 = require("../partials/visit/schema"); | ||
var schema_1 = require("../partials/cart/schema"); | ||
var schema_2 = require("../partials/clientVersion/schema"); | ||
var schema_3 = require("../partials/customer/schema"); | ||
var schema_4 = require("../partials/eventType/schema"); | ||
var schema_5 = require("../partials/id/schema"); | ||
var schema_6 = require("../partials/metadata/schema"); | ||
var schema_7 = require("../partials/visit/schema"); | ||
exports.sanitization = { | ||
@@ -11,0 +11,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../partials/autoMoreRefinements/schema"); | ||
const schema_2 = require("../partials/clientVersion/schema"); | ||
const schema_3 = require("../partials/customer/schema"); | ||
const schema_4 = require("../partials/eventType/schema"); | ||
const schema_5 = require("../partials/id/schema"); | ||
const schema_6 = require("../partials/metadata/schema"); | ||
const schema_7 = require("../partials/visit/schema"); | ||
var schema_1 = require("../partials/autoMoreRefinements/schema"); | ||
var schema_2 = require("../partials/clientVersion/schema"); | ||
var schema_3 = require("../partials/customer/schema"); | ||
var schema_4 = require("../partials/eventType/schema"); | ||
var schema_5 = require("../partials/id/schema"); | ||
var schema_6 = require("../partials/metadata/schema"); | ||
var schema_7 = require("../partials/visit/schema"); | ||
exports.sanitization = { | ||
@@ -11,0 +11,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../partials/autoSearch/schema"); | ||
const schema_2 = require("../partials/clientVersion/schema"); | ||
const schema_3 = require("../partials/customer/schema"); | ||
const schema_4 = require("../partials/eventType/schema"); | ||
const schema_5 = require("../partials/id/schema"); | ||
const schema_6 = require("../partials/metadata/schema"); | ||
const schema_7 = require("../partials/responseId/schema"); | ||
const schema_8 = require("../partials/visit/schema"); | ||
var schema_1 = require("../partials/autoSearch/schema"); | ||
var schema_2 = require("../partials/clientVersion/schema"); | ||
var schema_3 = require("../partials/customer/schema"); | ||
var schema_4 = require("../partials/eventType/schema"); | ||
var schema_5 = require("../partials/id/schema"); | ||
var schema_6 = require("../partials/metadata/schema"); | ||
var schema_7 = require("../partials/responseId/schema"); | ||
var schema_8 = require("../partials/visit/schema"); | ||
exports.sanitization = { | ||
@@ -12,0 +12,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const MAX_ARRAY_LENGTH = 1000; | ||
var MAX_ARRAY_LENGTH = 1000; | ||
exports.MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH; | ||
const MAX_STR_LENGTH = 10000; | ||
var MAX_STR_LENGTH = 10000; | ||
exports.MAX_STR_LENGTH = MAX_STR_LENGTH; |
@@ -35,3 +35,3 @@ export declare const sanitization: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -41,3 +41,3 @@ displayName: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -91,3 +91,3 @@ range: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -340,3 +340,3 @@ high: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -352,3 +352,3 @@ count: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -360,3 +360,3 @@ }; | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -373,3 +373,3 @@ }; | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -392,3 +392,3 @@ type: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -395,0 +395,0 @@ high: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../partials/customerId/schema"); | ||
const schema_2 = require("../partials/directMoreRefinements/schema"); | ||
const schema_3 = require("../partials/eventType/schema"); | ||
const schema_4 = require("../partials/responseId/schema"); | ||
var schema_1 = require("../partials/customerId/schema"); | ||
var schema_2 = require("../partials/directMoreRefinements/schema"); | ||
var schema_3 = require("../partials/eventType/schema"); | ||
var schema_4 = require("../partials/responseId/schema"); | ||
exports.sanitization = { | ||
@@ -8,0 +8,0 @@ type: 'object', |
@@ -187,3 +187,3 @@ export declare const sanitization: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -193,3 +193,3 @@ displayName: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -243,3 +243,3 @@ range: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -294,3 +294,3 @@ high: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -300,3 +300,3 @@ displayName: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -350,3 +350,3 @@ range: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -675,3 +675,3 @@ high: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -687,3 +687,3 @@ count: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -695,3 +695,3 @@ }; | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -708,3 +708,3 @@ }; | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -727,3 +727,3 @@ type: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -730,0 +730,0 @@ high: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../partials/customerId/schema"); | ||
const schema_2 = require("../partials/directSearch/schema"); | ||
const schema_3 = require("../partials/eventType/schema"); | ||
const schema_4 = require("../partials/responseId/schema"); | ||
var schema_1 = require("../partials/customerId/schema"); | ||
var schema_2 = require("../partials/directSearch/schema"); | ||
var schema_3 = require("../partials/eventType/schema"); | ||
var schema_4 = require("../partials/responseId/schema"); | ||
exports.sanitization = { | ||
@@ -8,0 +8,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../partials/clientVersion/schema"); | ||
const schema_2 = require("../partials/customer/schema"); | ||
const schema_3 = require("../partials/dateString/schema"); | ||
const schema_4 = require("../partials/eventString/schema"); | ||
const schema_5 = require("../partials/eventType/schema"); | ||
const schema_6 = require("../partials/id/schema"); | ||
var schema_1 = require("../partials/clientVersion/schema"); | ||
var schema_2 = require("../partials/customer/schema"); | ||
var schema_3 = require("../partials/dateString/schema"); | ||
var schema_4 = require("../partials/eventString/schema"); | ||
var schema_5 = require("../partials/eventType/schema"); | ||
var schema_6 = require("../partials/id/schema"); | ||
exports.sanitization = { | ||
@@ -10,0 +10,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../partials/clientVersion/schema"); | ||
const schema_2 = require("../partials/customer/schema"); | ||
const schema_3 = require("../partials/eventType/schema"); | ||
const schema_4 = require("../partials/id/schema"); | ||
const schema_5 = require("../partials/metadata/schema"); | ||
const schema_6 = require("../partials/moreRefinements/schema"); | ||
const schema_7 = require("../partials/visit/schema"); | ||
var schema_1 = require("../partials/clientVersion/schema"); | ||
var schema_2 = require("../partials/customer/schema"); | ||
var schema_3 = require("../partials/eventType/schema"); | ||
var schema_4 = require("../partials/id/schema"); | ||
var schema_5 = require("../partials/metadata/schema"); | ||
var schema_6 = require("../partials/moreRefinements/schema"); | ||
var schema_7 = require("../partials/visit/schema"); | ||
exports.sanitization = { | ||
@@ -11,0 +11,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../partials/cart/schema"); | ||
const schema_2 = require("../partials/clientVersion/schema"); | ||
const schema_3 = require("../partials/customer/schema"); | ||
const schema_4 = require("../partials/eventType/schema"); | ||
const schema_5 = require("../partials/id/schema"); | ||
const schema_6 = require("../partials/metadata/schema"); | ||
const schema_7 = require("../partials/visit/schema"); | ||
var schema_1 = require("../partials/cart/schema"); | ||
var schema_2 = require("../partials/clientVersion/schema"); | ||
var schema_3 = require("../partials/customer/schema"); | ||
var schema_4 = require("../partials/eventType/schema"); | ||
var schema_5 = require("../partials/id/schema"); | ||
var schema_6 = require("../partials/metadata/schema"); | ||
var schema_7 = require("../partials/visit/schema"); | ||
exports.sanitization = { | ||
@@ -11,0 +11,0 @@ type: 'object', |
{ | ||
"name": "@groupby/beacon-models", | ||
"version": "1.0.1-alpha.1", | ||
"version": "1.0.1-alpha.2", | ||
"description": "TypeScript interfaces and types for the beacons GroupBy systems receive.", | ||
"scripts": { | ||
"clean": "rm -r addToCart autoMoreRefinements autoSearch constants directMoreRefinements directSearch invalid moreRefinements order partials removeFromCart search segment utils viewCart ViewProduct 2> /dev/null; rm *.d.ts 2> /dev/null; rm *.js 2> /dev/null", | ||
"clean": "rm -r addToCart autoMoreRefinements autoSearch constants directMoreRefinements directSearch invalid moreRefinements order partials removeFromCart search segment utils viewCart viewProduct 2> /dev/null; rm *.d.ts 2> /dev/null; rm *.js 2> /dev/null", | ||
"compileTs": "./node_modules/.bin/tsc", | ||
"arrangeForNpm": "mv dist/* . && rm -r dist", | ||
"arrangeForNpm": "mv dist/* . && rm -r dist", | ||
"build": "npm run clean 2> /dev/null; npm run compileTs && npm run arrangeForNpm" | ||
@@ -17,4 +17,4 @@ }, | ||
}, | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"dependencies": { | ||
@@ -21,0 +21,0 @@ "@types/lodash": "^4.14.123", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../id/schema"); | ||
var schema_1 = require("../id/schema"); | ||
exports.sanitization = { | ||
@@ -5,0 +5,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../id/schema"); | ||
var schema_1 = require("../id/schema"); | ||
exports.sanitization = { | ||
@@ -5,0 +5,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
const schema_1 = require("../item/schema"); | ||
const schema_2 = require("../metadata/schema"); | ||
var constants_1 = require("../../constants"); | ||
var schema_1 = require("../item/schema"); | ||
var schema_2 = require("../metadata/schema"); | ||
exports.sanitization = { | ||
@@ -7,0 +7,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
var constants_1 = require("../../constants"); | ||
exports.sanitization = { | ||
@@ -5,0 +5,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
var constants_1 = require("../../constants"); | ||
exports.sanitization = { | ||
@@ -5,0 +5,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
var constants_1 = require("../../constants"); | ||
exports.sanitization = { | ||
@@ -5,0 +5,0 @@ type: 'string', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const utils_1 = require("../../utils"); | ||
var utils_1 = require("../../utils"); | ||
exports.sanitization = { | ||
type: 'string', | ||
exec: (schema, value) => utils_1.toDateString(value), | ||
exec: function (schema, value) { return utils_1.toDateString(value); }, | ||
}; | ||
@@ -8,0 +8,0 @@ exports.validation = { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const utils_1 = require("../../utils"); | ||
var utils_1 = require("../../utils"); | ||
exports.sanitization = { | ||
type: 'string', | ||
exec: (schema, value) => utils_1.toDateString(value, { optional: true }), | ||
exec: function (schema, value) { return utils_1.toDateString(value, { optional: true }); }, | ||
minLength: 1, | ||
@@ -8,0 +8,0 @@ optional: true, |
@@ -19,3 +19,3 @@ export declare const sanitization: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -25,3 +25,3 @@ displayName: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -75,3 +75,3 @@ range: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -324,3 +324,3 @@ high: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -336,3 +336,3 @@ count: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -344,3 +344,3 @@ }; | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -357,3 +357,3 @@ }; | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -376,3 +376,3 @@ type: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -379,0 +379,0 @@ high: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
const schema_1 = require("../id/schema"); | ||
const schema_2 = require("../searchNavigation/schema"); | ||
const schema_3 = require("../searchQuery/schema"); | ||
var constants_1 = require("../../constants"); | ||
var schema_1 = require("../id/schema"); | ||
var schema_2 = require("../searchNavigation/schema"); | ||
var schema_3 = require("../searchQuery/schema"); | ||
exports.sanitization = { | ||
@@ -8,0 +8,0 @@ type: 'object', |
@@ -172,3 +172,3 @@ import { querySanitizationXSS } from '../../utils'; | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -178,3 +178,3 @@ displayName: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -228,3 +228,3 @@ range: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -279,3 +279,3 @@ high: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -285,3 +285,3 @@ displayName: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -335,3 +335,3 @@ range: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -660,3 +660,3 @@ high: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -672,3 +672,3 @@ count: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -680,3 +680,3 @@ }; | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -693,3 +693,3 @@ }; | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -712,3 +712,3 @@ type: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -715,0 +715,0 @@ high: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
const schema_1 = require("../id/schema"); | ||
const schema_2 = require("../searchNavigationList/schema"); | ||
const schema_3 = require("../searchQuery/schema"); | ||
const utils_1 = require("../../utils"); | ||
var constants_1 = require("../../constants"); | ||
var schema_1 = require("../id/schema"); | ||
var schema_2 = require("../searchNavigationList/schema"); | ||
var schema_3 = require("../searchQuery/schema"); | ||
var utils_1 = require("../../utils"); | ||
exports.sanitization = { | ||
@@ -9,0 +9,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
var constants_1 = require("../../constants"); | ||
exports.sanitization = { | ||
@@ -5,0 +5,0 @@ type: 'string', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
var constants_1 = require("../../constants"); | ||
exports.sanitization = { | ||
@@ -5,0 +5,0 @@ type: 'string', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
var constants_1 = require("../../constants"); | ||
exports.sanitization = { | ||
@@ -5,0 +5,0 @@ type: 'string', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
const schema_1 = require("../metadata/schema"); | ||
var constants_1 = require("../../constants"); | ||
var schema_1 = require("../metadata/schema"); | ||
exports.sanitization = { | ||
@@ -6,0 +6,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
var constants_1 = require("../../constants"); | ||
exports.sanitization = { | ||
@@ -5,0 +5,0 @@ type: 'array', |
@@ -6,5 +6,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const merge_1 = __importDefault(require("lodash/merge")); | ||
const schema_1 = require("../autoMoreRefinements/schema"); | ||
const schema_2 = require("../directMoreRefinements/schema"); | ||
var merge_1 = __importDefault(require("lodash/merge")); | ||
var schema_1 = require("../autoMoreRefinements/schema"); | ||
var schema_2 = require("../directMoreRefinements/schema"); | ||
exports.sanitization = {}; | ||
@@ -11,0 +11,0 @@ merge_1.default(exports.sanitization, schema_1.sanitization, schema_2.sanitization); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
const schema_1 = require("../metadata/schema"); | ||
var constants_1 = require("../../constants"); | ||
var schema_1 = require("../metadata/schema"); | ||
exports.sanitization = { | ||
@@ -6,0 +6,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
var constants_1 = require("../../constants"); | ||
exports.sanitization = { | ||
@@ -5,0 +5,0 @@ type: 'string', |
@@ -6,5 +6,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const merge_1 = __importDefault(require("lodash/merge")); | ||
const schema_1 = require("../autoSearch/schema"); | ||
const schema_2 = require("../directSearch/schema"); | ||
var merge_1 = __importDefault(require("lodash/merge")); | ||
var schema_1 = require("../autoSearch/schema"); | ||
var schema_2 = require("../directSearch/schema"); | ||
exports.sanitization = {}; | ||
@@ -11,0 +11,0 @@ merge_1.default(exports.sanitization, schema_1.sanitization, schema_2.sanitization); |
@@ -9,3 +9,3 @@ export declare const sanitization: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -15,3 +15,3 @@ displayName: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -65,3 +65,3 @@ range: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -68,0 +68,0 @@ high: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
const schema_1 = require("../metadata/schema"); | ||
var constants_1 = require("../../constants"); | ||
var schema_1 = require("../metadata/schema"); | ||
exports.sanitization = { | ||
@@ -6,0 +6,0 @@ type: 'object', |
@@ -13,3 +13,3 @@ export declare const sanitization: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -19,3 +19,3 @@ displayName: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -69,3 +69,3 @@ range: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -72,0 +72,0 @@ high: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../searchNavigation/schema"); | ||
var schema_1 = require("../searchNavigation/schema"); | ||
exports.sanitization = { | ||
@@ -5,0 +5,0 @@ type: 'array', |
@@ -205,3 +205,3 @@ import { querySanitizationXSS } from '../../utils'; | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -217,3 +217,3 @@ count: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -225,3 +225,3 @@ }; | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -238,3 +238,3 @@ }; | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -257,3 +257,3 @@ type: { | ||
maxLength: number; | ||
rules: never[]; | ||
rules: any[]; | ||
}; | ||
@@ -260,0 +260,0 @@ high: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
const utils_1 = require("../../utils"); | ||
var constants_1 = require("../../constants"); | ||
var utils_1 = require("../../utils"); | ||
exports.sanitization = { | ||
@@ -6,0 +6,0 @@ type: 'object', |
@@ -6,5 +6,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const merge_1 = __importDefault(require("lodash/merge")); | ||
const constants_1 = require("../../constants"); | ||
const schema_1 = require("../dateString/schema"); | ||
var merge_1 = __importDefault(require("lodash/merge")); | ||
var constants_1 = require("../../constants"); | ||
var schema_1 = require("../dateString/schema"); | ||
exports.sanitizationPrototype = { | ||
@@ -11,0 +11,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../partials/cart/schema"); | ||
const schema_2 = require("../partials/clientVersion/schema"); | ||
const schema_3 = require("../partials/customer/schema"); | ||
const schema_4 = require("../partials/eventType/schema"); | ||
const schema_5 = require("../partials/id/schema"); | ||
const schema_6 = require("../partials/metadata/schema"); | ||
const schema_7 = require("../partials/visit/schema"); | ||
var schema_1 = require("../partials/cart/schema"); | ||
var schema_2 = require("../partials/clientVersion/schema"); | ||
var schema_3 = require("../partials/customer/schema"); | ||
var schema_4 = require("../partials/eventType/schema"); | ||
var schema_5 = require("../partials/id/schema"); | ||
var schema_6 = require("../partials/metadata/schema"); | ||
var schema_7 = require("../partials/visit/schema"); | ||
exports.sanitization = { | ||
@@ -11,0 +11,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../partials/clientVersion/schema"); | ||
const schema_2 = require("../partials/customer/schema"); | ||
const schema_3 = require("../partials/eventType/schema"); | ||
const schema_4 = require("../partials/id/schema"); | ||
const schema_5 = require("../partials/metadata/schema"); | ||
const schema_6 = require("../partials/responseId/schema"); | ||
const schema_7 = require("../partials/search/schema"); | ||
const schema_8 = require("../partials/visit/schema"); | ||
var schema_1 = require("../partials/clientVersion/schema"); | ||
var schema_2 = require("../partials/customer/schema"); | ||
var schema_3 = require("../partials/eventType/schema"); | ||
var schema_4 = require("../partials/id/schema"); | ||
var schema_5 = require("../partials/metadata/schema"); | ||
var schema_6 = require("../partials/responseId/schema"); | ||
var schema_7 = require("../partials/search/schema"); | ||
var schema_8 = require("../partials/visit/schema"); | ||
exports.sanitization = { | ||
@@ -12,0 +12,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../partials/customer/schema"); | ||
var schema_1 = require("../partials/customer/schema"); | ||
exports.sanitization = { | ||
@@ -5,0 +5,0 @@ type: 'object', |
@@ -6,10 +6,10 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const defaults_1 = __importDefault(require("lodash/defaults")); | ||
const isArray_1 = __importDefault(require("lodash/isArray")); | ||
const isNumber_1 = __importDefault(require("lodash/isNumber")); | ||
const isObject_1 = __importDefault(require("lodash/isObject")); | ||
const isPlainObject_1 = __importDefault(require("lodash/isPlainObject")); | ||
const isString_1 = __importDefault(require("lodash/isString")); | ||
const moment_1 = __importDefault(require("moment")); | ||
const regexpu_core_1 = __importDefault(require("regexpu-core")); | ||
var defaults_1 = __importDefault(require("lodash/defaults")); | ||
var isArray_1 = __importDefault(require("lodash/isArray")); | ||
var isNumber_1 = __importDefault(require("lodash/isNumber")); | ||
var isObject_1 = __importDefault(require("lodash/isObject")); | ||
var isPlainObject_1 = __importDefault(require("lodash/isPlainObject")); | ||
var isString_1 = __importDefault(require("lodash/isString")); | ||
var moment_1 = __importDefault(require("moment")); | ||
var regexpu_core_1 = __importDefault(require("regexpu-core")); | ||
/** | ||
@@ -21,10 +21,10 @@ * Use as 'exec' for schema-inspector. | ||
return; | ||
const d = new Date(post); | ||
var d = new Date(post); | ||
if (/invalid date/i.test(d.toString())) | ||
this.report(`Invalid date: ${post}`); | ||
this.report("Invalid date: " + post); | ||
} | ||
exports.isValidDate = isValidDate; | ||
function toDateString(value, options) { | ||
const { optional } = defaults_1.default(options, { optional: false }); | ||
const INVALID = optional | ||
var optional = defaults_1.default(options, { optional: false }).optional; | ||
var INVALID = optional | ||
? value | ||
@@ -38,8 +38,8 @@ : 'invalid date'; | ||
} | ||
const numericValue = +value; | ||
const isNumeric = !isNaN(numericValue); | ||
const date = isNumeric | ||
var numericValue = +value; | ||
var isNumeric = !isNaN(numericValue); | ||
var date = isNumeric | ||
? moment_1.default(numericValue) | ||
: moment_1.default(value); | ||
const stringDate = date.toISOString(); | ||
var stringDate = date.toISOString(); | ||
return stringDate | ||
@@ -54,3 +54,3 @@ ? stringDate | ||
// likely XSS charactesr: <>=;(){}[]? | ||
const BLACKLIST_STRIPING_REGEX = new RegExp(regexpu_core_1.default('[\\p{Me}\\p{C}<>=;(){}\\[\\]?]', 'u', { | ||
var BLACKLIST_STRIPING_REGEX = new RegExp(regexpu_core_1.default('[\\p{Me}\\p{C}<>=;(){}\\[\\]?]', 'u', { | ||
unicodePropertyEscape: true, | ||
@@ -57,0 +57,0 @@ useUnicodeFlag: false, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../partials/cart/schema"); | ||
const schema_2 = require("../partials/clientVersion/schema"); | ||
const schema_3 = require("../partials/customer/schema"); | ||
const schema_4 = require("../partials/eventType/schema"); | ||
const schema_5 = require("../partials/id/schema"); | ||
const schema_6 = require("../partials/metadata/schema"); | ||
const schema_7 = require("../partials/visit/schema"); | ||
var schema_1 = require("../partials/cart/schema"); | ||
var schema_2 = require("../partials/clientVersion/schema"); | ||
var schema_3 = require("../partials/customer/schema"); | ||
var schema_4 = require("../partials/eventType/schema"); | ||
var schema_5 = require("../partials/id/schema"); | ||
var schema_6 = require("../partials/metadata/schema"); | ||
var schema_7 = require("../partials/visit/schema"); | ||
exports.sanitization = { | ||
@@ -11,0 +11,0 @@ type: 'object', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_1 = require("../partials/clientVersion/schema"); | ||
const schema_2 = require("../partials/customer/schema"); | ||
const schema_3 = require("../partials/eventType/schema"); | ||
const schema_4 = require("../partials/id/schema"); | ||
const schema_5 = require("../partials/metadata/schema"); | ||
const schema_6 = require("../partials/product/schema"); | ||
const schema_7 = require("../partials/visit/schema"); | ||
var schema_1 = require("../partials/clientVersion/schema"); | ||
var schema_2 = require("../partials/customer/schema"); | ||
var schema_3 = require("../partials/eventType/schema"); | ||
var schema_4 = require("../partials/id/schema"); | ||
var schema_5 = require("../partials/metadata/schema"); | ||
var schema_6 = require("../partials/product/schema"); | ||
var schema_7 = require("../partials/visit/schema"); | ||
exports.sanitization = { | ||
@@ -11,0 +11,0 @@ type: 'object', |
578408