@hubspot/project-parsing-lib 0.2.0-beta.1 → 0.2.0-experimental.1
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/README.md +4 -35
- package/package.json +54 -19
- package/src/exports/constants.d.ts +1 -0
- package/src/exports/constants.js +1 -0
- package/src/exports/migrate.d.ts +1 -0
- package/src/exports/migrate.js +1 -0
- package/src/exports/profiles.d.ts +3 -0
- package/src/exports/profiles.js +2 -0
- package/src/exports/projects.d.ts +3 -0
- package/src/exports/projects.js +2 -0
- package/src/exports/schema.d.ts +2 -0
- package/src/exports/schema.js +1 -0
- package/src/exports/themes.d.ts +2 -0
- package/src/exports/themes.js +1 -0
- package/src/exports/transform.d.ts +2 -0
- package/src/exports/transform.js +1 -0
- package/src/exports/translate.d.ts +3 -0
- package/src/exports/translate.js +2 -0
- package/src/exports/uid.d.ts +1 -0
- package/src/exports/uid.js +1 -0
- package/src/lang/copy.d.ts +7 -1
- package/src/lang/copy.js +29 -33
- package/src/lib/constants.d.ts +45 -28
- package/src/lib/constants.js +160 -121
- package/src/lib/errors.d.ts +4 -3
- package/src/lib/errors.js +62 -38
- package/src/lib/files.d.ts +10 -1
- package/src/lib/files.js +51 -40
- package/src/lib/localDev.d.ts +4 -0
- package/src/lib/localDev.js +72 -0
- package/src/lib/migrate.js +32 -42
- package/src/lib/migrateThemes.d.ts +25 -0
- package/src/lib/migrateThemes.js +120 -0
- package/src/lib/profiles.d.ts +6 -1
- package/src/lib/profiles.js +95 -40
- package/src/lib/project.d.ts +13 -0
- package/src/lib/project.js +29 -0
- package/src/lib/schemas.d.ts +2 -2
- package/src/lib/schemas.js +11 -11
- package/src/lib/transform.d.ts +4 -2
- package/src/lib/transform.js +100 -53
- package/src/lib/translate.d.ts +3 -0
- package/src/lib/translate.js +52 -0
- package/src/lib/types.d.ts +28 -4
- package/src/lib/types.js +1 -2
- package/src/lib/uid.d.ts +2 -0
- package/src/lib/uid.js +14 -9
- package/src/lib/utils.d.ts +3 -0
- package/src/lib/utils.js +16 -0
- package/src/lib/validation.d.ts +4 -4
- package/src/lib/validation.js +61 -53
- package/src/index.d.ts +0 -18
- package/src/index.js +0 -86
package/src/lib/uid.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const copy_1 = require("../lang/copy");
|
|
5
|
-
function validateUid(uid) {
|
|
1
|
+
import { errorMessages } from '../lang/copy.js';
|
|
2
|
+
export const MAX_UID_LENGTH = 64;
|
|
3
|
+
export function validateUid(uid) {
|
|
6
4
|
if (uid === '' || !uid) {
|
|
7
|
-
return
|
|
5
|
+
return errorMessages.validation.emptyUid;
|
|
8
6
|
}
|
|
9
|
-
if (uid.length >
|
|
10
|
-
return
|
|
7
|
+
if (uid.length > MAX_UID_LENGTH) {
|
|
8
|
+
return errorMessages.validation.uidTooLong;
|
|
11
9
|
}
|
|
12
10
|
if (!/^[a-zA-Z0-9_\-.]+$/.test(uid)) {
|
|
13
|
-
return
|
|
11
|
+
return errorMessages.validation.invalidUid;
|
|
14
12
|
}
|
|
15
13
|
}
|
|
14
|
+
export function coerceToValidUid(potentialUid) {
|
|
15
|
+
if (typeof potentialUid !== 'string') {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
const newUid = potentialUid.replace(/[^a-zA-Z0-9_\-.]/g, '');
|
|
19
|
+
return newUid.length === 0 ? undefined : newUid.substring(0, MAX_UID_LENGTH);
|
|
20
|
+
}
|
package/src/lib/utils.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import { PROFILE_VARIABLE_TYPES } from './constants.js';
|
|
3
|
+
export function loadJsonFile(filename) {
|
|
4
|
+
return JSON.parse(fs.readFileSync(filename, {
|
|
5
|
+
encoding: 'utf-8',
|
|
6
|
+
}));
|
|
7
|
+
}
|
|
8
|
+
export function getJavaNumberType(value) {
|
|
9
|
+
const JAVA_INT_MIN = -2_147_483_648;
|
|
10
|
+
const JAVA_INT_MAX = 2_147_483_647;
|
|
11
|
+
// Check if the value fits in Java int range
|
|
12
|
+
if (value >= JAVA_INT_MIN && value <= JAVA_INT_MAX) {
|
|
13
|
+
return PROFILE_VARIABLE_TYPES.PROFILE_INT;
|
|
14
|
+
}
|
|
15
|
+
return PROFILE_VARIABLE_TYPES.PROFILE_LONG;
|
|
16
|
+
}
|
package/src/lib/validation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CompiledError, IntermediateRepresentation, Transformation, TranslationContext } from './types';
|
|
2
|
-
import
|
|
1
|
+
import { CompiledError, IntermediateRepresentation, Transformation, TranslationContext } from './types.js';
|
|
2
|
+
import { Ajv2020, ValidateFunction } from 'ajv/dist/2020.js';
|
|
3
3
|
export type ValidResult = {
|
|
4
4
|
valid: true;
|
|
5
5
|
errors?: null;
|
|
@@ -10,5 +10,5 @@ export type ValidationResults = {
|
|
|
10
10
|
errors?: CompiledError;
|
|
11
11
|
schemaValidationErrors?: ValidateFunction['errors'];
|
|
12
12
|
} | ValidResult;
|
|
13
|
-
export declare function createAjvInstance():
|
|
14
|
-
export declare function validateIntermediateRepresentation(intermediateRepresentation: IntermediateRepresentation,
|
|
13
|
+
export declare function createAjvInstance(): Ajv2020;
|
|
14
|
+
export declare function validateIntermediateRepresentation(intermediateRepresentation: IntermediateRepresentation, transformations: Transformation[], translationContext: TranslationContext): Promise<ValidResult>;
|
package/src/lib/validation.js
CHANGED
|
@@ -1,85 +1,84 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
(0, ajv_formats_1.default)(ajv);
|
|
1
|
+
import { getIntermediateRepresentationSchema } from './schemas.js';
|
|
2
|
+
import { Ajv2020, } from 'ajv/dist/2020.js';
|
|
3
|
+
import { compileError, TranslationError } from './errors.js';
|
|
4
|
+
import { errorMessages } from '../lang/copy.js';
|
|
5
|
+
import { AUTO_GENERATED_COMPONENT_TYPES, Components } from './constants.js';
|
|
6
|
+
import path from 'path';
|
|
7
|
+
import { findTransformationByUid, mapToUserFacingType } from './transform.js';
|
|
8
|
+
import { validateUid } from './uid.js';
|
|
9
|
+
// ajv-formats does not play nicely with ESM and TS
|
|
10
|
+
import addFormatsModule from 'ajv-formats';
|
|
11
|
+
const addFormats = addFormatsModule;
|
|
12
|
+
export function createAjvInstance() {
|
|
13
|
+
const ajv = new Ajv2020({
|
|
14
|
+
allErrors: true,
|
|
15
|
+
code: { esm: true },
|
|
16
|
+
strict: false, // Allow Draft 2020-12 features
|
|
17
|
+
});
|
|
18
|
+
addFormats(ajv);
|
|
20
19
|
return ajv;
|
|
21
20
|
}
|
|
22
|
-
function validateIntermediateRepresentationNode(schema, transformation, irNode,
|
|
23
|
-
if (
|
|
21
|
+
function validateIntermediateRepresentationNode(schema, transformation, irNode, translationContext) {
|
|
22
|
+
if (AUTO_GENERATED_COMPONENT_TYPES.includes(mapToUserFacingType(irNode.componentType))) {
|
|
24
23
|
// Skip validation for auto-generated components
|
|
25
24
|
return {
|
|
26
25
|
valid: true,
|
|
27
26
|
};
|
|
28
27
|
}
|
|
29
|
-
if (transformation
|
|
28
|
+
if (transformation.fileParseResult.errors.length > 0) {
|
|
30
29
|
return {
|
|
31
30
|
valid: false,
|
|
32
|
-
errors:
|
|
31
|
+
errors: compileError(transformation),
|
|
33
32
|
};
|
|
34
33
|
}
|
|
35
34
|
const ajv = createAjvInstance();
|
|
36
35
|
let shouldSkipValidation = false;
|
|
37
36
|
if (!irNode.uid) {
|
|
38
|
-
transformation
|
|
37
|
+
transformation.fileParseResult.errors.push(errorMessages.validation.missingUid);
|
|
39
38
|
}
|
|
40
39
|
else {
|
|
41
|
-
const uidValidationResult =
|
|
40
|
+
const uidValidationResult = validateUid(irNode.uid);
|
|
42
41
|
if (uidValidationResult) {
|
|
43
|
-
transformation
|
|
42
|
+
transformation.fileParseResult.errors.push(uidValidationResult);
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
if (!irNode.config) {
|
|
47
|
-
transformation
|
|
46
|
+
transformation.fileParseResult.errors.push(errorMessages.validation.missingConfig);
|
|
48
47
|
// If there is no config block, there is nothing to validation
|
|
49
48
|
shouldSkipValidation = true;
|
|
50
49
|
}
|
|
51
50
|
if (!schema[irNode.componentType]) {
|
|
52
51
|
if (!irNode.componentType) {
|
|
53
|
-
transformation
|
|
52
|
+
transformation.fileParseResult.errors.push(errorMessages.validation.missingType);
|
|
54
53
|
}
|
|
55
54
|
else {
|
|
56
|
-
transformation
|
|
55
|
+
transformation.fileParseResult.errors.push(errorMessages.validation.unsupportedType(irNode.componentType));
|
|
57
56
|
}
|
|
58
57
|
// If there is no schema for the component type, there is no way to validate
|
|
59
58
|
shouldSkipValidation = true;
|
|
60
59
|
}
|
|
61
|
-
const userFacingType =
|
|
62
|
-
const component =
|
|
60
|
+
const userFacingType = mapToUserFacingType(irNode.componentType);
|
|
61
|
+
const component = Components[userFacingType];
|
|
63
62
|
if (userFacingType && component) {
|
|
64
63
|
const expectedParentDir = component.parentComponent
|
|
65
|
-
?
|
|
64
|
+
? Components[component.parentComponent].dir
|
|
66
65
|
: '';
|
|
67
|
-
const expectedLocation =
|
|
68
|
-
const actualLocation =
|
|
66
|
+
const expectedLocation = path.join(expectedParentDir, component.dir);
|
|
67
|
+
const actualLocation = path.dirname(transformation.fileParseResult.file);
|
|
69
68
|
if (expectedLocation !== actualLocation) {
|
|
70
|
-
transformation
|
|
69
|
+
transformation.fileParseResult.errors.push(errorMessages.validation.wrongDirectoryForComponent(actualLocation, userFacingType, component, path.join(translationContext.projectSourceDir, expectedLocation)));
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
if (shouldSkipValidation) {
|
|
74
73
|
return {
|
|
75
74
|
valid: false,
|
|
76
|
-
errors:
|
|
75
|
+
errors: compileError(transformation),
|
|
77
76
|
};
|
|
78
77
|
}
|
|
79
78
|
const validate = ajv.compile(schema[irNode.componentType]);
|
|
80
79
|
const valid = validate(irNode.config);
|
|
81
80
|
if (valid) {
|
|
82
|
-
const { errors } = transformation
|
|
81
|
+
const { errors } = transformation.fileParseResult;
|
|
83
82
|
// Even through it passed the schema validation, it may have had other errors along the way
|
|
84
83
|
return errors.length === 0
|
|
85
84
|
? {
|
|
@@ -87,7 +86,7 @@ function validateIntermediateRepresentationNode(schema, transformation, irNode,
|
|
|
87
86
|
}
|
|
88
87
|
: {
|
|
89
88
|
valid: false,
|
|
90
|
-
errors:
|
|
89
|
+
errors: compileError(transformation),
|
|
91
90
|
};
|
|
92
91
|
}
|
|
93
92
|
return {
|
|
@@ -95,18 +94,24 @@ function validateIntermediateRepresentationNode(schema, transformation, irNode,
|
|
|
95
94
|
schemaValidationErrors: validate.errors,
|
|
96
95
|
};
|
|
97
96
|
}
|
|
98
|
-
async function validateIntermediateRepresentation(intermediateRepresentation,
|
|
99
|
-
const
|
|
97
|
+
export async function validateIntermediateRepresentation(intermediateRepresentation, transformations, translationContext) {
|
|
98
|
+
const hasAnyFileParseErrors = transformations.some(t => t.fileParseResult.errors.length > 0);
|
|
99
|
+
const schema = await getIntermediateRepresentationSchema(translationContext);
|
|
100
100
|
const potentialDuplicatesByComponent = {};
|
|
101
|
-
const results = Object.values(intermediateRepresentation.intermediateNodesIndexedByUid).map(
|
|
102
|
-
const userFacingType =
|
|
103
|
-
const component =
|
|
101
|
+
const results = Object.values(intermediateRepresentation.intermediateNodesIndexedByUid).map(irNode => {
|
|
102
|
+
const userFacingType = mapToUserFacingType(irNode.componentType);
|
|
103
|
+
const component = Components[userFacingType];
|
|
104
104
|
if (component && component.singularComponent) {
|
|
105
|
-
potentialDuplicatesByComponent[userFacingType] =
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
potentialDuplicatesByComponent[userFacingType] =
|
|
106
|
+
potentialDuplicatesByComponent[userFacingType]
|
|
107
|
+
? [...potentialDuplicatesByComponent[userFacingType], irNode]
|
|
108
|
+
: [irNode];
|
|
109
|
+
}
|
|
110
|
+
const transformation = findTransformationByUid(transformations, irNode.uid);
|
|
111
|
+
if (!transformation) {
|
|
112
|
+
return { valid: false, errors: [errorMessages.validation.missingUid] };
|
|
108
113
|
}
|
|
109
|
-
return validateIntermediateRepresentationNode(schema, transformation, irNode,
|
|
114
|
+
return validateIntermediateRepresentationNode(schema, transformation, irNode, translationContext);
|
|
110
115
|
});
|
|
111
116
|
let hasDuplicates = false;
|
|
112
117
|
Object.entries(potentialDuplicatesByComponent).forEach(([componentType, potentialDuplicates]) => {
|
|
@@ -115,17 +120,20 @@ async function validateIntermediateRepresentation(intermediateRepresentation, tr
|
|
|
115
120
|
}
|
|
116
121
|
hasDuplicates = true;
|
|
117
122
|
potentialDuplicates.forEach(duplicate => {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
123
|
+
const potentialDuplicateTransformation = findTransformationByUid(transformations, duplicate.uid);
|
|
124
|
+
if (potentialDuplicateTransformation) {
|
|
125
|
+
potentialDuplicateTransformation.fileParseResult.errors.push(errorMessages.project.duplicateComponent(componentType));
|
|
126
|
+
}
|
|
121
127
|
});
|
|
122
128
|
});
|
|
123
|
-
const valid = !
|
|
129
|
+
const valid = !hasAnyFileParseErrors &&
|
|
130
|
+
!hasDuplicates &&
|
|
131
|
+
results.every(result => result.valid);
|
|
124
132
|
if (valid) {
|
|
125
133
|
return {
|
|
126
134
|
valid,
|
|
127
135
|
};
|
|
128
136
|
}
|
|
129
|
-
const schemaValidationErrors = results.map(result => result.schemaValidationErrors);
|
|
130
|
-
throw new
|
|
137
|
+
const schemaValidationErrors = results.map(result => 'schemaValidationErrors' in result ? result.schemaValidationErrors : null);
|
|
138
|
+
throw new TranslationError(errorMessages.project.failedToTranslateProject, transformations, schemaValidationErrors, translationContext);
|
|
131
139
|
}
|
package/src/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IntermediateRepresentation, IntermediateRepresentationNode, IntermediateRepresentationLocalDev, TranslationContext, TranslationOptions, IntermediateRepresentationNodeLocalDev } from './lib/types';
|
|
2
|
-
import { ValidateFunction, AnySchema, ErrorObject } from 'ajv/dist/2020';
|
|
3
|
-
export declare function translate(translationContext: TranslationContext, translationOptions?: TranslationOptions): Promise<IntermediateRepresentation>;
|
|
4
|
-
export declare function translateForLocalDev(translationContext: TranslationContext, translationOptions?: Pick<TranslationOptions, 'profile'>): Promise<IntermediateRepresentationLocalDev>;
|
|
5
|
-
export { isTranslationError } from './lib/errors';
|
|
6
|
-
export { IntermediateRepresentation, IntermediateRepresentationNode, IntermediateRepresentationLocalDev, IntermediateRepresentationNodeLocalDev, TranslationContext, };
|
|
7
|
-
export { getHsProfileFilename } from './lib/profiles';
|
|
8
|
-
export { loadHsProfileFile, getAllHsProfiles } from './lib/files';
|
|
9
|
-
export { migrate } from './lib/migrate';
|
|
10
|
-
export { validateUid } from './lib/uid';
|
|
11
|
-
export { mapToUserFriendlyName, mapToInternalType } from './lib/transform';
|
|
12
|
-
export { getIntermediateRepresentationSchema } from './lib/schemas';
|
|
13
|
-
export { createAjvInstance } from './lib/validation';
|
|
14
|
-
export { ValidateFunction, AnySchema, ErrorObject };
|
|
15
|
-
export { metafileExtension, hsProjectJsonFilename } from './lib/constants';
|
|
16
|
-
export { Components } from './lib/types';
|
|
17
|
-
export { AjvErrorKeyword } from './lib/errors';
|
|
18
|
-
export { getInvalidJsonError, getMissingTypeError, getMissingConfigError, getMissingAccountIdError, getMissingRequiredFieldError, getFailedToFetchSchemasError, getUnsupportedTypeError, } from './lang/copy';
|
package/src/index.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getUnsupportedTypeError = exports.getFailedToFetchSchemasError = exports.getMissingRequiredFieldError = exports.getMissingAccountIdError = exports.getMissingConfigError = exports.getMissingTypeError = exports.getInvalidJsonError = exports.AjvErrorKeyword = exports.hsProjectJsonFilename = exports.metafileExtension = exports.createAjvInstance = exports.getIntermediateRepresentationSchema = exports.mapToInternalType = exports.mapToUserFriendlyName = exports.validateUid = exports.migrate = exports.getAllHsProfiles = exports.loadHsProfileFile = exports.getHsProfileFilename = exports.isTranslationError = void 0;
|
|
7
|
-
exports.translate = translate;
|
|
8
|
-
exports.translateForLocalDev = translateForLocalDev;
|
|
9
|
-
const files_1 = require("./lib/files");
|
|
10
|
-
const validation_1 = require("./lib/validation");
|
|
11
|
-
const transform_1 = require("./lib/transform");
|
|
12
|
-
const copy_1 = require("./lang/copy");
|
|
13
|
-
const path_1 = __importDefault(require("path"));
|
|
14
|
-
const defaultOptions = {
|
|
15
|
-
skipValidation: false,
|
|
16
|
-
};
|
|
17
|
-
async function translate(translationContext, translationOptions = defaultOptions) {
|
|
18
|
-
const { skipValidation } = translationOptions;
|
|
19
|
-
const metafileContents = await (0, files_1.loadHsMetaFiles)(translationContext);
|
|
20
|
-
if (metafileContents.length === 0) {
|
|
21
|
-
throw new Error(copy_1.errorMessages.project.noHsMetaFiles);
|
|
22
|
-
}
|
|
23
|
-
let hsProfileContents;
|
|
24
|
-
if (translationOptions.profile) {
|
|
25
|
-
hsProfileContents = (0, files_1.loadHsProfileFile)(translationContext.projectSourceDir, translationOptions.profile);
|
|
26
|
-
}
|
|
27
|
-
const transformation = (0, transform_1.transform)(metafileContents, translationContext, hsProfileContents);
|
|
28
|
-
const intermediateRepresentation = (0, transform_1.getIntermediateRepresentation)(transformation, skipValidation);
|
|
29
|
-
// Remove once extensions and serverless functions are supported
|
|
30
|
-
if (!skipValidation) {
|
|
31
|
-
await (0, validation_1.validateIntermediateRepresentation)(intermediateRepresentation, transformation, translationContext);
|
|
32
|
-
}
|
|
33
|
-
return intermediateRepresentation;
|
|
34
|
-
}
|
|
35
|
-
async function translateForLocalDev(translationContext, translationOptions) {
|
|
36
|
-
const IR = await translate(translationContext, {
|
|
37
|
-
skipValidation: true,
|
|
38
|
-
profile: translationOptions?.profile,
|
|
39
|
-
});
|
|
40
|
-
const localDevIr = {
|
|
41
|
-
intermediateNodesIndexedByUid: {},
|
|
42
|
-
};
|
|
43
|
-
Object.entries(IR.intermediateNodesIndexedByUid).forEach(([uid, node]) => {
|
|
44
|
-
const component = IR.intermediateNodesIndexedByUid[uid];
|
|
45
|
-
const componentConfigPath = path_1.default.join(translationContext.projectSourceDir, component.metaFilePath);
|
|
46
|
-
localDevIr.intermediateNodesIndexedByUid[uid] = {
|
|
47
|
-
...node,
|
|
48
|
-
localDev: {
|
|
49
|
-
componentRoot: path_1.default.dirname(componentConfigPath),
|
|
50
|
-
componentConfigPath,
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
return localDevIr;
|
|
55
|
-
}
|
|
56
|
-
var errors_1 = require("./lib/errors");
|
|
57
|
-
Object.defineProperty(exports, "isTranslationError", { enumerable: true, get: function () { return errors_1.isTranslationError; } });
|
|
58
|
-
var profiles_1 = require("./lib/profiles");
|
|
59
|
-
Object.defineProperty(exports, "getHsProfileFilename", { enumerable: true, get: function () { return profiles_1.getHsProfileFilename; } });
|
|
60
|
-
var files_2 = require("./lib/files");
|
|
61
|
-
Object.defineProperty(exports, "loadHsProfileFile", { enumerable: true, get: function () { return files_2.loadHsProfileFile; } });
|
|
62
|
-
Object.defineProperty(exports, "getAllHsProfiles", { enumerable: true, get: function () { return files_2.getAllHsProfiles; } });
|
|
63
|
-
var migrate_1 = require("./lib/migrate");
|
|
64
|
-
Object.defineProperty(exports, "migrate", { enumerable: true, get: function () { return migrate_1.migrate; } });
|
|
65
|
-
var uid_1 = require("./lib/uid");
|
|
66
|
-
Object.defineProperty(exports, "validateUid", { enumerable: true, get: function () { return uid_1.validateUid; } });
|
|
67
|
-
var transform_2 = require("./lib/transform");
|
|
68
|
-
Object.defineProperty(exports, "mapToUserFriendlyName", { enumerable: true, get: function () { return transform_2.mapToUserFriendlyName; } });
|
|
69
|
-
Object.defineProperty(exports, "mapToInternalType", { enumerable: true, get: function () { return transform_2.mapToInternalType; } });
|
|
70
|
-
var schemas_1 = require("./lib/schemas");
|
|
71
|
-
Object.defineProperty(exports, "getIntermediateRepresentationSchema", { enumerable: true, get: function () { return schemas_1.getIntermediateRepresentationSchema; } });
|
|
72
|
-
var validation_2 = require("./lib/validation");
|
|
73
|
-
Object.defineProperty(exports, "createAjvInstance", { enumerable: true, get: function () { return validation_2.createAjvInstance; } });
|
|
74
|
-
var constants_1 = require("./lib/constants");
|
|
75
|
-
Object.defineProperty(exports, "metafileExtension", { enumerable: true, get: function () { return constants_1.metafileExtension; } });
|
|
76
|
-
Object.defineProperty(exports, "hsProjectJsonFilename", { enumerable: true, get: function () { return constants_1.hsProjectJsonFilename; } });
|
|
77
|
-
var errors_2 = require("./lib/errors");
|
|
78
|
-
Object.defineProperty(exports, "AjvErrorKeyword", { enumerable: true, get: function () { return errors_2.AjvErrorKeyword; } });
|
|
79
|
-
var copy_2 = require("./lang/copy");
|
|
80
|
-
Object.defineProperty(exports, "getInvalidJsonError", { enumerable: true, get: function () { return copy_2.getInvalidJsonError; } });
|
|
81
|
-
Object.defineProperty(exports, "getMissingTypeError", { enumerable: true, get: function () { return copy_2.getMissingTypeError; } });
|
|
82
|
-
Object.defineProperty(exports, "getMissingConfigError", { enumerable: true, get: function () { return copy_2.getMissingConfigError; } });
|
|
83
|
-
Object.defineProperty(exports, "getMissingAccountIdError", { enumerable: true, get: function () { return copy_2.getMissingAccountIdError; } });
|
|
84
|
-
Object.defineProperty(exports, "getMissingRequiredFieldError", { enumerable: true, get: function () { return copy_2.getMissingRequiredFieldError; } });
|
|
85
|
-
Object.defineProperty(exports, "getFailedToFetchSchemasError", { enumerable: true, get: function () { return copy_2.getFailedToFetchSchemasError; } });
|
|
86
|
-
Object.defineProperty(exports, "getUnsupportedTypeError", { enumerable: true, get: function () { return copy_2.getUnsupportedTypeError; } });
|