akk-medium-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 = require("zod");
2
+ export declare const SignInInputs: z.ZodObject<{
3
+ email: z.ZodEmail;
4
+ password: z.ZodString;
5
+ name: z.ZodOptional<z.ZodString>;
6
+ }, z.z.core.$strip>;
7
+ export declare const SignUpInputs: z.ZodObject<{
8
+ email: z.ZodEmail;
9
+ password: z.ZodString;
10
+ name: z.ZodOptional<z.ZodString>;
11
+ }, z.z.core.$strip>;
12
+ export declare const CreateBlogInputs: z.ZodObject<{
13
+ title: typeof z.string;
14
+ content: typeof z.string;
15
+ }, z.z.core.$strip>;
16
+ export declare const UpdateBlogInputs: z.ZodObject<{
17
+ title: typeof z.string;
18
+ content: typeof z.string;
19
+ }, z.z.core.$strip>;
20
+ export type SignInInputs = z.infer<typeof SignInInputs>;
21
+ export type SignUpInputs = z.infer<typeof SignInInputs>;
22
+ export type CreateBlogInputs = z.infer<typeof CreateBlogInputs>;
23
+ export type UpdateBlogInputs = z.infer<typeof UpdateBlogInputs>;
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,CAAC,GAAG,QAAQ,KAAK,CAAC,CAAC;AAI1B,eAAO,MAAM,YAAY;;;;mBAIvB,CAAC;AAGH,eAAO,MAAM,YAAY;;;;mBAIvB,CAAC;AAGH,eAAO,MAAM,gBAAgB;;;mBAG3B,CAAA;AAGF,eAAO,MAAM,gBAAgB;;;mBAG3B,CAAA;AAGF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AACvD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AACvD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAC/D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,26 @@
1
+ import { createRequire as _createRequire } from "module";
2
+ const __require = _createRequire(import.meta.url);
3
+ const z = __require("zod");
4
+ //Singin Inputs
5
+ export const SignInInputs = z.object({
6
+ email: z.email(),
7
+ password: z.string().min(6),
8
+ name: z.string().optional()
9
+ });
10
+ //SingUp Inputs
11
+ export const SignUpInputs = z.object({
12
+ email: z.email(),
13
+ password: z.string().min(6),
14
+ name: z.string().optional()
15
+ });
16
+ //Create Blog inputs
17
+ export const CreateBlogInputs = z.object({
18
+ title: z.string,
19
+ content: z.string,
20
+ });
21
+ //Update Blog Inputs
22
+ export const UpdateBlogInputs = z.object({
23
+ title: z.string,
24
+ content: z.string,
25
+ });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,2BAA0B;AAG1B,eAAe;AACf,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,eAAe;AACf,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,oBAAoB;AACpB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,CAAC,CAAC,MAAM;IACf,OAAO,EAAE,CAAC,CAAC,MAAM;CACpB,CAAC,CAAA;AAEF,oBAAoB;AACpB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,CAAC,CAAC,MAAM;IACf,OAAO,EAAE,CAAC,CAAC,MAAM;CACpB,CAAC,CAAA"}
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "akk-medium-common",
3
+ "version": "1.0.0",
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": "module",
13
+ "dependencies": {
14
+ "typescript": "^5.9.3",
15
+ "zod": "^4.3.6"
16
+ }
17
+ }
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": "nodenext",
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
+ {"root":["./src/index.ts"],"version":"5.9.3"}