@meraj-its-official/blog-common 1.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,24 @@
1
+ import z from "zod";
2
+ export declare const signupInput: z.ZodObject<{
3
+ email: z.ZodString;
4
+ password: z.ZodString;
5
+ name: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ export declare const signinInput: z.ZodObject<{
8
+ email: z.ZodString;
9
+ password: z.ZodString;
10
+ }, z.core.$strip>;
11
+ export declare const createBlogInput: z.ZodObject<{
12
+ title: z.ZodString;
13
+ content: z.ZodString;
14
+ }, z.core.$strip>;
15
+ export declare const updateBlogInput: z.ZodObject<{
16
+ title: z.ZodString;
17
+ content: z.ZodString;
18
+ id: z.ZodUUID;
19
+ }, z.core.$strip>;
20
+ export type SignupInput = z.infer<typeof signupInput>;
21
+ export type SigninInput = z.infer<typeof signinInput>;
22
+ export type CreateBlogInput = z.infer<typeof createBlogInput>;
23
+ export type UpdateBlogInput = z.infer<typeof updateBlogInput>;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAW,MAAM,KAAK,CAAA;AAE7B,eAAO,MAAM,WAAW;;;;iBAItB,CAAC;AAEH,eAAO,MAAM,WAAW;;;iBAGtB,CAAA;AAEF,eAAO,MAAM,eAAe;;;iBAG1B,CAAA;AAEF,eAAO,MAAM,eAAe;;;;iBAI1B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AACrD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AACrD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAC7D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,26 @@
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.updateBlogInput = exports.createBlogInput = exports.signinInput = exports.signupInput = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ exports.signupInput = zod_1.default.object({
9
+ email: zod_1.default.string().email(),
10
+ password: zod_1.default.string().min(6),
11
+ name: zod_1.default.string().optional()
12
+ });
13
+ exports.signinInput = zod_1.default.object({
14
+ email: zod_1.default.string().email(),
15
+ password: zod_1.default.string().min(6)
16
+ });
17
+ exports.createBlogInput = zod_1.default.object({
18
+ title: zod_1.default.string(),
19
+ content: zod_1.default.string()
20
+ });
21
+ exports.updateBlogInput = zod_1.default.object({
22
+ title: zod_1.default.string(),
23
+ content: zod_1.default.string(),
24
+ id: zod_1.default.uuid()
25
+ });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,8CAA6B;AAEhB,QAAA,WAAW,GAAG,aAAC,CAAC,MAAM,CAAC;IAChC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACzB,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEU,QAAA,WAAW,GAAG,aAAC,CAAC,MAAM,CAAC;IAChC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACzB,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC9B,CAAC,CAAA;AAEW,QAAA,eAAe,GAAG,aAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA;AAEW,QAAA,eAAe,GAAG,aAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;IACnB,EAAE,EAAE,aAAC,CAAC,IAAI,EAAE;CACf,CAAC,CAAA"}
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@meraj-its-official/blog-common",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "type": "commonjs",
11
+ "dependencies": {
12
+ "@types/node": "^26.6.2",
13
+ "zod": "^4.6.5"
14
+ }
15
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ // Visit https://aka.ms/tsconfig to read more about this file
3
+ "compilerOptions": {
4
+ // File Layout
5
+ "rootDir": "./src",
6
+ "outDir": "./dist",
7
+ // Environment Settings
8
+ // See also https://aka.ms/tsconfig/module
9
+ "module": "nodenext",
10
+ "target": "esnext",
11
+ "types": [],
12
+ // For nodejs:
13
+ "lib": [
14
+ "esnext"
15
+ ],
16
+ // "types": ["node"],
17
+ // and npm install -D @types/node
18
+ // Other Outputs
19
+ "sourceMap": true,
20
+ "declaration": true,
21
+ "declarationMap": true,
22
+ // Stricter Typechecking Options
23
+ "noUncheckedIndexedAccess": true,
24
+ "exactOptionalPropertyTypes": true,
25
+ // Style Options
26
+ // "noImplicitReturns": true,
27
+ // "noImplicitOverride": true,
28
+ // "noUnusedLocals": true,
29
+ // "noUnusedParameters": true,
30
+ // "noFallthroughCasesInSwitch": true,
31
+ // "noPropertyAccessFromIndexSignature": true,
32
+ // Recommended Options
33
+ "strict": true,
34
+ "jsx": "react-jsx",
35
+ "verbatimModuleSyntax": false,
36
+ "isolatedModules": true,
37
+ "noUncheckedSideEffectImports": true,
38
+ "moduleDetection": "force",
39
+ "skipLibCheck": true,
40
+ }
41
+ }
@@ -0,0 +1 @@
1
+ {"version":"7.0.2","root":["./src/index.ts"],"packageJsons":["./node_modules/zod/package.json","./node_modules/zod/v4/classic/package.json","./node_modules/zod/v4/core/package.json","./node_modules/zod/v4/locales/package.json","./package.json"]}