@atharva846/medium-common 1.0.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.
@@ -0,0 +1,45 @@
1
+ import z from "zod";
2
+ declare const signupInput: z.ZodObject<{
3
+ email: z.ZodString;
4
+ password: z.ZodString;
5
+ username: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ declare const signinInput: z.ZodObject<{
8
+ email: z.ZodString;
9
+ password: z.ZodString;
10
+ }, z.core.$strip>;
11
+ declare const createBlogInputs: z.ZodObject<{
12
+ title: z.ZodString;
13
+ content: z.ZodString;
14
+ }, z.core.$strip>;
15
+ declare const updateBlogInput: z.ZodObject<{
16
+ title: z.ZodString;
17
+ content: z.ZodString;
18
+ id: z.ZodNumber;
19
+ }, z.core.$strip>;
20
+ export type signupInput = z.infer<typeof signupInput>;
21
+ export type signinInput = z.infer<typeof signinInput>;
22
+ export type createBlogInputs = z.infer<typeof createBlogInputs>;
23
+ export type updateBlogInput = z.infer<typeof updateBlogInput>;
24
+ declare const _default: {
25
+ signupInput: z.ZodObject<{
26
+ email: z.ZodString;
27
+ password: z.ZodString;
28
+ username: z.ZodOptional<z.ZodString>;
29
+ }, z.core.$strip>;
30
+ signinInput: z.ZodObject<{
31
+ email: z.ZodString;
32
+ password: z.ZodString;
33
+ }, z.core.$strip>;
34
+ createBlogInputs: z.ZodObject<{
35
+ title: z.ZodString;
36
+ content: z.ZodString;
37
+ }, z.core.$strip>;
38
+ updateBlogInput: z.ZodObject<{
39
+ title: z.ZodString;
40
+ content: z.ZodString;
41
+ id: z.ZodNumber;
42
+ }, z.core.$strip>;
43
+ };
44
+ export default _default;
45
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,QAAA,MAAM,WAAW;;;;iBAIf,CAAC;AAEH,QAAA,MAAM,WAAW;;;iBAGf,CAAC;AAEH,QAAA,MAAM,gBAAgB;;;iBAGpB,CAAA;AAEF,QAAA,MAAM,eAAe;;;;iBAInB,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ import z from "zod";
2
+ const signupInput = z.object({
3
+ email: z.string().email(),
4
+ password: z.string().min(6),
5
+ username: z.string().optional(),
6
+ });
7
+ const signinInput = z.object({
8
+ email: z.string().email(),
9
+ password: z.string().min(6),
10
+ });
11
+ const createBlogInputs = z.object({
12
+ title: z.string(),
13
+ content: z.string()
14
+ });
15
+ const updateBlogInput = z.object({
16
+ title: z.string(),
17
+ content: z.string(),
18
+ id: z.number()
19
+ });
20
+ export default { signupInput, signinInput, createBlogInputs, updateBlogInput };
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACzB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IACzB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACzB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC9B,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA;AAOF,eAAe,EAAC,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@atharva846/medium-common",
3
+ "version": "1.0.1",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "commonjs",
13
+ "dependencies": {
14
+ "zod": "^4.6.5"
15
+ }
16
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,44 @@
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
+
8
+ // Environment Settings
9
+ // See also https://aka.ms/tsconfig/module
10
+ "module": "esnext",
11
+ "target": "esnext",
12
+ "types": [],
13
+ // For nodejs:
14
+ // "lib": ["esnext"],
15
+ // "types": ["node"],
16
+ // and npm install -D @types/node
17
+
18
+ // Other Outputs
19
+ "sourceMap": true,
20
+ "declaration": true,
21
+ "declarationMap": true,
22
+
23
+ // Stricter Typechecking Options
24
+ "noUncheckedIndexedAccess": true,
25
+ "exactOptionalPropertyTypes": true,
26
+
27
+ // Style Options
28
+ // "noImplicitReturns": true,
29
+ // "noImplicitOverride": true,
30
+ // "noUnusedLocals": true,
31
+ // "noUnusedParameters": true,
32
+ // "noFallthroughCasesInSwitch": true,
33
+ // "noPropertyAccessFromIndexSignature": true,
34
+
35
+ // Recommended Options
36
+ "strict": true,
37
+ "jsx": "react-jsx",
38
+ "verbatimModuleSyntax": true,
39
+ "isolatedModules": true,
40
+ "noUncheckedSideEffectImports": true,
41
+ "moduleDetection": "force",
42
+ "skipLibCheck": true,
43
+ }
44
+ }
@@ -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"]}