akk-medium-common 1.0.1 → 1.0.2

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 CHANGED
@@ -1,24 +1,31 @@
1
- import { z } from "zod";
1
+ import z = require("zod");
2
2
  export declare const SignInInputs: z.ZodObject<{
3
- email: z.ZodString;
3
+ email: z.ZodEmail;
4
4
  password: z.ZodString;
5
5
  name: z.ZodOptional<z.ZodString>;
6
- }, z.core.$strip>;
6
+ }, z.z.core.$strip>;
7
7
  export declare const SignUpInputs: z.ZodObject<{
8
- email: z.ZodString;
8
+ email: z.ZodEmail;
9
9
  password: z.ZodString;
10
10
  name: z.ZodOptional<z.ZodString>;
11
- }, z.core.$strip>;
11
+ }, z.z.core.$strip>;
12
12
  export declare const CreateBlogInputs: z.ZodObject<{
13
- title: z.ZodString;
14
- content: z.ZodString;
15
- }, z.core.$strip>;
13
+ title: typeof z.string;
14
+ content: typeof z.string;
15
+ }, z.z.core.$strip>;
16
16
  export declare const UpdateBlogInputs: z.ZodObject<{
17
- title: z.ZodString;
18
- content: z.ZodString;
19
- }, z.core.$strip>;
20
- export type SignInInputsType = z.infer<typeof SignInInputs>;
21
- export type SignUpInputsType = z.infer<typeof SignUpInputs>;
22
- export type CreateBlogInputsType = z.infer<typeof CreateBlogInputs>;
23
- export type UpdateBlogInputsType = z.infer<typeof UpdateBlogInputs>;
17
+ id: typeof z.string;
18
+ title: typeof z.string;
19
+ content: typeof z.string;
20
+ }, z.z.core.$strip>;
21
+ export declare const GoogleAuthInput: z.ZodObject<{
22
+ name: typeof z.string;
23
+ email: typeof z.email;
24
+ picture: z.ZodOptional<z.ZodString>;
25
+ }, z.z.core.$strip>;
26
+ export type SignInInputs = z.infer<typeof SignInInputs>;
27
+ export type SignUpInputs = z.infer<typeof SignInInputs>;
28
+ export type CreateBlogInputs = z.infer<typeof CreateBlogInputs>;
29
+ export type UpdateBlogInputs = z.infer<typeof UpdateBlogInputs>;
30
+ export type GoogleAuthInput = z.infer<typeof GoogleAuthInput>;
24
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,YAAY;;;;iBAIvB,CAAC;AAGH,eAAO,MAAM,YAAY;;;;iBAIvB,CAAC;AAGH,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAGH,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAC5D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAC5D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACpE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
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;;;;mBAI3B,CAAA;AAGF,eAAO,MAAM,eAAe;;;;mBAI1B,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;AAC/D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA"}
package/dist/index.js CHANGED
@@ -1,24 +1,33 @@
1
- import { z } from "zod";
2
- // Sign in inputs
1
+ import { createRequire as _createRequire } from "module";
2
+ const __require = _createRequire(import.meta.url);
3
+ const z = __require("zod");
4
+ //Singin Inputs
3
5
  export const SignInInputs = z.object({
4
- email: z.string().email(),
6
+ email: z.email(),
5
7
  password: z.string().min(6),
6
- name: z.string().optional(),
8
+ name: z.string().optional()
7
9
  });
8
- // Sign up inputs
10
+ //SingUp Inputs
9
11
  export const SignUpInputs = z.object({
10
- email: z.string().email(),
12
+ email: z.email(),
11
13
  password: z.string().min(6),
12
- name: z.string().optional(),
14
+ name: z.string().optional()
13
15
  });
14
- // Create blog inputs
16
+ //Create Blog inputs
15
17
  export const CreateBlogInputs = z.object({
16
- title: z.string(),
17
- content: z.string(),
18
+ title: z.string,
19
+ content: z.string,
18
20
  });
19
- // Update blog inputs
21
+ //Update Blog Inputs
20
22
  export const UpdateBlogInputs = z.object({
21
- title: z.string(),
22
- content: z.string(),
23
+ id: z.string,
24
+ title: z.string,
25
+ content: z.string,
26
+ });
27
+ //Google Auth Inputs
28
+ export const GoogleAuthInput = z.object({
29
+ name: z.string,
30
+ email: z.email,
31
+ picture: z.string().optional()
23
32
  });
24
33
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,iBAAiB;AACjB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,KAAK,EAAE,CA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,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,EAAE,EAAE,CAAC,CAAC,MAAM;IACZ,KAAK,EAAE,CAAC,CAAC,MAAM;IACf,OAAO,EAAE,CAAC,CAAC,MAAM;CACpB,CAAC,CAAA;AAEF,oBAAoB;AACpB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,CAAC,CAAC,MAAM;IACd,KAAK,EAAE,CAAC,CAAC,KAAK;IACd,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akk-medium-common",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "license": "ISC",
12
12
  "type": "module",
13
13
  "dependencies": {
14
- "akk-medium-common": "^1.0.0",
14
+ "akk-medium-common": "^1.0.1",
15
15
  "typescript": "^5.9.3",
16
16
  "zod": "^4.3.6"
17
17
  }