expo-backend-types 0.25.0 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/i18n/es.d.ts +80 -0
- package/dist/src/i18n/es.js +80 -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/get-last-message-timestamp.dto.d.ts +18 -0
- package/dist/src/message/dto/get-last-message-timestamp.dto.js +15 -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/non-read-messages.dto.d.ts +76 -0
- package/dist/src/message/dto/non-read-messages.dto.js +21 -0
- package/dist/src/message/dto/read-messages.dto.d.ts +18 -0
- package/dist/src/message/dto/read-messages.dto.js +15 -0
- 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/src/webhook/dto/webhook.dto.d.ts +86 -0
- package/dist/src/webhook/dto/webhook.dto.js +3 -0
- package/dist/types/schema.d.ts +602 -2
- package/package.json +2 -1
@@ -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 {};
|
@@ -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.FindMessagesByPhoneNumberResponseDto = exports.findMessagesByPhoneResponseSchema = void 0;
|
7
|
+
const message_dto_1 = require("./message.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.findMessagesByPhoneResponseSchema = zod_1.default
|
11
|
+
.object({
|
12
|
+
inChat: zod_1.default.boolean(),
|
13
|
+
})
|
14
|
+
.merge(zod_1.default.object({
|
15
|
+
messages: zod_1.default.array(message_dto_1.messageSchema.pick({
|
16
|
+
message: true,
|
17
|
+
created_at: true,
|
18
|
+
state: true,
|
19
|
+
})),
|
20
|
+
}));
|
21
|
+
class FindMessagesByPhoneNumberResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findMessagesByPhoneResponseSchema) {
|
22
|
+
}
|
23
|
+
exports.FindMessagesByPhoneNumberResponseDto = FindMessagesByPhoneNumberResponseDto;
|
24
|
+
//# sourceMappingURL=find-messages-by-phone.dto.js.map
|
@@ -0,0 +1,245 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const findTemplateByIdResponseSchema: z.ZodObject<{
|
3
|
+
template: 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" | "language" | "components" | "category">, "strip", z.ZodTypeAny, {
|
55
|
+
id: string;
|
56
|
+
name: string;
|
57
|
+
status: "APRROVED" | "PENDING" | "REJECTED";
|
58
|
+
language: string;
|
59
|
+
components: ({
|
60
|
+
type: "BUTTONS";
|
61
|
+
buttons: {
|
62
|
+
type: "QUICK_REPLY";
|
63
|
+
text: string;
|
64
|
+
}[];
|
65
|
+
} | {
|
66
|
+
type: "BODY";
|
67
|
+
text: string;
|
68
|
+
})[];
|
69
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
70
|
+
}, {
|
71
|
+
id: string;
|
72
|
+
name: string;
|
73
|
+
status: "APRROVED" | "PENDING" | "REJECTED";
|
74
|
+
language: string;
|
75
|
+
components: ({
|
76
|
+
type: "BUTTONS";
|
77
|
+
buttons: {
|
78
|
+
type: "QUICK_REPLY";
|
79
|
+
text: string;
|
80
|
+
}[];
|
81
|
+
} | {
|
82
|
+
type: "BODY";
|
83
|
+
text: string;
|
84
|
+
})[];
|
85
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
86
|
+
}>;
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
88
|
+
template: {
|
89
|
+
id: string;
|
90
|
+
name: string;
|
91
|
+
status: "APRROVED" | "PENDING" | "REJECTED";
|
92
|
+
language: string;
|
93
|
+
components: ({
|
94
|
+
type: "BUTTONS";
|
95
|
+
buttons: {
|
96
|
+
type: "QUICK_REPLY";
|
97
|
+
text: string;
|
98
|
+
}[];
|
99
|
+
} | {
|
100
|
+
type: "BODY";
|
101
|
+
text: string;
|
102
|
+
})[];
|
103
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
104
|
+
};
|
105
|
+
}, {
|
106
|
+
template: {
|
107
|
+
id: string;
|
108
|
+
name: string;
|
109
|
+
status: "APRROVED" | "PENDING" | "REJECTED";
|
110
|
+
language: string;
|
111
|
+
components: ({
|
112
|
+
type: "BUTTONS";
|
113
|
+
buttons: {
|
114
|
+
type: "QUICK_REPLY";
|
115
|
+
text: string;
|
116
|
+
}[];
|
117
|
+
} | {
|
118
|
+
type: "BODY";
|
119
|
+
text: string;
|
120
|
+
})[];
|
121
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
122
|
+
};
|
123
|
+
}>;
|
124
|
+
declare const FindTemplateByIdResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
125
|
+
template: z.ZodObject<{
|
126
|
+
id: z.ZodString;
|
127
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
128
|
+
status: z.ZodNativeEnum<{
|
129
|
+
APRROVED: "APRROVED";
|
130
|
+
PENDING: "PENDING";
|
131
|
+
REJECTED: "REJECTED";
|
132
|
+
}>;
|
133
|
+
language: z.ZodString;
|
134
|
+
components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
135
|
+
type: z.ZodLiteral<"BODY">;
|
136
|
+
text: z.ZodString;
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
138
|
+
type: "BODY";
|
139
|
+
text: string;
|
140
|
+
}, {
|
141
|
+
type: "BODY";
|
142
|
+
text: string;
|
143
|
+
}>, z.ZodObject<{
|
144
|
+
type: z.ZodLiteral<"BUTTONS">;
|
145
|
+
buttons: z.ZodArray<z.ZodObject<{
|
146
|
+
text: z.ZodString;
|
147
|
+
type: z.ZodLiteral<"QUICK_REPLY">;
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
149
|
+
type: "QUICK_REPLY";
|
150
|
+
text: string;
|
151
|
+
}, {
|
152
|
+
type: "QUICK_REPLY";
|
153
|
+
text: string;
|
154
|
+
}>, "many">;
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
156
|
+
type: "BUTTONS";
|
157
|
+
buttons: {
|
158
|
+
type: "QUICK_REPLY";
|
159
|
+
text: string;
|
160
|
+
}[];
|
161
|
+
}, {
|
162
|
+
type: "BUTTONS";
|
163
|
+
buttons: {
|
164
|
+
type: "QUICK_REPLY";
|
165
|
+
text: string;
|
166
|
+
}[];
|
167
|
+
}>]>, "many">;
|
168
|
+
category: z.ZodNativeEnum<{
|
169
|
+
MARKETING: "MARKETING";
|
170
|
+
UTILITY: "UTILITY";
|
171
|
+
AUTHENTICATION: "AUTHENTICATION";
|
172
|
+
}>;
|
173
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
174
|
+
id: string;
|
175
|
+
name: string;
|
176
|
+
status: "APRROVED" | "PENDING" | "REJECTED";
|
177
|
+
language: string;
|
178
|
+
components: ({
|
179
|
+
type: "BUTTONS";
|
180
|
+
buttons: {
|
181
|
+
type: "QUICK_REPLY";
|
182
|
+
text: string;
|
183
|
+
}[];
|
184
|
+
} | {
|
185
|
+
type: "BODY";
|
186
|
+
text: string;
|
187
|
+
})[];
|
188
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
189
|
+
}, {
|
190
|
+
id: string;
|
191
|
+
name: string;
|
192
|
+
status: "APRROVED" | "PENDING" | "REJECTED";
|
193
|
+
language: string;
|
194
|
+
components: ({
|
195
|
+
type: "BUTTONS";
|
196
|
+
buttons: {
|
197
|
+
type: "QUICK_REPLY";
|
198
|
+
text: string;
|
199
|
+
}[];
|
200
|
+
} | {
|
201
|
+
type: "BODY";
|
202
|
+
text: string;
|
203
|
+
})[];
|
204
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
205
|
+
}>;
|
206
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
207
|
+
template: {
|
208
|
+
id: string;
|
209
|
+
name: string;
|
210
|
+
status: "APRROVED" | "PENDING" | "REJECTED";
|
211
|
+
language: string;
|
212
|
+
components: ({
|
213
|
+
type: "BUTTONS";
|
214
|
+
buttons: {
|
215
|
+
type: "QUICK_REPLY";
|
216
|
+
text: string;
|
217
|
+
}[];
|
218
|
+
} | {
|
219
|
+
type: "BODY";
|
220
|
+
text: string;
|
221
|
+
})[];
|
222
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
223
|
+
};
|
224
|
+
}, {
|
225
|
+
template: {
|
226
|
+
id: string;
|
227
|
+
name: string;
|
228
|
+
status: "APRROVED" | "PENDING" | "REJECTED";
|
229
|
+
language: string;
|
230
|
+
components: ({
|
231
|
+
type: "BUTTONS";
|
232
|
+
buttons: {
|
233
|
+
type: "QUICK_REPLY";
|
234
|
+
text: string;
|
235
|
+
}[];
|
236
|
+
} | {
|
237
|
+
type: "BODY";
|
238
|
+
text: string;
|
239
|
+
})[];
|
240
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
241
|
+
};
|
242
|
+
}>>;
|
243
|
+
export declare class FindTemplateByIdResponseDto extends FindTemplateByIdResponseDto_base {
|
244
|
+
}
|
245
|
+
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.FindTemplateByIdResponseDto = exports.findTemplateByIdResponseSchema = 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.findTemplateByIdResponseSchema = zod_1.default.object({
|
11
|
+
template: template_dto_1.templateSchema.pick({
|
12
|
+
name: true,
|
13
|
+
language: true,
|
14
|
+
status: true,
|
15
|
+
id: true,
|
16
|
+
category: true,
|
17
|
+
components: true,
|
18
|
+
}),
|
19
|
+
});
|
20
|
+
class FindTemplateByIdResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findTemplateByIdResponseSchema) {
|
21
|
+
}
|
22
|
+
exports.FindTemplateByIdResponseDto = FindTemplateByIdResponseDto;
|
23
|
+
//# sourceMappingURL=find-template-by-id.dto.js.map
|