expo-backend-types 0.22.0 → 0.24.0-EXPO-251-EB-Whatsapp.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/i18n/es.d.ts +51 -0
- package/dist/src/i18n/es.js +51 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/location/dto/arg-city.dto.d.ts +2 -2
- package/dist/src/message/dto/create-template.dto.d.ts +93 -0
- package/dist/src/message/dto/create-template.dto.js +24 -0
- package/dist/src/message/dto/delete-template.dto.d.ts +18 -0
- package/dist/src/message/dto/delete-template.dto.js +15 -0
- package/dist/src/message/dto/find-messages-by-phone.dto.d.ts +316 -0
- package/dist/src/message/dto/find-messages-by-phone.dto.js +24 -0
- package/dist/src/message/dto/find-template-by-id.dto.d.ts +245 -0
- package/dist/src/message/dto/find-template-by-id.dto.js +23 -0
- package/dist/src/message/dto/find-templates.dto.d.ts +109 -0
- package/dist/src/message/dto/find-templates.dto.js +20 -0
- package/dist/src/message/dto/message.dto.d.ts +46 -16
- package/dist/src/message/dto/message.dto.js +1 -1
- package/dist/src/message/dto/send-message-to-phone.dto.d.ts +40 -0
- package/dist/src/message/dto/send-message-to-phone.dto.js +23 -0
- package/dist/src/message/dto/send-template-to-tags.dto.d.ts +40 -0
- package/dist/src/message/dto/send-template-to-tags.dto.js +23 -0
- package/dist/src/message/dto/template.dto.d.ts +154 -0
- package/dist/src/message/dto/template.dto.js +63 -0
- package/dist/src/message/dto/update-template.dto.d.ts +88 -0
- package/dist/src/message/dto/update-template.dto.js +23 -0
- package/dist/src/message/exports.d.ts +9 -0
- package/dist/src/message/exports.js +9 -0
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +36 -36
- package/dist/types/schema.d.ts +401 -2
- package/package.json +1 -1
package/dist/src/i18n/es.d.ts
CHANGED
@@ -157,6 +157,21 @@ declare const _default: {
|
|
157
157
|
readonly empty: "La contraseña no puede estar vacía";
|
158
158
|
};
|
159
159
|
};
|
160
|
+
readonly template: {
|
161
|
+
readonly name: {
|
162
|
+
readonly min: "El nombre debe tener al menos 1 caracter";
|
163
|
+
readonly max: "El nombre debe tener como máximo 512 caracteres";
|
164
|
+
readonly invalid: "El nombre debe ser una cadena con letras minúsculas y guiones bajos";
|
165
|
+
};
|
166
|
+
readonly content: {
|
167
|
+
readonly max: "El contenido debe tener como máximo 768 caracteres";
|
168
|
+
readonly min: "El contenido debe tener al menos 1 caracter";
|
169
|
+
};
|
170
|
+
readonly buttons: {
|
171
|
+
readonly max: "No se pueden tener más de 10 botones";
|
172
|
+
readonly 'max-length': "Los botones no pueden tener más de 25 caracteres";
|
173
|
+
};
|
174
|
+
};
|
160
175
|
};
|
161
176
|
readonly route: {
|
162
177
|
readonly auth: {
|
@@ -401,6 +416,42 @@ declare const _default: {
|
|
401
416
|
readonly error: "Error al descargar el archivo CSV de todas las tablas";
|
402
417
|
};
|
403
418
|
};
|
419
|
+
readonly message: {
|
420
|
+
readonly 'create-template': {
|
421
|
+
readonly success: "Plantilla creada con éxito";
|
422
|
+
readonly error: "Error al crear la plantilla";
|
423
|
+
};
|
424
|
+
readonly 'find-templates': {
|
425
|
+
readonly success: "Plantillas encontradas";
|
426
|
+
};
|
427
|
+
readonly 'find-template-by-id': {
|
428
|
+
readonly error: "Error al encontrar la plantilla";
|
429
|
+
readonly success: "Plantilla encontrada";
|
430
|
+
};
|
431
|
+
readonly 'update-template': {
|
432
|
+
readonly success: "Plantilla actualizada";
|
433
|
+
readonly error: "Error al actualizar la plantilla";
|
434
|
+
readonly 'not-found': "Plantilla no encontrada";
|
435
|
+
};
|
436
|
+
readonly 'delete-template': {
|
437
|
+
readonly success: "Plantilla eliminada";
|
438
|
+
readonly error: "Error al eliminar la plantilla";
|
439
|
+
readonly 'not-found': "Plantilla no encontrada";
|
440
|
+
};
|
441
|
+
readonly 'send-message-to-phone': {
|
442
|
+
readonly success: "Mensaje enviado";
|
443
|
+
readonly error: "Error al enviar el mensaje";
|
444
|
+
};
|
445
|
+
readonly 'send-template-to-tags': {
|
446
|
+
readonly success: "Plantilla enviada";
|
447
|
+
readonly error: "Error al enviar la plantilla";
|
448
|
+
};
|
449
|
+
readonly 'find-messages-by-phone': {
|
450
|
+
readonly success: "Mensajes encontrados";
|
451
|
+
readonly error: "Error al encontrar los mensajes";
|
452
|
+
readonly 'not-found': "No se encontró el perfil";
|
453
|
+
};
|
454
|
+
};
|
404
455
|
};
|
405
456
|
};
|
406
457
|
export default _default;
|
package/dist/src/i18n/es.js
CHANGED
@@ -159,6 +159,21 @@ exports.default = {
|
|
159
159
|
empty: 'La contraseña no puede estar vacía',
|
160
160
|
},
|
161
161
|
},
|
162
|
+
template: {
|
163
|
+
name: {
|
164
|
+
min: 'El nombre debe tener al menos 1 caracter',
|
165
|
+
max: 'El nombre debe tener como máximo 512 caracteres',
|
166
|
+
invalid: 'El nombre debe ser una cadena con letras minúsculas y guiones bajos',
|
167
|
+
},
|
168
|
+
content: {
|
169
|
+
max: 'El contenido debe tener como máximo 768 caracteres',
|
170
|
+
min: 'El contenido debe tener al menos 1 caracter',
|
171
|
+
},
|
172
|
+
buttons: {
|
173
|
+
max: 'No se pueden tener más de 10 botones',
|
174
|
+
'max-length': 'Los botones no pueden tener más de 25 caracteres',
|
175
|
+
},
|
176
|
+
},
|
162
177
|
},
|
163
178
|
route: {
|
164
179
|
auth: {
|
@@ -403,6 +418,42 @@ exports.default = {
|
|
403
418
|
error: 'Error al descargar el archivo CSV de todas las tablas',
|
404
419
|
},
|
405
420
|
},
|
421
|
+
message: {
|
422
|
+
'create-template': {
|
423
|
+
success: 'Plantilla creada con éxito',
|
424
|
+
error: 'Error al crear la plantilla',
|
425
|
+
},
|
426
|
+
'find-templates': {
|
427
|
+
success: 'Plantillas encontradas',
|
428
|
+
},
|
429
|
+
'find-template-by-id': {
|
430
|
+
error: 'Error al encontrar la plantilla',
|
431
|
+
success: 'Plantilla encontrada',
|
432
|
+
},
|
433
|
+
'update-template': {
|
434
|
+
success: 'Plantilla actualizada',
|
435
|
+
error: 'Error al actualizar la plantilla',
|
436
|
+
'not-found': 'Plantilla no encontrada',
|
437
|
+
},
|
438
|
+
'delete-template': {
|
439
|
+
success: 'Plantilla eliminada',
|
440
|
+
error: 'Error al eliminar la plantilla',
|
441
|
+
'not-found': 'Plantilla no encontrada',
|
442
|
+
},
|
443
|
+
'send-message-to-phone': {
|
444
|
+
success: 'Mensaje enviado',
|
445
|
+
error: 'Error al enviar el mensaje',
|
446
|
+
},
|
447
|
+
'send-template-to-tags': {
|
448
|
+
success: 'Plantilla enviada',
|
449
|
+
error: 'Error al enviar la plantilla',
|
450
|
+
},
|
451
|
+
'find-messages-by-phone': {
|
452
|
+
success: 'Mensajes encontrados',
|
453
|
+
error: 'Error al encontrar los mensajes',
|
454
|
+
'not-found': 'No se encontró el perfil',
|
455
|
+
},
|
456
|
+
},
|
406
457
|
},
|
407
458
|
};
|
408
459
|
//# sourceMappingURL=es.js.map
|
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;YACjB,QAAQ,EAAE,WAAW;YACrB,cAAc,EAAE,oBAAoB;YACpC,OAAO,EAAE,SAAS;SACnB;QACD,GAAG,EAAE;YACH,QAAQ,EAAE,SAAS;YACnB,SAAS,EAAE,qBAAqB;SACjC;QACD,QAAQ,EAAE,+FAA+F;QACzG,WAAW,EAAE,oGAAoG;KAClH;IACD,KAAK,EAAE;QACL,OAAO,EAAE;YACP,EAAE,EAAE;gBACF,IAAI,EAAE,wBAAwB;aAC/B;YACD,OAAO,EAAE;gBACP,GAAG,EAAE,6CAA6C;aACnD;Y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EAAE,6BAA6B;aACrC;YACD,gBAAgB,EAAE;gBAChB,OAAO,EAAE,wBAAwB;aAClC;YACD,qBAAqB,EAAE;gBACrB,KAAK,EAAE,iCAAiC;gBACxC,OAAO,EAAE,sBAAsB;aAChC;YACD,iBAAiB,EAAE;gBACjB,OAAO,EAAE,uBAAuB;gBAChC,KAAK,EAAE,kCAAkC;gBACzC,WAAW,EAAE,yBAAyB;aACvC;YACD,iBAAiB,EAAE;gBACjB,OAAO,EAAE,qBAAqB;gBAC9B,KAAK,EAAE,gCAAgC;gBACvC,WAAW,EAAE,yBAAyB;aACvC;YACD,uBAAuB,EAAE;gBACvB,OAAO,EAAE,iBAAiB;gBAC1B,KAAK,EAAE,4BAA4B;aACpC;YACD,uBAAuB,EAAE;gBACvB,OAAO,EAAE,mBAAmB;gBAC5B,KAAK,EAAE,8BAA8B;aACtC;YACD,wBAAwB,EAAE;gBACxB,OAAO,EAAE,sBAAsB;gBAC/B,KAAK,EAAE,iCAAiC;gBACxC,WAAW,EAAE,0BAA0B;aACxC;SACF;KACF;CACO,CAAC"}
|
@@ -82,6 +82,7 @@ export declare const argCitySchema: z.ZodObject<{
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
83
83
|
id: string;
|
84
84
|
name: string;
|
85
|
+
category: string;
|
85
86
|
state: {
|
86
87
|
id: string;
|
87
88
|
name: string;
|
@@ -98,7 +99,6 @@ export declare const argCitySchema: z.ZodObject<{
|
|
98
99
|
id: string;
|
99
100
|
name: string;
|
100
101
|
};
|
101
|
-
category: string;
|
102
102
|
centroid: {
|
103
103
|
lon: number;
|
104
104
|
lat: number;
|
@@ -106,6 +106,7 @@ export declare const argCitySchema: z.ZodObject<{
|
|
106
106
|
}, {
|
107
107
|
id: string;
|
108
108
|
name: string;
|
109
|
+
category: string;
|
109
110
|
state: {
|
110
111
|
id: string;
|
111
112
|
name: string;
|
@@ -122,7 +123,6 @@ export declare const argCitySchema: z.ZodObject<{
|
|
122
123
|
id: string;
|
123
124
|
name: string;
|
124
125
|
};
|
125
|
-
category: string;
|
126
126
|
centroid: {
|
127
127
|
lon: number;
|
128
128
|
lat: number;
|
@@ -0,0 +1,93 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const createTemplateSchema: z.ZodObject<Pick<{
|
3
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
4
|
+
content: z.ZodString;
|
5
|
+
buttons: z.ZodArray<z.ZodString, "many">;
|
6
|
+
id: z.ZodString;
|
7
|
+
language: z.ZodString;
|
8
|
+
components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
9
|
+
type: z.ZodLiteral<"BODY">;
|
10
|
+
text: z.ZodString;
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
12
|
+
type: "BODY";
|
13
|
+
text: string;
|
14
|
+
}, {
|
15
|
+
type: "BODY";
|
16
|
+
text: string;
|
17
|
+
}>, z.ZodObject<{
|
18
|
+
type: z.ZodLiteral<"BUTTONS">;
|
19
|
+
buttons: z.ZodArray<z.ZodObject<{
|
20
|
+
text: z.ZodString;
|
21
|
+
type: z.ZodLiteral<"QUICK_REPLY">;
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
23
|
+
type: "QUICK_REPLY";
|
24
|
+
text: string;
|
25
|
+
}, {
|
26
|
+
type: "QUICK_REPLY";
|
27
|
+
text: string;
|
28
|
+
}>, "many">;
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
30
|
+
type: "BUTTONS";
|
31
|
+
buttons: {
|
32
|
+
type: "QUICK_REPLY";
|
33
|
+
text: string;
|
34
|
+
}[];
|
35
|
+
}, {
|
36
|
+
type: "BUTTONS";
|
37
|
+
buttons: {
|
38
|
+
type: "QUICK_REPLY";
|
39
|
+
text: string;
|
40
|
+
}[];
|
41
|
+
}>]>, "many">;
|
42
|
+
allow_category_change: z.ZodBoolean;
|
43
|
+
category: z.ZodNativeEnum<{
|
44
|
+
MARKETING: "MARKETING";
|
45
|
+
UTILITY: "UTILITY";
|
46
|
+
AUTHENTICATION: "AUTHENTICATION";
|
47
|
+
}>;
|
48
|
+
status: z.ZodNativeEnum<{
|
49
|
+
APRROVED: "APRROVED";
|
50
|
+
PENDING: "PENDING";
|
51
|
+
REJECTED: "REJECTED";
|
52
|
+
}>;
|
53
|
+
}, "name" | "content" | "buttons">, "strip", z.ZodTypeAny, {
|
54
|
+
name: string;
|
55
|
+
content: string;
|
56
|
+
buttons: string[];
|
57
|
+
}, {
|
58
|
+
name: string;
|
59
|
+
content: string;
|
60
|
+
buttons: string[];
|
61
|
+
}>;
|
62
|
+
declare const CreateTemplateDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
63
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
64
|
+
content: z.ZodString;
|
65
|
+
buttons: z.ZodArray<z.ZodString, "many">;
|
66
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
67
|
+
name: string;
|
68
|
+
content: string;
|
69
|
+
buttons: string[];
|
70
|
+
}, {
|
71
|
+
name: string;
|
72
|
+
content: string;
|
73
|
+
buttons: string[];
|
74
|
+
}>>;
|
75
|
+
export declare class CreateTemplateDto extends CreateTemplateDto_base {
|
76
|
+
}
|
77
|
+
export declare const createTemplateResponseSchema: z.ZodObject<{
|
78
|
+
message: z.ZodString;
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
80
|
+
message: string;
|
81
|
+
}, {
|
82
|
+
message: string;
|
83
|
+
}>;
|
84
|
+
declare const CreateTemplateResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
85
|
+
message: z.ZodString;
|
86
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
87
|
+
message: string;
|
88
|
+
}, {
|
89
|
+
message: string;
|
90
|
+
}>>;
|
91
|
+
export declare class CreateTemplateResponseDto extends CreateTemplateResponseDto_base {
|
92
|
+
}
|
93
|
+
export {};
|
@@ -0,0 +1,24 @@
|
|
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.CreateTemplateResponseDto = exports.createTemplateResponseSchema = exports.CreateTemplateDto = exports.createTemplateSchema = void 0;
|
7
|
+
const template_dto_1 = require("./template.dto");
|
8
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
|
+
const zod_1 = __importDefault(require("zod"));
|
10
|
+
exports.createTemplateSchema = template_dto_1.templateSchema.pick({
|
11
|
+
name: true,
|
12
|
+
content: true,
|
13
|
+
buttons: true,
|
14
|
+
});
|
15
|
+
class CreateTemplateDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createTemplateSchema) {
|
16
|
+
}
|
17
|
+
exports.CreateTemplateDto = CreateTemplateDto;
|
18
|
+
exports.createTemplateResponseSchema = zod_1.default.object({
|
19
|
+
message: zod_1.default.string(),
|
20
|
+
});
|
21
|
+
class CreateTemplateResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createTemplateResponseSchema) {
|
22
|
+
}
|
23
|
+
exports.CreateTemplateResponseDto = CreateTemplateResponseDto;
|
24
|
+
//# sourceMappingURL=create-template.dto.js.map
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const deleteTemplateResponseSchema: z.ZodObject<{
|
3
|
+
success: z.ZodBoolean;
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
5
|
+
success: boolean;
|
6
|
+
}, {
|
7
|
+
success: boolean;
|
8
|
+
}>;
|
9
|
+
declare const DeleteTemplateResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
10
|
+
success: z.ZodBoolean;
|
11
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
12
|
+
success: boolean;
|
13
|
+
}, {
|
14
|
+
success: boolean;
|
15
|
+
}>>;
|
16
|
+
export declare class DeleteTemplateResponseDto extends DeleteTemplateResponseDto_base {
|
17
|
+
}
|
18
|
+
export {};
|
@@ -0,0 +1,15 @@
|
|
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.DeleteTemplateResponseDto = exports.deleteTemplateResponseSchema = void 0;
|
7
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
9
|
+
exports.deleteTemplateResponseSchema = zod_1.default.object({
|
10
|
+
success: zod_1.default.boolean(),
|
11
|
+
});
|
12
|
+
class DeleteTemplateResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteTemplateResponseSchema) {
|
13
|
+
}
|
14
|
+
exports.DeleteTemplateResponseDto = DeleteTemplateResponseDto;
|
15
|
+
//# sourceMappingURL=delete-template.dto.js.map
|
@@ -0,0 +1,316 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const findMessagesByPhoneResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
3
|
+
inChat: z.ZodBoolean;
|
4
|
+
}, {
|
5
|
+
messages: z.ZodArray<z.ZodObject<Pick<{
|
6
|
+
id: z.ZodString;
|
7
|
+
wamId: z.ZodString;
|
8
|
+
message: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
9
|
+
id: z.ZodString;
|
10
|
+
from: z.ZodOptional<z.ZodString>;
|
11
|
+
to: z.ZodOptional<z.ZodString>;
|
12
|
+
timestamp: z.ZodString;
|
13
|
+
}, {
|
14
|
+
text: z.ZodObject<{
|
15
|
+
body: z.ZodString;
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
17
|
+
body: string;
|
18
|
+
}, {
|
19
|
+
body: string;
|
20
|
+
}>;
|
21
|
+
}>, {
|
22
|
+
type: z.ZodLiteral<"text">;
|
23
|
+
}>, "strip", z.ZodTypeAny, {
|
24
|
+
id: string;
|
25
|
+
type: "text";
|
26
|
+
text: {
|
27
|
+
body: string;
|
28
|
+
};
|
29
|
+
timestamp: string;
|
30
|
+
from?: string | undefined;
|
31
|
+
to?: string | undefined;
|
32
|
+
}, {
|
33
|
+
id: string;
|
34
|
+
type: "text";
|
35
|
+
text: {
|
36
|
+
body: string;
|
37
|
+
};
|
38
|
+
timestamp: string;
|
39
|
+
from?: string | undefined;
|
40
|
+
to?: string | undefined;
|
41
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
42
|
+
id: z.ZodString;
|
43
|
+
from: z.ZodOptional<z.ZodString>;
|
44
|
+
to: z.ZodOptional<z.ZodString>;
|
45
|
+
timestamp: z.ZodString;
|
46
|
+
}, {
|
47
|
+
templateName: z.ZodString;
|
48
|
+
}>, {
|
49
|
+
type: z.ZodLiteral<"template">;
|
50
|
+
}>, "strip", z.ZodTypeAny, {
|
51
|
+
id: string;
|
52
|
+
type: "template";
|
53
|
+
timestamp: string;
|
54
|
+
templateName: string;
|
55
|
+
from?: string | undefined;
|
56
|
+
to?: string | undefined;
|
57
|
+
}, {
|
58
|
+
id: string;
|
59
|
+
type: "template";
|
60
|
+
timestamp: string;
|
61
|
+
templateName: string;
|
62
|
+
from?: string | undefined;
|
63
|
+
to?: string | undefined;
|
64
|
+
}>]>;
|
65
|
+
state: z.ZodNativeEnum<{
|
66
|
+
SENT: "SENT";
|
67
|
+
RECEIVED: "RECEIVED";
|
68
|
+
SEEN: "SEEN";
|
69
|
+
}>;
|
70
|
+
created_at: z.ZodDate;
|
71
|
+
updated_at: z.ZodDate;
|
72
|
+
}, "message" | "created_at" | "state">, "strip", z.ZodTypeAny, {
|
73
|
+
message: {
|
74
|
+
id: string;
|
75
|
+
type: "text";
|
76
|
+
text: {
|
77
|
+
body: string;
|
78
|
+
};
|
79
|
+
timestamp: string;
|
80
|
+
from?: string | undefined;
|
81
|
+
to?: string | undefined;
|
82
|
+
} | {
|
83
|
+
id: string;
|
84
|
+
type: "template";
|
85
|
+
timestamp: string;
|
86
|
+
templateName: string;
|
87
|
+
from?: string | undefined;
|
88
|
+
to?: string | undefined;
|
89
|
+
};
|
90
|
+
created_at: Date;
|
91
|
+
state: "SENT" | "RECEIVED" | "SEEN";
|
92
|
+
}, {
|
93
|
+
message: {
|
94
|
+
id: string;
|
95
|
+
type: "text";
|
96
|
+
text: {
|
97
|
+
body: string;
|
98
|
+
};
|
99
|
+
timestamp: string;
|
100
|
+
from?: string | undefined;
|
101
|
+
to?: string | undefined;
|
102
|
+
} | {
|
103
|
+
id: string;
|
104
|
+
type: "template";
|
105
|
+
timestamp: string;
|
106
|
+
templateName: string;
|
107
|
+
from?: string | undefined;
|
108
|
+
to?: string | undefined;
|
109
|
+
};
|
110
|
+
created_at: Date;
|
111
|
+
state: "SENT" | "RECEIVED" | "SEEN";
|
112
|
+
}>, "many">;
|
113
|
+
}>, "strip", z.ZodTypeAny, {
|
114
|
+
messages: {
|
115
|
+
message: {
|
116
|
+
id: string;
|
117
|
+
type: "text";
|
118
|
+
text: {
|
119
|
+
body: string;
|
120
|
+
};
|
121
|
+
timestamp: string;
|
122
|
+
from?: string | undefined;
|
123
|
+
to?: string | undefined;
|
124
|
+
} | {
|
125
|
+
id: string;
|
126
|
+
type: "template";
|
127
|
+
timestamp: string;
|
128
|
+
templateName: string;
|
129
|
+
from?: string | undefined;
|
130
|
+
to?: string | undefined;
|
131
|
+
};
|
132
|
+
created_at: Date;
|
133
|
+
state: "SENT" | "RECEIVED" | "SEEN";
|
134
|
+
}[];
|
135
|
+
inChat: boolean;
|
136
|
+
}, {
|
137
|
+
messages: {
|
138
|
+
message: {
|
139
|
+
id: string;
|
140
|
+
type: "text";
|
141
|
+
text: {
|
142
|
+
body: string;
|
143
|
+
};
|
144
|
+
timestamp: string;
|
145
|
+
from?: string | undefined;
|
146
|
+
to?: string | undefined;
|
147
|
+
} | {
|
148
|
+
id: string;
|
149
|
+
type: "template";
|
150
|
+
timestamp: string;
|
151
|
+
templateName: string;
|
152
|
+
from?: string | undefined;
|
153
|
+
to?: string | undefined;
|
154
|
+
};
|
155
|
+
created_at: Date;
|
156
|
+
state: "SENT" | "RECEIVED" | "SEEN";
|
157
|
+
}[];
|
158
|
+
inChat: boolean;
|
159
|
+
}>;
|
160
|
+
declare const FindMessagesByPhoneNumberResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
161
|
+
inChat: z.ZodBoolean;
|
162
|
+
messages: z.ZodArray<z.ZodObject<{
|
163
|
+
message: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
164
|
+
id: z.ZodString;
|
165
|
+
from: z.ZodOptional<z.ZodString>;
|
166
|
+
to: z.ZodOptional<z.ZodString>;
|
167
|
+
timestamp: z.ZodString;
|
168
|
+
}, {
|
169
|
+
text: z.ZodObject<{
|
170
|
+
body: z.ZodString;
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
172
|
+
body: string;
|
173
|
+
}, {
|
174
|
+
body: string;
|
175
|
+
}>;
|
176
|
+
}>, {
|
177
|
+
type: z.ZodLiteral<"text">;
|
178
|
+
}>, "strip", z.ZodTypeAny, {
|
179
|
+
id: string;
|
180
|
+
type: "text";
|
181
|
+
text: {
|
182
|
+
body: string;
|
183
|
+
};
|
184
|
+
timestamp: string;
|
185
|
+
from?: string | undefined;
|
186
|
+
to?: string | undefined;
|
187
|
+
}, {
|
188
|
+
id: string;
|
189
|
+
type: "text";
|
190
|
+
text: {
|
191
|
+
body: string;
|
192
|
+
};
|
193
|
+
timestamp: string;
|
194
|
+
from?: string | undefined;
|
195
|
+
to?: string | undefined;
|
196
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
197
|
+
id: z.ZodString;
|
198
|
+
from: z.ZodOptional<z.ZodString>;
|
199
|
+
to: z.ZodOptional<z.ZodString>;
|
200
|
+
timestamp: z.ZodString;
|
201
|
+
}, {
|
202
|
+
templateName: z.ZodString;
|
203
|
+
}>, {
|
204
|
+
type: z.ZodLiteral<"template">;
|
205
|
+
}>, "strip", z.ZodTypeAny, {
|
206
|
+
id: string;
|
207
|
+
type: "template";
|
208
|
+
timestamp: string;
|
209
|
+
templateName: string;
|
210
|
+
from?: string | undefined;
|
211
|
+
to?: string | undefined;
|
212
|
+
}, {
|
213
|
+
id: string;
|
214
|
+
type: "template";
|
215
|
+
timestamp: string;
|
216
|
+
templateName: string;
|
217
|
+
from?: string | undefined;
|
218
|
+
to?: string | undefined;
|
219
|
+
}>]>;
|
220
|
+
created_at: z.ZodString;
|
221
|
+
state: z.ZodNativeEnum<{
|
222
|
+
SENT: "SENT";
|
223
|
+
RECEIVED: "RECEIVED";
|
224
|
+
SEEN: "SEEN";
|
225
|
+
}>;
|
226
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
227
|
+
message: {
|
228
|
+
id: string;
|
229
|
+
type: "text";
|
230
|
+
text: {
|
231
|
+
body: string;
|
232
|
+
};
|
233
|
+
timestamp: string;
|
234
|
+
from?: string | undefined;
|
235
|
+
to?: string | undefined;
|
236
|
+
} | {
|
237
|
+
id: string;
|
238
|
+
type: "template";
|
239
|
+
timestamp: string;
|
240
|
+
templateName: string;
|
241
|
+
from?: string | undefined;
|
242
|
+
to?: string | undefined;
|
243
|
+
};
|
244
|
+
created_at: string;
|
245
|
+
state: "SENT" | "RECEIVED" | "SEEN";
|
246
|
+
}, {
|
247
|
+
message: {
|
248
|
+
id: string;
|
249
|
+
type: "text";
|
250
|
+
text: {
|
251
|
+
body: string;
|
252
|
+
};
|
253
|
+
timestamp: string;
|
254
|
+
from?: string | undefined;
|
255
|
+
to?: string | undefined;
|
256
|
+
} | {
|
257
|
+
id: string;
|
258
|
+
type: "template";
|
259
|
+
timestamp: string;
|
260
|
+
templateName: string;
|
261
|
+
from?: string | undefined;
|
262
|
+
to?: string | undefined;
|
263
|
+
};
|
264
|
+
created_at: string;
|
265
|
+
state: "SENT" | "RECEIVED" | "SEEN";
|
266
|
+
}>, "many">;
|
267
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
268
|
+
messages: {
|
269
|
+
message: {
|
270
|
+
id: string;
|
271
|
+
type: "text";
|
272
|
+
text: {
|
273
|
+
body: string;
|
274
|
+
};
|
275
|
+
timestamp: string;
|
276
|
+
from?: string | undefined;
|
277
|
+
to?: string | undefined;
|
278
|
+
} | {
|
279
|
+
id: string;
|
280
|
+
type: "template";
|
281
|
+
timestamp: string;
|
282
|
+
templateName: string;
|
283
|
+
from?: string | undefined;
|
284
|
+
to?: string | undefined;
|
285
|
+
};
|
286
|
+
created_at: string;
|
287
|
+
state: "SENT" | "RECEIVED" | "SEEN";
|
288
|
+
}[];
|
289
|
+
inChat: boolean;
|
290
|
+
}, {
|
291
|
+
messages: {
|
292
|
+
message: {
|
293
|
+
id: string;
|
294
|
+
type: "text";
|
295
|
+
text: {
|
296
|
+
body: string;
|
297
|
+
};
|
298
|
+
timestamp: string;
|
299
|
+
from?: string | undefined;
|
300
|
+
to?: string | undefined;
|
301
|
+
} | {
|
302
|
+
id: string;
|
303
|
+
type: "template";
|
304
|
+
timestamp: string;
|
305
|
+
templateName: string;
|
306
|
+
from?: string | undefined;
|
307
|
+
to?: string | undefined;
|
308
|
+
};
|
309
|
+
created_at: string;
|
310
|
+
state: "SENT" | "RECEIVED" | "SEEN";
|
311
|
+
}[];
|
312
|
+
inChat: boolean;
|
313
|
+
}>>;
|
314
|
+
export declare class FindMessagesByPhoneNumberResponseDto extends FindMessagesByPhoneNumberResponseDto_base {
|
315
|
+
}
|
316
|
+
export {};
|