@data7expressions/typ3s 5.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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=country.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country.test.d.ts","sourceRoot":"","sources":["../../../src/lib/__tests__/country.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ /* eslint-disable no-template-curly-in-string */
13
+ const __1 = require("..");
14
+ let data;
15
+ beforeAll(() => __awaiter(void 0, void 0, void 0, function* () {
16
+ data = {
17
+ name: 'Spain',
18
+ region: 'Europe',
19
+ phoneCode: '34',
20
+ timezones: [
21
+ { name: 'Madrid', offset: 1, pos: { lat: 40.4165, log: -3.70256 } },
22
+ { name: 'Ceuta', offset: 1, pos: { lat: 35.8883, log: -5.3162 } },
23
+ { name: 'Canary', offset: 0, pos: { lat: 28.1248, log: -15.43 } }
24
+ ]
25
+ };
26
+ }));
27
+ describe('country', () => {
28
+ test('serialize', () => {
29
+ const type = __1.Type.type(data);
30
+ const result = __1.Type.serialize(type);
31
+ console.log(result);
32
+ const expected = '{"primitive":"obj","obj":{"properties":[{"name":"name","type":{"primitive":"string"}},{"name":"region","type":{"primitive":"string"}},{"name":"phoneCode","type":{"primitive":"string"}},{"name":"timezones","type":{"primitive":"list","list":{"items":{"primitive":"obj","obj":{"properties":[{"name":"name","type":{"primitive":"string"}},{"name":"offset","type":{"primitive":"integer"}},{"name":"pos","type":{"primitive":"obj","obj":{"properties":[{"name":"lat","type":{"primitive":"decimal"}},{"name":"log","type":{"primitive":"decimal"}}]}}}]}}}}}]}}';
33
+ expect(expected).toStrictEqual(result);
34
+ });
35
+ test('stringify', () => {
36
+ const type = __1.Type.type(data);
37
+ const result = __1.Type.stringify(type);
38
+ const expected = '{name:string,region:string,phoneCode:string,timezones:[{name:string,offset:integer,pos:{lat:decimal,log:decimal}}]}';
39
+ expect(expected).toStrictEqual(result);
40
+ });
41
+ });
42
+ //# sourceMappingURL=country.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country.test.js","sourceRoot":"","sources":["../../../src/lib/__tests__/country.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,gDAAgD;AAChD,0BAAyB;AACzB,IAAI,IAAQ,CAAA;AACZ,SAAS,CAAC,GAAS,EAAE;IACpB,IAAI,GAAG;QACN,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,QAAQ;QAChB,SAAS,EAAE,IAAI;QACf,SAAS,EAAE;YACV,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE;YACnE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE;YACjE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE;SACjE;KACD,CAAA;AACF,CAAC,CAAA,CAAC,CAAA;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACxB,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE;QACtB,MAAM,IAAI,GAAG,QAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC5B,MAAM,MAAM,GAAG,QAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;QACnC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QACnB,MAAM,QAAQ,GAAG,siBAAsiB,CAAA;QACvjB,MAAM,CAAC,QAAQ,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;IACvC,CAAC,CAAC,CAAA;IACF,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE;QACtB,MAAM,IAAI,GAAG,QAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC5B,MAAM,MAAM,GAAG,QAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;QACnC,MAAM,QAAQ,GAAG,qHAAqH,CAAA;QACtI,MAAM,CAAC,QAAQ,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;IACvC,CAAC,CAAC,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=order.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.test.d.ts","sourceRoot":"","sources":["../../../src/lib/__tests__/order.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ /* eslint-disable no-template-curly-in-string */
13
+ const __1 = require("..");
14
+ let data;
15
+ beforeAll(() => __awaiter(void 0, void 0, void 0, function* () {
16
+ data = {
17
+ id: 139,
18
+ customerId: 'FAMIA',
19
+ employeeId: 9,
20
+ orderDate: '1996-12-17T23:00:00.000Z',
21
+ requiredDate: '1996-12-31T23:00:00.000Z',
22
+ shippedDate: '1996-12-24T23:00:00.000Z',
23
+ shipViaId: 3,
24
+ freight: 13.99,
25
+ name: 'Familia Arquibaldo',
26
+ address: 'Rua Ors, 92',
27
+ city: 'Sao Paulo',
28
+ region: 'SP',
29
+ postalCode: '05442-030',
30
+ country: 'Brazil',
31
+ details: [
32
+ {
33
+ orderId: 139,
34
+ productId: 24,
35
+ unitPrice: 3.6,
36
+ quantity: 15,
37
+ discount: 0
38
+ },
39
+ {
40
+ orderId: 139,
41
+ productId: 34,
42
+ unitPrice: 11.2,
43
+ quantity: 10,
44
+ discount: 0
45
+ }
46
+ ]
47
+ };
48
+ }));
49
+ describe('order', () => {
50
+ test('serialize', () => {
51
+ const type = __1.Type.type(data);
52
+ const result = __1.Type.serialize(type);
53
+ const expected = '{"primitive":"obj","obj":{"properties":[{"name":"id","type":{"primitive":"integer"}},{"name":"customerId","type":{"primitive":"string"}},{"name":"employeeId","type":{"primitive":"integer"}},{"name":"orderDate","type":{"primitive":"string"}},{"name":"requiredDate","type":{"primitive":"string"}},{"name":"shippedDate","type":{"primitive":"string"}},{"name":"shipViaId","type":{"primitive":"integer"}},{"name":"freight","type":{"primitive":"decimal"}},{"name":"name","type":{"primitive":"string"}},{"name":"address","type":{"primitive":"string"}},{"name":"city","type":{"primitive":"string"}},{"name":"region","type":{"primitive":"string"}},{"name":"postalCode","type":{"primitive":"string"}},{"name":"country","type":{"primitive":"string"}},{"name":"details","type":{"primitive":"list","list":{"items":{"primitive":"obj","obj":{"properties":[{"name":"orderId","type":{"primitive":"integer"}},{"name":"productId","type":{"primitive":"integer"}},{"name":"unitPrice","type":{"primitive":"decimal"}},{"name":"quantity","type":{"primitive":"integer"}},{"name":"discount","type":{"primitive":"integer"}}]}}}}}]}}';
54
+ expect(expected).toStrictEqual(result);
55
+ });
56
+ test('stringify', () => {
57
+ const type = __1.Type.type(data);
58
+ const result = __1.Type.stringify(type);
59
+ const expected = '{id:integer,customerId:string,employeeId:integer,orderDate:string,requiredDate:string,shippedDate:string,shipViaId:integer,freight:decimal,name:string,address:string,city:string,region:string,postalCode:string,country:string,details:[{orderId:integer,productId:integer,unitPrice:decimal,quantity:integer,discount:integer}]}';
60
+ expect(expected).toStrictEqual(result);
61
+ });
62
+ });
63
+ //# sourceMappingURL=order.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.test.js","sourceRoot":"","sources":["../../../src/lib/__tests__/order.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,gDAAgD;AAChD,0BAAyB;AACzB,IAAI,IAAQ,CAAA;AACZ,SAAS,CAAC,GAAS,EAAE;IACpB,IAAI,GAAG;QACN,EAAE,EAAE,GAAG;QACP,UAAU,EAAE,OAAO;QACnB,UAAU,EAAE,CAAC;QACb,SAAS,EAAE,0BAA0B;QACrC,YAAY,EAAE,0BAA0B;QACxC,WAAW,EAAE,0BAA0B;QACvC,SAAS,EAAE,CAAC;QACZ,OAAO,EAAE,KAAK;QACd,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,aAAa;QACtB,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,WAAW;QACvB,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE;YACR;gBACC,OAAO,EAAE,GAAG;gBACZ,SAAS,EAAE,EAAE;gBACb,SAAS,EAAE,GAAG;gBACd,QAAQ,EAAE,EAAE;gBACZ,QAAQ,EAAE,CAAC;aACX;YACD;gBACC,OAAO,EAAE,GAAG;gBACZ,SAAS,EAAE,EAAE;gBACb,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,EAAE;gBACZ,QAAQ,EAAE,CAAC;aACX;SACD;KACD,CAAA;AACF,CAAC,CAAA,CAAC,CAAA;AAEF,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;IACtB,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE;QACtB,MAAM,IAAI,GAAG,QAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC5B,MAAM,MAAM,GAAG,QAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;QACnC,MAAM,QAAQ,GAAG,mlCAAmlC,CAAA;QACpmC,MAAM,CAAC,QAAQ,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;IACvC,CAAC,CAAC,CAAA;IACF,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE;QACtB,MAAM,IAAI,GAAG,QAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC5B,MAAM,MAAM,GAAG,QAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;QACnC,MAAM,QAAQ,GAAG,qUAAqU,CAAA;QACtV,MAAM,CAAC,QAAQ,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;IACvC,CAAC,CAAC,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -0,0 +1,17 @@
1
+ export declare enum Primitive {
2
+ any = "any",
3
+ string = "string",
4
+ integer = "integer",
5
+ decimal = "decimal",
6
+ number = "number",
7
+ boolean = "boolean",
8
+ date = "date",
9
+ dateTime = "dateTime",
10
+ time = "time",
11
+ void = "void",
12
+ obj = "obj",
13
+ list = "list",
14
+ function = "function",
15
+ undefined = "undefined"
16
+ }
17
+ //# sourceMappingURL=primitive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primitive.d.ts","sourceRoot":"","sources":["../../../src/lib/domain/primitive.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Primitive = void 0;
4
+ var Primitive;
5
+ (function (Primitive) {
6
+ Primitive["any"] = "any";
7
+ Primitive["string"] = "string";
8
+ Primitive["integer"] = "integer";
9
+ Primitive["decimal"] = "decimal";
10
+ Primitive["number"] = "number";
11
+ Primitive["boolean"] = "boolean";
12
+ Primitive["date"] = "date";
13
+ Primitive["dateTime"] = "dateTime";
14
+ Primitive["time"] = "time";
15
+ Primitive["void"] = "void";
16
+ Primitive["obj"] = "obj";
17
+ Primitive["list"] = "list";
18
+ Primitive["function"] = "function";
19
+ Primitive["undefined"] = "undefined";
20
+ })(Primitive || (exports.Primitive = Primitive = {}));
21
+ //# sourceMappingURL=primitive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primitive.js","sourceRoot":"","sources":["../../../src/lib/domain/primitive.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAeX;AAfD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;AACzB,CAAC,EAfW,SAAS,yBAAT,SAAS,QAepB"}
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export * from './domain/primitive';
2
+ export * from './infrastructure/helper';
3
+ export * from './infrastructure/type';
4
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA"}
package/index.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./domain/primitive"), exports);
18
+ __exportStar(require("./infrastructure/helper"), exports);
19
+ __exportStar(require("./infrastructure/type"), exports);
20
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,0DAAuC;AACvC,wDAAqC"}
@@ -0,0 +1,6 @@
1
+ import { H3lp } from '@data7expressions/h3lp';
2
+ export declare class TypeH3lp extends H3lp {
3
+ constructor(h3lp: H3lp);
4
+ }
5
+ export declare const typeH3lp: TypeH3lp;
6
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/lib/infrastructure/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAQ,MAAM,wBAAwB,CAAA;AAEnD,qBAAa,QAAS,SAAQ,IAAI;gBACpB,IAAI,EAAC,IAAI;CAGtB;AACD,eAAO,MAAM,QAAQ,UAAqB,CAAA"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.typeH3lp = exports.TypeH3lp = void 0;
4
+ const h3lp_1 = require("@data7expressions/h3lp");
5
+ class TypeH3lp extends h3lp_1.H3lp {
6
+ constructor(h3lp) {
7
+ super(h3lp.utils, h3lp.val, h3lp.fs, h3lp.http, h3lp.obj, h3lp.str, h3lp.test, h3lp.array);
8
+ }
9
+ }
10
+ exports.TypeH3lp = TypeH3lp;
11
+ exports.typeH3lp = new TypeH3lp(h3lp_1.h3lp);
12
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/lib/infrastructure/helper.ts"],"names":[],"mappings":";;;AAAA,iDAAmD;AAEnD,MAAa,QAAS,SAAQ,WAAI;IACjC,YAAa,IAAS;QACrB,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAA;IAC3F,CAAC;CACD;AAJD,4BAIC;AACY,QAAA,QAAQ,GAAG,IAAI,QAAQ,CAAC,WAAI,CAAC,CAAA"}
@@ -0,0 +1,98 @@
1
+ import { Primitive } from '../domain/primitive';
2
+ export interface PropertyType {
3
+ name: string;
4
+ type?: Type;
5
+ }
6
+ export interface ObjType {
7
+ properties: PropertyType[];
8
+ }
9
+ export interface ListType {
10
+ items: Type;
11
+ }
12
+ export interface FuncType {
13
+ params: ParamType[];
14
+ ret: Type;
15
+ }
16
+ export interface ParamType {
17
+ name: string;
18
+ type?: Type;
19
+ }
20
+ export interface TypeOptions {
21
+ info?: boolean;
22
+ describe?: boolean;
23
+ enums?: boolean;
24
+ }
25
+ export declare class Type {
26
+ primitive: Primitive;
27
+ obj?: ObjType | undefined;
28
+ list?: ListType | undefined;
29
+ func?: FuncType | undefined;
30
+ nullable?: boolean;
31
+ undefinable?: boolean;
32
+ async?: boolean;
33
+ unique?: boolean;
34
+ repeated?: number;
35
+ repeatRate?: number;
36
+ indefinite?: number;
37
+ nullables?: number;
38
+ count?: number;
39
+ distinctCount?: number;
40
+ onParentDistinctRepeated?: number;
41
+ onParentDistinctRepeatedRate?: number;
42
+ onParentDistinctUnique?: boolean;
43
+ mean?: any;
44
+ sum?: any;
45
+ max?: any;
46
+ min?: any;
47
+ maxLen?: number;
48
+ minLen?: number;
49
+ std?: number;
50
+ percent10?: any;
51
+ percent25?: any;
52
+ percent50?: any;
53
+ percent75?: any;
54
+ percent90?: any;
55
+ enums?: {
56
+ value: any;
57
+ count: number;
58
+ }[];
59
+ constructor(primitive: Primitive, obj?: ObjType | undefined, list?: ListType | undefined, func?: FuncType | undefined);
60
+ static get any(): Type;
61
+ static get string(): Type;
62
+ static get integer(): Type;
63
+ static get decimal(): Type;
64
+ static get number(): Type;
65
+ static get boolean(): Type;
66
+ static get date(): Type;
67
+ static get dateTime(): Type;
68
+ static get time(): Type;
69
+ static get void(): Type;
70
+ static Obj(properties?: PropertyType[]): Type;
71
+ static List(items: Type): Type;
72
+ static Function(params: ParamType[], ret: Type): Type;
73
+ static isPrimitive(type: Type | string): boolean;
74
+ static to(primitive: Primitive | string): Type;
75
+ static get(value: any): Type;
76
+ static isList(type: Type | string): boolean;
77
+ static isObj(type: Type | string): boolean;
78
+ static isFunc(type: Type | string): boolean;
79
+ static stringify(type?: Type): string;
80
+ static parse(stringified: string): Type;
81
+ static serialize(type?: Type, indentation?: number): string | undefined;
82
+ static deserialize(type?: string): Type | undefined;
83
+ static validate(value: any, type: Type | string): [boolean, string];
84
+ static type(value: any, options?: TypeOptions): Type;
85
+ private static modifier;
86
+ private static _validate;
87
+ private static _type;
88
+ private static info;
89
+ private static propertyInfo;
90
+ private static onObjectProperties;
91
+ private static completeInfoProperties;
92
+ private static describe;
93
+ private static percentiles;
94
+ private static enums;
95
+ private static iterations;
96
+ static key(value: any, type: Type): string;
97
+ }
98
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/lib/infrastructure/type.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAG/C,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAC,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,IAAI,CAAA;CACX;AACD,MAAM,WAAW,OAAO;IACvB,UAAU,EAAE,YAAY,EAAE,CAAA;CAC1B;AAED,MAAM,WAAW,QAAQ;IACxB,KAAK,EAAC,IAAI,CAAA;CACV;AAED,MAAM,WAAW,QAAQ;IACxB,MAAM,EAAC,SAAS,EAAE,CAAA;IAClB,GAAG,EAAC,IAAI,CAAA;CACR;AAED,MAAM,WAAW,SAAS;IACzB,IAAI,EAAC,MAAM,CAAA;IACX,IAAI,CAAC,EAAC,IAAI,CAAA;CACV;AAED,MAAM,WAAW,WAAW;IAC3B,IAAI,CAAC,EAAC,OAAO,CAAA;IACb,QAAQ,CAAC,EAAC,OAAO,CAAA;IACjB,KAAK,CAAC,EAAC,OAAO,CAAA;CACd;AAED,qBAAa,IAAI;IA8BP,SAAS,EAAC,SAAS;IACjB,GAAG,CAAC;IACJ,IAAI,CAAC;IACL,IAAI,CAAC;IAhCT,QAAQ,CAAC,EAAC,OAAO,CAAA;IACjB,WAAW,CAAC,EAAC,OAAO,CAAA;IACpB,KAAK,CAAC,EAAC,OAAO,CAAA;IACd,MAAM,CAAC,EAAC,OAAO,CAAA;IACf,QAAQ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