@tilokdutta2909/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.
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/package.json +16 -0
- package/tsconfig.json +44 -0
- package/tsconfig.tsbuildinfo +1 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
export declare const signiupnput: 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.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type SigninInput = z.infer<typeof signinInput>;
|
|
21
|
+
export type SignupInput = z.infer<typeof signinInput>;
|
|
22
|
+
export type CreateblogInput = z.infer<typeof createblogInput>;
|
|
23
|
+
export type UpdateblogInput = z.infer<typeof createblogInput>;
|
|
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,MAAM,KAAK,CAAA;AAEnB,eAAO,MAAM,WAAW;;;;iBAItB,CAAA;AAEF,eAAO,MAAM,WAAW;;;iBAGtB,CAAA;AAEF,eAAO,MAAM,eAAe;;;iBAG1B,CAAA;AAEF,eAAO,MAAM,eAAe;;;;iBAI1B,CAAA;AAIF,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,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateblogInput = exports.createblogInput = exports.signinInput = exports.signiupnput = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.signiupnput = zod_1.default.object({
|
|
6
|
+
email: zod_1.default.string().email(),
|
|
7
|
+
password: zod_1.default.string().min(6),
|
|
8
|
+
name: zod_1.default.string().optional()
|
|
9
|
+
});
|
|
10
|
+
exports.signinInput = zod_1.default.object({
|
|
11
|
+
email: zod_1.default.string().email(),
|
|
12
|
+
password: zod_1.default.string().min(6),
|
|
13
|
+
});
|
|
14
|
+
exports.createblogInput = zod_1.default.object({
|
|
15
|
+
title: zod_1.default.string(),
|
|
16
|
+
content: zod_1.default.string()
|
|
17
|
+
});
|
|
18
|
+
exports.updateblogInput = zod_1.default.object({
|
|
19
|
+
title: zod_1.default.string(),
|
|
20
|
+
content: zod_1.default.string(),
|
|
21
|
+
id: zod_1.default.string()
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,6BAAmB;AAEN,QAAA,WAAW,GAAG,aAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAC,aAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACxB,QAAQ,EAAC,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,IAAI,EAAC,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAA;AAEW,QAAA,WAAW,GAAG,aAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAC,aAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACxB,QAAQ,EAAC,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC3B,CAAC,CAAA;AAEW,QAAA,eAAe,GAAG,aAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAC,aAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAC,aAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA;AAEW,QAAA,eAAe,GAAG,aAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAC,aAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAC,aAAC,CAAC,MAAM,EAAE;IAClB,EAAE,EAAC,aAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tilokdutta2909/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": "commonjs",
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"zod": "^4.3.6"
|
|
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": "CommonJS",
|
|
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"}
|