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
@@ -1,93 +0,0 @@
|
|
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 {};
|
@@ -1,24 +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.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
|
@@ -1,18 +0,0 @@
|
|
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 {};
|
@@ -1,15 +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.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
|
@@ -1,316 +0,0 @@
|
|
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 {};
|
@@ -1,24 +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.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
|