expo-backend-types 0.5.0-EXPO-283-EB-Respuesta-Enlatada.10 → 0.5.0-EXPO-286-EB-Location.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/dist/src/comment/dto/comment.dto.d.ts +3 -3
  2. package/dist/src/comment/dto/create-comment.dto.d.ts +3 -3
  3. package/dist/src/comment/dto/get-by-profile-comment.dto.d.ts +5 -5
  4. package/dist/src/comment/dto/toggle-solve-comment.dto.d.ts +3 -3
  5. package/dist/src/exports.d.ts +1 -1
  6. package/dist/src/exports.js +1 -1
  7. package/dist/src/i18n/es.d.ts +19 -20
  8. package/dist/src/i18n/es.js +19 -20
  9. package/dist/src/i18n/es.js.map +1 -1
  10. package/dist/src/location/dto/arg-city.dto.d.ts +130 -0
  11. package/dist/src/location/dto/arg-city.dto.js +33 -0
  12. package/dist/src/location/dto/find-all-countries.dto.d.ts +48 -0
  13. package/dist/src/location/dto/find-all-countries.dto.js +18 -0
  14. package/dist/src/location/dto/find-all-location.dto.d.ts +192 -0
  15. package/dist/src/location/dto/find-all-location.dto.js +32 -0
  16. package/dist/src/location/dto/find-cities-by-province.dto.d.ts +141 -0
  17. package/dist/src/location/dto/find-cities-by-province.dto.js +20 -0
  18. package/dist/src/location/dto/find-provinces.dto.d.ts +18 -0
  19. package/dist/src/location/dto/find-provinces.dto.js +15 -0
  20. package/dist/src/location/dto/location.dto.d.ts +29 -0
  21. package/dist/src/location/dto/location.dto.js +35 -0
  22. package/dist/src/location/dto/states-by-country.dto.d.ts +88 -0
  23. package/dist/src/location/dto/states-by-country.dto.js +22 -0
  24. package/dist/src/location/exports.d.ts +7 -0
  25. package/dist/src/{cannedResponse → location}/exports.js +7 -5
  26. package/dist/src/profile/dto/profile.dto.d.ts +6 -12
  27. package/dist/src/profile/dto/profile.dto.js +2 -4
  28. package/dist/src/shared/dto-modification/zod-without-dates.d.ts +2 -2
  29. package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
  30. package/dist/src/tag/dto/massive-allocation.dto.d.ts +30 -50
  31. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +30 -50
  32. package/dist/types/prisma-schema/edge.js +6 -7
  33. package/dist/types/prisma-schema/index-browser.js +3 -4
  34. package/dist/types/prisma-schema/index.d.ts +113 -242
  35. package/dist/types/prisma-schema/index.js +6 -7
  36. package/dist/types/prisma-schema/package.json +1 -1
  37. package/dist/types/prisma-schema/schema.prisma +5 -7
  38. package/dist/types/prisma-schema/wasm.js +3 -4
  39. package/dist/types/schema.d.ts +101 -80
  40. package/package.json +2 -4
  41. package/dist/src/cannedResponse/dto/cannedResponse.dto.d.ts +0 -42
  42. package/dist/src/cannedResponse/dto/cannedResponse.dto.js +0 -23
  43. package/dist/src/cannedResponse/dto/create-cannedResponse.dto.d.ts +0 -66
  44. package/dist/src/cannedResponse/dto/create-cannedResponse.dto.js +0 -17
  45. package/dist/src/cannedResponse/dto/delete-cannedResponse.dto.d.ts +0 -41
  46. package/dist/src/cannedResponse/dto/delete-cannedResponse.dto.js +0 -10
  47. package/dist/src/cannedResponse/dto/get-all-cannedResponse.dto.d.ts +0 -78
  48. package/dist/src/cannedResponse/dto/get-all-cannedResponse.dto.js +0 -16
  49. package/dist/src/cannedResponse/dto/update-cannedResponse.dto.d.ts +0 -66
  50. package/dist/src/cannedResponse/dto/update-cannedResponse.dto.js +0 -17
  51. package/dist/src/cannedResponse/exports.d.ts +0 -5
@@ -287,30 +287,30 @@ export interface paths {
287
287
  patch: operations["CommentController_toggleSolveComment"];
288
288
  trace?: never;
289
289
  };
290
- "/cannedresponse/create": {
290
+ "/location/all": {
291
291
  parameters: {
292
292
  query?: never;
293
293
  header?: never;
294
294
  path?: never;
295
295
  cookie?: never;
296
296
  };
297
- get?: never;
297
+ get: operations["LocationController_findAll"];
298
298
  put?: never;
299
- post: operations["CannedResponseController_createCannedResponse"];
299
+ post?: never;
300
300
  delete?: never;
301
301
  options?: never;
302
302
  head?: never;
303
303
  patch?: never;
304
304
  trace?: never;
305
305
  };
306
- "/cannedresponse/all": {
306
+ "/location/provinces": {
307
307
  parameters: {
308
308
  query?: never;
309
309
  header?: never;
310
310
  path?: never;
311
311
  cookie?: never;
312
312
  };
313
- get: operations["CannedResponseController_getAllCannedResponses"];
313
+ get: operations["LocationController_findProvinces"];
314
314
  put?: never;
315
315
  post?: never;
316
316
  delete?: never;
@@ -319,33 +319,49 @@ export interface paths {
319
319
  patch?: never;
320
320
  trace?: never;
321
321
  };
322
- "/cannedresponse/update/{id}": {
322
+ "/location/find-cities-by-province/{province}": {
323
323
  parameters: {
324
324
  query?: never;
325
325
  header?: never;
326
326
  path?: never;
327
327
  cookie?: never;
328
328
  };
329
- get?: never;
329
+ get: operations["LocationController_findArgCityByProvince"];
330
330
  put?: never;
331
331
  post?: never;
332
332
  delete?: never;
333
333
  options?: never;
334
334
  head?: never;
335
- patch: operations["CannedResponseController_updateCannedResponse"];
335
+ patch?: never;
336
336
  trace?: never;
337
337
  };
338
- "/cannedresponse/delete/{id}": {
338
+ "/location/all-countries": {
339
339
  parameters: {
340
340
  query?: never;
341
341
  header?: never;
342
342
  path?: never;
343
343
  cookie?: never;
344
344
  };
345
- get?: never;
345
+ get: operations["LocationController_findAllCountries"];
346
+ put?: never;
347
+ post?: never;
348
+ delete?: never;
349
+ options?: never;
350
+ head?: never;
351
+ patch?: never;
352
+ trace?: never;
353
+ };
354
+ "/location/states-by-country/{countryCode}": {
355
+ parameters: {
356
+ query?: never;
357
+ header?: never;
358
+ path?: never;
359
+ cookie?: never;
360
+ };
361
+ get: operations["LocationController_findStatesByCountry"];
346
362
  put?: never;
347
363
  post?: never;
348
- delete: operations["CannedResponseController_deleteCannedResponse"];
364
+ delete?: never;
349
365
  options?: never;
350
366
  head?: never;
351
367
  patch?: never;
@@ -486,10 +502,8 @@ export interface components {
486
502
  mail: string | null;
487
503
  dni: string | null;
488
504
  alternativeNames: string[] | null;
489
- birthLongitude: number | null;
490
- birthLatitude: number | null;
491
- residenceLongitude: number | null;
492
- residenceLatitude: number | null;
505
+ birthLocationId: string | null;
506
+ residenceLocationId: string | null;
493
507
  isInTrash: boolean;
494
508
  movedToTrashDate: string | null;
495
509
  created_at: string;
@@ -515,10 +529,8 @@ export interface components {
515
529
  mail: string | null;
516
530
  dni: string | null;
517
531
  alternativeNames: string[] | null;
518
- birthLongitude: number | null;
519
- birthLatitude: number | null;
520
- residenceLongitude: number | null;
521
- residenceLatitude: number | null;
532
+ birthLocationId: string | null;
533
+ residenceLocationId: string | null;
522
534
  isInTrash: boolean;
523
535
  movedToTrashDate: string | null;
524
536
  created_at: string;
@@ -735,34 +747,52 @@ export interface components {
735
747
  created_at: string;
736
748
  updated_at: string;
737
749
  };
738
- CreateCannedResponseDto: {
739
- name: string;
740
- content: string;
750
+ FindAllLocationResponseDto: {
751
+ birthLocations: {
752
+ city: string;
753
+ longitude: number;
754
+ latitude: number;
755
+ _count: {
756
+ birthProfiles: number;
757
+ };
758
+ }[];
759
+ residenceLocations: {
760
+ city: string;
761
+ longitude: number;
762
+ latitude: number;
763
+ _count: {
764
+ residenceProfiles: number;
765
+ };
766
+ }[];
741
767
  };
742
- CreateCannedResponseResponseDto: {
743
- id: string;
744
- name: string;
745
- content: string;
746
- created_at: string;
747
- updated_at: string;
768
+ FindProvincesResponseDto: {
769
+ provinces: string[];
748
770
  };
749
- UpdateCannedResponseDto: {
750
- name: string;
751
- content: string;
771
+ FindCitiesByProvinceLocationResponseDto: {
772
+ cities: {
773
+ id: string;
774
+ name: string;
775
+ centroid: {
776
+ lon: number;
777
+ lat: number;
778
+ };
779
+ }[];
752
780
  };
753
- UpdateCannedResponseResponseDto: {
754
- id: string;
755
- name: string;
756
- content: string;
757
- created_at: string;
758
- updated_at: string;
781
+ FindAllCountriesResponseDto: {
782
+ countries: {
783
+ name: string;
784
+ isoCode: string;
785
+ }[];
759
786
  };
760
- DeleteCannedResponseResponseDto: {
761
- id: string;
762
- name: string;
763
- content: string;
764
- created_at: string;
765
- updated_at: string;
787
+ FindAllStatesByCountryResponseDto: {
788
+ states: {
789
+ name: string;
790
+ isoCode: string;
791
+ countryCode: string;
792
+ countryName: string;
793
+ latitude?: string | null;
794
+ longitude?: string | null;
795
+ }[];
766
796
  };
767
797
  };
768
798
  responses: never;
@@ -1302,9 +1332,7 @@ export interface operations {
1302
1332
  parameters: {
1303
1333
  query?: never;
1304
1334
  header?: never;
1305
- path: {
1306
- id: string;
1307
- };
1335
+ path?: never;
1308
1336
  cookie?: never;
1309
1337
  };
1310
1338
  requestBody?: never;
@@ -1331,9 +1359,7 @@ export interface operations {
1331
1359
  parameters: {
1332
1360
  query?: never;
1333
1361
  header?: never;
1334
- path: {
1335
- id: string;
1336
- };
1362
+ path?: never;
1337
1363
  cookie?: never;
1338
1364
  };
1339
1365
  requestBody?: never;
@@ -1364,38 +1390,26 @@ export interface operations {
1364
1390
  };
1365
1391
  };
1366
1392
  };
1367
- CannedResponseController_createCannedResponse: {
1393
+ LocationController_findAll: {
1368
1394
  parameters: {
1369
1395
  query?: never;
1370
1396
  header?: never;
1371
1397
  path?: never;
1372
1398
  cookie?: never;
1373
1399
  };
1374
- requestBody: {
1375
- content: {
1376
- "application/json": components["schemas"]["CreateCannedResponseDto"];
1377
- };
1378
- };
1400
+ requestBody?: never;
1379
1401
  responses: {
1380
- 201: {
1381
- headers: {
1382
- [name: string]: unknown;
1383
- };
1384
- content: {
1385
- "application/json": components["schemas"]["CreateCannedResponseResponseDto"];
1386
- };
1387
- };
1388
- 409: {
1402
+ 200: {
1389
1403
  headers: {
1390
1404
  [name: string]: unknown;
1391
1405
  };
1392
1406
  content: {
1393
- "application/json": components["schemas"]["ErrorDto"];
1407
+ "application/json": components["schemas"]["FindAllLocationResponseDto"];
1394
1408
  };
1395
1409
  };
1396
1410
  };
1397
1411
  };
1398
- CannedResponseController_getAllCannedResponses: {
1412
+ LocationController_findProvinces: {
1399
1413
  parameters: {
1400
1414
  query?: never;
1401
1415
  header?: never;
@@ -1409,50 +1423,57 @@ export interface operations {
1409
1423
  [name: string]: unknown;
1410
1424
  };
1411
1425
  content: {
1412
- "application/json": components["schemas"]["CreateCannedResponseResponseDto"];
1426
+ "application/json": components["schemas"]["FindProvincesResponseDto"];
1413
1427
  };
1414
1428
  };
1415
1429
  };
1416
1430
  };
1417
- CannedResponseController_updateCannedResponse: {
1431
+ LocationController_findArgCityByProvince: {
1418
1432
  parameters: {
1419
1433
  query?: never;
1420
1434
  header?: never;
1421
1435
  path: {
1422
- id: string;
1436
+ province: string;
1423
1437
  };
1424
1438
  cookie?: never;
1425
1439
  };
1426
- requestBody: {
1427
- content: {
1428
- "application/json": components["schemas"]["UpdateCannedResponseDto"];
1429
- };
1430
- };
1440
+ requestBody?: never;
1431
1441
  responses: {
1432
1442
  200: {
1433
1443
  headers: {
1434
1444
  [name: string]: unknown;
1435
1445
  };
1436
1446
  content: {
1437
- "application/json": components["schemas"]["UpdateCannedResponseResponseDto"];
1447
+ "application/json": components["schemas"]["FindCitiesByProvinceLocationResponseDto"];
1438
1448
  };
1439
1449
  };
1440
- 404: {
1450
+ };
1451
+ };
1452
+ LocationController_findAllCountries: {
1453
+ parameters: {
1454
+ query?: never;
1455
+ header?: never;
1456
+ path?: never;
1457
+ cookie?: never;
1458
+ };
1459
+ requestBody?: never;
1460
+ responses: {
1461
+ 200: {
1441
1462
  headers: {
1442
1463
  [name: string]: unknown;
1443
1464
  };
1444
1465
  content: {
1445
- "application/json": components["schemas"]["ErrorDto"];
1466
+ "application/json": components["schemas"]["FindAllCountriesResponseDto"];
1446
1467
  };
1447
1468
  };
1448
1469
  };
1449
1470
  };
1450
- CannedResponseController_deleteCannedResponse: {
1471
+ LocationController_findStatesByCountry: {
1451
1472
  parameters: {
1452
1473
  query?: never;
1453
1474
  header?: never;
1454
1475
  path: {
1455
- id: string;
1476
+ countryCode: string;
1456
1477
  };
1457
1478
  cookie?: never;
1458
1479
  };
@@ -1463,7 +1484,7 @@ export interface operations {
1463
1484
  [name: string]: unknown;
1464
1485
  };
1465
1486
  content: {
1466
- "application/json": components["schemas"]["DeleteCannedResponseResponseDto"];
1487
+ "application/json": components["schemas"]["FindAllStatesByCountryResponseDto"];
1467
1488
  };
1468
1489
  };
1469
1490
  404: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.5.0-EXPO-283-EB-Respuesta-Enlatada.10",
3
+ "version": "0.5.0-EXPO-286-EB-Location.10",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -48,6 +48,7 @@
48
48
  "bcrypt": "^5.1.1",
49
49
  "class-transformer": "^0.5.1",
50
50
  "class-validator": "^0.14.1",
51
+ "country-state-city": "^3.2.1",
51
52
  "i18n-js": "^4.4.3",
52
53
  "json-to-pretty-yaml": "^1.2.2",
53
54
  "openapi3-ts": "^4.4.0",
@@ -102,9 +103,6 @@
102
103
  "**/*.{js,ts,jsx,tsx}": [
103
104
  "prettier --write",
104
105
  "eslint --fix"
105
- ],
106
- "*.json": [
107
- "prettier --write"
108
106
  ]
109
107
  }
110
108
  }
@@ -1,42 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const cannedResponseSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- name: z.ZodString;
5
- content: z.ZodString;
6
- created_at: z.ZodDate;
7
- updated_at: z.ZodDate;
8
- }, "strip", z.ZodTypeAny, {
9
- id: string;
10
- name: string;
11
- content: string;
12
- created_at: Date;
13
- updated_at: Date;
14
- }, {
15
- id: string;
16
- name: string;
17
- content: string;
18
- created_at: Date;
19
- updated_at: Date;
20
- }>;
21
- declare const CannedResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
22
- id: z.ZodString;
23
- name: z.ZodString;
24
- content: z.ZodString;
25
- created_at: z.ZodString;
26
- updated_at: z.ZodString;
27
- }, z.UnknownKeysParam, z.ZodTypeAny, {
28
- id: string;
29
- name: string;
30
- content: string;
31
- created_at: string;
32
- updated_at: string;
33
- }, {
34
- id: string;
35
- name: string;
36
- content: string;
37
- created_at: string;
38
- updated_at: string;
39
- }>>;
40
- export declare class CannedResponseDto extends CannedResponseDto_base {
41
- }
42
- export {};
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CannedResponseDto = exports.cannedResponseSchema = void 0;
4
- const translate_1 = require("../../i18n/translate");
5
- const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
6
- const zod_1 = require("zod");
7
- exports.cannedResponseSchema = zod_1.z.object({
8
- id: zod_1.z.string().uuid({
9
- message: (0, translate_1.translate)('model.cannedResponse.id.uuid'),
10
- }),
11
- name: zod_1.z.string().min(1, {
12
- message: (0, translate_1.translate)('model.cannedResponse.name.min'),
13
- }),
14
- content: zod_1.z.string().min(1, {
15
- message: (0, translate_1.translate)('model.cannedResponse.content.min'),
16
- }),
17
- created_at: zod_1.z.date(),
18
- updated_at: zod_1.z.date(),
19
- });
20
- class CannedResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.cannedResponseSchema) {
21
- }
22
- exports.CannedResponseDto = CannedResponseDto;
23
- //# sourceMappingURL=cannedResponse.dto.js.map
@@ -1,66 +0,0 @@
1
- export declare const createCannedResponseSchema: import("zod").ZodObject<Pick<{
2
- id: import("zod").ZodString;
3
- name: import("zod").ZodString;
4
- content: import("zod").ZodString;
5
- created_at: import("zod").ZodDate;
6
- updated_at: import("zod").ZodDate;
7
- }, "name" | "content">, "strip", import("zod").ZodTypeAny, {
8
- name: string;
9
- content: string;
10
- }, {
11
- name: string;
12
- content: string;
13
- }>;
14
- declare const CreateCannedResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
15
- name: import("zod").ZodString;
16
- content: import("zod").ZodString;
17
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
18
- name: string;
19
- content: string;
20
- }, {
21
- name: string;
22
- content: string;
23
- }>>;
24
- export declare class CreateCannedResponseDto extends CreateCannedResponseDto_base {
25
- }
26
- export declare const createCannedResponseResponseSchema: import("zod").ZodObject<{
27
- id: import("zod").ZodString;
28
- name: import("zod").ZodString;
29
- content: import("zod").ZodString;
30
- created_at: import("zod").ZodDate;
31
- updated_at: import("zod").ZodDate;
32
- }, "strip", import("zod").ZodTypeAny, {
33
- id: string;
34
- name: string;
35
- content: string;
36
- created_at: Date;
37
- updated_at: Date;
38
- }, {
39
- id: string;
40
- name: string;
41
- content: string;
42
- created_at: Date;
43
- updated_at: Date;
44
- }>;
45
- declare const CreateCannedResponseResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
46
- id: import("zod").ZodString;
47
- name: import("zod").ZodString;
48
- content: import("zod").ZodString;
49
- created_at: import("zod").ZodString;
50
- updated_at: import("zod").ZodString;
51
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
52
- id: string;
53
- name: string;
54
- content: string;
55
- created_at: string;
56
- updated_at: string;
57
- }, {
58
- id: string;
59
- name: string;
60
- content: string;
61
- created_at: string;
62
- updated_at: string;
63
- }>>;
64
- export declare class CreateCannedResponseResponseDto extends CreateCannedResponseResponseDto_base {
65
- }
66
- export {};
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateCannedResponseResponseDto = exports.createCannedResponseResponseSchema = exports.CreateCannedResponseDto = exports.createCannedResponseSchema = void 0;
4
- const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
5
- const cannedResponse_dto_1 = require("./cannedResponse.dto");
6
- exports.createCannedResponseSchema = cannedResponse_dto_1.cannedResponseSchema.pick({
7
- name: true,
8
- content: true,
9
- });
10
- class CreateCannedResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createCannedResponseSchema) {
11
- }
12
- exports.CreateCannedResponseDto = CreateCannedResponseDto;
13
- exports.createCannedResponseResponseSchema = cannedResponse_dto_1.cannedResponseSchema;
14
- class CreateCannedResponseResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createCannedResponseResponseSchema) {
15
- }
16
- exports.CreateCannedResponseResponseDto = CreateCannedResponseResponseDto;
17
- //# sourceMappingURL=create-cannedResponse.dto.js.map
@@ -1,41 +0,0 @@
1
- export declare const deleteCannedResponseResponseSchema: import("zod").ZodObject<{
2
- id: import("zod").ZodString;
3
- name: import("zod").ZodString;
4
- content: import("zod").ZodString;
5
- created_at: import("zod").ZodDate;
6
- updated_at: import("zod").ZodDate;
7
- }, "strip", import("zod").ZodTypeAny, {
8
- id: string;
9
- name: string;
10
- content: string;
11
- created_at: Date;
12
- updated_at: Date;
13
- }, {
14
- id: string;
15
- name: string;
16
- content: string;
17
- created_at: Date;
18
- updated_at: Date;
19
- }>;
20
- declare const DeleteCannedResponseResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
21
- id: import("zod").ZodString;
22
- name: import("zod").ZodString;
23
- content: import("zod").ZodString;
24
- created_at: import("zod").ZodString;
25
- updated_at: import("zod").ZodString;
26
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
27
- id: string;
28
- name: string;
29
- content: string;
30
- created_at: string;
31
- updated_at: string;
32
- }, {
33
- id: string;
34
- name: string;
35
- content: string;
36
- created_at: string;
37
- updated_at: string;
38
- }>>;
39
- export declare class DeleteCannedResponseResponseDto extends DeleteCannedResponseResponseDto_base {
40
- }
41
- export {};
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteCannedResponseResponseDto = exports.deleteCannedResponseResponseSchema = void 0;
4
- const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
5
- const cannedResponse_dto_1 = require("./cannedResponse.dto");
6
- exports.deleteCannedResponseResponseSchema = cannedResponse_dto_1.cannedResponseSchema;
7
- class DeleteCannedResponseResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteCannedResponseResponseSchema) {
8
- }
9
- exports.DeleteCannedResponseResponseDto = DeleteCannedResponseResponseDto;
10
- //# sourceMappingURL=delete-cannedResponse.dto.js.map
@@ -1,78 +0,0 @@
1
- import z from 'zod';
2
- export declare const getAllCannedResponseSchema: z.ZodObject<{
3
- cannedResponses: z.ZodArray<z.ZodObject<{
4
- id: z.ZodString;
5
- name: z.ZodString;
6
- content: z.ZodString;
7
- created_at: z.ZodDate;
8
- updated_at: z.ZodDate;
9
- }, "strip", z.ZodTypeAny, {
10
- id: string;
11
- name: string;
12
- content: string;
13
- created_at: Date;
14
- updated_at: Date;
15
- }, {
16
- id: string;
17
- name: string;
18
- content: string;
19
- created_at: Date;
20
- updated_at: Date;
21
- }>, "many">;
22
- }, "strip", z.ZodTypeAny, {
23
- cannedResponses: {
24
- id: string;
25
- name: string;
26
- content: string;
27
- created_at: Date;
28
- updated_at: Date;
29
- }[];
30
- }, {
31
- cannedResponses: {
32
- id: string;
33
- name: string;
34
- content: string;
35
- created_at: Date;
36
- updated_at: Date;
37
- }[];
38
- }>;
39
- declare const GetAllCannedResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
40
- cannedResponses: z.ZodArray<z.ZodObject<{
41
- id: z.ZodString;
42
- name: z.ZodString;
43
- content: z.ZodString;
44
- created_at: z.ZodString;
45
- updated_at: z.ZodString;
46
- }, z.UnknownKeysParam, z.ZodTypeAny, {
47
- id: string;
48
- name: string;
49
- content: string;
50
- created_at: string;
51
- updated_at: string;
52
- }, {
53
- id: string;
54
- name: string;
55
- content: string;
56
- created_at: string;
57
- updated_at: string;
58
- }>, "many">;
59
- }, z.UnknownKeysParam, z.ZodTypeAny, {
60
- cannedResponses: {
61
- id: string;
62
- name: string;
63
- content: string;
64
- created_at: string;
65
- updated_at: string;
66
- }[];
67
- }, {
68
- cannedResponses: {
69
- id: string;
70
- name: string;
71
- content: string;
72
- created_at: string;
73
- updated_at: string;
74
- }[];
75
- }>>;
76
- export declare class GetAllCannedResponseDto extends GetAllCannedResponseDto_base {
77
- }
78
- export {};
@@ -1,16 +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.GetAllCannedResponseDto = exports.getAllCannedResponseSchema = 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
- const cannedResponse_dto_1 = require("./cannedResponse.dto");
10
- exports.getAllCannedResponseSchema = zod_1.default.object({
11
- cannedResponses: zod_1.default.array(cannedResponse_dto_1.cannedResponseSchema),
12
- });
13
- class GetAllCannedResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.getAllCannedResponseSchema) {
14
- }
15
- exports.GetAllCannedResponseDto = GetAllCannedResponseDto;
16
- //# sourceMappingURL=get-all-cannedResponse.dto.js.map