expo-backend-types 0.0.38 → 0.0.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/dist/src/auth/dto/login.dto.d.ts +170 -0
  2. package/dist/src/auth/dto/login.dto.js +29 -0
  3. package/dist/src/auth/dto/login.dto.js.map +1 -0
  4. package/dist/src/auth/dto/register.dto.d.ts +73 -0
  5. package/dist/src/auth/dto/register.dto.js +20 -0
  6. package/dist/src/auth/dto/register.dto.js.map +1 -0
  7. package/dist/src/auth/exports.js +19 -0
  8. package/dist/src/auth/exports.js.map +1 -0
  9. package/dist/src/cuenta/dto/cuenta.dto.d.ts +60 -0
  10. package/dist/src/cuenta/dto/cuenta.dto.js +31 -0
  11. package/dist/src/cuenta/dto/cuenta.dto.js.map +1 -0
  12. package/dist/src/cuenta/exports.js +18 -0
  13. package/dist/src/cuenta/exports.js.map +1 -0
  14. package/dist/src/exports.js +19 -0
  15. package/dist/src/exports.js.map +1 -0
  16. package/{types/dto.ts → dist/types/dto.d.ts} +1 -1
  17. package/dist/types/dto.js +18 -0
  18. package/dist/types/dto.js.map +1 -0
  19. package/dist/types/index.d.ts +2 -0
  20. package/dist/types/index.js +19 -0
  21. package/dist/types/index.js.map +1 -0
  22. package/{types → dist/types}/schema.d.ts +0 -15
  23. package/dist/types/schema.js +3 -0
  24. package/dist/types/schema.js.map +1 -0
  25. package/package.json +21 -14
  26. package/tsconfig.json +1 -1
  27. package/src/auth/dto/login.dto.ts +0 -22
  28. package/src/auth/dto/register.dto.ts +0 -16
  29. package/src/cuenta/dto/cuenta.dto.ts +0 -28
  30. package/types/index.d.ts +0 -2
  31. package/types/prisma-schema/default.d.ts +0 -1
  32. package/types/prisma-schema/default.js +0 -1
  33. package/types/prisma-schema/edge.d.ts +0 -1
  34. package/types/prisma-schema/edge.js +0 -297
  35. package/types/prisma-schema/index-browser.d.ts +0 -271
  36. package/types/prisma-schema/index-browser.js +0 -289
  37. package/types/prisma-schema/index.d.ts +0 -16638
  38. package/types/prisma-schema/index.js +0 -318
  39. package/types/prisma-schema/package.json +0 -84
  40. package/types/prisma-schema/query_engine-windows.dll.node +0 -0
  41. package/types/prisma-schema/runtime/edge-esm.js +0 -28
  42. package/types/prisma-schema/runtime/edge.d.ts +0 -2
  43. package/types/prisma-schema/runtime/edge.js +0 -28
  44. package/types/prisma-schema/runtime/index-browser.d.ts +0 -365
  45. package/types/prisma-schema/runtime/index-browser.js +0 -13
  46. package/types/prisma-schema/runtime/library.d.ts +0 -3193
  47. package/types/prisma-schema/runtime/library.js +0 -140
  48. package/types/prisma-schema/runtime/react-native.d.ts +0 -2
  49. package/types/prisma-schema/runtime/react-native.js +0 -77
  50. package/types/prisma-schema/runtime/wasm.d.ts +0 -2
  51. package/types/prisma-schema/runtime/wasm.js +0 -29
  52. package/types/prisma-schema/schema.prisma +0 -149
  53. package/types/prisma-schema/wasm.d.ts +0 -1
  54. package/types/prisma-schema/wasm.js +0 -289
  55. /package/{src/auth/exports.ts → dist/src/auth/exports.d.ts} +0 -0
  56. /package/{src/cuenta/exports.ts → dist/src/cuenta/exports.d.ts} +0 -0
  57. /package/{src/exports.ts → dist/src/exports.d.ts} +0 -0
@@ -0,0 +1,170 @@
1
+ import z from 'zod';
2
+ export declare const loginSchema: z.ZodObject<Pick<{
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
+ }, "username" | "password">, "strip", z.ZodTypeAny, {
12
+ username: string;
13
+ password: string;
14
+ }, {
15
+ username: string;
16
+ password: string;
17
+ }>;
18
+ declare const LoginDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<Pick<{
19
+ id: z.ZodString;
20
+ username: z.ZodString;
21
+ password: z.ZodString;
22
+ isAdmin: z.ZodDefault<z.ZodBoolean>;
23
+ created_at: z.ZodString;
24
+ updated_at: z.ZodString;
25
+ filtroBaseActivo: z.ZodDefault<z.ZodBoolean>;
26
+ fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
27
+ }, "username" | "password">, "strip", z.ZodTypeAny, {
28
+ username: string;
29
+ password: string;
30
+ }, {
31
+ username: string;
32
+ password: string;
33
+ }>>;
34
+ export declare class LoginDto extends LoginDto_base {
35
+ }
36
+ export declare const loginResponseSchema: z.ZodObject<{
37
+ user: z.ZodObject<Omit<{
38
+ id: z.ZodString;
39
+ username: z.ZodString;
40
+ password: z.ZodString;
41
+ isAdmin: z.ZodDefault<z.ZodBoolean>;
42
+ created_at: z.ZodString;
43
+ updated_at: z.ZodString;
44
+ filtroBaseActivo: z.ZodDefault<z.ZodBoolean>;
45
+ fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
46
+ }, "password">, "strip", z.ZodTypeAny, {
47
+ id: string;
48
+ username: string;
49
+ isAdmin: boolean;
50
+ created_at: string;
51
+ updated_at: string;
52
+ filtroBaseActivo: boolean;
53
+ fcmToken: string[];
54
+ }, {
55
+ id: string;
56
+ username: string;
57
+ created_at: string;
58
+ updated_at: string;
59
+ isAdmin?: boolean | undefined;
60
+ filtroBaseActivo?: boolean | undefined;
61
+ fcmToken?: string[] | undefined;
62
+ }>;
63
+ backendTokens: z.ZodObject<{
64
+ accessToken: z.ZodString;
65
+ refreshToken: z.ZodString;
66
+ }, "strip", z.ZodTypeAny, {
67
+ accessToken: string;
68
+ refreshToken: string;
69
+ }, {
70
+ accessToken: string;
71
+ refreshToken: string;
72
+ }>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ user: {
75
+ id: string;
76
+ username: string;
77
+ isAdmin: boolean;
78
+ created_at: string;
79
+ updated_at: string;
80
+ filtroBaseActivo: boolean;
81
+ fcmToken: string[];
82
+ };
83
+ backendTokens: {
84
+ accessToken: string;
85
+ refreshToken: string;
86
+ };
87
+ }, {
88
+ user: {
89
+ id: string;
90
+ username: string;
91
+ created_at: string;
92
+ updated_at: string;
93
+ isAdmin?: boolean | undefined;
94
+ filtroBaseActivo?: boolean | undefined;
95
+ fcmToken?: string[] | undefined;
96
+ };
97
+ backendTokens: {
98
+ accessToken: string;
99
+ refreshToken: string;
100
+ };
101
+ }>;
102
+ declare const LoginResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
103
+ user: z.ZodObject<Omit<{
104
+ id: z.ZodString;
105
+ username: z.ZodString;
106
+ password: z.ZodString;
107
+ isAdmin: z.ZodDefault<z.ZodBoolean>;
108
+ created_at: z.ZodString;
109
+ updated_at: z.ZodString;
110
+ filtroBaseActivo: z.ZodDefault<z.ZodBoolean>;
111
+ fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
112
+ }, "password">, "strip", z.ZodTypeAny, {
113
+ id: string;
114
+ username: string;
115
+ isAdmin: boolean;
116
+ created_at: string;
117
+ updated_at: string;
118
+ filtroBaseActivo: boolean;
119
+ fcmToken: string[];
120
+ }, {
121
+ id: string;
122
+ username: string;
123
+ created_at: string;
124
+ updated_at: string;
125
+ isAdmin?: boolean | undefined;
126
+ filtroBaseActivo?: boolean | undefined;
127
+ fcmToken?: string[] | undefined;
128
+ }>;
129
+ backendTokens: z.ZodObject<{
130
+ accessToken: z.ZodString;
131
+ refreshToken: z.ZodString;
132
+ }, "strip", z.ZodTypeAny, {
133
+ accessToken: string;
134
+ refreshToken: string;
135
+ }, {
136
+ accessToken: string;
137
+ refreshToken: string;
138
+ }>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ user: {
141
+ id: string;
142
+ username: string;
143
+ isAdmin: boolean;
144
+ created_at: string;
145
+ updated_at: string;
146
+ filtroBaseActivo: boolean;
147
+ fcmToken: string[];
148
+ };
149
+ backendTokens: {
150
+ accessToken: string;
151
+ refreshToken: string;
152
+ };
153
+ }, {
154
+ user: {
155
+ id: string;
156
+ username: string;
157
+ created_at: string;
158
+ updated_at: string;
159
+ isAdmin?: boolean | undefined;
160
+ filtroBaseActivo?: boolean | undefined;
161
+ fcmToken?: string[] | undefined;
162
+ };
163
+ backendTokens: {
164
+ accessToken: string;
165
+ refreshToken: string;
166
+ };
167
+ }>>;
168
+ export declare class LoginResponseDto extends LoginResponseDto_base {
169
+ }
170
+ export {};
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.LoginResponseDto = exports.loginResponseSchema = exports.LoginDto = exports.loginSchema = void 0;
7
+ const zod_nestjs_1 = require("@anatine/zod-nestjs");
8
+ const cuenta_dto_1 = require("../../cuenta/dto/cuenta.dto");
9
+ const zod_1 = __importDefault(require("zod"));
10
+ exports.loginSchema = cuenta_dto_1.cuentaSchema.pick({
11
+ username: true,
12
+ password: true,
13
+ });
14
+ class LoginDto extends (0, zod_nestjs_1.createZodDto)(exports.loginSchema) {
15
+ }
16
+ exports.LoginDto = LoginDto;
17
+ exports.loginResponseSchema = zod_1.default.object({
18
+ user: cuenta_dto_1.cuentaSchema.omit({
19
+ password: true,
20
+ }),
21
+ backendTokens: zod_1.default.object({
22
+ accessToken: zod_1.default.string(),
23
+ refreshToken: zod_1.default.string(),
24
+ }),
25
+ });
26
+ class LoginResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.loginResponseSchema) {
27
+ }
28
+ exports.LoginResponseDto = LoginResponseDto;
29
+ //# sourceMappingURL=login.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.dto.js","sourceRoot":"","sources":["../../../../src/auth/dto/login.dto.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAmD;AACnD,4DAAuD;AACvD,8CAAoB;AAEP,QAAA,WAAW,GAAG,yBAAY,CAAC,IAAI,CAAC;IAC3C,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEH,MAAa,QAAS,SAAQ,IAAA,yBAAY,EAAC,mBAAW,CAAC;CAAG;AAA1D,4BAA0D;AAE7C,QAAA,mBAAmB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,yBAAY,CAAC,IAAI,CAAC;QACtB,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,aAAa,EAAE,aAAC,CAAC,MAAM,CAAC;QACtB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;QACvB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;KACzB,CAAC;CACH,CAAC,CAAC;AAEH,MAAa,gBAAiB,SAAQ,IAAA,yBAAY,EAAC,2BAAmB,CAAC;CAAG;AAA1E,4CAA0E"}
@@ -0,0 +1,73 @@
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 {};
@@ -0,0 +1,20 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.dto.js","sourceRoot":"","sources":["../../../../src/auth/dto/register.dto.ts"],"names":[],"mappings":";;;AAAA,oDAAmD;AACnD,4DAAuD;AAE1C,QAAA,cAAc,GAAG,yBAAY,CAAC,IAAI,CAAC;IAC9C,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,IAAI;CACd,CAAC,CAAC;AAEH,MAAa,WAAY,SAAQ,IAAA,yBAAY,EAAC,sBAAc,CAAC;CAAG;AAAhE,kCAAgE;AAEnD,QAAA,sBAAsB,GAAG,sBAAc,CAAC,IAAI,CAAC;IACxD,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEH,MAAa,mBAAoB,SAAQ,IAAA,yBAAY,EAAC,8BAAsB,CAAC;CAAG;AAAhF,kDAAgF"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto/login.dto"), exports);
18
+ __exportStar(require("./dto/register.dto"), exports);
19
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../src/auth/exports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,qDAAmC"}
@@ -0,0 +1,60 @@
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 {};
@@ -0,0 +1,31 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cuenta.dto.js","sourceRoot":"","sources":["../../../../src/cuenta/dto/cuenta.dto.ts"],"names":[],"mappings":";;;AAAA,oDAAmD;AACnD,6BAAwB;AAEX,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,OAAC;SACF,MAAM,CAAC;QACN,cAAc,EAAE,oBAAoB;KACrC,CAAC;SACD,IAAI,CAAC;QACJ,OAAO,EAAE,wBAAwB;KAClC,CAAC;IACJ,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,cAAc,EAAE,mCAAmC;KACpD,CAAC;IACF,QAAQ,EAAE,OAAC;SACR,MAAM,CAAC;QACN,cAAc,EAAE,4BAA4B;KAC7C,CAAC;SACD,GAAG,CAAC,CAAC,EAAE,gDAAgD,CAAC;IAC3D,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACnC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEjC,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5C,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC1C,CAAC,CAAC;AAEH,MAAa,SAAU,SAAQ,IAAA,yBAAY,EAAC,oBAAY,CAAC;CAAG;AAA5D,8BAA4D"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto/cuenta.dto"), exports);
18
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../src/cuenta/exports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./auth/exports"), exports);
18
+ __exportStar(require("./cuenta/exports"), exports);
19
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,mDAAiC"}
@@ -1 +1 @@
1
- export * from '../src/exports';
1
+ export * from '../src/exports';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../src/exports"), exports);
18
+ //# sourceMappingURL=dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dto.js","sourceRoot":"","sources":["../../types/dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -0,0 +1,2 @@
1
+ export * from './schema';
2
+ export * from '.prisma/client';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./schema"), exports);
18
+ __exportStar(require(".prisma/client"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,iDAA+B"}
@@ -1,8 +1,3 @@
1
- /**
2
- * This file was auto-generated by openapi-typescript.
3
- * Do not make direct changes to the file.
4
- */
5
-
6
1
  export interface paths {
7
2
  "/auth/register": {
8
3
  parameters: {
@@ -59,12 +54,10 @@ export interface components {
59
54
  RegisterDto: {
60
55
  username: string;
61
56
  password: string;
62
- /** @default false */
63
57
  isAdmin: boolean;
64
58
  };
65
59
  RegisterResponseDto: {
66
60
  username: string;
67
- /** @default false */
68
61
  isAdmin: boolean;
69
62
  };
70
63
  LoginDto: {
@@ -73,18 +66,12 @@ export interface components {
73
66
  };
74
67
  LoginResponseDto: {
75
68
  user: {
76
- /** Format: uuid */
77
69
  id?: string;
78
70
  username?: string;
79
- /** @default false */
80
71
  isAdmin: boolean;
81
- /** Format: date-time */
82
72
  created_at?: string;
83
- /** Format: date-time */
84
73
  updated_at?: string;
85
- /** @default false */
86
74
  filtroBaseActivo: boolean;
87
- /** @default [] */
88
75
  fcmToken: string[];
89
76
  };
90
77
  backendTokens: {
@@ -114,7 +101,6 @@ export interface operations {
114
101
  };
115
102
  };
116
103
  responses: {
117
- /** @description Cuenta creada */
118
104
  201: {
119
105
  headers: {
120
106
  [name: string]: unknown;
@@ -138,7 +124,6 @@ export interface operations {
138
124
  };
139
125
  };
140
126
  responses: {
141
- /** @description Cuenta creada */
142
127
  200: {
143
128
  headers: {
144
129
  [name: string]: unknown;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../types/schema.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,24 +1,26 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
7
7
  "license": "UNLICENSED",
8
8
  "files": [
9
- "types",
9
+ "dist/types",
10
10
  "./tsconfig.json",
11
- "src/**/*.dto.ts",
12
- "src/**/exports.ts"
11
+ "dist/src/**/*.dto.*",
12
+ "dist/src/**/exports.*"
13
13
  ],
14
+ "engines": {
15
+ "node": ">=14.17.0"
16
+ },
14
17
  "scripts": {
15
- "ci": "npm run build && npm run generate-ts-schema && npm run check-format && npm run lint && npm run check-exports",
18
+ "ci": "npx prisma generate && npm run build && npm run generate-ts-schema && npm run check-format && npm run lint && npm run check-exports",
16
19
  "build": "nest build",
17
20
  "format": "prettier --write \"src/**/*.ts\"",
18
21
  "check-format": "prettier --check \"src/**/*.ts\"",
19
- "check-exports": "attw --pack .",
22
+ "check-exports": "attw --ignore-rules \"no-resolution\" --pack .",
20
23
  "local-release": "changeset version && changeset publish",
21
- "commit-schema": "git add ./types/schema.d.ts swagger.yaml && git commit -m \"Update schema\"",
22
24
  "start": "nest start",
23
25
  "dev": "nest start --watch",
24
26
  "start:debug": "nest start --debug --watch",
@@ -29,7 +31,7 @@
29
31
  "test:cov": "jest --coverage",
30
32
  "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
31
33
  "test:e2e": "jest --config ./test/jest-e2e.json",
32
- "generate-ts-schema": "node ./dist/src/main.swagger.js && openapi-typescript ./swagger.yaml -o ./types/schema.d.ts",
34
+ "generate-ts-schema": "node ./dist/src/main.swagger.js && openapi-typescript ./swagger.yaml -o ./types/schema.ts",
33
35
  "prepare": "husky",
34
36
  "prepublishOnly": "npm run ci"
35
37
  },
@@ -83,13 +85,18 @@
83
85
  "tsconfig-paths": "^4.2.0",
84
86
  "typescript": "^5.4.5"
85
87
  },
86
- "main": "types/index.d.ts",
88
+ "main": "dist/types/index.js",
87
89
  "exports": {
88
90
  ".": {
89
- "import": "./types/index.d.ts",
90
- "require": "./types/index.d.ts",
91
- "default": "./types/index.d.ts",
92
- "types": "./types/index.d.ts"
91
+ "import": "./dist/types/index.d.ts",
92
+ "require": "./dist/types/index.d.ts",
93
+ "default": "./dist/types/index.d.ts",
94
+ "types": "./dist/types/index.d.ts"
95
+ },
96
+ "./dto": {
97
+ "import": "./dist/types/dto.js",
98
+ "default": "./dist/types/dto.js",
99
+ "types": "./dist/types/dto.d.ts"
93
100
  }
94
101
  },
95
102
  "lint-staged": {
@@ -113,4 +120,4 @@
113
120
  "git add"
114
121
  ]
115
122
  }
116
- }
123
+ }