expo-backend-types 0.24.0 → 0.25.0-EXPO-251-EB-Whatsapp.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/dist/src/i18n/es.d.ts +78 -0
  2. package/dist/src/i18n/es.js +78 -0
  3. package/dist/src/i18n/es.js.map +1 -1
  4. package/dist/src/location/dto/arg-city.dto.d.ts +2 -2
  5. package/dist/src/message/dto/create-template.dto.d.ts +93 -0
  6. package/dist/src/message/dto/create-template.dto.js +24 -0
  7. package/dist/src/message/dto/delete-template.dto.d.ts +18 -0
  8. package/dist/src/message/dto/delete-template.dto.js +15 -0
  9. package/dist/src/message/dto/find-messages-by-phone.dto.d.ts +316 -0
  10. package/dist/src/message/dto/find-messages-by-phone.dto.js +24 -0
  11. package/dist/src/message/dto/find-template-by-id.dto.d.ts +245 -0
  12. package/dist/src/message/dto/find-template-by-id.dto.js +23 -0
  13. package/dist/src/message/dto/find-templates.dto.d.ts +109 -0
  14. package/dist/src/message/dto/find-templates.dto.js +20 -0
  15. package/dist/src/message/dto/get-last-message-timestamp.dto.d.ts +18 -0
  16. package/dist/src/message/dto/get-last-message-timestamp.dto.js +15 -0
  17. package/dist/src/message/dto/message.dto.d.ts +46 -16
  18. package/dist/src/message/dto/message.dto.js +1 -1
  19. package/dist/src/message/dto/non-read-messages.dto.d.ts +76 -0
  20. package/dist/src/message/dto/non-read-messages.dto.js +21 -0
  21. package/dist/src/message/dto/read-messages.dto.d.ts +18 -0
  22. package/dist/src/message/dto/read-messages.dto.js +15 -0
  23. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +40 -0
  24. package/dist/src/message/dto/send-message-to-phone.dto.js +23 -0
  25. package/dist/src/message/dto/send-template-to-tags.dto.d.ts +40 -0
  26. package/dist/src/message/dto/send-template-to-tags.dto.js +23 -0
  27. package/dist/src/message/dto/template.dto.d.ts +154 -0
  28. package/dist/src/message/dto/template.dto.js +63 -0
  29. package/dist/src/message/dto/update-template.dto.d.ts +88 -0
  30. package/dist/src/message/dto/update-template.dto.js +23 -0
  31. package/dist/src/message/exports.d.ts +9 -0
  32. package/dist/src/message/exports.js +9 -0
  33. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +36 -36
  34. package/dist/src/webhook/dto/webhook.dto.d.ts +86 -0
  35. package/dist/src/webhook/dto/webhook.dto.js +3 -0
  36. package/dist/types/schema.d.ts +602 -2
  37. package/package.json +2 -1
@@ -0,0 +1,109 @@
1
+ import z from 'zod';
2
+ export declare const findTemplatesResponseSchema: z.ZodObject<{
3
+ templates: z.ZodArray<z.ZodObject<Pick<{
4
+ name: z.ZodEffects<z.ZodString, string, string>;
5
+ content: z.ZodString;
6
+ buttons: z.ZodArray<z.ZodString, "many">;
7
+ id: z.ZodString;
8
+ language: z.ZodString;
9
+ components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10
+ type: z.ZodLiteral<"BODY">;
11
+ text: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ type: "BODY";
14
+ text: string;
15
+ }, {
16
+ type: "BODY";
17
+ text: string;
18
+ }>, z.ZodObject<{
19
+ type: z.ZodLiteral<"BUTTONS">;
20
+ buttons: z.ZodArray<z.ZodObject<{
21
+ text: z.ZodString;
22
+ type: z.ZodLiteral<"QUICK_REPLY">;
23
+ }, "strip", z.ZodTypeAny, {
24
+ type: "QUICK_REPLY";
25
+ text: string;
26
+ }, {
27
+ type: "QUICK_REPLY";
28
+ text: string;
29
+ }>, "many">;
30
+ }, "strip", z.ZodTypeAny, {
31
+ type: "BUTTONS";
32
+ buttons: {
33
+ type: "QUICK_REPLY";
34
+ text: string;
35
+ }[];
36
+ }, {
37
+ type: "BUTTONS";
38
+ buttons: {
39
+ type: "QUICK_REPLY";
40
+ text: string;
41
+ }[];
42
+ }>]>, "many">;
43
+ allow_category_change: z.ZodBoolean;
44
+ category: z.ZodNativeEnum<{
45
+ MARKETING: "MARKETING";
46
+ UTILITY: "UTILITY";
47
+ AUTHENTICATION: "AUTHENTICATION";
48
+ }>;
49
+ status: z.ZodNativeEnum<{
50
+ APRROVED: "APRROVED";
51
+ PENDING: "PENDING";
52
+ REJECTED: "REJECTED";
53
+ }>;
54
+ }, "id" | "name" | "status">, "strip", z.ZodTypeAny, {
55
+ id: string;
56
+ name: string;
57
+ status: "APRROVED" | "PENDING" | "REJECTED";
58
+ }, {
59
+ id: string;
60
+ name: string;
61
+ status: "APRROVED" | "PENDING" | "REJECTED";
62
+ }>, "many">;
63
+ }, "strip", z.ZodTypeAny, {
64
+ templates: {
65
+ id: string;
66
+ name: string;
67
+ status: "APRROVED" | "PENDING" | "REJECTED";
68
+ }[];
69
+ }, {
70
+ templates: {
71
+ id: string;
72
+ name: string;
73
+ status: "APRROVED" | "PENDING" | "REJECTED";
74
+ }[];
75
+ }>;
76
+ declare const FindTemplatesResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
77
+ templates: z.ZodArray<z.ZodObject<{
78
+ id: z.ZodString;
79
+ name: z.ZodEffects<z.ZodString, string, string>;
80
+ status: z.ZodNativeEnum<{
81
+ APRROVED: "APRROVED";
82
+ PENDING: "PENDING";
83
+ REJECTED: "REJECTED";
84
+ }>;
85
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
86
+ id: string;
87
+ name: string;
88
+ status: "APRROVED" | "PENDING" | "REJECTED";
89
+ }, {
90
+ id: string;
91
+ name: string;
92
+ status: "APRROVED" | "PENDING" | "REJECTED";
93
+ }>, "many">;
94
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
95
+ templates: {
96
+ id: string;
97
+ name: string;
98
+ status: "APRROVED" | "PENDING" | "REJECTED";
99
+ }[];
100
+ }, {
101
+ templates: {
102
+ id: string;
103
+ name: string;
104
+ status: "APRROVED" | "PENDING" | "REJECTED";
105
+ }[];
106
+ }>>;
107
+ export declare class FindTemplatesResponseDto extends FindTemplatesResponseDto_base {
108
+ }
109
+ export {};
@@ -0,0 +1,20 @@
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.FindTemplatesResponseDto = exports.findTemplatesResponseSchema = 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.findTemplatesResponseSchema = zod_1.default.object({
11
+ templates: zod_1.default.array(template_dto_1.templateSchema.pick({
12
+ name: true,
13
+ id: true,
14
+ status: true,
15
+ })),
16
+ });
17
+ class FindTemplatesResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findTemplatesResponseSchema) {
18
+ }
19
+ exports.FindTemplatesResponseDto = FindTemplatesResponseDto;
20
+ //# sourceMappingURL=find-templates.dto.js.map
@@ -0,0 +1,18 @@
1
+ import z from 'zod';
2
+ export declare const getLastMessageTimestampResponseSchema: z.ZodObject<{
3
+ timestamp: z.ZodNumber;
4
+ }, "strip", z.ZodTypeAny, {
5
+ timestamp: number;
6
+ }, {
7
+ timestamp: number;
8
+ }>;
9
+ declare const GetLastMessageTimestampResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
10
+ timestamp: z.ZodNumber;
11
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
12
+ timestamp: number;
13
+ }, {
14
+ timestamp: number;
15
+ }>>;
16
+ export declare class GetLastMessageTimestampResponseDto extends GetLastMessageTimestampResponseDto_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.GetLastMessageTimestampResponseDto = exports.getLastMessageTimestampResponseSchema = 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.getLastMessageTimestampResponseSchema = zod_1.default.object({
10
+ timestamp: zod_1.default.number(),
11
+ });
12
+ class GetLastMessageTimestampResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.getLastMessageTimestampResponseSchema) {
13
+ }
14
+ exports.GetLastMessageTimestampResponseDto = GetLastMessageTimestampResponseDto;
15
+ //# sourceMappingURL=get-last-message-timestamp.dto.js.map
@@ -1,9 +1,11 @@
1
+ import { Components } from '@/message/dto/template.dto';
1
2
  import z from 'zod';
3
+ import { type TemplateCategory, type TemplateStatus } from '~/types/prisma-schema';
2
4
  export declare const jsonMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
5
  id: z.ZodString;
4
6
  from: z.ZodOptional<z.ZodString>;
5
7
  to: z.ZodOptional<z.ZodString>;
6
- timestamp: z.ZodNumber;
8
+ timestamp: z.ZodString;
7
9
  }, {
8
10
  text: z.ZodObject<{
9
11
  body: z.ZodString;
@@ -17,26 +19,26 @@ export declare const jsonMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
17
19
  }>, "strip", z.ZodTypeAny, {
18
20
  id: string;
19
21
  type: "text";
20
- timestamp: number;
21
22
  text: {
22
23
  body: string;
23
24
  };
25
+ timestamp: string;
24
26
  from?: string | undefined;
25
27
  to?: string | undefined;
26
28
  }, {
27
29
  id: string;
28
30
  type: "text";
29
- timestamp: number;
30
31
  text: {
31
32
  body: string;
32
33
  };
34
+ timestamp: string;
33
35
  from?: string | undefined;
34
36
  to?: string | undefined;
35
37
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
36
38
  id: z.ZodString;
37
39
  from: z.ZodOptional<z.ZodString>;
38
40
  to: z.ZodOptional<z.ZodString>;
39
- timestamp: z.ZodNumber;
41
+ timestamp: z.ZodString;
40
42
  }, {
41
43
  templateName: z.ZodString;
42
44
  }>, {
@@ -44,14 +46,14 @@ export declare const jsonMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
44
46
  }>, "strip", z.ZodTypeAny, {
45
47
  id: string;
46
48
  type: "template";
47
- timestamp: number;
49
+ timestamp: string;
48
50
  templateName: string;
49
51
  from?: string | undefined;
50
52
  to?: string | undefined;
51
53
  }, {
52
54
  id: string;
53
55
  type: "template";
54
- timestamp: number;
56
+ timestamp: string;
55
57
  templateName: string;
56
58
  from?: string | undefined;
57
59
  to?: string | undefined;
@@ -64,7 +66,7 @@ export declare const messageSchema: z.ZodObject<{
64
66
  id: z.ZodString;
65
67
  from: z.ZodOptional<z.ZodString>;
66
68
  to: z.ZodOptional<z.ZodString>;
67
- timestamp: z.ZodNumber;
69
+ timestamp: z.ZodString;
68
70
  }, {
69
71
  text: z.ZodObject<{
70
72
  body: z.ZodString;
@@ -78,26 +80,26 @@ export declare const messageSchema: z.ZodObject<{
78
80
  }>, "strip", z.ZodTypeAny, {
79
81
  id: string;
80
82
  type: "text";
81
- timestamp: number;
82
83
  text: {
83
84
  body: string;
84
85
  };
86
+ timestamp: string;
85
87
  from?: string | undefined;
86
88
  to?: string | undefined;
87
89
  }, {
88
90
  id: string;
89
91
  type: "text";
90
- timestamp: number;
91
92
  text: {
92
93
  body: string;
93
94
  };
95
+ timestamp: string;
94
96
  from?: string | undefined;
95
97
  to?: string | undefined;
96
98
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
97
99
  id: z.ZodString;
98
100
  from: z.ZodOptional<z.ZodString>;
99
101
  to: z.ZodOptional<z.ZodString>;
100
- timestamp: z.ZodNumber;
102
+ timestamp: z.ZodString;
101
103
  }, {
102
104
  templateName: z.ZodString;
103
105
  }>, {
@@ -105,14 +107,14 @@ export declare const messageSchema: z.ZodObject<{
105
107
  }>, "strip", z.ZodTypeAny, {
106
108
  id: string;
107
109
  type: "template";
108
- timestamp: number;
110
+ timestamp: string;
109
111
  templateName: string;
110
112
  from?: string | undefined;
111
113
  to?: string | undefined;
112
114
  }, {
113
115
  id: string;
114
116
  type: "template";
115
- timestamp: number;
117
+ timestamp: string;
116
118
  templateName: string;
117
119
  from?: string | undefined;
118
120
  to?: string | undefined;
@@ -128,16 +130,16 @@ export declare const messageSchema: z.ZodObject<{
128
130
  message: {
129
131
  id: string;
130
132
  type: "text";
131
- timestamp: number;
132
133
  text: {
133
134
  body: string;
134
135
  };
136
+ timestamp: string;
135
137
  from?: string | undefined;
136
138
  to?: string | undefined;
137
139
  } | {
138
140
  id: string;
139
141
  type: "template";
140
- timestamp: number;
142
+ timestamp: string;
141
143
  templateName: string;
142
144
  from?: string | undefined;
143
145
  to?: string | undefined;
@@ -151,16 +153,16 @@ export declare const messageSchema: z.ZodObject<{
151
153
  message: {
152
154
  id: string;
153
155
  type: "text";
154
- timestamp: number;
155
156
  text: {
156
157
  body: string;
157
158
  };
159
+ timestamp: string;
158
160
  from?: string | undefined;
159
161
  to?: string | undefined;
160
162
  } | {
161
163
  id: string;
162
164
  type: "template";
163
- timestamp: number;
165
+ timestamp: string;
164
166
  templateName: string;
165
167
  from?: string | undefined;
166
168
  to?: string | undefined;
@@ -171,3 +173,31 @@ export declare const messageSchema: z.ZodObject<{
171
173
  wamId: string;
172
174
  state: "SENT" | "RECEIVED" | "SEEN";
173
175
  }>;
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.coerce.number(),
14
+ timestamp: zod_1.default.string(),
15
15
  });
16
16
  const textMessageSchema = whatsappMessageSchema.merge(zod_1.default.object({
17
17
  text: zod_1.default.object({
@@ -0,0 +1,76 @@
1
+ import z from 'zod';
2
+ export declare const nonReadMessagesSchema: z.ZodObject<{
3
+ messages: z.ZodArray<z.ZodObject<{
4
+ profilePhoneNumber: z.ZodEffects<z.ZodString, string, string>;
5
+ _count: z.ZodObject<{
6
+ id: z.ZodNumber;
7
+ }, "strip", z.ZodTypeAny, {
8
+ id: number;
9
+ }, {
10
+ id: number;
11
+ }>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ _count: {
14
+ id: number;
15
+ };
16
+ profilePhoneNumber: string;
17
+ }, {
18
+ _count: {
19
+ id: number;
20
+ };
21
+ profilePhoneNumber: string;
22
+ }>, "many">;
23
+ }, "strip", z.ZodTypeAny, {
24
+ messages: {
25
+ _count: {
26
+ id: number;
27
+ };
28
+ profilePhoneNumber: string;
29
+ }[];
30
+ }, {
31
+ messages: {
32
+ _count: {
33
+ id: number;
34
+ };
35
+ profilePhoneNumber: string;
36
+ }[];
37
+ }>;
38
+ declare const NonReadMessagesDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
39
+ messages: z.ZodArray<z.ZodObject<{
40
+ profilePhoneNumber: z.ZodEffects<z.ZodString, string, string>;
41
+ _count: z.ZodObject<{
42
+ id: z.ZodNumber;
43
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
44
+ id: number;
45
+ }, {
46
+ id: number;
47
+ }>;
48
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
49
+ _count: {
50
+ id: number;
51
+ };
52
+ profilePhoneNumber: string;
53
+ }, {
54
+ _count: {
55
+ id: number;
56
+ };
57
+ profilePhoneNumber: string;
58
+ }>, "many">;
59
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
60
+ messages: {
61
+ _count: {
62
+ id: number;
63
+ };
64
+ profilePhoneNumber: string;
65
+ }[];
66
+ }, {
67
+ messages: {
68
+ _count: {
69
+ id: number;
70
+ };
71
+ profilePhoneNumber: string;
72
+ }[];
73
+ }>>;
74
+ export declare class NonReadMessagesDto extends NonReadMessagesDto_base {
75
+ }
76
+ export {};
@@ -0,0 +1,21 @@
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.NonReadMessagesDto = exports.nonReadMessagesSchema = void 0;
7
+ const profile_dto_1 = require("../../profile/dto/profile.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.nonReadMessagesSchema = zod_1.default.object({
11
+ messages: zod_1.default.array(zod_1.default.object({
12
+ profilePhoneNumber: profile_dto_1.profileSchema.shape.phoneNumber,
13
+ _count: zod_1.default.object({
14
+ id: zod_1.default.number(),
15
+ }),
16
+ })),
17
+ });
18
+ class NonReadMessagesDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.nonReadMessagesSchema) {
19
+ }
20
+ exports.NonReadMessagesDto = NonReadMessagesDto;
21
+ //# sourceMappingURL=non-read-messages.dto.js.map
@@ -0,0 +1,18 @@
1
+ import z from 'zod';
2
+ export declare const readMessagesResponseSchema: z.ZodObject<{
3
+ success: z.ZodBoolean;
4
+ }, "strip", z.ZodTypeAny, {
5
+ success: boolean;
6
+ }, {
7
+ success: boolean;
8
+ }>;
9
+ declare const ReadMessagesResponseDto_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 ReadMessagesResponseDto extends ReadMessagesResponseDto_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.ReadMessagesResponseDto = exports.readMessagesResponseSchema = 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.readMessagesResponseSchema = zod_1.default.object({
10
+ success: zod_1.default.boolean(),
11
+ });
12
+ class ReadMessagesResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.readMessagesResponseSchema) {
13
+ }
14
+ exports.ReadMessagesResponseDto = ReadMessagesResponseDto;
15
+ //# sourceMappingURL=read-messages.dto.js.map
@@ -0,0 +1,40 @@
1
+ import z from 'zod';
2
+ export declare const sendMessageToPhoneSchema: z.ZodObject<{
3
+ phone: z.ZodEffects<z.ZodString, string, string>;
4
+ message: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ message: string;
7
+ phone: string;
8
+ }, {
9
+ message: string;
10
+ phone: string;
11
+ }>;
12
+ declare const SendMessageToPhoneDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
13
+ phone: z.ZodEffects<z.ZodString, string, string>;
14
+ message: z.ZodString;
15
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
16
+ message: string;
17
+ phone: string;
18
+ }, {
19
+ message: string;
20
+ phone: string;
21
+ }>>;
22
+ export declare class SendMessageToPhoneDto extends SendMessageToPhoneDto_base {
23
+ }
24
+ export declare const sendMessageToPhoneResponseSchema: z.ZodObject<{
25
+ success: z.ZodBoolean;
26
+ }, "strip", z.ZodTypeAny, {
27
+ success: boolean;
28
+ }, {
29
+ success: boolean;
30
+ }>;
31
+ declare const SendMessageToPhoneResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
32
+ success: z.ZodBoolean;
33
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
34
+ success: boolean;
35
+ }, {
36
+ success: boolean;
37
+ }>>;
38
+ export declare class SendMessageToPhoneResponseDto extends SendMessageToPhoneResponseDto_base {
39
+ }
40
+ export {};
@@ -0,0 +1,23 @@
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.SendMessageToPhoneResponseDto = exports.sendMessageToPhoneResponseSchema = exports.SendMessageToPhoneDto = exports.sendMessageToPhoneSchema = void 0;
7
+ const profile_dto_1 = require("../../profile/dto/profile.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.sendMessageToPhoneSchema = zod_1.default.object({
11
+ phone: profile_dto_1.profileSchema.shape.phoneNumber,
12
+ message: zod_1.default.string(),
13
+ });
14
+ class SendMessageToPhoneDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.sendMessageToPhoneSchema) {
15
+ }
16
+ exports.SendMessageToPhoneDto = SendMessageToPhoneDto;
17
+ exports.sendMessageToPhoneResponseSchema = zod_1.default.object({
18
+ success: zod_1.default.boolean(),
19
+ });
20
+ class SendMessageToPhoneResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.sendMessageToPhoneResponseSchema) {
21
+ }
22
+ exports.SendMessageToPhoneResponseDto = SendMessageToPhoneResponseDto;
23
+ //# sourceMappingURL=send-message-to-phone.dto.js.map
@@ -0,0 +1,40 @@
1
+ import z from 'zod';
2
+ export declare const sendTemplateToTagsSchema: z.ZodObject<{
3
+ tags: z.ZodArray<z.ZodString, "many">;
4
+ templateName: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ templateName: string;
7
+ tags: string[];
8
+ }, {
9
+ templateName: string;
10
+ tags: string[];
11
+ }>;
12
+ declare const SendTemplateToTagsDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
13
+ tags: z.ZodArray<z.ZodString, "many">;
14
+ templateName: z.ZodString;
15
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
16
+ templateName: string;
17
+ tags: string[];
18
+ }, {
19
+ templateName: string;
20
+ tags: string[];
21
+ }>>;
22
+ export declare class SendTemplateToTagsDto extends SendTemplateToTagsDto_base {
23
+ }
24
+ export declare const sendTemplateToTagsResponseSchema: z.ZodObject<{
25
+ success: z.ZodBoolean;
26
+ }, "strip", z.ZodTypeAny, {
27
+ success: boolean;
28
+ }, {
29
+ success: boolean;
30
+ }>;
31
+ declare const SendTemplateToTagsResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
32
+ success: z.ZodBoolean;
33
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
34
+ success: boolean;
35
+ }, {
36
+ success: boolean;
37
+ }>>;
38
+ export declare class SendTemplateToTagsResponseDto extends SendTemplateToTagsResponseDto_base {
39
+ }
40
+ export {};
@@ -0,0 +1,23 @@
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.SendTemplateToTagsResponseDto = exports.sendTemplateToTagsResponseSchema = exports.SendTemplateToTagsDto = exports.sendTemplateToTagsSchema = void 0;
7
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
8
+ const tag_dto_1 = require("../../tag/dto/tag.dto");
9
+ const zod_1 = __importDefault(require("zod"));
10
+ exports.sendTemplateToTagsSchema = zod_1.default.object({
11
+ tags: zod_1.default.array(tag_dto_1.tagSchema.shape.id),
12
+ templateName: zod_1.default.string(),
13
+ });
14
+ class SendTemplateToTagsDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.sendTemplateToTagsSchema) {
15
+ }
16
+ exports.SendTemplateToTagsDto = SendTemplateToTagsDto;
17
+ exports.sendTemplateToTagsResponseSchema = zod_1.default.object({
18
+ success: zod_1.default.boolean(),
19
+ });
20
+ class SendTemplateToTagsResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.sendTemplateToTagsResponseSchema) {
21
+ }
22
+ exports.SendTemplateToTagsResponseDto = SendTemplateToTagsResponseDto;
23
+ //# sourceMappingURL=send-template-to-tags.dto.js.map