@ecogood/e-calculator-schemas 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/LICENSE +21 -0
- package/README.md +26 -0
- package/dist/balance.sheet.diff.d.ts +23 -0
- package/dist/balance.sheet.diff.js +13 -0
- package/dist/balance.sheet.dto.d.ts +686 -0
- package/dist/balance.sheet.dto.js +28 -0
- package/dist/company.facts.dto.d.ts +346 -0
- package/dist/company.facts.dto.js +77 -0
- package/dist/industry.dto.d.ts +11 -0
- package/dist/industry.dto.js +8 -0
- package/dist/matrix.dto.d.ts +23 -0
- package/dist/matrix.dto.js +12 -0
- package/dist/rating.dto.d.ts +65 -0
- package/dist/rating.dto.js +45 -0
- package/dist/region.dto.d.ts +11 -0
- package/dist/region.dto.js +8 -0
- package/dist/shared.schemas.d.ts +14 -0
- package/dist/shared.schemas.js +24 -0
- package/dist/user.schema.d.ts +18 -0
- package/dist/user.schema.js +12 -0
- package/package.json +60 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const UserRequestBodySchema: z.ZodObject<{
|
|
3
|
+
email: z.ZodString;
|
|
4
|
+
password: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
email: string;
|
|
7
|
+
password: string;
|
|
8
|
+
}, {
|
|
9
|
+
email: string;
|
|
10
|
+
password: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const PasswordResetRequestBodySchema: z.ZodObject<{
|
|
13
|
+
newPassword: z.ZodString;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
newPassword: string;
|
|
16
|
+
}, {
|
|
17
|
+
newPassword: string;
|
|
18
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PasswordResetRequestBodySchema = exports.UserRequestBodySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const isPassword = zod_1.z.string().min(20);
|
|
6
|
+
exports.UserRequestBodySchema = zod_1.z.object({
|
|
7
|
+
email: zod_1.z.string().email(),
|
|
8
|
+
password: isPassword,
|
|
9
|
+
});
|
|
10
|
+
exports.PasswordResetRequestBodySchema = zod_1.z.object({
|
|
11
|
+
newPassword: isPassword,
|
|
12
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ecogood/e-calculator-schemas",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A package providing the schemas for the e-calculator application.",
|
|
5
|
+
"main": "dist/e-calculator-schemas",
|
|
6
|
+
"types": "dist/e-calculator-schemas",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"test": "jest --watch --runInBand",
|
|
10
|
+
"test:ci": "jest --runInBand",
|
|
11
|
+
"format": "prettier --write .",
|
|
12
|
+
"lint": "eslint --ext .ts,.js .",
|
|
13
|
+
"lint-fix": "eslint --ext .ts,.js . --fix",
|
|
14
|
+
"update:to:latest": "ncu -u && yarn update && yarn install && yarn audit fix",
|
|
15
|
+
"prepare": "rm -r dist || true && yarn run build && yarn run test:ci && yarn run lint"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"LICENSE",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://git.ecogood.org/services/e-calculator-schemas"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"version",
|
|
31
|
+
"compare"
|
|
32
|
+
],
|
|
33
|
+
"author": "Michael Rudolph",
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://git.ecogood.org/services/e-calculator-schemas/issues"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"eslint-plugin-n": "^15.6.1",
|
|
40
|
+
"zod": "^3.20.6"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/jest": "^28.1.6",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^5.33.0",
|
|
45
|
+
"@typescript-eslint/parser": "^5.33.0",
|
|
46
|
+
"eslint": "8.22.0",
|
|
47
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
48
|
+
"eslint-config-prettier": "^8.5.0",
|
|
49
|
+
"eslint-config-standard": "^17.0.0",
|
|
50
|
+
"eslint-plugin-import": "^2.26.0",
|
|
51
|
+
"eslint-plugin-node": "^11.1.0",
|
|
52
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
53
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
54
|
+
"eslint-plugin-unused-imports": "^2.0.0",
|
|
55
|
+
"jest": "^29.5.0",
|
|
56
|
+
"prettier": "2.3.2",
|
|
57
|
+
"ts-jest": "^29.0.5",
|
|
58
|
+
"typescript": "^4.4.3"
|
|
59
|
+
}
|
|
60
|
+
}
|