functional-models 2.1.13 → 3.0.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/README.md +484 -301
- package/errors.d.ts +2 -5
- package/errors.js.map +1 -1
- package/index.d.ts +6 -7
- package/index.js +24 -20
- package/index.js.map +1 -1
- package/lib.d.ts +15 -4051
- package/lib.js +120 -8
- package/lib.js.map +1 -1
- package/models.d.ts +13 -3
- package/models.js +73 -38
- package/models.js.map +1 -1
- package/package.json +34 -21
- package/properties.d.ts +439 -23639
- package/properties.js +237 -103
- package/properties.js.map +1 -1
- package/serialization.d.ts +2 -2
- package/serialization.js +1 -1
- package/serialization.js.map +1 -1
- package/types.d.ts +692 -0
- package/types.js +45 -0
- package/types.js.map +1 -0
- package/utils.d.ts +4 -2
- package/utils.js +43 -2
- package/utils.js.map +1 -1
- package/validation.d.ts +18 -12164
- package/validation.js +30 -28
- package/validation.js.map +1 -1
- package/constants.d.ts +0 -14
- package/constants.js +0 -19
- package/constants.js.map +0 -1
- package/interfaces.d.ts +0 -147
- package/interfaces.js +0 -4
- package/interfaces.js.map +0 -1
- package/lazy.d.ts +0 -3
- package/lazy.js +0 -51
- package/lazy.js.map +0 -1
- package/methods.d.ts +0 -6
- package/methods.js +0 -18
- package/methods.js.map +0 -1
package/errors.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
type KeysToErrors = Readonly<{
|
|
2
|
-
[s: string]: readonly string[];
|
|
3
|
-
}>;
|
|
4
1
|
declare class ValidationError extends Error {
|
|
5
2
|
modelName: string;
|
|
6
|
-
keysToErrors:
|
|
7
|
-
constructor(modelName: string, keysToErrors:
|
|
3
|
+
keysToErrors: Record<string, readonly string[]>;
|
|
4
|
+
constructor(modelName: string, keysToErrors: Record<string, readonly string[]>);
|
|
8
5
|
}
|
|
9
6
|
export { ValidationError };
|
package/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAAA,mDAAmD;AACnD,0CAA0C;AAC1C,MAAM,eAAgB,SAAQ,KAAK;IAGjC,YACE,SAAiB,EACjB,YAA+C;QAE/C,KAAK,CAAC,GAAG,SAAS,0BAA0B,CAAC,CAAA;QAC7C,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAA;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CACF;AAIQ,0CAAe"}
|
package/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import * as validation from './validation';
|
|
4
|
-
import * as serialization from './serialization';
|
|
5
|
-
import * as utils from './utils';
|
|
6
|
-
import * as interfaces from './interfaces';
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * as types from './types';
|
|
7
3
|
export * from './models';
|
|
4
|
+
export * as models from './models';
|
|
8
5
|
export * from './properties';
|
|
6
|
+
export * as properties from './properties';
|
|
9
7
|
export * from './validation';
|
|
8
|
+
export * as validation from './validation';
|
|
10
9
|
export * from './errors';
|
|
11
|
-
export
|
|
10
|
+
export * as errors from './errors';
|
package/index.js
CHANGED
|
@@ -15,32 +15,36 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
18
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
20
|
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
|
|
31
|
-
exports.
|
|
32
|
-
const errors = __importStar(require("./errors"));
|
|
33
|
-
exports.errors = errors;
|
|
34
|
-
const validation = __importStar(require("./validation"));
|
|
35
|
-
exports.validation = validation;
|
|
36
|
-
const serialization = __importStar(require("./serialization"));
|
|
37
|
-
exports.serialization = serialization;
|
|
38
|
-
const utils = __importStar(require("./utils"));
|
|
39
|
-
exports.utils = utils;
|
|
40
|
-
const interfaces = __importStar(require("./interfaces"));
|
|
41
|
-
exports.interfaces = interfaces;
|
|
39
|
+
exports.errors = exports.validation = exports.properties = exports.models = exports.types = void 0;
|
|
40
|
+
__exportStar(require("./types"), exports);
|
|
41
|
+
exports.types = __importStar(require("./types"));
|
|
42
42
|
__exportStar(require("./models"), exports);
|
|
43
|
+
exports.models = __importStar(require("./models"));
|
|
43
44
|
__exportStar(require("./properties"), exports);
|
|
45
|
+
exports.properties = __importStar(require("./properties"));
|
|
44
46
|
__exportStar(require("./validation"), exports);
|
|
47
|
+
exports.validation = __importStar(require("./validation"));
|
|
45
48
|
__exportStar(require("./errors"), exports);
|
|
49
|
+
exports.errors = __importStar(require("./errors"));
|
|
46
50
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,iDAAgC;AAChC,2CAAwB;AACxB,mDAAkC;AAClC,+CAA4B;AAC5B,2DAA0C;AAC1C,+CAA4B;AAC5B,2DAA0C;AAC1C,2CAAwB;AACxB,mDAAkC"}
|