@puq/type 0.2.0 → 0.3.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/dist/index.d.ts +6 -36
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -37
- package/dist/index.js.map +1 -1
- package/dist/lib/common/index.d.ts +4 -0
- package/dist/lib/common/index.d.ts.map +1 -0
- package/dist/lib/common/index.js +6 -0
- package/dist/lib/common/index.js.map +1 -0
- package/dist/lib/dto/index.d.ts +6 -0
- package/dist/lib/dto/index.d.ts.map +1 -0
- package/dist/lib/dto/index.js +8 -0
- package/dist/lib/dto/index.js.map +1 -0
- package/dist/lib/dto/validation-error.d.ts +22 -0
- package/dist/lib/dto/validation-error.d.ts.map +1 -0
- package/dist/lib/dto/validation-error.js +3 -0
- package/dist/lib/dto/validation-error.js.map +1 -0
- package/dist/lib/model/index.d.ts +4 -0
- package/dist/lib/model/index.d.ts.map +1 -0
- package/dist/lib/model/index.js +6 -0
- package/dist/lib/model/index.js.map +1 -0
- package/dist/lib/property/index.d.ts +19 -0
- package/dist/lib/property/index.d.ts.map +1 -0
- package/dist/lib/property/index.js +21 -0
- package/dist/lib/property/index.js.map +1 -0
- package/dist/lib/ui/index.d.ts +3 -0
- package/dist/lib/ui/index.d.ts.map +1 -0
- package/dist/lib/ui/index.js +5 -0
- package/dist/lib/ui/index.js.map +1 -0
- package/dist/lib/utils/index.d.ts +7 -0
- package/dist/lib/utils/index.d.ts.map +1 -0
- package/dist/lib/utils/index.js +9 -0
- package/dist/lib/utils/index.js.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -1,37 +1,7 @@
|
|
1
|
-
export * from './lib/common/
|
2
|
-
export * from './lib/
|
3
|
-
export * from './lib/
|
4
|
-
export * from './lib/
|
5
|
-
export * from './lib/
|
6
|
-
export * from './lib/
|
7
|
-
export * from './lib/dto/update-result.js';
|
8
|
-
export * from './lib/model/base.js';
|
9
|
-
export * from './lib/model/id.js';
|
10
|
-
export * from './lib/model/timestamp.js';
|
11
|
-
export * from './lib/property/array.js';
|
12
|
-
export * from './lib/property/big-integer.js';
|
13
|
-
export * from './lib/property/boolean.js';
|
14
|
-
export * from './lib/property/common-number.js';
|
15
|
-
export * from './lib/property/common.js';
|
16
|
-
export * from './lib/property/database-type.js';
|
17
|
-
export * from './lib/property/date.js';
|
18
|
-
export * from './lib/property/integer-format.js';
|
19
|
-
export * from './lib/property/integer.js';
|
20
|
-
export * from './lib/property/model.js';
|
21
|
-
export * from './lib/property/number-format.js';
|
22
|
-
export * from './lib/property/number.js';
|
23
|
-
export * from './lib/property/object.js';
|
24
|
-
export * from './lib/property/property-type.js';
|
25
|
-
export * from './lib/property/property.js';
|
26
|
-
export * from './lib/property/relation-options.js';
|
27
|
-
export * from './lib/property/string-format.js';
|
28
|
-
export * from './lib/property/string.js';
|
29
|
-
export * from './lib/ui/icon.js';
|
30
|
-
export * from './lib/ui/input-type.js';
|
31
|
-
export * from './lib/utils/key-of.js';
|
32
|
-
export * from './lib/utils/keys.js';
|
33
|
-
export * from './lib/utils/optional.js';
|
34
|
-
export * from './lib/utils/pick-optional.js';
|
35
|
-
export * from './lib/utils/pick-required.js';
|
36
|
-
export * from './lib/utils/type.js';
|
1
|
+
export * from './lib/common/index.js';
|
2
|
+
export * from './lib/dto/index.js';
|
3
|
+
export * from './lib/model/index.js';
|
4
|
+
export * from './lib/property/index.js';
|
5
|
+
export * from './lib/ui/index.js';
|
6
|
+
export * from './lib/utils/index.js';
|
37
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
@@ -1,39 +1,9 @@
|
|
1
|
-
// @index('
|
2
|
-
export * from './lib/common/
|
3
|
-
export * from './lib/
|
4
|
-
export * from './lib/
|
5
|
-
export * from './lib/
|
6
|
-
export * from './lib/
|
7
|
-
export * from './lib/
|
8
|
-
export * from './lib/dto/update-result.js';
|
9
|
-
export * from './lib/model/base.js';
|
10
|
-
export * from './lib/model/id.js';
|
11
|
-
export * from './lib/model/timestamp.js';
|
12
|
-
export * from './lib/property/array.js';
|
13
|
-
export * from './lib/property/big-integer.js';
|
14
|
-
export * from './lib/property/boolean.js';
|
15
|
-
export * from './lib/property/common-number.js';
|
16
|
-
export * from './lib/property/common.js';
|
17
|
-
export * from './lib/property/database-type.js';
|
18
|
-
export * from './lib/property/date.js';
|
19
|
-
export * from './lib/property/integer-format.js';
|
20
|
-
export * from './lib/property/integer.js';
|
21
|
-
export * from './lib/property/model.js';
|
22
|
-
export * from './lib/property/number-format.js';
|
23
|
-
export * from './lib/property/number.js';
|
24
|
-
export * from './lib/property/object.js';
|
25
|
-
export * from './lib/property/property-type.js';
|
26
|
-
export * from './lib/property/property.js';
|
27
|
-
export * from './lib/property/relation-options.js';
|
28
|
-
export * from './lib/property/string-format.js';
|
29
|
-
export * from './lib/property/string.js';
|
30
|
-
export * from './lib/ui/icon.js';
|
31
|
-
export * from './lib/ui/input-type.js';
|
32
|
-
export * from './lib/utils/key-of.js';
|
33
|
-
export * from './lib/utils/keys.js';
|
34
|
-
export * from './lib/utils/optional.js';
|
35
|
-
export * from './lib/utils/pick-optional.js';
|
36
|
-
export * from './lib/utils/pick-required.js';
|
37
|
-
export * from './lib/utils/type.js';
|
1
|
+
// @index('./**/index.ts', f => `export * from '${f.path}.js'`)
|
2
|
+
export * from './lib/common/index.js';
|
3
|
+
export * from './lib/dto/index.js';
|
4
|
+
export * from './lib/model/index.js';
|
5
|
+
export * from './lib/property/index.js';
|
6
|
+
export * from './lib/ui/index.js';
|
7
|
+
export * from './lib/utils/index.js';
|
38
8
|
|
39
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index('
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index('./**/index.ts', f => `export * from '${f.path}.js'`)\nexport * from './lib/common/index.js';\nexport * from './lib/dto/index.js';\nexport * from './lib/model/index.js';\nexport * from './lib/property/index.js';\nexport * from './lib/ui/index.js';\nexport * from './lib/utils/index.js';\n"],"names":[],"rangeMappings":";;;;;;","mappings":"AAAA,+DAA+D;AAC/D,cAAc,wBAAwB;AACtC,cAAc,qBAAqB;AACnC,cAAc,uBAAuB;AACrC,cAAc,0BAA0B;AACxC,cAAc,oBAAoB;AAClC,cAAc,uBAAuB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/common/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/common/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts','!./**/index.ts'], f => `export * from '${f.path}.js'`)\r\nexport * from './object-literal.js';\r\nexport * from './package-json.js';\r\nexport * from './puq-options.js';\r\n"],"names":[],"rangeMappings":";;;","mappings":"AAAA,wGAAwG;AACxG,cAAc,sBAAsB;AACpC,cAAc,oBAAoB;AAClC,cAAc,mBAAmB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// @index(['./**/*.ts', '!./**/*.{spec,test}.ts','!./**/index.ts'], f => `export * from '${f.path}.js'`)
|
2
|
+
export * from './count-result.js';
|
3
|
+
export * from './delete-result.js';
|
4
|
+
export * from './relation-param.js';
|
5
|
+
export * from './update-result.js';
|
6
|
+
export * from './validation-error.js';
|
7
|
+
|
8
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/dto/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts','!./**/index.ts'], f => `export * from '${f.path}.js'`)\r\nexport * from './count-result.js';\r\nexport * from './delete-result.js';\r\nexport * from './relation-param.js';\r\nexport * from './update-result.js';\r\nexport * from './validation-error.js';\r\n"],"names":[],"rangeMappings":";;;;;","mappings":"AAAA,wGAAwG;AACxG,cAAc,oBAAoB;AAClC,cAAc,qBAAqB;AACnC,cAAc,sBAAsB;AACpC,cAAc,qBAAqB;AACnC,cAAc,wBAAwB"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
export type ValidationConstraints = {
|
2
|
+
min?: string;
|
3
|
+
max?: string;
|
4
|
+
minLength?: string;
|
5
|
+
maxLength?: string;
|
6
|
+
isString?: string;
|
7
|
+
isNumber?: string;
|
8
|
+
isInt?: string;
|
9
|
+
isBoolean?: string;
|
10
|
+
isObject?: string;
|
11
|
+
isArray?: string;
|
12
|
+
arrayMinSize?: string;
|
13
|
+
arrayMaxSize?: string;
|
14
|
+
};
|
15
|
+
export type SingleValidationError = {
|
16
|
+
property?: string;
|
17
|
+
constraints?: ValidationConstraints;
|
18
|
+
};
|
19
|
+
export type ValidationErrorResult = {
|
20
|
+
errors?: SingleValidationError[];
|
21
|
+
};
|
22
|
+
//# sourceMappingURL=validation-error.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validation-error.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/validation-error.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,qBAAqB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAClC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/dto/validation-error.ts"],"sourcesContent":["export type ValidationConstraints = {\r\n min?: string;\r\n max?: string;\r\n minLength?: string;\r\n maxLength?: string;\r\n isString?: string;\r\n isNumber?: string;\r\n isInt?: string;\r\n isBoolean?: string;\r\n isObject?: string;\r\n isArray?: string;\r\n arrayMinSize?: string;\r\n arrayMaxSize?: string;\r\n};\r\n\r\nexport type SingleValidationError = {\r\n property?: string;\r\n constraints?: ValidationConstraints;\r\n};\r\n\r\nexport type ValidationErrorResult = {\r\n errors?: SingleValidationError[];\r\n};\r\n"],"names":[],"rangeMappings":"","mappings":"AAoBA,WAEE"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/model/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/model/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts','!./**/index.ts'], f => `export * from '${f.path}.js'`)\r\nexport * from './base.js';\r\nexport * from './id.js';\r\nexport * from './timestamp.js';\r\n"],"names":[],"rangeMappings":";;;","mappings":"AAAA,wGAAwG;AACxG,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,iBAAiB"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export * from './array.js';
|
2
|
+
export * from './big-integer.js';
|
3
|
+
export * from './boolean.js';
|
4
|
+
export * from './common-number.js';
|
5
|
+
export * from './common.js';
|
6
|
+
export * from './database-type.js';
|
7
|
+
export * from './date.js';
|
8
|
+
export * from './integer-format.js';
|
9
|
+
export * from './integer.js';
|
10
|
+
export * from './model.js';
|
11
|
+
export * from './number-format.js';
|
12
|
+
export * from './number.js';
|
13
|
+
export * from './object.js';
|
14
|
+
export * from './property-type.js';
|
15
|
+
export * from './property.js';
|
16
|
+
export * from './relation-options.js';
|
17
|
+
export * from './string-format.js';
|
18
|
+
export * from './string.js';
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/property/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// @index(['./**/*.ts', '!./**/*.{spec,test}.ts','!./**/index.ts'], f => `export * from '${f.path}.js'`)
|
2
|
+
export * from './array.js';
|
3
|
+
export * from './big-integer.js';
|
4
|
+
export * from './boolean.js';
|
5
|
+
export * from './common-number.js';
|
6
|
+
export * from './common.js';
|
7
|
+
export * from './database-type.js';
|
8
|
+
export * from './date.js';
|
9
|
+
export * from './integer-format.js';
|
10
|
+
export * from './integer.js';
|
11
|
+
export * from './model.js';
|
12
|
+
export * from './number-format.js';
|
13
|
+
export * from './number.js';
|
14
|
+
export * from './object.js';
|
15
|
+
export * from './property-type.js';
|
16
|
+
export * from './property.js';
|
17
|
+
export * from './relation-options.js';
|
18
|
+
export * from './string-format.js';
|
19
|
+
export * from './string.js';
|
20
|
+
|
21
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/property/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts','!./**/index.ts'], f => `export * from '${f.path}.js'`)\r\nexport * from './array.js';\r\nexport * from './big-integer.js';\r\nexport * from './boolean.js';\r\nexport * from './common-number.js';\r\nexport * from './common.js';\r\nexport * from './database-type.js';\r\nexport * from './date.js';\r\nexport * from './integer-format.js';\r\nexport * from './integer.js';\r\nexport * from './model.js';\r\nexport * from './number-format.js';\r\nexport * from './number.js';\r\nexport * from './object.js';\r\nexport * from './property-type.js';\r\nexport * from './property.js';\r\nexport * from './relation-options.js';\r\nexport * from './string-format.js';\r\nexport * from './string.js';\r\n"],"names":[],"rangeMappings":";;;;;;;;;;;;;;;;;;","mappings":"AAAA,wGAAwG;AACxG,cAAc,aAAa;AAC3B,cAAc,mBAAmB;AACjC,cAAc,eAAe;AAC7B,cAAc,qBAAqB;AACnC,cAAc,cAAc;AAC5B,cAAc,qBAAqB;AACnC,cAAc,YAAY;AAC1B,cAAc,sBAAsB;AACpC,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,qBAAqB;AACnC,cAAc,cAAc;AAC5B,cAAc,cAAc;AAC5B,cAAc,qBAAqB;AACnC,cAAc,gBAAgB;AAC9B,cAAc,wBAAwB;AACtC,cAAc,qBAAqB;AACnC,cAAc,cAAc"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/ui/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts','!./**/index.ts'], f => `export * from '${f.path}.js'`)\r\nexport * from './icon.js';\r\nexport * from './input-type.js';\r\n"],"names":[],"rangeMappings":";;","mappings":"AAAA,wGAAwG;AACxG,cAAc,YAAY;AAC1B,cAAc,kBAAkB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// @index(['./**/*.ts', '!./**/*.{spec,test}.ts','!./**/index.ts'], f => `export * from '${f.path}.js'`)
|
2
|
+
export * from './key-of.js';
|
3
|
+
export * from './keys.js';
|
4
|
+
export * from './optional.js';
|
5
|
+
export * from './pick-optional.js';
|
6
|
+
export * from './pick-required.js';
|
7
|
+
export * from './type.js';
|
8
|
+
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/utils/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts','!./**/index.ts'], f => `export * from '${f.path}.js'`)\r\nexport * from './key-of.js';\r\nexport * from './keys.js';\r\nexport * from './optional.js';\r\nexport * from './pick-optional.js';\r\nexport * from './pick-required.js';\r\nexport * from './type.js';\r\n"],"names":[],"rangeMappings":";;;;;;","mappings":"AAAA,wGAAwG;AACxG,cAAc,cAAc;AAC5B,cAAc,YAAY;AAC1B,cAAc,gBAAgB;AAC9B,cAAc,qBAAqB;AACnC,cAAc,qBAAqB;AACnC,cAAc,YAAY"}
|