@laboratory-one/api-components 0.0.25 → 0.0.26
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/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/index.js +1 -0
- package/dist/src/utils/index.js.map +1 -1
- package/dist/src/utils/schema.util.d.ts +13 -0
- package/dist/src/utils/schema.util.d.ts.map +1 -0
- package/dist/src/utils/schema.util.js +16 -0
- package/dist/src/utils/schema.util.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/src/utils/index.ts +1 -0
- package/src/utils/schema.util.ts +13 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
package/dist/src/utils/index.js
CHANGED
|
@@ -7,4 +7,5 @@ tslib_1.__exportStar(require("./input.util"), exports);
|
|
|
7
7
|
tslib_1.__exportStar(require("./string.util"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./noop.util"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./version.util"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./schema.util"), exports);
|
|
10
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,uDAA6B;AAC7B,uDAA6B;AAC7B,wDAA8B;AAC9B,sDAA4B;AAC5B,yDAA+B","sourcesContent":["export * from './datetime.util';\nexport * from './error.util';\nexport * from './input.util';\nexport * from './string.util';\nexport * from './noop.util';\nexport * from './version.util';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,uDAA6B;AAC7B,uDAA6B;AAC7B,wDAA8B;AAC9B,sDAA4B;AAC5B,yDAA+B;AAC/B,wDAA8B","sourcesContent":["export * from './datetime.util';\nexport * from './error.util';\nexport * from './input.util';\nexport * from './string.util';\nexport * from './noop.util';\nexport * from './version.util';\nexport * from './schema.util';\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const schemaPatterns: {
|
|
3
|
+
email: z.ZodEmail;
|
|
4
|
+
password: z.ZodString;
|
|
5
|
+
phoneNumber: z.ZodString;
|
|
6
|
+
fullName: z.ZodString;
|
|
7
|
+
pushToken: z.ZodString;
|
|
8
|
+
tz: z.ZodNumber;
|
|
9
|
+
date: z.ZodString;
|
|
10
|
+
code: z.ZodString;
|
|
11
|
+
methodId: z.ZodString;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=schema.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.util.d.ts","sourceRoot":"","sources":["../../../src/utils/schema.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;CAU1B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.schemaPatterns = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.schemaPatterns = {
|
|
6
|
+
email: zod_1.z.email().max(100).min(1).toLowerCase().trim(),
|
|
7
|
+
password: zod_1.z.string().min(10).max(100).trim(),
|
|
8
|
+
phoneNumber: zod_1.z.string().min(7).max(20).trim(),
|
|
9
|
+
fullName: zod_1.z.string().min(2).max(100).trim(),
|
|
10
|
+
pushToken: zod_1.z.string().min(1).max(500).trim(),
|
|
11
|
+
tz: zod_1.z.number().int().min(-10000).max(10000),
|
|
12
|
+
date: zod_1.z.string().date(),
|
|
13
|
+
code: zod_1.z.string().length(6).trim(),
|
|
14
|
+
methodId: zod_1.z.string().min(1).max(500).trim(),
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=schema.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.util.js","sourceRoot":"","sources":["../../../src/utils/schema.util.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,cAAc,GAAG;IAC5B,KAAK,EAAE,OAAC,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE;IACrD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE;IAC5C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE;IAC7C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE;IAC3C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE;IAC5C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;IACjC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE;CAC5C,CAAC","sourcesContent":["import { z } from 'zod';\n\nexport const schemaPatterns = {\n email: z.email().max(100).min(1).toLowerCase().trim(),\n password: z.string().min(10).max(100).trim(),\n phoneNumber: z.string().min(7).max(20).trim(),\n fullName: z.string().min(2).max(100).trim(),\n pushToken: z.string().min(1).max(500).trim(),\n tz: z.number().int().min(-10000).max(10000),\n date: z.string().date(),\n code: z.string().length(6).trim(),\n methodId: z.string().min(1).max(500).trim(),\n};\n"]}
|