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.
Files changed (54) hide show
  1. package/dist/src/i18n/es.d.ts +24 -51
  2. package/dist/src/i18n/es.js +24 -51
  3. package/dist/src/i18n/es.js.map +1 -1
  4. package/dist/src/image/dto/delete-image.dto.d.ts +18 -0
  5. package/dist/src/image/dto/delete-image.dto.js +12 -0
  6. package/dist/src/image/dto/image.dto.d.ts +24 -0
  7. package/dist/src/image/dto/image.dto.js +18 -0
  8. package/dist/src/image/dto/update-image.dto.d.ts +18 -0
  9. package/dist/src/image/dto/update-image.dto.js +15 -0
  10. package/dist/src/image/exports.d.ts +3 -0
  11. package/dist/src/image/exports.js +20 -0
  12. package/dist/src/location/dto/arg-city.dto.d.ts +2 -2
  13. package/dist/src/message/dto/message.dto.d.ts +16 -46
  14. package/dist/src/message/dto/message.dto.js +1 -1
  15. package/dist/src/message/exports.d.ts +0 -9
  16. package/dist/src/message/exports.js +0 -9
  17. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +36 -36
  18. package/dist/types/prisma-schema/default.d.ts +1 -1
  19. package/dist/types/prisma-schema/edge.d.ts +1 -1
  20. package/dist/types/prisma-schema/edge.js +11 -7
  21. package/dist/types/prisma-schema/index-browser.js +7 -4
  22. package/dist/types/prisma-schema/index.d.ts +803 -1034
  23. package/dist/types/prisma-schema/index.js +11 -7
  24. package/dist/types/prisma-schema/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  25. package/dist/types/prisma-schema/package.json +14 -1
  26. package/dist/types/prisma-schema/runtime/edge-esm.js +21 -18
  27. package/dist/types/prisma-schema/runtime/edge.js +21 -18
  28. package/dist/types/prisma-schema/runtime/index-browser.js +1 -1
  29. package/dist/types/prisma-schema/runtime/library.d.ts +297 -87
  30. package/dist/types/prisma-schema/runtime/library.js +64 -61
  31. package/dist/types/prisma-schema/runtime/react-native.js +31 -28
  32. package/dist/types/prisma-schema/runtime/wasm.js +22 -19
  33. package/dist/types/prisma-schema/wasm.d.ts +1 -1
  34. package/dist/types/prisma-schema/wasm.js +7 -4
  35. package/dist/types/schema.d.ts +47 -326
  36. package/package.json +5 -3
  37. package/dist/src/message/dto/create-template.dto.d.ts +0 -93
  38. package/dist/src/message/dto/create-template.dto.js +0 -24
  39. package/dist/src/message/dto/delete-template.dto.d.ts +0 -18
  40. package/dist/src/message/dto/delete-template.dto.js +0 -15
  41. package/dist/src/message/dto/find-messages-by-phone.dto.d.ts +0 -316
  42. package/dist/src/message/dto/find-messages-by-phone.dto.js +0 -24
  43. package/dist/src/message/dto/find-template-by-id.dto.d.ts +0 -245
  44. package/dist/src/message/dto/find-template-by-id.dto.js +0 -23
  45. package/dist/src/message/dto/find-templates.dto.d.ts +0 -109
  46. package/dist/src/message/dto/find-templates.dto.js +0 -20
  47. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +0 -40
  48. package/dist/src/message/dto/send-message-to-phone.dto.js +0 -23
  49. package/dist/src/message/dto/send-template-to-tags.dto.d.ts +0 -40
  50. package/dist/src/message/dto/send-template-to-tags.dto.js +0 -23
  51. package/dist/src/message/dto/template.dto.d.ts +0 -154
  52. package/dist/src/message/dto/template.dto.js +0 -63
  53. package/dist/src/message/dto/update-template.dto.d.ts +0 -88
  54. package/dist/src/message/dto/update-template.dto.js +0 -23
@@ -1 +1 @@
1
- export * from './index'
1
+ export * from "./index"
@@ -7,6 +7,7 @@ const {
7
7
  makeStrictEnum,
8
8
  Public,
9
9
  getRuntime,
10
+ skip
10
11
  } = require('./runtime/index-browser.js')
11
12
 
12
13
 
@@ -16,12 +17,12 @@ exports.Prisma = Prisma
16
17
  exports.$Enums = {}
17
18
 
18
19
  /**
19
- * Prisma Client JS version: 5.14.0
20
- * Query Engine version: e9771e62de70f79a5e1c604a2d7c8e2a0a874b48
20
+ * Prisma Client JS version: 5.22.0
21
+ * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
21
22
  */
22
23
  Prisma.prismaVersion = {
23
- client: "5.14.0",
24
- engine: "e9771e62de70f79a5e1c604a2d7c8e2a0a874b48"
24
+ client: "5.22.0",
25
+ engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
25
26
  }
26
27
 
27
28
  Prisma.PrismaClientKnownRequestError = () => {
@@ -108,6 +109,8 @@ Prisma.NullTypes = {
108
109
  AnyNull: objectEnumValues.classes.AnyNull
109
110
  }
110
111
 
112
+
113
+
111
114
  /**
112
115
  * Enums
113
116
  */
@@ -703,39 +703,7 @@ export interface paths {
703
703
  patch: operations["ProfileController_update"];
704
704
  trace?: never;
705
705
  };
706
- "/csv/download-profiles": {
707
- parameters: {
708
- query?: never;
709
- header?: never;
710
- path?: never;
711
- cookie?: never;
712
- };
713
- get: operations["CsvController_downloadProfiles"];
714
- put?: never;
715
- post?: never;
716
- delete?: never;
717
- options?: never;
718
- head?: never;
719
- patch?: never;
720
- trace?: never;
721
- };
722
- "/csv/download-all-tables": {
723
- parameters: {
724
- query?: never;
725
- header?: never;
726
- path?: never;
727
- cookie?: never;
728
- };
729
- get: operations["CsvController_downloadAllTables"];
730
- put?: never;
731
- post?: never;
732
- delete?: never;
733
- options?: never;
734
- head?: never;
735
- patch?: never;
736
- trace?: never;
737
- };
738
- "/message/create-template": {
706
+ "/image/update/{id}": {
739
707
  parameters: {
740
708
  query?: never;
741
709
  header?: never;
@@ -744,46 +712,14 @@ export interface paths {
744
712
  };
745
713
  get?: never;
746
714
  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
715
  post?: never;
780
716
  delete?: never;
781
717
  options?: never;
782
718
  head?: never;
783
- patch?: never;
719
+ patch: operations["ImageController_updateImage"];
784
720
  trace?: never;
785
721
  };
786
- "/message/template/{metaId}": {
722
+ "/image/delete/{id}": {
787
723
  parameters: {
788
724
  query?: never;
789
725
  header?: never;
@@ -793,52 +729,36 @@ export interface paths {
793
729
  get?: never;
794
730
  put?: never;
795
731
  post?: never;
796
- delete: operations["MessageController_deleteTemplate"];
797
- options?: never;
798
- head?: never;
799
- patch: operations["MessageController_updateTemplate"];
800
- trace?: never;
801
- };
802
- "/message/send-message-to-phone": {
803
- parameters: {
804
- query?: never;
805
- header?: never;
806
- path?: never;
807
- cookie?: never;
808
- };
809
- get?: never;
810
- put?: never;
811
- post: operations["MessageController_sendMessageToPhone"];
812
- delete?: never;
732
+ delete: operations["ImageController_deleteImage"];
813
733
  options?: never;
814
734
  head?: never;
815
735
  patch?: never;
816
736
  trace?: never;
817
737
  };
818
- "/message/send-template-to-tags": {
738
+ "/csv/download-profiles": {
819
739
  parameters: {
820
740
  query?: never;
821
741
  header?: never;
822
742
  path?: never;
823
743
  cookie?: never;
824
744
  };
825
- get?: never;
745
+ get: operations["CsvController_downloadProfiles"];
826
746
  put?: never;
827
- post: operations["MessageController_sendTemplateToTags"];
747
+ post?: never;
828
748
  delete?: never;
829
749
  options?: never;
830
750
  head?: never;
831
751
  patch?: never;
832
752
  trace?: never;
833
753
  };
834
- "/message/find-messages-by-phone/{phone}": {
754
+ "/csv/download-all-tables": {
835
755
  parameters: {
836
756
  query?: never;
837
757
  header?: never;
838
758
  path?: never;
839
759
  cookie?: never;
840
760
  };
841
- get: operations["MessageController_findMessagesByPhone"];
761
+ get: operations["CsvController_downloadAllTables"];
842
762
  put?: never;
843
763
  post?: never;
844
764
  delete?: never;
@@ -1646,7 +1566,7 @@ export interface components {
1646
1566
  id: string;
1647
1567
  from?: string;
1648
1568
  to?: string;
1649
- timestamp: string;
1569
+ timestamp: number;
1650
1570
  text: {
1651
1571
  body: string;
1652
1572
  };
@@ -1655,7 +1575,7 @@ export interface components {
1655
1575
  id: string;
1656
1576
  from?: string;
1657
1577
  to?: string;
1658
- timestamp: string;
1578
+ timestamp: number;
1659
1579
  templateName: string;
1660
1580
  type: "template";
1661
1581
  };
@@ -1949,6 +1869,12 @@ export interface components {
1949
1869
  };
1950
1870
  tags?: string[];
1951
1871
  };
1872
+ UpdateImageResponseDto: {
1873
+ message: string;
1874
+ };
1875
+ DeleteImageResponseDto: {
1876
+ message: string;
1877
+ };
1952
1878
  DownloadProfilesDto: {
1953
1879
  password: string;
1954
1880
  };
@@ -1957,85 +1883,6 @@ export interface components {
1957
1883
  password: string;
1958
1884
  };
1959
1885
  Buffer: Record<string, never>;
1960
- CreateTemplateDto: {
1961
- name: string;
1962
- content: string;
1963
- buttons: string[];
1964
- };
1965
- CreateTemplateResponseDto: {
1966
- message: string;
1967
- };
1968
- FindTemplatesResponseDto: {
1969
- templates: {
1970
- name: string;
1971
- id: string;
1972
- status: "APRROVED" | "PENDING" | "REJECTED";
1973
- }[];
1974
- };
1975
- FindTemplateByIdResponseDto: {
1976
- template: {
1977
- name: string;
1978
- language: string;
1979
- status: "APRROVED" | "PENDING" | "REJECTED";
1980
- id: string;
1981
- category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
1982
- components: ({
1983
- type: "BODY";
1984
- text: string;
1985
- } | {
1986
- type: "BUTTONS";
1987
- buttons: {
1988
- text: string;
1989
- type: "QUICK_REPLY";
1990
- }[];
1991
- })[];
1992
- };
1993
- };
1994
- UpdateTemplateDto: {
1995
- content: string;
1996
- buttons: string[];
1997
- };
1998
- DeleteTemplateResponseDto: {
1999
- success: boolean;
2000
- };
2001
- SendMessageToPhoneDto: {
2002
- phone: string;
2003
- message: string;
2004
- };
2005
- SendMessageToPhoneResponseDto: {
2006
- success: boolean;
2007
- };
2008
- SendTemplateToTagsDto: {
2009
- tags: string[];
2010
- templateName: string;
2011
- };
2012
- SendTemplateToTagsResponseDto: {
2013
- success: boolean;
2014
- };
2015
- FindMessagesByPhoneNumberResponseDto: {
2016
- inChat: boolean;
2017
- messages: {
2018
- message: {
2019
- id: string;
2020
- from?: string;
2021
- to?: string;
2022
- timestamp: string;
2023
- text: {
2024
- body: string;
2025
- };
2026
- type: "text";
2027
- } | {
2028
- id: string;
2029
- from?: string;
2030
- to?: string;
2031
- timestamp: string;
2032
- templateName: string;
2033
- type: "template";
2034
- };
2035
- created_at: string;
2036
- state: "SENT" | "RECEIVED" | "SEEN";
2037
- }[];
2038
- };
2039
1886
  };
2040
1887
  responses: never;
2041
1888
  parameters: never;
@@ -3465,58 +3312,25 @@ export interface operations {
3465
3312
  };
3466
3313
  };
3467
3314
  };
3468
- CsvController_downloadProfiles: {
3315
+ ImageController_updateImage: {
3469
3316
  parameters: {
3470
3317
  query?: never;
3471
3318
  header?: never;
3472
- path?: never;
3473
- cookie?: never;
3474
- };
3475
- requestBody: {
3476
- content: {
3477
- "application/json": components["schemas"]["DownloadProfilesDto"];
3319
+ path: {
3320
+ id: string;
3478
3321
  };
3322
+ cookie?: never;
3479
3323
  };
3324
+ requestBody?: never;
3480
3325
  responses: {
3481
- 409: {
3482
- headers: {
3483
- [name: string]: unknown;
3484
- };
3485
- content: {
3486
- "application/json": components["schemas"]["ErrorDto"];
3487
- };
3488
- };
3489
- 500: {
3490
- headers: {
3491
- [name: string]: unknown;
3492
- };
3493
- content: {
3494
- "application/json": components["schemas"]["ErrorDto"];
3495
- };
3496
- };
3497
- default: {
3326
+ 200: {
3498
3327
  headers: {
3499
3328
  [name: string]: unknown;
3500
3329
  };
3501
3330
  content: {
3502
- "application/json": components["schemas"]["StreamableFile"];
3331
+ "application/json": components["schemas"]["UpdateImageResponseDto"];
3503
3332
  };
3504
3333
  };
3505
- };
3506
- };
3507
- CsvController_downloadAllTables: {
3508
- parameters: {
3509
- query?: never;
3510
- header?: never;
3511
- path?: never;
3512
- cookie?: never;
3513
- };
3514
- requestBody: {
3515
- content: {
3516
- "application/json": components["schemas"]["DownloadAllTablesDto"];
3517
- };
3518
- };
3519
- responses: {
3520
3334
  409: {
3521
3335
  headers: {
3522
3336
  [name: string]: unknown;
@@ -3525,59 +3339,25 @@ export interface operations {
3525
3339
  "application/json": components["schemas"]["ErrorDto"];
3526
3340
  };
3527
3341
  };
3528
- default: {
3529
- headers: {
3530
- [name: string]: unknown;
3531
- };
3532
- content: {
3533
- "application/json": components["schemas"]["Buffer"];
3534
- };
3535
- };
3536
- };
3537
- };
3538
- MessageController_createTemplate: {
3539
- parameters: {
3540
- query?: never;
3541
- header?: never;
3542
- path?: never;
3543
- cookie?: never;
3544
- };
3545
- requestBody: {
3546
- content: {
3547
- "application/json": components["schemas"]["CreateTemplateDto"];
3548
- };
3549
- };
3550
- responses: {
3551
- 201: {
3342
+ 422: {
3552
3343
  headers: {
3553
3344
  [name: string]: unknown;
3554
3345
  };
3555
3346
  content: {
3556
- "application/json": components["schemas"]["CreateTemplateResponseDto"];
3347
+ "application/json": components["schemas"]["ErrorDto"];
3557
3348
  };
3558
3349
  };
3559
- };
3560
- };
3561
- MessageController_findTemplates: {
3562
- parameters: {
3563
- query?: never;
3564
- header?: never;
3565
- path?: never;
3566
- cookie?: never;
3567
- };
3568
- requestBody?: never;
3569
- responses: {
3570
- 200: {
3350
+ 500: {
3571
3351
  headers: {
3572
3352
  [name: string]: unknown;
3573
3353
  };
3574
3354
  content: {
3575
- "application/json": components["schemas"]["FindTemplatesResponseDto"];
3355
+ "application/json": components["schemas"]["ErrorDto"];
3576
3356
  };
3577
3357
  };
3578
3358
  };
3579
3359
  };
3580
- MessageController_findTemplateById: {
3360
+ ImageController_deleteImage: {
3581
3361
  parameters: {
3582
3362
  query?: never;
3583
3363
  header?: never;
@@ -3593,31 +3373,18 @@ export interface operations {
3593
3373
  [name: string]: unknown;
3594
3374
  };
3595
3375
  content: {
3596
- "application/json": components["schemas"]["FindTemplateByIdResponseDto"];
3376
+ "application/json": components["schemas"]["DeleteImageResponseDto"];
3597
3377
  };
3598
3378
  };
3599
- };
3600
- };
3601
- MessageController_deleteTemplate: {
3602
- parameters: {
3603
- query?: never;
3604
- header?: never;
3605
- path: {
3606
- metaId: string;
3607
- };
3608
- cookie?: never;
3609
- };
3610
- requestBody?: never;
3611
- responses: {
3612
- 200: {
3379
+ 404: {
3613
3380
  headers: {
3614
3381
  [name: string]: unknown;
3615
3382
  };
3616
3383
  content: {
3617
- "application/json": components["schemas"]["DeleteTemplateResponseDto"];
3384
+ "application/json": components["schemas"]["ErrorDto"];
3618
3385
  };
3619
3386
  };
3620
- 404: {
3387
+ 500: {
3621
3388
  headers: {
3622
3389
  [name: string]: unknown;
3623
3390
  };
@@ -3627,30 +3394,20 @@ export interface operations {
3627
3394
  };
3628
3395
  };
3629
3396
  };
3630
- MessageController_updateTemplate: {
3397
+ CsvController_downloadProfiles: {
3631
3398
  parameters: {
3632
3399
  query?: never;
3633
3400
  header?: never;
3634
- path: {
3635
- metaId: string;
3636
- };
3401
+ path?: never;
3637
3402
  cookie?: never;
3638
3403
  };
3639
3404
  requestBody: {
3640
3405
  content: {
3641
- "application/json": components["schemas"]["UpdateTemplateDto"];
3406
+ "application/json": components["schemas"]["DownloadProfilesDto"];
3642
3407
  };
3643
3408
  };
3644
3409
  responses: {
3645
- 200: {
3646
- headers: {
3647
- [name: string]: unknown;
3648
- };
3649
- content: {
3650
- "application/json": components["schemas"]["UpdateTemplateDto"];
3651
- };
3652
- };
3653
- 404: {
3410
+ 409: {
3654
3411
  headers: {
3655
3412
  [name: string]: unknown;
3656
3413
  };
@@ -3658,40 +3415,25 @@ export interface operations {
3658
3415
  "application/json": components["schemas"]["ErrorDto"];
3659
3416
  };
3660
3417
  };
3661
- };
3662
- };
3663
- MessageController_sendMessageToPhone: {
3664
- parameters: {
3665
- query?: never;
3666
- header?: never;
3667
- path?: never;
3668
- cookie?: never;
3669
- };
3670
- requestBody: {
3671
- content: {
3672
- "application/json": components["schemas"]["SendMessageToPhoneDto"];
3673
- };
3674
- };
3675
- responses: {
3676
- 200: {
3418
+ 500: {
3677
3419
  headers: {
3678
3420
  [name: string]: unknown;
3679
3421
  };
3680
3422
  content: {
3681
- "application/json": components["schemas"]["SendMessageToPhoneResponseDto"];
3423
+ "application/json": components["schemas"]["ErrorDto"];
3682
3424
  };
3683
3425
  };
3684
- 500: {
3426
+ default: {
3685
3427
  headers: {
3686
3428
  [name: string]: unknown;
3687
3429
  };
3688
3430
  content: {
3689
- "application/json": components["schemas"]["ErrorDto"];
3431
+ "application/json": components["schemas"]["StreamableFile"];
3690
3432
  };
3691
3433
  };
3692
3434
  };
3693
3435
  };
3694
- MessageController_sendTemplateToTags: {
3436
+ CsvController_downloadAllTables: {
3695
3437
  parameters: {
3696
3438
  query?: never;
3697
3439
  header?: never;
@@ -3700,45 +3442,24 @@ export interface operations {
3700
3442
  };
3701
3443
  requestBody: {
3702
3444
  content: {
3703
- "application/json": components["schemas"]["SendTemplateToTagsDto"];
3704
- };
3705
- };
3706
- responses: {
3707
- 200: {
3708
- headers: {
3709
- [name: string]: unknown;
3710
- };
3711
- content: {
3712
- "application/json": components["schemas"]["SendTemplateToTagsResponseDto"];
3713
- };
3714
- };
3715
- };
3716
- };
3717
- MessageController_findMessagesByPhone: {
3718
- parameters: {
3719
- query?: never;
3720
- header?: never;
3721
- path: {
3722
- phone: string;
3445
+ "application/json": components["schemas"]["DownloadAllTablesDto"];
3723
3446
  };
3724
- cookie?: never;
3725
3447
  };
3726
- requestBody?: never;
3727
3448
  responses: {
3728
- 200: {
3449
+ 409: {
3729
3450
  headers: {
3730
3451
  [name: string]: unknown;
3731
3452
  };
3732
3453
  content: {
3733
- "application/json": components["schemas"]["FindMessagesByPhoneNumberResponseDto"];
3454
+ "application/json": components["schemas"]["ErrorDto"];
3734
3455
  };
3735
3456
  };
3736
- 404: {
3457
+ default: {
3737
3458
  headers: {
3738
3459
  [name: string]: unknown;
3739
3460
  };
3740
3461
  content: {
3741
- "application/json": components["schemas"]["ErrorDto"];
3462
+ "application/json": components["schemas"]["Buffer"];
3742
3463
  };
3743
3464
  };
3744
3465
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.24.0-EXPO-251-EB-Whatsapp.1",
3
+ "version": "0.24.0-EXPO-288-EB-Imagenes.1",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -44,7 +44,7 @@
44
44
  "@nestjs/jwt": "^10.2.0",
45
45
  "@nestjs/platform-express": "^10.0.0",
46
46
  "@nestjs/swagger": "^7.3.1",
47
- "@prisma/client": "^5.14.0",
47
+ "@prisma/client": "^5.22.0",
48
48
  "bcrypt": "^5.1.1",
49
49
  "class-transformer": "^0.5.1",
50
50
  "class-validator": "^0.14.1",
@@ -54,6 +54,7 @@
54
54
  "fast-csv": "^5.0.2",
55
55
  "i18n-js": "^4.4.3",
56
56
  "json-to-pretty-yaml": "^1.2.2",
57
+ "multer": "^1.4.5-lts.1",
57
58
  "jszip": "^3.10.1",
58
59
  "openapi3-ts": "^4.4.0",
59
60
  "patch-package": "^8.0.0",
@@ -73,6 +74,7 @@
73
74
  "@types/jest": "^29.5.2",
74
75
  "@types/json-to-pretty-yaml": "^1.2.1",
75
76
  "@types/luxon": "^3.4.2",
77
+ "@types/multer": "^1.4.12",
76
78
  "@types/node": "^20.3.1",
77
79
  "@types/supertest": "^6.0.0",
78
80
  "@typescript-eslint/eslint-plugin": "^8.8.0",
@@ -88,7 +90,7 @@
88
90
  "luxon": "^3.5.0",
89
91
  "openapi-typescript": "^7.0.0-rc.0",
90
92
  "prettier": "^3.0.0",
91
- "prisma": "^5.14.0",
93
+ "prisma": "^5.22.0",
92
94
  "source-map-support": "^0.5.21",
93
95
  "supertest": "^6.3.3",
94
96
  "ts-jest": "^29.1.0",