expo-backend-types 0.24.0-EXPO-251-EB-Whatsapp.1 → 0.24.0-EXPO-288-EB-Imagenes.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 +24 -51
- package/dist/src/i18n/es.js +24 -51
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/image/dto/delete-image.dto.d.ts +18 -0
- package/dist/src/image/dto/delete-image.dto.js +12 -0
- package/dist/src/image/dto/image.dto.d.ts +24 -0
- package/dist/src/image/dto/image.dto.js +18 -0
- package/dist/src/image/dto/update-image.dto.d.ts +18 -0
- package/dist/src/image/dto/update-image.dto.js +15 -0
- package/dist/src/image/exports.d.ts +3 -0
- package/dist/src/image/exports.js +20 -0
- package/dist/src/location/dto/arg-city.dto.d.ts +2 -2
- package/dist/src/message/dto/message.dto.d.ts +16 -46
- package/dist/src/message/dto/message.dto.js +1 -1
- package/dist/src/message/exports.d.ts +0 -9
- package/dist/src/message/exports.js +0 -9
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +36 -36
- package/dist/types/prisma-schema/default.d.ts +1 -1
- package/dist/types/prisma-schema/edge.d.ts +1 -1
- package/dist/types/prisma-schema/edge.js +11 -7
- package/dist/types/prisma-schema/index-browser.js +7 -4
- package/dist/types/prisma-schema/index.d.ts +803 -1034
- package/dist/types/prisma-schema/index.js +11 -7
- package/dist/types/prisma-schema/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/dist/types/prisma-schema/package.json +14 -1
- package/dist/types/prisma-schema/runtime/edge-esm.js +21 -18
- package/dist/types/prisma-schema/runtime/edge.js +21 -18
- package/dist/types/prisma-schema/runtime/index-browser.js +1 -1
- package/dist/types/prisma-schema/runtime/library.d.ts +297 -87
- package/dist/types/prisma-schema/runtime/library.js +64 -61
- package/dist/types/prisma-schema/runtime/react-native.js +31 -28
- package/dist/types/prisma-schema/runtime/wasm.js +22 -19
- package/dist/types/prisma-schema/wasm.d.ts +1 -1
- package/dist/types/prisma-schema/wasm.js +7 -4
- package/dist/types/schema.d.ts +47 -326
- package/package.json +5 -3
- package/dist/src/message/dto/create-template.dto.d.ts +0 -93
- package/dist/src/message/dto/create-template.dto.js +0 -24
- package/dist/src/message/dto/delete-template.dto.d.ts +0 -18
- package/dist/src/message/dto/delete-template.dto.js +0 -15
- package/dist/src/message/dto/find-messages-by-phone.dto.d.ts +0 -316
- package/dist/src/message/dto/find-messages-by-phone.dto.js +0 -24
- package/dist/src/message/dto/find-template-by-id.dto.d.ts +0 -245
- package/dist/src/message/dto/find-template-by-id.dto.js +0 -23
- package/dist/src/message/dto/find-templates.dto.d.ts +0 -109
- package/dist/src/message/dto/find-templates.dto.js +0 -20
- package/dist/src/message/dto/send-message-to-phone.dto.d.ts +0 -40
- package/dist/src/message/dto/send-message-to-phone.dto.js +0 -23
- package/dist/src/message/dto/send-template-to-tags.dto.d.ts +0 -40
- package/dist/src/message/dto/send-template-to-tags.dto.js +0 -23
- package/dist/src/message/dto/template.dto.d.ts +0 -154
- package/dist/src/message/dto/template.dto.js +0 -63
- package/dist/src/message/dto/update-template.dto.d.ts +0 -88
- package/dist/src/message/dto/update-template.dto.js +0 -23
package/dist/src/i18n/es.d.ts
CHANGED
@@ -151,27 +151,20 @@ declare const _default: {
|
|
151
151
|
readonly uuid: "El ID debe ser un UUID";
|
152
152
|
};
|
153
153
|
};
|
154
|
+
readonly image: {
|
155
|
+
readonly id: {
|
156
|
+
readonly uuid: "El formato del ID de la imagen es inválido.";
|
157
|
+
};
|
158
|
+
readonly url: {
|
159
|
+
readonly url: "Por favor, proporcione una URL válida para la imagen.";
|
160
|
+
};
|
161
|
+
};
|
154
162
|
readonly csv: {
|
155
163
|
readonly password: {
|
156
164
|
readonly required: "La contraseña es obligatoria";
|
157
165
|
readonly empty: "La contraseña no puede estar vacía";
|
158
166
|
};
|
159
167
|
};
|
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
|
-
};
|
175
168
|
};
|
176
169
|
readonly route: {
|
177
170
|
readonly auth: {
|
@@ -404,6 +397,22 @@ declare const _default: {
|
|
404
397
|
readonly success: "Perfiles obtenido";
|
405
398
|
};
|
406
399
|
};
|
400
|
+
readonly image: {
|
401
|
+
readonly update: {
|
402
|
+
readonly success: "Imagen actualizada exitosamente";
|
403
|
+
readonly conflict: "Conflicto al actualizar la imagen";
|
404
|
+
readonly invalid: "Parámetros inválidos para actualizar la imagen";
|
405
|
+
readonly error: "Error al subir la imagen al CDN";
|
406
|
+
readonly 'purge-error': "Error al purgar la imagen del CDN";
|
407
|
+
readonly 'unprocessable-entity': "La imagen no es válida, debe ser un archivo de imagen";
|
408
|
+
};
|
409
|
+
readonly delete: {
|
410
|
+
readonly success: "Imagen eliminada exitosamente";
|
411
|
+
readonly 'not-found': "Perfil o foto no encontrados";
|
412
|
+
readonly initiated: "Eliminación de imagen iniciada";
|
413
|
+
readonly error: "Error al eliminar la imagen del CDN";
|
414
|
+
};
|
415
|
+
};
|
407
416
|
readonly csv: {
|
408
417
|
readonly 'download-profiles': {
|
409
418
|
readonly success: "CSV de modelos descargado con éxito";
|
@@ -416,42 +425,6 @@ declare const _default: {
|
|
416
425
|
readonly error: "Error al descargar el archivo CSV de todas las tablas";
|
417
426
|
};
|
418
427
|
};
|
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
|
-
};
|
455
428
|
};
|
456
429
|
};
|
457
430
|
export default _default;
|
package/dist/src/i18n/es.js
CHANGED
@@ -153,27 +153,20 @@ exports.default = {
|
|
153
153
|
uuid: 'El ID debe ser un UUID',
|
154
154
|
},
|
155
155
|
},
|
156
|
+
image: {
|
157
|
+
id: {
|
158
|
+
uuid: 'El formato del ID de la imagen es inválido.',
|
159
|
+
},
|
160
|
+
url: {
|
161
|
+
url: 'Por favor, proporcione una URL válida para la imagen.',
|
162
|
+
},
|
163
|
+
},
|
156
164
|
csv: {
|
157
165
|
password: {
|
158
166
|
required: 'La contraseña es obligatoria',
|
159
167
|
empty: 'La contraseña no puede estar vacía',
|
160
168
|
},
|
161
169
|
},
|
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
|
-
},
|
177
170
|
},
|
178
171
|
route: {
|
179
172
|
auth: {
|
@@ -406,6 +399,22 @@ exports.default = {
|
|
406
399
|
success: 'Perfiles obtenido',
|
407
400
|
},
|
408
401
|
},
|
402
|
+
image: {
|
403
|
+
update: {
|
404
|
+
success: 'Imagen actualizada exitosamente',
|
405
|
+
conflict: 'Conflicto al actualizar la imagen',
|
406
|
+
invalid: 'Parámetros inválidos para actualizar la imagen',
|
407
|
+
error: 'Error al subir la imagen al CDN',
|
408
|
+
'purge-error': 'Error al purgar la imagen del CDN',
|
409
|
+
'unprocessable-entity': 'La imagen no es válida, debe ser un archivo de imagen',
|
410
|
+
},
|
411
|
+
delete: {
|
412
|
+
success: 'Imagen eliminada exitosamente',
|
413
|
+
'not-found': 'Perfil o foto no encontrados',
|
414
|
+
initiated: 'Eliminación de imagen iniciada',
|
415
|
+
error: 'Error al eliminar la imagen del CDN',
|
416
|
+
},
|
417
|
+
},
|
409
418
|
csv: {
|
410
419
|
'download-profiles': {
|
411
420
|
success: 'CSV de modelos descargado con éxito',
|
@@ -418,42 +427,6 @@ exports.default = {
|
|
418
427
|
error: 'Error al descargar el archivo CSV de todas las tablas',
|
419
428
|
},
|
420
429
|
},
|
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
|
-
},
|
457
430
|
},
|
458
431
|
};
|
459
432
|
//# 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,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I,EAAE;gBACJ,QAAQ,EAAE,wBAAwB;aACnC;YACD,KAAK,EAAE;gBACL,OAAO,EAAE,sDAAsD;aAChE;SACF;QACD,cAAc,EAAE;YACd,EAAE,EAAE;gBACF,IAAI,EAAE,wBAAwB;aAC/B;YACD,IAAI,EAAE;gBACJ,GAAG,EAAE,0CAA0C;aAChD;YACD,KAAK,EAAE;gBACL,OAAO,EAAE,sDAAsD;aAChE;SACF;QACD,OAAO,EAAE;YACP,EAAE,EAAE;gBACF,IAAI,EAAE,wBAAwB;aAC/B;YACD,WAAW,EAAE;gBACX,QAAQ,EAAE,qCAAqC;gBAC/C,OAAO,EAAE,0BAA0B;aACpC;YACD,oBAAoB,EAAE;gBACpB,OAAO,EAAE,qCAAqC;aAC/C;YACD,QAAQ,EAAE;gBACR,QAAQ,EAAE,mCAAmC;aAC9C;YACD,iBAAiB,EAAE;gBACjB,OAAO,EAAE,4CAA4C;aACtD;YACD,IAAI,EAAE;gBACJ,OAAO,EACL,kEAAkE;aACrE;SACF;QACD,QAAQ,EAAE;YACR,EAAE,EAAE;gBACF,IAAI,EAAE,wBAAwB;aAC/B;YACD,QAAQ,EAAE;gBACR,MAAM,EAAE,sCAAsC;aAC/C;YACD,SAAS,EAAE;gBACT,MAAM,EAAE,yCAAyC;aAClD;SACF;QACD,iBAAiB,EAAE;YACjB,EAAE,EAAE;gBACF,IAAI,EAAE,wBAAwB;aAC/B;YACD,IAAI,EAAE;gBACJ,QAAQ,EAAE,wBAAwB;gBAClC,GAAG,EAAE,0CAA0C;aAChD;YACD,OAAO,EAAE;gBACP,QAAQ,EAAE,2BAA2B;gBACrC,GAAG,EAAE,6CAA6C;aACnD;SACF;QACD,OAAO,EAAE;YACP,EAAE,EAAE;gBACF,IAAI,EAAE,wBAAwB;aAC/B;SACF;QACD,
|
1
|
+
{"version":3,"file":"es.js","sourceRoot":"","sources":["../../../src/i18n/es.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,MAAM,EAAE;QACN,KAAK,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AO,EAAE,gDAAgD;gBACzD,KAAK,EAAE,iCAAiC;gBACxC,aAAa,EAAE,mCAAmC;gBAClD,sBAAsB,EACpB,uDAAuD;aAC1D;YACD,MAAM,EAAE;gBACN,OAAO,EAAE,+BAA+B;gBACxC,WAAW,EAAE,8BAA8B;gBAC3C,SAAS,EAAE,gCAAgC;gBAC3C,KAAK,EAAE,qCAAqC;aAC7C;SACF;QACD,GAAG,EAAE;YACH,mBAAmB,EAAE;gBACnB,OAAO,EAAE,qCAAqC;gBAC9C,YAAY,EACV,6DAA6D;gBAC/D,KAAK,EAAE,8CAA8C;aACtD;YACD,qBAAqB,EAAE;gBACrB,OAAO,EAAE,8CAA8C;gBACvD,YAAY,EAAE,wDAAwD;gBACtE,KAAK,EAAE,uDAAuD;aAC/D;SACF;KACF;CACO,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const deleteImageResponseSchema: z.ZodObject<{
|
3
|
+
message: z.ZodString;
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
5
|
+
message: string;
|
6
|
+
}, {
|
7
|
+
message: string;
|
8
|
+
}>;
|
9
|
+
declare const DeleteImageResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
10
|
+
message: z.ZodString;
|
11
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
12
|
+
message: string;
|
13
|
+
}, {
|
14
|
+
message: string;
|
15
|
+
}>>;
|
16
|
+
export declare class DeleteImageResponseDto extends DeleteImageResponseDto_base {
|
17
|
+
}
|
18
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DeleteImageResponseDto = exports.deleteImageResponseSchema = void 0;
|
4
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
5
|
+
const zod_1 = require("zod");
|
6
|
+
exports.deleteImageResponseSchema = zod_1.z.object({
|
7
|
+
message: zod_1.z.string(),
|
8
|
+
});
|
9
|
+
class DeleteImageResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteImageResponseSchema) {
|
10
|
+
}
|
11
|
+
exports.DeleteImageResponseDto = DeleteImageResponseDto;
|
12
|
+
//# sourceMappingURL=delete-image.dto.js.map
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const imageSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
url: z.ZodString;
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
6
|
+
id: string;
|
7
|
+
url: string;
|
8
|
+
}, {
|
9
|
+
id: string;
|
10
|
+
url: string;
|
11
|
+
}>;
|
12
|
+
declare const ImageDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
13
|
+
id: z.ZodString;
|
14
|
+
url: z.ZodString;
|
15
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
16
|
+
id: string;
|
17
|
+
url: string;
|
18
|
+
}, {
|
19
|
+
id: string;
|
20
|
+
url: string;
|
21
|
+
}>>;
|
22
|
+
export declare class ImageDto extends ImageDto_base {
|
23
|
+
}
|
24
|
+
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ImageDto = exports.imageSchema = void 0;
|
4
|
+
const translate_1 = require("../../i18n/translate");
|
5
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
6
|
+
const zod_1 = require("zod");
|
7
|
+
exports.imageSchema = zod_1.z.object({
|
8
|
+
id: zod_1.z.string().uuid({
|
9
|
+
message: (0, translate_1.translate)('model.image.id.uuid'),
|
10
|
+
}),
|
11
|
+
url: zod_1.z.string().url({
|
12
|
+
message: (0, translate_1.translate)('model.image.url.url'),
|
13
|
+
}),
|
14
|
+
});
|
15
|
+
class ImageDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.imageSchema) {
|
16
|
+
}
|
17
|
+
exports.ImageDto = ImageDto;
|
18
|
+
//# sourceMappingURL=image.dto.js.map
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const updateImageResponseSchema: z.ZodObject<{
|
3
|
+
message: z.ZodString;
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
5
|
+
message: string;
|
6
|
+
}, {
|
7
|
+
message: string;
|
8
|
+
}>;
|
9
|
+
declare const UpdateImageResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
10
|
+
message: z.ZodString;
|
11
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
12
|
+
message: string;
|
13
|
+
}, {
|
14
|
+
message: string;
|
15
|
+
}>>;
|
16
|
+
export declare class UpdateImageResponseDto extends UpdateImageResponseDto_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.UpdateImageResponseDto = exports.updateImageResponseSchema = 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.updateImageResponseSchema = zod_1.default.object({
|
10
|
+
message: zod_1.default.string(),
|
11
|
+
});
|
12
|
+
class UpdateImageResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateImageResponseSchema) {
|
13
|
+
}
|
14
|
+
exports.UpdateImageResponseDto = UpdateImageResponseDto;
|
15
|
+
//# sourceMappingURL=update-image.dto.js.map
|
@@ -0,0 +1,20 @@
|
|
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/delete-image.dto"), exports);
|
18
|
+
__exportStar(require("./dto/image.dto"), exports);
|
19
|
+
__exportStar(require("./dto/update-image.dto"), exports);
|
20
|
+
//# sourceMappingURL=exports.js.map
|
@@ -82,7 +82,6 @@ export declare const argCitySchema: z.ZodObject<{
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
83
83
|
id: string;
|
84
84
|
name: string;
|
85
|
-
category: string;
|
86
85
|
state: {
|
87
86
|
id: string;
|
88
87
|
name: string;
|
@@ -99,6 +98,7 @@ export declare const argCitySchema: z.ZodObject<{
|
|
99
98
|
id: string;
|
100
99
|
name: string;
|
101
100
|
};
|
101
|
+
category: string;
|
102
102
|
centroid: {
|
103
103
|
lon: number;
|
104
104
|
lat: number;
|
@@ -106,7 +106,6 @@ export declare const argCitySchema: z.ZodObject<{
|
|
106
106
|
}, {
|
107
107
|
id: string;
|
108
108
|
name: string;
|
109
|
-
category: string;
|
110
109
|
state: {
|
111
110
|
id: string;
|
112
111
|
name: string;
|
@@ -123,6 +122,7 @@ export declare const argCitySchema: z.ZodObject<{
|
|
123
122
|
id: string;
|
124
123
|
name: string;
|
125
124
|
};
|
125
|
+
category: string;
|
126
126
|
centroid: {
|
127
127
|
lon: number;
|
128
128
|
lat: number;
|
@@ -1,11 +1,9 @@
|
|
1
|
-
import { Components } from '@/message/dto/template.dto';
|
2
1
|
import z from 'zod';
|
3
|
-
import { type TemplateCategory, type TemplateStatus } from '~/types/prisma-schema';
|
4
2
|
export declare const jsonMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
5
3
|
id: z.ZodString;
|
6
4
|
from: z.ZodOptional<z.ZodString>;
|
7
5
|
to: z.ZodOptional<z.ZodString>;
|
8
|
-
timestamp: z.
|
6
|
+
timestamp: z.ZodNumber;
|
9
7
|
}, {
|
10
8
|
text: z.ZodObject<{
|
11
9
|
body: z.ZodString;
|
@@ -19,26 +17,26 @@ export declare const jsonMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
19
17
|
}>, "strip", z.ZodTypeAny, {
|
20
18
|
id: string;
|
21
19
|
type: "text";
|
20
|
+
timestamp: number;
|
22
21
|
text: {
|
23
22
|
body: string;
|
24
23
|
};
|
25
|
-
timestamp: string;
|
26
24
|
from?: string | undefined;
|
27
25
|
to?: string | undefined;
|
28
26
|
}, {
|
29
27
|
id: string;
|
30
28
|
type: "text";
|
29
|
+
timestamp: number;
|
31
30
|
text: {
|
32
31
|
body: string;
|
33
32
|
};
|
34
|
-
timestamp: string;
|
35
33
|
from?: string | undefined;
|
36
34
|
to?: string | undefined;
|
37
35
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
38
36
|
id: z.ZodString;
|
39
37
|
from: z.ZodOptional<z.ZodString>;
|
40
38
|
to: z.ZodOptional<z.ZodString>;
|
41
|
-
timestamp: z.
|
39
|
+
timestamp: z.ZodNumber;
|
42
40
|
}, {
|
43
41
|
templateName: z.ZodString;
|
44
42
|
}>, {
|
@@ -46,14 +44,14 @@ export declare const jsonMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
46
44
|
}>, "strip", z.ZodTypeAny, {
|
47
45
|
id: string;
|
48
46
|
type: "template";
|
49
|
-
timestamp:
|
47
|
+
timestamp: number;
|
50
48
|
templateName: string;
|
51
49
|
from?: string | undefined;
|
52
50
|
to?: string | undefined;
|
53
51
|
}, {
|
54
52
|
id: string;
|
55
53
|
type: "template";
|
56
|
-
timestamp:
|
54
|
+
timestamp: number;
|
57
55
|
templateName: string;
|
58
56
|
from?: string | undefined;
|
59
57
|
to?: string | undefined;
|
@@ -66,7 +64,7 @@ export declare const messageSchema: z.ZodObject<{
|
|
66
64
|
id: z.ZodString;
|
67
65
|
from: z.ZodOptional<z.ZodString>;
|
68
66
|
to: z.ZodOptional<z.ZodString>;
|
69
|
-
timestamp: z.
|
67
|
+
timestamp: z.ZodNumber;
|
70
68
|
}, {
|
71
69
|
text: z.ZodObject<{
|
72
70
|
body: z.ZodString;
|
@@ -80,26 +78,26 @@ export declare const messageSchema: z.ZodObject<{
|
|
80
78
|
}>, "strip", z.ZodTypeAny, {
|
81
79
|
id: string;
|
82
80
|
type: "text";
|
81
|
+
timestamp: number;
|
83
82
|
text: {
|
84
83
|
body: string;
|
85
84
|
};
|
86
|
-
timestamp: string;
|
87
85
|
from?: string | undefined;
|
88
86
|
to?: string | undefined;
|
89
87
|
}, {
|
90
88
|
id: string;
|
91
89
|
type: "text";
|
90
|
+
timestamp: number;
|
92
91
|
text: {
|
93
92
|
body: string;
|
94
93
|
};
|
95
|
-
timestamp: string;
|
96
94
|
from?: string | undefined;
|
97
95
|
to?: string | undefined;
|
98
96
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
99
97
|
id: z.ZodString;
|
100
98
|
from: z.ZodOptional<z.ZodString>;
|
101
99
|
to: z.ZodOptional<z.ZodString>;
|
102
|
-
timestamp: z.
|
100
|
+
timestamp: z.ZodNumber;
|
103
101
|
}, {
|
104
102
|
templateName: z.ZodString;
|
105
103
|
}>, {
|
@@ -107,14 +105,14 @@ export declare const messageSchema: z.ZodObject<{
|
|
107
105
|
}>, "strip", z.ZodTypeAny, {
|
108
106
|
id: string;
|
109
107
|
type: "template";
|
110
|
-
timestamp:
|
108
|
+
timestamp: number;
|
111
109
|
templateName: string;
|
112
110
|
from?: string | undefined;
|
113
111
|
to?: string | undefined;
|
114
112
|
}, {
|
115
113
|
id: string;
|
116
114
|
type: "template";
|
117
|
-
timestamp:
|
115
|
+
timestamp: number;
|
118
116
|
templateName: string;
|
119
117
|
from?: string | undefined;
|
120
118
|
to?: string | undefined;
|
@@ -130,16 +128,16 @@ export declare const messageSchema: z.ZodObject<{
|
|
130
128
|
message: {
|
131
129
|
id: string;
|
132
130
|
type: "text";
|
131
|
+
timestamp: number;
|
133
132
|
text: {
|
134
133
|
body: string;
|
135
134
|
};
|
136
|
-
timestamp: string;
|
137
135
|
from?: string | undefined;
|
138
136
|
to?: string | undefined;
|
139
137
|
} | {
|
140
138
|
id: string;
|
141
139
|
type: "template";
|
142
|
-
timestamp:
|
140
|
+
timestamp: number;
|
143
141
|
templateName: string;
|
144
142
|
from?: string | undefined;
|
145
143
|
to?: string | undefined;
|
@@ -153,16 +151,16 @@ export declare const messageSchema: z.ZodObject<{
|
|
153
151
|
message: {
|
154
152
|
id: string;
|
155
153
|
type: "text";
|
154
|
+
timestamp: number;
|
156
155
|
text: {
|
157
156
|
body: string;
|
158
157
|
};
|
159
|
-
timestamp: string;
|
160
158
|
from?: string | undefined;
|
161
159
|
to?: string | undefined;
|
162
160
|
} | {
|
163
161
|
id: string;
|
164
162
|
type: "template";
|
165
|
-
timestamp:
|
163
|
+
timestamp: number;
|
166
164
|
templateName: string;
|
167
165
|
from?: string | undefined;
|
168
166
|
to?: string | undefined;
|
@@ -173,31 +171,3 @@ export declare const messageSchema: z.ZodObject<{
|
|
173
171
|
wamId: string;
|
174
172
|
state: "SENT" | "RECEIVED" | "SEEN";
|
175
173
|
}>;
|
176
|
-
export type MessageJson = {
|
177
|
-
id: string;
|
178
|
-
timestamp: string;
|
179
|
-
to?: string;
|
180
|
-
from?: string;
|
181
|
-
} & ({
|
182
|
-
type: 'text';
|
183
|
-
text: {
|
184
|
-
body: string;
|
185
|
-
};
|
186
|
-
} | {
|
187
|
-
type: 'template';
|
188
|
-
templateName: string;
|
189
|
-
});
|
190
|
-
export type TemplateMessage = MessageJson & {
|
191
|
-
type: 'template';
|
192
|
-
templateName: string;
|
193
|
-
};
|
194
|
-
export type GetTemplateResponse = {
|
195
|
-
data: {
|
196
|
-
name: string;
|
197
|
-
components: Components[];
|
198
|
-
language: string;
|
199
|
-
status: TemplateStatus;
|
200
|
-
category: TemplateCategory;
|
201
|
-
id: string;
|
202
|
-
}[];
|
203
|
-
};
|
@@ -11,7 +11,7 @@ const whatsappMessageSchema = zod_1.default.object({
|
|
11
11
|
id: zod_1.default.string(),
|
12
12
|
from: zod_1.default.string().optional(),
|
13
13
|
to: zod_1.default.string().optional(),
|
14
|
-
timestamp: zod_1.default.
|
14
|
+
timestamp: zod_1.default.coerce.number(),
|
15
15
|
});
|
16
16
|
const textMessageSchema = whatsappMessageSchema.merge(zod_1.default.object({
|
17
17
|
text: zod_1.default.object({
|
@@ -1,10 +1 @@
|
|
1
|
-
export * from './dto/create-template.dto';
|
2
|
-
export * from './dto/delete-template.dto';
|
3
|
-
export * from './dto/find-messages-by-phone.dto';
|
4
|
-
export * from './dto/find-template-by-id.dto';
|
5
|
-
export * from './dto/find-templates.dto';
|
6
1
|
export * from './dto/message.dto';
|
7
|
-
export * from './dto/send-message-to-phone.dto';
|
8
|
-
export * from './dto/send-template-to-tags.dto';
|
9
|
-
export * from './dto/template.dto';
|
10
|
-
export * from './dto/update-template.dto';
|
@@ -14,14 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./dto/create-template.dto"), exports);
|
18
|
-
__exportStar(require("./dto/delete-template.dto"), exports);
|
19
|
-
__exportStar(require("./dto/find-messages-by-phone.dto"), exports);
|
20
|
-
__exportStar(require("./dto/find-template-by-id.dto"), exports);
|
21
|
-
__exportStar(require("./dto/find-templates.dto"), exports);
|
22
17
|
__exportStar(require("./dto/message.dto"), exports);
|
23
|
-
__exportStar(require("./dto/send-message-to-phone.dto"), exports);
|
24
|
-
__exportStar(require("./dto/send-template-to-tags.dto"), exports);
|
25
|
-
__exportStar(require("./dto/template.dto"), exports);
|
26
|
-
__exportStar(require("./dto/update-template.dto"), exports);
|
27
18
|
//# sourceMappingURL=exports.js.map
|