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.
Files changed (54) hide show
  1. package/dist/src/i18n/es.d.ts +24 -51
  2. package/dist/src/i18n/es.js +24 -51
  3. package/dist/src/i18n/es.js.map +1 -1
  4. package/dist/src/image/dto/delete-image.dto.d.ts +18 -0
  5. package/dist/src/image/dto/delete-image.dto.js +12 -0
  6. package/dist/src/image/dto/image.dto.d.ts +24 -0
  7. package/dist/src/image/dto/image.dto.js +18 -0
  8. package/dist/src/image/dto/update-image.dto.d.ts +18 -0
  9. package/dist/src/image/dto/update-image.dto.js +15 -0
  10. package/dist/src/image/exports.d.ts +3 -0
  11. package/dist/src/image/exports.js +20 -0
  12. package/dist/src/location/dto/arg-city.dto.d.ts +2 -2
  13. package/dist/src/message/dto/message.dto.d.ts +16 -46
  14. package/dist/src/message/dto/message.dto.js +1 -1
  15. package/dist/src/message/exports.d.ts +0 -9
  16. package/dist/src/message/exports.js +0 -9
  17. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +36 -36
  18. package/dist/types/prisma-schema/default.d.ts +1 -1
  19. package/dist/types/prisma-schema/edge.d.ts +1 -1
  20. package/dist/types/prisma-schema/edge.js +11 -7
  21. package/dist/types/prisma-schema/index-browser.js +7 -4
  22. package/dist/types/prisma-schema/index.d.ts +803 -1034
  23. package/dist/types/prisma-schema/index.js +11 -7
  24. package/dist/types/prisma-schema/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  25. package/dist/types/prisma-schema/package.json +14 -1
  26. package/dist/types/prisma-schema/runtime/edge-esm.js +21 -18
  27. package/dist/types/prisma-schema/runtime/edge.js +21 -18
  28. package/dist/types/prisma-schema/runtime/index-browser.js +1 -1
  29. package/dist/types/prisma-schema/runtime/library.d.ts +297 -87
  30. package/dist/types/prisma-schema/runtime/library.js +64 -61
  31. package/dist/types/prisma-schema/runtime/react-native.js +31 -28
  32. package/dist/types/prisma-schema/runtime/wasm.js +22 -19
  33. package/dist/types/prisma-schema/wasm.d.ts +1 -1
  34. package/dist/types/prisma-schema/wasm.js +7 -4
  35. package/dist/types/schema.d.ts +47 -326
  36. package/package.json +5 -3
  37. package/dist/src/message/dto/create-template.dto.d.ts +0 -93
  38. package/dist/src/message/dto/create-template.dto.js +0 -24
  39. package/dist/src/message/dto/delete-template.dto.d.ts +0 -18
  40. package/dist/src/message/dto/delete-template.dto.js +0 -15
  41. package/dist/src/message/dto/find-messages-by-phone.dto.d.ts +0 -316
  42. package/dist/src/message/dto/find-messages-by-phone.dto.js +0 -24
  43. package/dist/src/message/dto/find-template-by-id.dto.d.ts +0 -245
  44. package/dist/src/message/dto/find-template-by-id.dto.js +0 -23
  45. package/dist/src/message/dto/find-templates.dto.d.ts +0 -109
  46. package/dist/src/message/dto/find-templates.dto.js +0 -20
  47. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +0 -40
  48. package/dist/src/message/dto/send-message-to-phone.dto.js +0 -23
  49. package/dist/src/message/dto/send-template-to-tags.dto.d.ts +0 -40
  50. package/dist/src/message/dto/send-template-to-tags.dto.js +0 -23
  51. package/dist/src/message/dto/template.dto.d.ts +0 -154
  52. package/dist/src/message/dto/template.dto.js +0 -63
  53. package/dist/src/message/dto/update-template.dto.d.ts +0 -88
  54. package/dist/src/message/dto/update-template.dto.js +0 -23
@@ -1,63 +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.templateSchema = 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 buttonsSchema = zod_1.default.object({
11
- type: zod_1.default.literal('BUTTONS'),
12
- buttons: zod_1.default.array(zod_1.default.object({
13
- text: zod_1.default.string(),
14
- type: zod_1.default.literal('QUICK_REPLY'),
15
- })),
16
- });
17
- const bodySchema = zod_1.default.object({
18
- type: zod_1.default.literal('BODY'),
19
- text: zod_1.default.string(),
20
- });
21
- const componentSchema = zod_1.default.discriminatedUnion('type', [
22
- bodySchema,
23
- buttonsSchema,
24
- ]);
25
- exports.templateSchema = zod_1.default.object({
26
- name: zod_1.default
27
- .string()
28
- .min(1, {
29
- message: (0, translate_1.translate)('model.template.name.min'),
30
- })
31
- .max(512, {
32
- message: (0, translate_1.translate)('model.template.name.max'),
33
- })
34
- .toLowerCase()
35
- .trim()
36
- .refine((value) => {
37
- return /^[a-z_]*$/.test(value);
38
- }, {
39
- message: (0, translate_1.translate)('model.template.name.invalid'),
40
- }),
41
- content: zod_1.default
42
- .string()
43
- .max(768, {
44
- message: (0, translate_1.translate)('model.template.content.max'),
45
- })
46
- .min(1, {
47
- message: (0, translate_1.translate)('model.template.content.min'),
48
- }),
49
- buttons: zod_1.default
50
- .array(zod_1.default.string().max(25, {
51
- message: (0, translate_1.translate)('model.template.buttons.max-length'),
52
- }))
53
- .max(10, {
54
- message: (0, translate_1.translate)('model.template.buttons.max'),
55
- }),
56
- id: zod_1.default.string(),
57
- language: zod_1.default.string(),
58
- components: zod_1.default.array(componentSchema),
59
- allow_category_change: zod_1.default.boolean(),
60
- category: zod_1.default.nativeEnum(prisma_schema_1.TemplateCategory),
61
- status: zod_1.default.nativeEnum(prisma_schema_1.TemplateStatus),
62
- });
63
- //# sourceMappingURL=template.dto.js.map
@@ -1,88 +0,0 @@
1
- import z from 'zod';
2
- export declare const updateTemplateSchema: 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
- }, "content" | "buttons">, "strip", z.ZodTypeAny, {
54
- content: string;
55
- buttons: string[];
56
- }, {
57
- content: string;
58
- buttons: string[];
59
- }>;
60
- declare const UpdateTemplateDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
61
- content: z.ZodString;
62
- buttons: z.ZodArray<z.ZodString, "many">;
63
- }, z.UnknownKeysParam, z.ZodTypeAny, {
64
- content: string;
65
- buttons: string[];
66
- }, {
67
- content: string;
68
- buttons: string[];
69
- }>>;
70
- export declare class UpdateTemplateDto extends UpdateTemplateDto_base {
71
- }
72
- export declare const updateTemplateResponseSchema: z.ZodObject<{
73
- success: z.ZodBoolean;
74
- }, "strip", z.ZodTypeAny, {
75
- success: boolean;
76
- }, {
77
- success: boolean;
78
- }>;
79
- declare const UpdateTemplateResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
80
- success: z.ZodBoolean;
81
- }, z.UnknownKeysParam, z.ZodTypeAny, {
82
- success: boolean;
83
- }, {
84
- success: boolean;
85
- }>>;
86
- export declare class UpdateTemplateResponseDto extends UpdateTemplateResponseDto_base {
87
- }
88
- export {};
@@ -1,23 +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.UpdateTemplateResponseDto = exports.updateTemplateResponseSchema = exports.UpdateTemplateDto = exports.updateTemplateSchema = 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.updateTemplateSchema = template_dto_1.templateSchema.pick({
11
- content: true,
12
- buttons: true,
13
- });
14
- class UpdateTemplateDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateTemplateSchema) {
15
- }
16
- exports.UpdateTemplateDto = UpdateTemplateDto;
17
- exports.updateTemplateResponseSchema = zod_1.default.object({
18
- success: zod_1.default.boolean(),
19
- });
20
- class UpdateTemplateResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateTemplateResponseSchema) {
21
- }
22
- exports.UpdateTemplateResponseDto = UpdateTemplateResponseDto;
23
- //# sourceMappingURL=update-template.dto.js.map