expo-backend-types 0.3.0 → 0.4.0-EXPO-212.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/account/dto/account.dto.d.ts +256 -0
- package/dist/src/account/dto/account.dto.js +53 -0
- package/dist/src/account/dto/create-account.dto.d.ts +381 -0
- package/dist/src/account/dto/create-account.dto.js +23 -0
- package/dist/src/account/dto/get-global-filter.dto.d.ts +154 -0
- package/dist/src/account/dto/get-global-filter.dto.js +30 -0
- package/dist/src/account/dto/get-me.dto.d.ts +251 -0
- package/dist/src/account/dto/get-me.dto.js +12 -0
- package/dist/src/account/dto/update-global-filter.dto.d.ts +208 -0
- package/dist/src/account/dto/update-global-filter.dto.js +29 -0
- package/dist/src/account/exports.d.ts +5 -0
- package/dist/src/account/exports.js +22 -0
- package/dist/src/auth/dto/login.dto.d.ts +416 -24
- package/dist/src/auth/dto/login.dto.js +3 -3
- package/dist/src/auth/exports.d.ts +0 -1
- package/dist/src/auth/exports.js +0 -1
- package/dist/src/comment/dto/comment.dto.d.ts +66 -0
- package/dist/src/comment/dto/comment.dto.js +26 -0
- package/dist/src/comment/exports.d.ts +1 -0
- package/dist/src/comment/exports.js +18 -0
- package/dist/src/event/dto/event.dto.d.ts +41 -0
- package/dist/src/event/dto/event.dto.js +33 -0
- package/dist/src/event/exports.d.ts +1 -0
- package/dist/src/{cuenta → event}/exports.js +1 -1
- package/dist/src/event-folder/dto/event-folder.dto.d.ts +14 -0
- package/dist/src/event-folder/dto/event-folder.dto.js +22 -0
- package/dist/src/exports.d.ts +5 -1
- package/dist/src/exports.js +5 -1
- package/dist/src/i18n/es.json +125 -0
- package/dist/src/i18n/translate.d.ts +8 -0
- package/dist/src/i18n/translate.js +21 -0
- package/dist/src/i18n/translate.js.map +1 -0
- package/dist/src/tag/dto/create-tag.dto.d.ts +89 -0
- package/dist/src/tag/dto/create-tag.dto.js +20 -0
- package/dist/src/tag/dto/delete-tag.dto.d.ts +57 -0
- package/dist/src/tag/dto/delete-tag.dto.js +10 -0
- package/dist/src/tag/dto/find-all-grouped-tag.dto.d.ts +282 -0
- package/dist/src/tag/dto/find-all-grouped-tag.dto.js +33 -0
- package/dist/src/tag/dto/find-all-tag.dto.d.ts +208 -0
- package/dist/src/tag/dto/find-all-tag.dto.js +19 -0
- package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +208 -0
- package/dist/src/tag/dto/find-by-group-tag.dto.js +19 -0
- package/dist/src/tag/dto/find-one-tag.dto.d.ts +136 -0
- package/dist/src/tag/dto/find-one-tag.dto.js +17 -0
- package/dist/src/tag/dto/tag.dto.d.ts +58 -0
- package/dist/src/tag/dto/tag.dto.js +30 -0
- package/dist/src/tag/dto/update-tag.dto.d.ts +79 -0
- package/dist/src/tag/dto/update-tag.dto.js +19 -0
- package/dist/src/tag/exports.d.ts +8 -0
- package/dist/src/tag/exports.js +25 -0
- package/dist/src/tag-group/dto/tag-group.dto.d.ts +48 -0
- package/dist/src/tag-group/dto/tag-group.dto.js +28 -0
- package/dist/src/tag-group/exports.d.ts +1 -0
- package/dist/src/tag-group/exports.js +18 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/prisma-schema/edge.js +106 -64
- package/dist/types/prisma-schema/index-browser.js +103 -61
- package/dist/types/prisma-schema/index.d.ts +11442 -6088
- package/dist/types/prisma-schema/index.js +106 -64
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +175 -103
- package/dist/types/prisma-schema/wasm.js +103 -61
- package/dist/types/schema.d.ts +539 -26
- package/package.json +11 -7
- package/dist/src/auth/dto/register.dto.d.ts +0 -73
- package/dist/src/auth/dto/register.dto.js +0 -20
- package/dist/src/cuenta/dto/cuenta.dto.d.ts +0 -60
- package/dist/src/cuenta/dto/cuenta.dto.js +0 -31
- package/dist/src/cuenta/exports.d.ts +0 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "expo-backend-types",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.4.0-EXPO-212.1",
|
4
4
|
"description": "",
|
5
5
|
"author": "Expo",
|
6
6
|
"private": false,
|
@@ -8,27 +8,29 @@
|
|
8
8
|
"files": [
|
9
9
|
"dist/types",
|
10
10
|
"dist/src/**/*.dto.{js,d.ts,ts}",
|
11
|
-
"dist/src/**/exports.{js,d.ts,ts}"
|
11
|
+
"dist/src/**/exports.{js,d.ts,ts}",
|
12
|
+
"dist/src/i18n"
|
12
13
|
],
|
13
14
|
"scripts": {
|
14
15
|
"ci": "npm install && npx prisma generate && npm run generate-ts-schema && npm run build && npx prisma generate && npm run format && npm run lint && npm run check-exports",
|
15
16
|
"build": "nest build",
|
17
|
+
"postinstall": "patch-package",
|
16
18
|
"format": "prettier --write \"src/**/*.ts\"",
|
17
19
|
"check-format": "prettier --check \"src/**/*.ts\"",
|
18
20
|
"check-exports": "attw --pack .",
|
19
21
|
"local-release": "changeset version && changeset publish",
|
20
22
|
"commit-schema": "git add ./types/schema.d.ts swagger.yaml && git commit -m \"Update schema\"",
|
21
|
-
"start": "nest start",
|
22
|
-
"dev": "nest start --watch",
|
23
|
+
"start": "npx prisma generate && nest start",
|
24
|
+
"dev": "npx prisma generate && nest start --watch",
|
23
25
|
"start:debug": "nest start --debug --watch",
|
24
|
-
"start:prod": "node dist/main",
|
25
|
-
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
26
|
+
"start:prod": "node dist/src/main",
|
27
|
+
"lint": "eslint \"{src,apps,libs,test,types}/**/*.ts\" --fix",
|
26
28
|
"test": "jest",
|
27
29
|
"test:watch": "jest --watch",
|
28
30
|
"test:cov": "jest --coverage",
|
29
31
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
30
32
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
31
|
-
"generate-ts-schema": "npx ts-node -r tsconfig-paths/register src/main.swagger.ts && openapi-typescript ./swagger.yaml -o ./types/schema.ts",
|
33
|
+
"generate-ts-schema": "npx ts-node -r tsconfig-paths/register src/main.swagger.ts && npx openapi-typescript ./swagger.yaml -o ./types/schema.ts",
|
32
34
|
"prepare": "husky",
|
33
35
|
"prepublishOnly": "npm run ci"
|
34
36
|
},
|
@@ -43,8 +45,10 @@
|
|
43
45
|
"@nestjs/swagger": "^7.3.1",
|
44
46
|
"@prisma/client": "^5.14.0",
|
45
47
|
"bcrypt": "^5.1.1",
|
48
|
+
"i18n-js": "^4.4.3",
|
46
49
|
"json-to-pretty-yaml": "^1.2.2",
|
47
50
|
"openapi3-ts": "^4.4.0",
|
51
|
+
"patch-package": "^8.0.0",
|
48
52
|
"reflect-metadata": "^0.2.0",
|
49
53
|
"zod": "^3.23.8"
|
50
54
|
},
|
@@ -1,73 +0,0 @@
|
|
1
|
-
export declare const registerSchema: import("zod").ZodObject<Pick<{
|
2
|
-
id: import("zod").ZodString;
|
3
|
-
username: import("zod").ZodString;
|
4
|
-
password: import("zod").ZodString;
|
5
|
-
isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
6
|
-
created_at: import("zod").ZodString;
|
7
|
-
updated_at: import("zod").ZodString;
|
8
|
-
filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
9
|
-
fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
10
|
-
}, "username" | "password" | "isAdmin">, "strip", import("zod").ZodTypeAny, {
|
11
|
-
username: string;
|
12
|
-
password: string;
|
13
|
-
isAdmin: boolean;
|
14
|
-
}, {
|
15
|
-
username: string;
|
16
|
-
password: string;
|
17
|
-
isAdmin?: boolean | undefined;
|
18
|
-
}>;
|
19
|
-
declare const RegisterDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<Pick<{
|
20
|
-
id: import("zod").ZodString;
|
21
|
-
username: import("zod").ZodString;
|
22
|
-
password: import("zod").ZodString;
|
23
|
-
isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
24
|
-
created_at: import("zod").ZodString;
|
25
|
-
updated_at: import("zod").ZodString;
|
26
|
-
filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
27
|
-
fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
28
|
-
}, "username" | "password" | "isAdmin">, "strip", import("zod").ZodTypeAny, {
|
29
|
-
username: string;
|
30
|
-
password: string;
|
31
|
-
isAdmin: boolean;
|
32
|
-
}, {
|
33
|
-
username: string;
|
34
|
-
password: string;
|
35
|
-
isAdmin?: boolean | undefined;
|
36
|
-
}>>;
|
37
|
-
export declare class RegisterDto extends RegisterDto_base {
|
38
|
-
}
|
39
|
-
export declare const registerResponseSchema: import("zod").ZodObject<Omit<Pick<{
|
40
|
-
id: import("zod").ZodString;
|
41
|
-
username: import("zod").ZodString;
|
42
|
-
password: import("zod").ZodString;
|
43
|
-
isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
44
|
-
created_at: import("zod").ZodString;
|
45
|
-
updated_at: import("zod").ZodString;
|
46
|
-
filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
47
|
-
fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
48
|
-
}, "username" | "password" | "isAdmin">, "password">, "strip", import("zod").ZodTypeAny, {
|
49
|
-
username: string;
|
50
|
-
isAdmin: boolean;
|
51
|
-
}, {
|
52
|
-
username: string;
|
53
|
-
isAdmin?: boolean | undefined;
|
54
|
-
}>;
|
55
|
-
declare const RegisterResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<Omit<Pick<{
|
56
|
-
id: import("zod").ZodString;
|
57
|
-
username: import("zod").ZodString;
|
58
|
-
password: import("zod").ZodString;
|
59
|
-
isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
60
|
-
created_at: import("zod").ZodString;
|
61
|
-
updated_at: import("zod").ZodString;
|
62
|
-
filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
63
|
-
fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
64
|
-
}, "username" | "password" | "isAdmin">, "password">, "strip", import("zod").ZodTypeAny, {
|
65
|
-
username: string;
|
66
|
-
isAdmin: boolean;
|
67
|
-
}, {
|
68
|
-
username: string;
|
69
|
-
isAdmin?: boolean | undefined;
|
70
|
-
}>>;
|
71
|
-
export declare class RegisterResponseDto extends RegisterResponseDto_base {
|
72
|
-
}
|
73
|
-
export {};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.RegisterResponseDto = exports.registerResponseSchema = exports.RegisterDto = exports.registerSchema = void 0;
|
4
|
-
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
5
|
-
const cuenta_dto_1 = require("../../cuenta/dto/cuenta.dto");
|
6
|
-
exports.registerSchema = cuenta_dto_1.cuentaSchema.pick({
|
7
|
-
username: true,
|
8
|
-
password: true,
|
9
|
-
isAdmin: true,
|
10
|
-
});
|
11
|
-
class RegisterDto extends (0, zod_nestjs_1.createZodDto)(exports.registerSchema) {
|
12
|
-
}
|
13
|
-
exports.RegisterDto = RegisterDto;
|
14
|
-
exports.registerResponseSchema = exports.registerSchema.omit({
|
15
|
-
password: true,
|
16
|
-
});
|
17
|
-
class RegisterResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.registerResponseSchema) {
|
18
|
-
}
|
19
|
-
exports.RegisterResponseDto = RegisterResponseDto;
|
20
|
-
//# sourceMappingURL=register.dto.js.map
|
@@ -1,60 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
export declare const cuentaSchema: z.ZodObject<{
|
3
|
-
id: z.ZodString;
|
4
|
-
username: z.ZodString;
|
5
|
-
password: z.ZodString;
|
6
|
-
isAdmin: z.ZodDefault<z.ZodBoolean>;
|
7
|
-
created_at: z.ZodString;
|
8
|
-
updated_at: z.ZodString;
|
9
|
-
filtroBaseActivo: z.ZodDefault<z.ZodBoolean>;
|
10
|
-
fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
12
|
-
id: string;
|
13
|
-
username: string;
|
14
|
-
password: string;
|
15
|
-
isAdmin: boolean;
|
16
|
-
created_at: string;
|
17
|
-
updated_at: string;
|
18
|
-
filtroBaseActivo: boolean;
|
19
|
-
fcmToken: string[];
|
20
|
-
}, {
|
21
|
-
id: string;
|
22
|
-
username: string;
|
23
|
-
password: string;
|
24
|
-
created_at: string;
|
25
|
-
updated_at: string;
|
26
|
-
isAdmin?: boolean | undefined;
|
27
|
-
filtroBaseActivo?: boolean | undefined;
|
28
|
-
fcmToken?: string[] | undefined;
|
29
|
-
}>;
|
30
|
-
declare const CuentaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
31
|
-
id: z.ZodString;
|
32
|
-
username: z.ZodString;
|
33
|
-
password: z.ZodString;
|
34
|
-
isAdmin: z.ZodDefault<z.ZodBoolean>;
|
35
|
-
created_at: z.ZodString;
|
36
|
-
updated_at: z.ZodString;
|
37
|
-
filtroBaseActivo: z.ZodDefault<z.ZodBoolean>;
|
38
|
-
fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
40
|
-
id: string;
|
41
|
-
username: string;
|
42
|
-
password: string;
|
43
|
-
isAdmin: boolean;
|
44
|
-
created_at: string;
|
45
|
-
updated_at: string;
|
46
|
-
filtroBaseActivo: boolean;
|
47
|
-
fcmToken: string[];
|
48
|
-
}, {
|
49
|
-
id: string;
|
50
|
-
username: string;
|
51
|
-
password: string;
|
52
|
-
created_at: string;
|
53
|
-
updated_at: string;
|
54
|
-
isAdmin?: boolean | undefined;
|
55
|
-
filtroBaseActivo?: boolean | undefined;
|
56
|
-
fcmToken?: string[] | undefined;
|
57
|
-
}>>;
|
58
|
-
export declare class CuentaDto extends CuentaDto_base {
|
59
|
-
}
|
60
|
-
export {};
|
@@ -1,31 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CuentaDto = exports.cuentaSchema = void 0;
|
4
|
-
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
5
|
-
const zod_1 = require("zod");
|
6
|
-
exports.cuentaSchema = zod_1.z.object({
|
7
|
-
id: zod_1.z
|
8
|
-
.string({
|
9
|
-
required_error: 'El id es requerido',
|
10
|
-
})
|
11
|
-
.uuid({
|
12
|
-
message: 'El id debe ser un UUID',
|
13
|
-
}),
|
14
|
-
username: zod_1.z.string({
|
15
|
-
required_error: 'El nombre de usuario es requerido',
|
16
|
-
}),
|
17
|
-
password: zod_1.z
|
18
|
-
.string({
|
19
|
-
required_error: 'La contraseña es requerida',
|
20
|
-
})
|
21
|
-
.min(6, 'La contraseña debe tener al menos 6 caracteres'),
|
22
|
-
isAdmin: zod_1.z.boolean().default(false),
|
23
|
-
created_at: zod_1.z.string().datetime(),
|
24
|
-
updated_at: zod_1.z.string().datetime(),
|
25
|
-
filtroBaseActivo: zod_1.z.boolean().default(false),
|
26
|
-
fcmToken: zod_1.z.array(zod_1.z.string()).default([]),
|
27
|
-
});
|
28
|
-
class CuentaDto extends (0, zod_nestjs_1.createZodDto)(exports.cuentaSchema) {
|
29
|
-
}
|
30
|
-
exports.CuentaDto = CuentaDto;
|
31
|
-
//# sourceMappingURL=cuenta.dto.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './dto/cuenta.dto';
|