expo-backend-types 0.11.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/exports.d.ts +1 -0
- package/dist/src/exports.js +1 -0
- package/dist/src/i18n/es.d.ts +8 -0
- package/dist/src/i18n/es.js +8 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/message/dto/message.dto.d.ts +173 -0
- package/dist/src/message/dto/message.dto.js +38 -0
- package/dist/src/message/exports.d.ts +1 -0
- package/dist/src/message/exports.js +18 -0
- package/dist/src/profile/dto/create-profile.dto.d.ts +16 -12
- package/dist/src/profile/dto/create-profile.dto.js +8 -4
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +728 -0
- package/dist/src/profile/dto/find-with-active-chat.dto.js +26 -0
- package/dist/src/profile/exports.d.ts +1 -0
- package/dist/src/profile/exports.js +1 -0
- package/dist/types/prisma-schema/edge.js +2 -2
- package/dist/types/prisma-schema/index.js +2 -2
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +1 -1
- package/dist/types/schema.d.ts +291 -152
- package/package.json +2 -1
package/dist/src/exports.d.ts
CHANGED
@@ -5,6 +5,7 @@ export * from './comment/exports';
|
|
5
5
|
export * from './event-folder/exports';
|
6
6
|
export * from './event/exports';
|
7
7
|
export * from './location/exports';
|
8
|
+
export * from './message/exports';
|
8
9
|
export * from './profile/exports';
|
9
10
|
export * from './tag-group/exports';
|
10
11
|
export * from './tag/exports';
|
package/dist/src/exports.js
CHANGED
@@ -21,6 +21,7 @@ __exportStar(require("./comment/exports"), exports);
|
|
21
21
|
__exportStar(require("./event-folder/exports"), exports);
|
22
22
|
__exportStar(require("./event/exports"), exports);
|
23
23
|
__exportStar(require("./location/exports"), exports);
|
24
|
+
__exportStar(require("./message/exports"), exports);
|
24
25
|
__exportStar(require("./profile/exports"), exports);
|
25
26
|
__exportStar(require("./tag-group/exports"), exports);
|
26
27
|
__exportStar(require("./tag/exports"), exports);
|
package/dist/src/i18n/es.d.ts
CHANGED
@@ -143,6 +143,11 @@ declare const _default: {
|
|
143
143
|
readonly min: "El contenido debe tener al menos 1 caracter";
|
144
144
|
};
|
145
145
|
};
|
146
|
+
readonly message: {
|
147
|
+
readonly id: {
|
148
|
+
readonly uuid: "El ID debe ser un UUID";
|
149
|
+
};
|
150
|
+
};
|
146
151
|
};
|
147
152
|
readonly route: {
|
148
153
|
readonly auth: {
|
@@ -366,6 +371,9 @@ declare const _default: {
|
|
366
371
|
readonly 'find-trash': {
|
367
372
|
readonly success: "Perfiles obtenidos";
|
368
373
|
};
|
374
|
+
readonly 'find-all-with-active-chat': {
|
375
|
+
readonly success: "Perfiles obtenido";
|
376
|
+
};
|
369
377
|
};
|
370
378
|
};
|
371
379
|
};
|
package/dist/src/i18n/es.js
CHANGED
@@ -145,6 +145,11 @@ exports.default = {
|
|
145
145
|
min: 'El contenido debe tener al menos 1 caracter',
|
146
146
|
},
|
147
147
|
},
|
148
|
+
message: {
|
149
|
+
id: {
|
150
|
+
uuid: 'El ID debe ser un UUID',
|
151
|
+
},
|
152
|
+
},
|
148
153
|
},
|
149
154
|
route: {
|
150
155
|
auth: {
|
@@ -368,6 +373,9 @@ exports.default = {
|
|
368
373
|
'find-trash': {
|
369
374
|
success: 'Perfiles obtenidos',
|
370
375
|
},
|
376
|
+
'find-all-with-active-chat': {
|
377
|
+
success: 'Perfiles obtenido',
|
378
|
+
},
|
371
379
|
},
|
372
380
|
},
|
373
381
|
};
|
package/dist/src/i18n/es.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es.js","sourceRoot":"","sources":["../../../src/i18n/es.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,MAAM,EAAE;QACN,KAAK,EAAE;YACL,OAAO,EAAE,QAAQ;YACjB,GAAG,EAAE,UAAU;YACf,QAAQ,EAAE,oBAAoB;YAC9B,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,oBAAoB;YACjC,OAAO,EAAE,YAAY;YACrB,OAAO,EAAE,QAAQ;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,oBAAoB;aAC9B;YACD,2BAA2B,EAAE;gBAC3B,OAAO,EAAE,mBAAmB;aAC7B;SACF;KACF;CACO,CAAC"}
|
@@ -0,0 +1,173 @@
|
|
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
|
+
}>;
|
@@ -0,0 +1,38 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './dto/message.dto';
|
@@ -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/message.dto"), exports);
|
18
|
+
//# sourceMappingURL=exports.js.map
|
@@ -455,8 +455,7 @@ declare const similarProfileSchema: z.ZodObject<{
|
|
455
455
|
similarityFullNamePercentage: number;
|
456
456
|
}>;
|
457
457
|
export declare const createProfileResponseSchema: z.ZodObject<{
|
458
|
-
response: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
459
|
-
type: z.ZodLiteral<"similar">;
|
458
|
+
response: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
460
459
|
similarProfiles: z.ZodArray<z.ZodObject<{
|
461
460
|
profile: z.ZodObject<Pick<{
|
462
461
|
id: z.ZodString;
|
@@ -506,7 +505,9 @@ export declare const createProfileResponseSchema: z.ZodObject<{
|
|
506
505
|
similarityPhoneNumberPercentage: number;
|
507
506
|
similarityFullNamePercentage: number;
|
508
507
|
}>, "many">;
|
509
|
-
},
|
508
|
+
}, {
|
509
|
+
type: z.ZodLiteral<"similar">;
|
510
|
+
}>, "strip", z.ZodTypeAny, {
|
510
511
|
type: "similar";
|
511
512
|
similarProfiles: {
|
512
513
|
profile: {
|
@@ -528,10 +529,11 @@ export declare const createProfileResponseSchema: z.ZodObject<{
|
|
528
529
|
similarityPhoneNumberPercentage: number;
|
529
530
|
similarityFullNamePercentage: number;
|
530
531
|
}[];
|
531
|
-
}>, z.ZodObject<{
|
532
|
-
type: z.ZodLiteral<"created">;
|
532
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
533
533
|
id: z.ZodString;
|
534
|
-
},
|
534
|
+
}, {
|
535
|
+
type: z.ZodLiteral<"created">;
|
536
|
+
}>, "strip", z.ZodTypeAny, {
|
535
537
|
id: string;
|
536
538
|
type: "created";
|
537
539
|
}, {
|
@@ -572,8 +574,7 @@ export declare const createProfileResponseSchema: z.ZodObject<{
|
|
572
574
|
};
|
573
575
|
}>;
|
574
576
|
declare const CreateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
575
|
-
response: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
576
|
-
type: z.ZodLiteral<"similar">;
|
577
|
+
response: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
577
578
|
similarProfiles: z.ZodArray<z.ZodObject<{
|
578
579
|
profile: z.ZodObject<Pick<{
|
579
580
|
id: z.ZodString;
|
@@ -623,7 +624,9 @@ declare const CreateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
|
|
623
624
|
similarityPhoneNumberPercentage: number;
|
624
625
|
similarityFullNamePercentage: number;
|
625
626
|
}>, "many">;
|
626
|
-
},
|
627
|
+
}, {
|
628
|
+
type: z.ZodLiteral<"similar">;
|
629
|
+
}>, "strip", z.ZodTypeAny, {
|
627
630
|
type: "similar";
|
628
631
|
similarProfiles: {
|
629
632
|
profile: {
|
@@ -645,10 +648,11 @@ declare const CreateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
|
|
645
648
|
similarityPhoneNumberPercentage: number;
|
646
649
|
similarityFullNamePercentage: number;
|
647
650
|
}[];
|
648
|
-
}>, z.ZodObject<{
|
649
|
-
type: z.ZodLiteral<"created">;
|
651
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
650
652
|
id: z.ZodString;
|
651
|
-
},
|
653
|
+
}, {
|
654
|
+
type: z.ZodLiteral<"created">;
|
655
|
+
}>, "strip", z.ZodTypeAny, {
|
652
656
|
id: string;
|
653
657
|
type: "created";
|
654
658
|
}, {
|
@@ -65,14 +65,18 @@ const similarProfileSchema = zod_1.default.object({
|
|
65
65
|
similarityPhoneNumberPercentage: zod_1.default.number(),
|
66
66
|
similarityFullNamePercentage: zod_1.default.number(),
|
67
67
|
});
|
68
|
+
const similarityProfileSchema = zod_1.default.object({
|
69
|
+
similarProfiles: zod_1.default.array(similarProfileSchema),
|
70
|
+
});
|
71
|
+
const createdProfileSchema = zod_1.default.object({
|
72
|
+
id: profile_dto_1.profileSchema.shape.id,
|
73
|
+
});
|
68
74
|
const createProfileResponseSchemaBase = zod_1.default.discriminatedUnion('type', [
|
69
|
-
|
75
|
+
similarityProfileSchema.extend({
|
70
76
|
type: zod_1.default.literal('similar'),
|
71
|
-
similarProfiles: zod_1.default.array(similarProfileSchema),
|
72
77
|
}),
|
73
|
-
|
78
|
+
createdProfileSchema.extend({
|
74
79
|
type: zod_1.default.literal('created'),
|
75
|
-
id: profile_dto_1.profileSchema.shape.id,
|
76
80
|
}),
|
77
81
|
]);
|
78
82
|
exports.createProfileResponseSchema = zod_1.default.object({
|