expo-backend-types 0.11.0-EXPO-249-EB-Modelo.1 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/src/event/dto/create-event.dto.d.ts +166 -0
  2. package/dist/src/event/dto/create-event.dto.js +33 -0
  3. package/dist/src/event/dto/delete-event.dto.d.ts +71 -0
  4. package/dist/src/event/dto/delete-event.dto.js +10 -0
  5. package/dist/src/event/dto/get-all-event.dto.d.ts +1113 -0
  6. package/dist/src/event/dto/get-all-event.dto.js +26 -0
  7. package/dist/src/event/dto/get-by-id-event.dto.d.ts +548 -0
  8. package/dist/src/event/dto/get-by-id-event.dto.js +25 -0
  9. package/dist/src/event/dto/update-event.dto.d.ts +373 -0
  10. package/dist/src/event/dto/update-event.dto.js +41 -0
  11. package/dist/src/event/exports.d.ts +5 -0
  12. package/dist/src/event/exports.js +5 -0
  13. package/dist/src/event-folder/dto/event-folder.dto.js +3 -1
  14. package/dist/src/event-folder/dto/get-all-event-folder.dto.d.ts +6 -6
  15. package/dist/src/event-folder/dto/get-all-event-folder.dto.js +1 -1
  16. package/dist/src/exports.d.ts +0 -1
  17. package/dist/src/exports.js +0 -1
  18. package/dist/src/i18n/es.d.ts +31 -8
  19. package/dist/src/i18n/es.js +31 -8
  20. package/dist/src/i18n/es.js.map +1 -1
  21. package/dist/src/profile/exports.d.ts +0 -1
  22. package/dist/src/profile/exports.js +0 -1
  23. package/dist/types/prisma-schema/edge.js +2 -2
  24. package/dist/types/prisma-schema/index.js +2 -2
  25. package/dist/types/prisma-schema/package.json +1 -1
  26. package/dist/types/prisma-schema/schema.prisma +1 -1
  27. package/dist/types/schema.d.ts +324 -56
  28. package/package.json +1 -2
  29. package/dist/src/message/dto/message.dto.d.ts +0 -173
  30. package/dist/src/message/dto/message.dto.js +0 -38
  31. package/dist/src/message/exports.d.ts +0 -1
  32. package/dist/src/message/exports.js +0 -18
  33. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +0 -728
  34. package/dist/src/profile/dto/find-with-active-chat.dto.js +0 -26
@@ -1,173 +0,0 @@
1
- import z from 'zod';
2
- export declare const jsonMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
- id: z.ZodString;
4
- from: z.ZodOptional<z.ZodString>;
5
- to: z.ZodOptional<z.ZodString>;
6
- timestamp: z.ZodNumber;
7
- }, {
8
- text: z.ZodObject<{
9
- body: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- body: string;
12
- }, {
13
- body: string;
14
- }>;
15
- }>, {
16
- type: z.ZodLiteral<"text">;
17
- }>, "strip", z.ZodTypeAny, {
18
- id: string;
19
- type: "text";
20
- timestamp: number;
21
- text: {
22
- body: string;
23
- };
24
- from?: string | undefined;
25
- to?: string | undefined;
26
- }, {
27
- id: string;
28
- type: "text";
29
- timestamp: number;
30
- text: {
31
- body: string;
32
- };
33
- from?: string | undefined;
34
- to?: string | undefined;
35
- }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
36
- id: z.ZodString;
37
- from: z.ZodOptional<z.ZodString>;
38
- to: z.ZodOptional<z.ZodString>;
39
- timestamp: z.ZodNumber;
40
- }, {
41
- templateName: z.ZodString;
42
- }>, {
43
- type: z.ZodLiteral<"template">;
44
- }>, "strip", z.ZodTypeAny, {
45
- id: string;
46
- type: "template";
47
- timestamp: number;
48
- templateName: string;
49
- from?: string | undefined;
50
- to?: string | undefined;
51
- }, {
52
- id: string;
53
- type: "template";
54
- timestamp: number;
55
- templateName: string;
56
- from?: string | undefined;
57
- to?: string | undefined;
58
- }>]>;
59
- export type JsonMessage = z.infer<typeof jsonMessage>;
60
- export declare const messageSchema: z.ZodObject<{
61
- id: z.ZodString;
62
- wamId: z.ZodString;
63
- message: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
64
- id: z.ZodString;
65
- from: z.ZodOptional<z.ZodString>;
66
- to: z.ZodOptional<z.ZodString>;
67
- timestamp: z.ZodNumber;
68
- }, {
69
- text: z.ZodObject<{
70
- body: z.ZodString;
71
- }, "strip", z.ZodTypeAny, {
72
- body: string;
73
- }, {
74
- body: string;
75
- }>;
76
- }>, {
77
- type: z.ZodLiteral<"text">;
78
- }>, "strip", z.ZodTypeAny, {
79
- id: string;
80
- type: "text";
81
- timestamp: number;
82
- text: {
83
- body: string;
84
- };
85
- from?: string | undefined;
86
- to?: string | undefined;
87
- }, {
88
- id: string;
89
- type: "text";
90
- timestamp: number;
91
- text: {
92
- body: string;
93
- };
94
- from?: string | undefined;
95
- to?: string | undefined;
96
- }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
97
- id: z.ZodString;
98
- from: z.ZodOptional<z.ZodString>;
99
- to: z.ZodOptional<z.ZodString>;
100
- timestamp: z.ZodNumber;
101
- }, {
102
- templateName: z.ZodString;
103
- }>, {
104
- type: z.ZodLiteral<"template">;
105
- }>, "strip", z.ZodTypeAny, {
106
- id: string;
107
- type: "template";
108
- timestamp: number;
109
- templateName: string;
110
- from?: string | undefined;
111
- to?: string | undefined;
112
- }, {
113
- id: string;
114
- type: "template";
115
- timestamp: number;
116
- templateName: string;
117
- from?: string | undefined;
118
- to?: string | undefined;
119
- }>]>;
120
- state: z.ZodNativeEnum<{
121
- SENT: "SENT";
122
- RECEIVED: "RECEIVED";
123
- SEEN: "SEEN";
124
- }>;
125
- created_at: z.ZodDate;
126
- updated_at: z.ZodDate;
127
- }, "strip", z.ZodTypeAny, {
128
- message: {
129
- id: string;
130
- type: "text";
131
- timestamp: number;
132
- text: {
133
- body: string;
134
- };
135
- from?: string | undefined;
136
- to?: string | undefined;
137
- } | {
138
- id: string;
139
- type: "template";
140
- timestamp: number;
141
- templateName: string;
142
- from?: string | undefined;
143
- to?: string | undefined;
144
- };
145
- id: string;
146
- created_at: Date;
147
- updated_at: Date;
148
- state: "SENT" | "RECEIVED" | "SEEN";
149
- wamId: string;
150
- }, {
151
- message: {
152
- id: string;
153
- type: "text";
154
- timestamp: number;
155
- text: {
156
- body: string;
157
- };
158
- from?: string | undefined;
159
- to?: string | undefined;
160
- } | {
161
- id: string;
162
- type: "template";
163
- timestamp: number;
164
- templateName: string;
165
- from?: string | undefined;
166
- to?: string | undefined;
167
- };
168
- id: string;
169
- created_at: Date;
170
- updated_at: Date;
171
- state: "SENT" | "RECEIVED" | "SEEN";
172
- wamId: string;
173
- }>;
@@ -1,38 +0,0 @@
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.messageSchema = exports.jsonMessage = void 0;
7
- const translate_1 = require("../../i18n/translate");
8
- const zod_1 = __importDefault(require("zod"));
9
- const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
10
- const whatsappMessageSchema = zod_1.default.object({
11
- id: zod_1.default.string(),
12
- from: zod_1.default.string().optional(),
13
- to: zod_1.default.string().optional(),
14
- timestamp: zod_1.default.coerce.number(),
15
- });
16
- const textMessageSchema = whatsappMessageSchema.merge(zod_1.default.object({
17
- text: zod_1.default.object({
18
- body: zod_1.default.string(),
19
- }),
20
- }));
21
- const templateMessageSchema = whatsappMessageSchema.merge(zod_1.default.object({
22
- templateName: zod_1.default.string(),
23
- }));
24
- exports.jsonMessage = zod_1.default.discriminatedUnion('type', [
25
- textMessageSchema.extend({ type: zod_1.default.literal('text') }),
26
- templateMessageSchema.extend({ type: zod_1.default.literal('template') }),
27
- ]);
28
- exports.messageSchema = zod_1.default.object({
29
- id: zod_1.default.string().uuid({
30
- message: (0, translate_1.translate)('model.message.id.uuid'),
31
- }),
32
- wamId: zod_1.default.string(),
33
- message: exports.jsonMessage,
34
- state: zod_1.default.nativeEnum(prisma_schema_1.MessageState),
35
- created_at: zod_1.default.date(),
36
- updated_at: zod_1.default.date(),
37
- });
38
- //# sourceMappingURL=message.dto.js.map
@@ -1 +0,0 @@
1
- export * from './dto/message.dto';
@@ -1,18 +0,0 @@
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/message.dto"), exports);
18
- //# sourceMappingURL=exports.js.map