expo-backend-types 0.22.0-EXPO-251-EB-Whatsapp.1 → 0.22.0-EXPO-251-EB-Whatsapp.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -157,6 +157,20 @@ declare const _default: {
157
157
  readonly empty: "La contraseña no puede estar vacía";
158
158
  };
159
159
  };
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
+ };
165
+ readonly content: {
166
+ readonly max: "El contenido debe tener como máximo 768 caracteres";
167
+ readonly min: "El contenido debe tener al menos 1 caracter";
168
+ };
169
+ readonly buttons: {
170
+ readonly max: "No se pueden tener más de 10 botones";
171
+ readonly 'max-length': "Los botones no pueden tener más de 25 caracteres";
172
+ };
173
+ };
160
174
  };
161
175
  readonly route: {
162
176
  readonly auth: {
@@ -401,6 +415,19 @@ declare const _default: {
401
415
  readonly error: "Error al descargar el archivo CSV de todas las tablas";
402
416
  };
403
417
  };
418
+ readonly message: {
419
+ readonly 'create-template': {
420
+ readonly success: "Plantilla creada con éxito";
421
+ readonly error: "Error al crear la plantilla";
422
+ };
423
+ readonly 'find-templates': {
424
+ readonly success: "Plantillas encontradas";
425
+ };
426
+ readonly 'find-template-by-id': {
427
+ readonly error: "Error al encontrar la plantilla";
428
+ readonly success: "Plantilla encontrada";
429
+ };
430
+ };
404
431
  };
405
432
  };
406
433
  export default _default;
@@ -159,6 +159,20 @@ exports.default = {
159
159
  empty: 'La contraseña no puede estar vacía',
160
160
  },
161
161
  },
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
+ },
167
+ content: {
168
+ max: 'El contenido debe tener como máximo 768 caracteres',
169
+ min: 'El contenido debe tener al menos 1 caracter',
170
+ },
171
+ buttons: {
172
+ max: 'No se pueden tener más de 10 botones',
173
+ 'max-length': 'Los botones no pueden tener más de 25 caracteres',
174
+ },
175
+ },
162
176
  },
163
177
  route: {
164
178
  auth: {
@@ -403,6 +417,19 @@ exports.default = {
403
417
  error: 'Error al descargar el archivo CSV de todas las tablas',
404
418
  },
405
419
  },
420
+ message: {
421
+ 'create-template': {
422
+ success: 'Plantilla creada con éxito',
423
+ error: 'Error al crear la plantilla',
424
+ },
425
+ 'find-templates': {
426
+ success: 'Plantillas encontradas',
427
+ },
428
+ 'find-template-by-id': {
429
+ error: 'Error al encontrar la plantilla',
430
+ success: 'Plantilla encontrada',
431
+ },
432
+ },
406
433
  },
407
434
  };
408
435
  //# sourceMappingURL=es.js.map
@@ -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,QAAQ,EAAE,SAAS;YACnB,SAAS,EAAE,qBAAqB;SACjC;QACD,QAAQ,EAAE,+FAA+F;QACzG,WAAW,EAAE,oGAAoG;KAClH;IACD,KAAK,EAAE;QACL,OAAO,EAAE;YACP,EAAE,EAAE;gBACF,IAAI,EAAE,wBAAwB;aAC/B;YACD,OAAO,EAAE;gBACP,GAAG,EAAE,6CAA6C;aACnD;YACD,UAAU,EAAE;gBACV,QAAQ,EAAE,4CAA4C;aACvD;SACF;QACD,OAAO,EAAE;YACP,EAAE,EAAE;gBACF,QAAQ,EAAE,oBAAoB;gBAC9B,IAAI,EAAE,wBAAwB;aAC/B;YACD,QAAQ,EAAE;gBACR,QAAQ,EAAE,mCAAmC;aAC9C;YACD,KAAK,EAAE;gBACL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.ZodString;
4
+ content: z.ZodString;
5
+ buttons: z.ZodArray<z.ZodString, "many">;
6
+ id: z.ZodString;
7
+ status: z.ZodNativeEnum<{
8
+ APRROVED: "APRROVED";
9
+ PENDING: "PENDING";
10
+ REJECTED: "REJECTED";
11
+ }>;
12
+ language: z.ZodString;
13
+ components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14
+ type: z.ZodLiteral<"BODY">;
15
+ text: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ type: "BODY";
18
+ text: string;
19
+ }, {
20
+ type: "BODY";
21
+ text: string;
22
+ }>, z.ZodObject<{
23
+ type: z.ZodLiteral<"BUTTONS">;
24
+ buttons: z.ZodArray<z.ZodObject<{
25
+ text: z.ZodString;
26
+ type: z.ZodLiteral<"QUICK_REPLY">;
27
+ }, "strip", z.ZodTypeAny, {
28
+ type: "QUICK_REPLY";
29
+ text: string;
30
+ }, {
31
+ type: "QUICK_REPLY";
32
+ text: string;
33
+ }>, "many">;
34
+ }, "strip", z.ZodTypeAny, {
35
+ type: "BUTTONS";
36
+ buttons: {
37
+ type: "QUICK_REPLY";
38
+ text: string;
39
+ }[];
40
+ }, {
41
+ type: "BUTTONS";
42
+ buttons: {
43
+ type: "QUICK_REPLY";
44
+ text: string;
45
+ }[];
46
+ }>]>, "many">;
47
+ category: z.ZodNativeEnum<{
48
+ MARKETING: "MARKETING";
49
+ UTILITY: "UTILITY";
50
+ AUTHENTICATION: "AUTHENTICATION";
51
+ }>;
52
+ allow_category_change: z.ZodBoolean;
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.ZodString;
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 {};
@@ -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.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
@@ -0,0 +1,245 @@
1
+ import z from 'zod';
2
+ export declare const findTemplateByIdResponseSchema: z.ZodObject<{
3
+ template: z.ZodObject<Pick<{
4
+ name: z.ZodString;
5
+ content: z.ZodString;
6
+ buttons: z.ZodArray<z.ZodString, "many">;
7
+ id: z.ZodString;
8
+ status: z.ZodNativeEnum<{
9
+ APRROVED: "APRROVED";
10
+ PENDING: "PENDING";
11
+ REJECTED: "REJECTED";
12
+ }>;
13
+ language: z.ZodString;
14
+ components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15
+ type: z.ZodLiteral<"BODY">;
16
+ text: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ type: "BODY";
19
+ text: string;
20
+ }, {
21
+ type: "BODY";
22
+ text: string;
23
+ }>, z.ZodObject<{
24
+ type: z.ZodLiteral<"BUTTONS">;
25
+ buttons: z.ZodArray<z.ZodObject<{
26
+ text: z.ZodString;
27
+ type: z.ZodLiteral<"QUICK_REPLY">;
28
+ }, "strip", z.ZodTypeAny, {
29
+ type: "QUICK_REPLY";
30
+ text: string;
31
+ }, {
32
+ type: "QUICK_REPLY";
33
+ text: string;
34
+ }>, "many">;
35
+ }, "strip", z.ZodTypeAny, {
36
+ type: "BUTTONS";
37
+ buttons: {
38
+ type: "QUICK_REPLY";
39
+ text: string;
40
+ }[];
41
+ }, {
42
+ type: "BUTTONS";
43
+ buttons: {
44
+ type: "QUICK_REPLY";
45
+ text: string;
46
+ }[];
47
+ }>]>, "many">;
48
+ category: z.ZodNativeEnum<{
49
+ MARKETING: "MARKETING";
50
+ UTILITY: "UTILITY";
51
+ AUTHENTICATION: "AUTHENTICATION";
52
+ }>;
53
+ allow_category_change: z.ZodBoolean;
54
+ }, "id" | "name" | "status" | "category" | "language" | "components">, "strip", z.ZodTypeAny, {
55
+ id: string;
56
+ name: string;
57
+ status: "APRROVED" | "PENDING" | "REJECTED";
58
+ category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
59
+ language: string;
60
+ components: ({
61
+ type: "BUTTONS";
62
+ buttons: {
63
+ type: "QUICK_REPLY";
64
+ text: string;
65
+ }[];
66
+ } | {
67
+ type: "BODY";
68
+ text: string;
69
+ })[];
70
+ }, {
71
+ id: string;
72
+ name: string;
73
+ status: "APRROVED" | "PENDING" | "REJECTED";
74
+ category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
75
+ language: string;
76
+ components: ({
77
+ type: "BUTTONS";
78
+ buttons: {
79
+ type: "QUICK_REPLY";
80
+ text: string;
81
+ }[];
82
+ } | {
83
+ type: "BODY";
84
+ text: string;
85
+ })[];
86
+ }>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ template: {
89
+ id: string;
90
+ name: string;
91
+ status: "APRROVED" | "PENDING" | "REJECTED";
92
+ category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
93
+ language: string;
94
+ components: ({
95
+ type: "BUTTONS";
96
+ buttons: {
97
+ type: "QUICK_REPLY";
98
+ text: string;
99
+ }[];
100
+ } | {
101
+ type: "BODY";
102
+ text: string;
103
+ })[];
104
+ };
105
+ }, {
106
+ template: {
107
+ id: string;
108
+ name: string;
109
+ status: "APRROVED" | "PENDING" | "REJECTED";
110
+ category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
111
+ language: string;
112
+ components: ({
113
+ type: "BUTTONS";
114
+ buttons: {
115
+ type: "QUICK_REPLY";
116
+ text: string;
117
+ }[];
118
+ } | {
119
+ type: "BODY";
120
+ text: string;
121
+ })[];
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.ZodString;
128
+ status: z.ZodNativeEnum<{
129
+ APRROVED: "APRROVED";
130
+ PENDING: "PENDING";
131
+ REJECTED: "REJECTED";
132
+ }>;
133
+ category: z.ZodNativeEnum<{
134
+ MARKETING: "MARKETING";
135
+ UTILITY: "UTILITY";
136
+ AUTHENTICATION: "AUTHENTICATION";
137
+ }>;
138
+ language: z.ZodString;
139
+ components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
140
+ type: z.ZodLiteral<"BODY">;
141
+ text: z.ZodString;
142
+ }, "strip", z.ZodTypeAny, {
143
+ type: "BODY";
144
+ text: string;
145
+ }, {
146
+ type: "BODY";
147
+ text: string;
148
+ }>, z.ZodObject<{
149
+ type: z.ZodLiteral<"BUTTONS">;
150
+ buttons: z.ZodArray<z.ZodObject<{
151
+ text: z.ZodString;
152
+ type: z.ZodLiteral<"QUICK_REPLY">;
153
+ }, "strip", z.ZodTypeAny, {
154
+ type: "QUICK_REPLY";
155
+ text: string;
156
+ }, {
157
+ type: "QUICK_REPLY";
158
+ text: string;
159
+ }>, "many">;
160
+ }, "strip", z.ZodTypeAny, {
161
+ type: "BUTTONS";
162
+ buttons: {
163
+ type: "QUICK_REPLY";
164
+ text: string;
165
+ }[];
166
+ }, {
167
+ type: "BUTTONS";
168
+ buttons: {
169
+ type: "QUICK_REPLY";
170
+ text: string;
171
+ }[];
172
+ }>]>, "many">;
173
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
174
+ id: string;
175
+ name: string;
176
+ status: "APRROVED" | "PENDING" | "REJECTED";
177
+ category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
178
+ language: string;
179
+ components: ({
180
+ type: "BUTTONS";
181
+ buttons: {
182
+ type: "QUICK_REPLY";
183
+ text: string;
184
+ }[];
185
+ } | {
186
+ type: "BODY";
187
+ text: string;
188
+ })[];
189
+ }, {
190
+ id: string;
191
+ name: string;
192
+ status: "APRROVED" | "PENDING" | "REJECTED";
193
+ category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
194
+ language: string;
195
+ components: ({
196
+ type: "BUTTONS";
197
+ buttons: {
198
+ type: "QUICK_REPLY";
199
+ text: string;
200
+ }[];
201
+ } | {
202
+ type: "BODY";
203
+ text: string;
204
+ })[];
205
+ }>;
206
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
207
+ template: {
208
+ id: string;
209
+ name: string;
210
+ status: "APRROVED" | "PENDING" | "REJECTED";
211
+ category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
212
+ language: string;
213
+ components: ({
214
+ type: "BUTTONS";
215
+ buttons: {
216
+ type: "QUICK_REPLY";
217
+ text: string;
218
+ }[];
219
+ } | {
220
+ type: "BODY";
221
+ text: string;
222
+ })[];
223
+ };
224
+ }, {
225
+ template: {
226
+ id: string;
227
+ name: string;
228
+ status: "APRROVED" | "PENDING" | "REJECTED";
229
+ category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
230
+ language: string;
231
+ components: ({
232
+ type: "BUTTONS";
233
+ buttons: {
234
+ type: "QUICK_REPLY";
235
+ text: string;
236
+ }[];
237
+ } | {
238
+ type: "BODY";
239
+ text: string;
240
+ })[];
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
@@ -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.ZodString;
5
+ content: z.ZodString;
6
+ buttons: z.ZodArray<z.ZodString, "many">;
7
+ id: z.ZodString;
8
+ status: z.ZodNativeEnum<{
9
+ APRROVED: "APRROVED";
10
+ PENDING: "PENDING";
11
+ REJECTED: "REJECTED";
12
+ }>;
13
+ language: z.ZodString;
14
+ components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15
+ type: z.ZodLiteral<"BODY">;
16
+ text: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ type: "BODY";
19
+ text: string;
20
+ }, {
21
+ type: "BODY";
22
+ text: string;
23
+ }>, z.ZodObject<{
24
+ type: z.ZodLiteral<"BUTTONS">;
25
+ buttons: z.ZodArray<z.ZodObject<{
26
+ text: z.ZodString;
27
+ type: z.ZodLiteral<"QUICK_REPLY">;
28
+ }, "strip", z.ZodTypeAny, {
29
+ type: "QUICK_REPLY";
30
+ text: string;
31
+ }, {
32
+ type: "QUICK_REPLY";
33
+ text: string;
34
+ }>, "many">;
35
+ }, "strip", z.ZodTypeAny, {
36
+ type: "BUTTONS";
37
+ buttons: {
38
+ type: "QUICK_REPLY";
39
+ text: string;
40
+ }[];
41
+ }, {
42
+ type: "BUTTONS";
43
+ buttons: {
44
+ type: "QUICK_REPLY";
45
+ text: string;
46
+ }[];
47
+ }>]>, "many">;
48
+ category: z.ZodNativeEnum<{
49
+ MARKETING: "MARKETING";
50
+ UTILITY: "UTILITY";
51
+ AUTHENTICATION: "AUTHENTICATION";
52
+ }>;
53
+ allow_category_change: z.ZodBoolean;
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.ZodString;
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,154 @@
1
+ import z from 'zod';
2
+ declare const buttonsSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"BUTTONS">;
4
+ buttons: z.ZodArray<z.ZodObject<{
5
+ text: z.ZodString;
6
+ type: z.ZodLiteral<"QUICK_REPLY">;
7
+ }, "strip", z.ZodTypeAny, {
8
+ type: "QUICK_REPLY";
9
+ text: string;
10
+ }, {
11
+ type: "QUICK_REPLY";
12
+ text: string;
13
+ }>, "many">;
14
+ }, "strip", z.ZodTypeAny, {
15
+ type: "BUTTONS";
16
+ buttons: {
17
+ type: "QUICK_REPLY";
18
+ text: string;
19
+ }[];
20
+ }, {
21
+ type: "BUTTONS";
22
+ buttons: {
23
+ type: "QUICK_REPLY";
24
+ text: string;
25
+ }[];
26
+ }>;
27
+ declare const componentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
28
+ type: z.ZodLiteral<"BODY">;
29
+ text: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ type: "BODY";
32
+ text: string;
33
+ }, {
34
+ type: "BODY";
35
+ text: string;
36
+ }>, z.ZodObject<{
37
+ type: z.ZodLiteral<"BUTTONS">;
38
+ buttons: z.ZodArray<z.ZodObject<{
39
+ text: z.ZodString;
40
+ type: z.ZodLiteral<"QUICK_REPLY">;
41
+ }, "strip", z.ZodTypeAny, {
42
+ type: "QUICK_REPLY";
43
+ text: string;
44
+ }, {
45
+ type: "QUICK_REPLY";
46
+ text: string;
47
+ }>, "many">;
48
+ }, "strip", z.ZodTypeAny, {
49
+ type: "BUTTONS";
50
+ buttons: {
51
+ type: "QUICK_REPLY";
52
+ text: string;
53
+ }[];
54
+ }, {
55
+ type: "BUTTONS";
56
+ buttons: {
57
+ type: "QUICK_REPLY";
58
+ text: string;
59
+ }[];
60
+ }>]>;
61
+ export declare const templateSchema: z.ZodObject<{
62
+ name: z.ZodString;
63
+ content: z.ZodString;
64
+ buttons: z.ZodArray<z.ZodString, "many">;
65
+ id: z.ZodString;
66
+ status: z.ZodNativeEnum<{
67
+ APRROVED: "APRROVED";
68
+ PENDING: "PENDING";
69
+ REJECTED: "REJECTED";
70
+ }>;
71
+ language: z.ZodString;
72
+ components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
73
+ type: z.ZodLiteral<"BODY">;
74
+ text: z.ZodString;
75
+ }, "strip", z.ZodTypeAny, {
76
+ type: "BODY";
77
+ text: string;
78
+ }, {
79
+ type: "BODY";
80
+ text: string;
81
+ }>, z.ZodObject<{
82
+ type: z.ZodLiteral<"BUTTONS">;
83
+ buttons: z.ZodArray<z.ZodObject<{
84
+ text: z.ZodString;
85
+ type: z.ZodLiteral<"QUICK_REPLY">;
86
+ }, "strip", z.ZodTypeAny, {
87
+ type: "QUICK_REPLY";
88
+ text: string;
89
+ }, {
90
+ type: "QUICK_REPLY";
91
+ text: string;
92
+ }>, "many">;
93
+ }, "strip", z.ZodTypeAny, {
94
+ type: "BUTTONS";
95
+ buttons: {
96
+ type: "QUICK_REPLY";
97
+ text: string;
98
+ }[];
99
+ }, {
100
+ type: "BUTTONS";
101
+ buttons: {
102
+ type: "QUICK_REPLY";
103
+ text: string;
104
+ }[];
105
+ }>]>, "many">;
106
+ category: z.ZodNativeEnum<{
107
+ MARKETING: "MARKETING";
108
+ UTILITY: "UTILITY";
109
+ AUTHENTICATION: "AUTHENTICATION";
110
+ }>;
111
+ allow_category_change: z.ZodBoolean;
112
+ }, "strip", z.ZodTypeAny, {
113
+ id: string;
114
+ name: string;
115
+ content: string;
116
+ buttons: string[];
117
+ status: "APRROVED" | "PENDING" | "REJECTED";
118
+ category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
119
+ language: string;
120
+ components: ({
121
+ type: "BUTTONS";
122
+ buttons: {
123
+ type: "QUICK_REPLY";
124
+ text: string;
125
+ }[];
126
+ } | {
127
+ type: "BODY";
128
+ text: string;
129
+ })[];
130
+ allow_category_change: boolean;
131
+ }, {
132
+ id: string;
133
+ name: string;
134
+ content: string;
135
+ buttons: string[];
136
+ status: "APRROVED" | "PENDING" | "REJECTED";
137
+ category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
138
+ language: string;
139
+ components: ({
140
+ type: "BUTTONS";
141
+ buttons: {
142
+ type: "QUICK_REPLY";
143
+ text: string;
144
+ }[];
145
+ } | {
146
+ type: "BODY";
147
+ text: string;
148
+ })[];
149
+ allow_category_change: boolean;
150
+ }>;
151
+ export type Buttons = z.infer<typeof buttonsSchema>;
152
+ export type TemplateType = z.infer<typeof templateSchema>;
153
+ export type Components = z.infer<typeof componentSchema>;
154
+ export {};
@@ -0,0 +1,58 @@
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 types_1 = require("../../../types");
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
+ content: zod_1.default
37
+ .string()
38
+ .max(768, {
39
+ message: (0, translate_1.translate)('model.template.content.max'),
40
+ })
41
+ .min(1, {
42
+ message: (0, translate_1.translate)('model.template.content.min'),
43
+ }),
44
+ buttons: zod_1.default
45
+ .array(zod_1.default.string().max(25, {
46
+ message: (0, translate_1.translate)('model.template.buttons.max-length'),
47
+ }))
48
+ .max(10, {
49
+ message: (0, translate_1.translate)('model.template.buttons.max'),
50
+ }),
51
+ id: zod_1.default.string(),
52
+ status: zod_1.default.nativeEnum(types_1.TemplateStatus),
53
+ language: zod_1.default.string(),
54
+ components: zod_1.default.array(componentSchema),
55
+ category: zod_1.default.nativeEnum(types_1.TemplateCategory),
56
+ allow_category_change: zod_1.default.boolean(),
57
+ });
58
+ //# sourceMappingURL=template.dto.js.map
@@ -1 +1,5 @@
1
+ export * from './dto/create-template.dto';
2
+ export * from './dto/find-template-by-id.dto';
3
+ export * from './dto/find-templates.dto';
1
4
  export * from './dto/message.dto';
5
+ export * from './dto/template.dto';
@@ -14,5 +14,9 @@ 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/find-template-by-id.dto"), exports);
19
+ __exportStar(require("./dto/find-templates.dto"), exports);
17
20
  __exportStar(require("./dto/message.dto"), exports);
21
+ __exportStar(require("./dto/template.dto"), exports);
18
22
  //# sourceMappingURL=exports.js.map
@@ -735,6 +735,54 @@ export interface paths {
735
735
  patch?: never;
736
736
  trace?: never;
737
737
  };
738
+ "/message/create-template": {
739
+ parameters: {
740
+ query?: never;
741
+ header?: never;
742
+ path?: never;
743
+ cookie?: never;
744
+ };
745
+ get?: never;
746
+ put?: never;
747
+ post: operations["MessageController_createTemplate"];
748
+ delete?: never;
749
+ options?: never;
750
+ head?: never;
751
+ patch?: never;
752
+ trace?: never;
753
+ };
754
+ "/message/templates": {
755
+ parameters: {
756
+ query?: never;
757
+ header?: never;
758
+ path?: never;
759
+ cookie?: never;
760
+ };
761
+ get: operations["MessageController_findTemplates"];
762
+ put?: never;
763
+ post?: never;
764
+ delete?: never;
765
+ options?: never;
766
+ head?: never;
767
+ patch?: never;
768
+ trace?: never;
769
+ };
770
+ "/message/template/{id}": {
771
+ parameters: {
772
+ query?: never;
773
+ header?: never;
774
+ path?: never;
775
+ cookie?: never;
776
+ };
777
+ get: operations["MessageController_findTemplateById"];
778
+ put?: never;
779
+ post?: never;
780
+ delete?: never;
781
+ options?: never;
782
+ head?: never;
783
+ patch?: never;
784
+ trace?: never;
785
+ };
738
786
  }
739
787
  export type webhooks = Record<string, never>;
740
788
  export interface components {
@@ -1845,6 +1893,20 @@ export interface components {
1845
1893
  password: string;
1846
1894
  };
1847
1895
  Buffer: Record<string, never>;
1896
+ CreateTemplateDto: {
1897
+ name: string;
1898
+ content: string;
1899
+ buttons: string[];
1900
+ };
1901
+ CreateTemplateResponseDto: {
1902
+ message: string;
1903
+ };
1904
+ FindTemplatesResponseDto: {
1905
+ templates: unknown[];
1906
+ };
1907
+ FindTemplateByIdResponseDto: {
1908
+ template: unknown;
1909
+ };
1848
1910
  };
1849
1911
  responses: never;
1850
1912
  parameters: never;
@@ -3344,4 +3406,67 @@ export interface operations {
3344
3406
  };
3345
3407
  };
3346
3408
  };
3409
+ MessageController_createTemplate: {
3410
+ parameters: {
3411
+ query?: never;
3412
+ header?: never;
3413
+ path?: never;
3414
+ cookie?: never;
3415
+ };
3416
+ requestBody: {
3417
+ content: {
3418
+ "application/json": components["schemas"]["CreateTemplateDto"];
3419
+ };
3420
+ };
3421
+ responses: {
3422
+ 201: {
3423
+ headers: {
3424
+ [name: string]: unknown;
3425
+ };
3426
+ content: {
3427
+ "application/json": components["schemas"]["CreateTemplateResponseDto"];
3428
+ };
3429
+ };
3430
+ };
3431
+ };
3432
+ MessageController_findTemplates: {
3433
+ parameters: {
3434
+ query?: never;
3435
+ header?: never;
3436
+ path?: never;
3437
+ cookie?: never;
3438
+ };
3439
+ requestBody?: never;
3440
+ responses: {
3441
+ 200: {
3442
+ headers: {
3443
+ [name: string]: unknown;
3444
+ };
3445
+ content: {
3446
+ "application/json": components["schemas"]["FindTemplatesResponseDto"];
3447
+ };
3448
+ };
3449
+ };
3450
+ };
3451
+ MessageController_findTemplateById: {
3452
+ parameters: {
3453
+ query?: never;
3454
+ header?: never;
3455
+ path: {
3456
+ id: string;
3457
+ };
3458
+ cookie?: never;
3459
+ };
3460
+ requestBody?: never;
3461
+ responses: {
3462
+ 200: {
3463
+ headers: {
3464
+ [name: string]: unknown;
3465
+ };
3466
+ content: {
3467
+ "application/json": components["schemas"]["FindTemplateByIdResponseDto"];
3468
+ };
3469
+ };
3470
+ };
3471
+ };
3347
3472
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.22.0-EXPO-251-EB-Whatsapp.1",
3
+ "version": "0.22.0-EXPO-251-EB-Whatsapp.2",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,