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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. package/dist/src/i18n/es.d.ts +51 -0
  2. package/dist/src/i18n/es.js +51 -0
  3. package/dist/src/i18n/es.js.map +1 -1
  4. package/dist/src/location/dto/arg-city.dto.d.ts +2 -2
  5. package/dist/src/message/dto/create-template.dto.d.ts +93 -0
  6. package/dist/src/message/dto/create-template.dto.js +24 -0
  7. package/dist/src/message/dto/delete-template.dto.d.ts +18 -0
  8. package/dist/src/message/dto/delete-template.dto.js +15 -0
  9. package/dist/src/message/dto/find-messages-by-phone.dto.d.ts +316 -0
  10. package/dist/src/message/dto/find-messages-by-phone.dto.js +24 -0
  11. package/dist/src/message/dto/find-template-by-id.dto.d.ts +245 -0
  12. package/dist/src/message/dto/find-template-by-id.dto.js +23 -0
  13. package/dist/src/message/dto/find-templates.dto.d.ts +109 -0
  14. package/dist/src/message/dto/find-templates.dto.js +20 -0
  15. package/dist/src/message/dto/message.dto.d.ts +46 -16
  16. package/dist/src/message/dto/message.dto.js +1 -1
  17. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +40 -0
  18. package/dist/src/message/dto/send-message-to-phone.dto.js +23 -0
  19. package/dist/src/message/dto/send-template-to-tags.dto.d.ts +40 -0
  20. package/dist/src/message/dto/send-template-to-tags.dto.js +23 -0
  21. package/dist/src/message/dto/template.dto.d.ts +154 -0
  22. package/dist/src/message/dto/template.dto.js +63 -0
  23. package/dist/src/message/dto/update-template.dto.d.ts +88 -0
  24. package/dist/src/message/dto/update-template.dto.js +23 -0
  25. package/dist/src/message/exports.d.ts +9 -0
  26. package/dist/src/message/exports.js +9 -0
  27. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +36 -36
  28. package/dist/types/schema.d.ts +401 -2
  29. package/package.json +1 -1
@@ -735,6 +735,118 @@ 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
+ };
786
+ "/message/template/{metaId}": {
787
+ parameters: {
788
+ query?: never;
789
+ header?: never;
790
+ path?: never;
791
+ cookie?: never;
792
+ };
793
+ get?: never;
794
+ put?: never;
795
+ 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;
813
+ options?: never;
814
+ head?: never;
815
+ patch?: never;
816
+ trace?: never;
817
+ };
818
+ "/message/send-template-to-tags": {
819
+ parameters: {
820
+ query?: never;
821
+ header?: never;
822
+ path?: never;
823
+ cookie?: never;
824
+ };
825
+ get?: never;
826
+ put?: never;
827
+ post: operations["MessageController_sendTemplateToTags"];
828
+ delete?: never;
829
+ options?: never;
830
+ head?: never;
831
+ patch?: never;
832
+ trace?: never;
833
+ };
834
+ "/message/find-messages-by-phone/{phone}": {
835
+ parameters: {
836
+ query?: never;
837
+ header?: never;
838
+ path?: never;
839
+ cookie?: never;
840
+ };
841
+ get: operations["MessageController_findMessagesByPhone"];
842
+ put?: never;
843
+ post?: never;
844
+ delete?: never;
845
+ options?: never;
846
+ head?: never;
847
+ patch?: never;
848
+ trace?: never;
849
+ };
738
850
  }
739
851
  export type webhooks = Record<string, never>;
740
852
  export interface components {
@@ -1534,7 +1646,7 @@ export interface components {
1534
1646
  id: string;
1535
1647
  from?: string;
1536
1648
  to?: string;
1537
- timestamp: number;
1649
+ timestamp: string;
1538
1650
  text: {
1539
1651
  body: string;
1540
1652
  };
@@ -1543,7 +1655,7 @@ export interface components {
1543
1655
  id: string;
1544
1656
  from?: string;
1545
1657
  to?: string;
1546
- timestamp: number;
1658
+ timestamp: string;
1547
1659
  templateName: string;
1548
1660
  type: "template";
1549
1661
  };
@@ -1845,6 +1957,85 @@ export interface components {
1845
1957
  password: string;
1846
1958
  };
1847
1959
  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
+ };
1848
2039
  };
1849
2040
  responses: never;
1850
2041
  parameters: never;
@@ -3344,4 +3535,212 @@ export interface operations {
3344
3535
  };
3345
3536
  };
3346
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: {
3552
+ headers: {
3553
+ [name: string]: unknown;
3554
+ };
3555
+ content: {
3556
+ "application/json": components["schemas"]["CreateTemplateResponseDto"];
3557
+ };
3558
+ };
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: {
3571
+ headers: {
3572
+ [name: string]: unknown;
3573
+ };
3574
+ content: {
3575
+ "application/json": components["schemas"]["FindTemplatesResponseDto"];
3576
+ };
3577
+ };
3578
+ };
3579
+ };
3580
+ MessageController_findTemplateById: {
3581
+ parameters: {
3582
+ query?: never;
3583
+ header?: never;
3584
+ path: {
3585
+ id: string;
3586
+ };
3587
+ cookie?: never;
3588
+ };
3589
+ requestBody?: never;
3590
+ responses: {
3591
+ 200: {
3592
+ headers: {
3593
+ [name: string]: unknown;
3594
+ };
3595
+ content: {
3596
+ "application/json": components["schemas"]["FindTemplateByIdResponseDto"];
3597
+ };
3598
+ };
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: {
3613
+ headers: {
3614
+ [name: string]: unknown;
3615
+ };
3616
+ content: {
3617
+ "application/json": components["schemas"]["DeleteTemplateResponseDto"];
3618
+ };
3619
+ };
3620
+ 404: {
3621
+ headers: {
3622
+ [name: string]: unknown;
3623
+ };
3624
+ content: {
3625
+ "application/json": components["schemas"]["ErrorDto"];
3626
+ };
3627
+ };
3628
+ };
3629
+ };
3630
+ MessageController_updateTemplate: {
3631
+ parameters: {
3632
+ query?: never;
3633
+ header?: never;
3634
+ path: {
3635
+ metaId: string;
3636
+ };
3637
+ cookie?: never;
3638
+ };
3639
+ requestBody: {
3640
+ content: {
3641
+ "application/json": components["schemas"]["UpdateTemplateDto"];
3642
+ };
3643
+ };
3644
+ responses: {
3645
+ 200: {
3646
+ headers: {
3647
+ [name: string]: unknown;
3648
+ };
3649
+ content: {
3650
+ "application/json": components["schemas"]["UpdateTemplateDto"];
3651
+ };
3652
+ };
3653
+ 404: {
3654
+ headers: {
3655
+ [name: string]: unknown;
3656
+ };
3657
+ content: {
3658
+ "application/json": components["schemas"]["ErrorDto"];
3659
+ };
3660
+ };
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: {
3677
+ headers: {
3678
+ [name: string]: unknown;
3679
+ };
3680
+ content: {
3681
+ "application/json": components["schemas"]["SendMessageToPhoneResponseDto"];
3682
+ };
3683
+ };
3684
+ 500: {
3685
+ headers: {
3686
+ [name: string]: unknown;
3687
+ };
3688
+ content: {
3689
+ "application/json": components["schemas"]["ErrorDto"];
3690
+ };
3691
+ };
3692
+ };
3693
+ };
3694
+ MessageController_sendTemplateToTags: {
3695
+ parameters: {
3696
+ query?: never;
3697
+ header?: never;
3698
+ path?: never;
3699
+ cookie?: never;
3700
+ };
3701
+ requestBody: {
3702
+ 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;
3723
+ };
3724
+ cookie?: never;
3725
+ };
3726
+ requestBody?: never;
3727
+ responses: {
3728
+ 200: {
3729
+ headers: {
3730
+ [name: string]: unknown;
3731
+ };
3732
+ content: {
3733
+ "application/json": components["schemas"]["FindMessagesByPhoneNumberResponseDto"];
3734
+ };
3735
+ };
3736
+ 404: {
3737
+ headers: {
3738
+ [name: string]: unknown;
3739
+ };
3740
+ content: {
3741
+ "application/json": components["schemas"]["ErrorDto"];
3742
+ };
3743
+ };
3744
+ };
3745
+ };
3347
3746
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.22.0",
3
+ "version": "0.24.0-EXPO-251-EB-Whatsapp.1",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,