expo-backend-types 0.30.0-EXPO-308-auth.23 → 0.30.0-EXPO-308-auth.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/src/mi-expo/dto/{me.dto.d.ts → get-me.dto.d.ts} +5 -5
  2. package/dist/src/mi-expo/dto/get-me.dto.js +10 -0
  3. package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +2 -2
  4. package/dist/src/mi-expo/dto/login.dto.d.ts +2 -2
  5. package/dist/src/mi-expo/dto/update-me.dto.d.ts +358 -0
  6. package/dist/src/mi-expo/dto/update-me.dto.js +30 -0
  7. package/dist/src/mi-expo/exports.d.ts +1 -1
  8. package/dist/src/mi-expo/exports.js +1 -1
  9. package/dist/src/otp/dto/verify-otp.dto.d.ts +2 -2
  10. package/dist/src/profile/dto/create-profile.dto.d.ts +5 -5
  11. package/dist/src/profile/dto/delete-profile.dto.d.ts +2 -2
  12. package/dist/src/profile/dto/find-all-profile.dto.d.ts +2 -2
  13. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +4 -4
  14. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +2 -2
  15. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +2 -2
  16. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +2 -2
  17. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +2 -2
  18. package/dist/src/profile/dto/find-trash.dto.d.ts +1 -1
  19. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +2 -2
  20. package/dist/src/profile/dto/profile.dto.d.ts +1 -1
  21. package/dist/src/profile/dto/update-profile.dto.d.ts +10 -4
  22. package/dist/src/profile/dto/update-profile.dto.js +1 -0
  23. package/dist/src/schema/profile.schema.d.ts +1 -1
  24. package/dist/src/schema/profile.schema.js +2 -2
  25. package/dist/src/shared/dto-modification/zod-without-dates.d.ts +1 -3
  26. package/dist/src/shared/dto-modification/zod-without-dates.js +17 -0
  27. package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
  28. package/dist/src/tag/dto/massive-allocation.dto.d.ts +2 -2
  29. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +2 -2
  30. package/dist/types/schema.d.ts +64 -438
  31. package/package.json +1 -1
  32. package/dist/src/mi-expo/dto/me.dto.js +0 -10
@@ -1004,7 +1004,7 @@ export interface paths {
1004
1004
  delete?: never;
1005
1005
  options?: never;
1006
1006
  head?: never;
1007
- patch?: never;
1007
+ patch: operations["MiExpoController_updateMe"];
1008
1008
  trace?: never;
1009
1009
  };
1010
1010
  }
@@ -1128,62 +1128,14 @@ export interface components {
1128
1128
  profileIds: string[];
1129
1129
  };
1130
1130
  MassiveAllocationResponseDto: {
1131
- profiles: {
1132
- id: string;
1133
- shortId: number;
1134
- firstTimeMiExpo: boolean;
1135
- username: string | null;
1136
- password: string | null;
1137
- phoneNumber: string;
1138
- isPhoneVerified: boolean;
1139
- secondaryPhoneNumber: string | null;
1140
- fullName: string;
1141
- firstName: string | null;
1142
- gender: string | null;
1143
- birthDate: string | null;
1144
- profilePictureUrl: string | null;
1145
- instagram: string | null;
1146
- mail: string | null;
1147
- dni: string | null;
1148
- alternativeNames: string[];
1149
- birthLocationId: string | null;
1150
- residenceLocationId: string | null;
1151
- isInTrash: boolean;
1152
- movedToTrashDate: string | null;
1153
- created_at: string;
1154
- updated_at: string;
1155
- }[];
1131
+ profiles: unknown[];
1156
1132
  };
1157
1133
  MassiveDeallocationDto: {
1158
1134
  tagIds: string[];
1159
1135
  profileIds: string[];
1160
1136
  };
1161
1137
  MassiveDeallocationResponseDto: {
1162
- profiles: {
1163
- id: string;
1164
- shortId: number;
1165
- firstTimeMiExpo: boolean;
1166
- username: string | null;
1167
- password: string | null;
1168
- phoneNumber: string;
1169
- isPhoneVerified: boolean;
1170
- secondaryPhoneNumber: string | null;
1171
- fullName: string;
1172
- firstName: string | null;
1173
- gender: string | null;
1174
- birthDate: string | null;
1175
- profilePictureUrl: string | null;
1176
- instagram: string | null;
1177
- mail: string | null;
1178
- dni: string | null;
1179
- alternativeNames: string[];
1180
- birthLocationId: string | null;
1181
- residenceLocationId: string | null;
1182
- isInTrash: boolean;
1183
- movedToTrashDate: string | null;
1184
- created_at: string;
1185
- updated_at: string;
1186
- }[];
1138
+ profiles: unknown[];
1187
1139
  };
1188
1140
  CreateAccountDto: {
1189
1141
  username: string;
@@ -1744,173 +1696,16 @@ export interface components {
1744
1696
  updated_at: string;
1745
1697
  };
1746
1698
  FindAllProfileResponseDto: {
1747
- profiles: {
1748
- id: string;
1749
- shortId: number;
1750
- firstTimeMiExpo: boolean;
1751
- username: string | null;
1752
- password: string | null;
1753
- phoneNumber: string;
1754
- isPhoneVerified: boolean;
1755
- secondaryPhoneNumber: string | null;
1756
- fullName: string;
1757
- firstName: string | null;
1758
- gender: string | null;
1759
- birthDate: string | null;
1760
- profilePictureUrl: string | null;
1761
- instagram: string | null;
1762
- mail: string | null;
1763
- dni: string | null;
1764
- alternativeNames: string[];
1765
- birthLocationId: string | null;
1766
- residenceLocationId: string | null;
1767
- isInTrash: boolean;
1768
- movedToTrashDate: string | null;
1769
- created_at: string;
1770
- updated_at: string;
1771
- tags: {
1772
- id: string;
1773
- name: string;
1774
- groupId: string;
1775
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
1776
- created_at: string;
1777
- updated_at: string;
1778
- group: {
1779
- color: string;
1780
- isExclusive: boolean;
1781
- };
1782
- }[];
1783
- }[];
1699
+ profiles: unknown[];
1784
1700
  };
1785
1701
  FindWithActiveChatResponseDto: {
1786
- profiles: {
1787
- id: string;
1788
- shortId: number;
1789
- firstTimeMiExpo: boolean;
1790
- username: string | null;
1791
- password: string | null;
1792
- phoneNumber: string;
1793
- isPhoneVerified: boolean;
1794
- secondaryPhoneNumber: string | null;
1795
- fullName: string;
1796
- firstName: string | null;
1797
- gender: string | null;
1798
- birthDate: string | null;
1799
- profilePictureUrl: string | null;
1800
- instagram: string | null;
1801
- mail: string | null;
1802
- dni: string | null;
1803
- alternativeNames: string[];
1804
- birthLocationId: string | null;
1805
- residenceLocationId: string | null;
1806
- isInTrash: boolean;
1807
- movedToTrashDate: string | null;
1808
- created_at: string;
1809
- updated_at: string;
1810
- tags: {
1811
- id: string;
1812
- name: string;
1813
- groupId: string;
1814
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
1815
- created_at: string;
1816
- updated_at: string;
1817
- }[];
1818
- inChat: boolean;
1819
- messages: {
1820
- state: "SENT" | "RECEIVED" | "SEEN";
1821
- message: {
1822
- id: string;
1823
- from?: string;
1824
- to?: string;
1825
- timestamp: string;
1826
- text: {
1827
- body: string;
1828
- };
1829
- type: "text";
1830
- } | {
1831
- id: string;
1832
- from?: string;
1833
- to?: string;
1834
- timestamp: string;
1835
- templateName: string;
1836
- type: "template";
1837
- };
1838
- created_at: string;
1839
- }[];
1840
- }[];
1702
+ profiles: unknown[];
1841
1703
  };
1842
1704
  FindByTagsProfileResponseDto: {
1843
- profiles: {
1844
- id: string;
1845
- shortId: number;
1846
- firstTimeMiExpo: boolean;
1847
- username: string | null;
1848
- password: string | null;
1849
- phoneNumber: string;
1850
- isPhoneVerified: boolean;
1851
- secondaryPhoneNumber: string | null;
1852
- fullName: string;
1853
- firstName: string | null;
1854
- gender: string | null;
1855
- birthDate: string | null;
1856
- profilePictureUrl: string | null;
1857
- instagram: string | null;
1858
- mail: string | null;
1859
- dni: string | null;
1860
- alternativeNames: string[];
1861
- birthLocationId: string | null;
1862
- residenceLocationId: string | null;
1863
- isInTrash: boolean;
1864
- movedToTrashDate: string | null;
1865
- created_at: string;
1866
- updated_at: string;
1867
- tags: {
1868
- id: string;
1869
- name: string;
1870
- groupId: string;
1871
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
1872
- created_at: string;
1873
- updated_at: string;
1874
- group: {
1875
- isExclusive: boolean;
1876
- };
1877
- }[];
1878
- }[];
1705
+ profiles: unknown[];
1879
1706
  };
1880
1707
  FindByTagGroupsProfileResponseDto: {
1881
- profiles: {
1882
- id: string;
1883
- shortId: number;
1884
- firstTimeMiExpo: boolean;
1885
- username: string | null;
1886
- password: string | null;
1887
- phoneNumber: string;
1888
- isPhoneVerified: boolean;
1889
- secondaryPhoneNumber: string | null;
1890
- fullName: string;
1891
- firstName: string | null;
1892
- gender: string | null;
1893
- birthDate: string | null;
1894
- profilePictureUrl: string | null;
1895
- instagram: string | null;
1896
- mail: string | null;
1897
- dni: string | null;
1898
- alternativeNames: string[];
1899
- birthLocationId: string | null;
1900
- residenceLocationId: string | null;
1901
- isInTrash: boolean;
1902
- movedToTrashDate: string | null;
1903
- created_at: string;
1904
- updated_at: string;
1905
- tags: {
1906
- id: string;
1907
- name: string;
1908
- groupId: string;
1909
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
1910
- created_at: string;
1911
- updated_at: string;
1912
- }[];
1913
- }[];
1708
+ profiles: unknown[];
1914
1709
  };
1915
1710
  FindByDateRangeResponseDto: {
1916
1711
  [key: string]: {
@@ -1950,31 +1745,7 @@ export interface components {
1950
1745
  }[];
1951
1746
  }[] | undefined;
1952
1747
  };
1953
- FindByPhoneNumberResponseDto: {
1954
- id: string;
1955
- shortId: number;
1956
- firstTimeMiExpo: boolean;
1957
- username: string | null;
1958
- password: string | null;
1959
- phoneNumber: string;
1960
- isPhoneVerified: boolean;
1961
- secondaryPhoneNumber: string | null;
1962
- fullName: string;
1963
- firstName: string | null;
1964
- gender: string | null;
1965
- birthDate: string | null;
1966
- profilePictureUrl: string | null;
1967
- instagram: string | null;
1968
- mail: string | null;
1969
- dni: string | null;
1970
- alternativeNames: string[];
1971
- birthLocationId: string | null;
1972
- residenceLocationId: string | null;
1973
- isInTrash: boolean;
1974
- movedToTrashDate: string | null;
1975
- created_at: string;
1976
- updated_at: string;
1977
- };
1748
+ FindByPhoneNumberResponseDto: unknown;
1978
1749
  FindTrashResponseDto: {
1979
1750
  profiles: {
1980
1751
  id: string;
@@ -1987,39 +1758,7 @@ export interface components {
1987
1758
  }[];
1988
1759
  };
1989
1760
  CreateProfileDto: {
1990
- profile: {
1991
- alternativeNames: string[];
1992
- birthDate: string | null;
1993
- dni: string | null;
1994
- fullName: string;
1995
- gender: string | null;
1996
- instagram: string | null;
1997
- mail: string | null;
1998
- phoneNumber: string;
1999
- profilePictureUrl: string | null;
2000
- secondaryPhoneNumber: string | null;
2001
- username: string | null;
2002
- password: string | null;
2003
- comments?: {
2004
- content: string;
2005
- isSolvable: boolean;
2006
- }[];
2007
- residence?: {
2008
- city: string;
2009
- country: string;
2010
- latitude: number;
2011
- longitude: number;
2012
- state: string;
2013
- };
2014
- birth?: {
2015
- city: string;
2016
- country: string;
2017
- latitude: number;
2018
- longitude: number;
2019
- state: string;
2020
- };
2021
- tags?: string[];
2022
- };
1761
+ profile: unknown;
2023
1762
  checkForSimilarity?: boolean;
2024
1763
  };
2025
1764
  CreateProfileResponseDto: {
@@ -2039,89 +1778,8 @@ export interface components {
2039
1778
  type: "created";
2040
1779
  };
2041
1780
  };
2042
- FindByIdProfileResponseDto: {
2043
- id: string;
2044
- shortId: number;
2045
- firstTimeMiExpo: boolean;
2046
- username: string | null;
2047
- password: string | null;
2048
- phoneNumber: string;
2049
- isPhoneVerified: boolean;
2050
- secondaryPhoneNumber: string | null;
2051
- fullName: string;
2052
- firstName: string | null;
2053
- gender: string | null;
2054
- birthDate: string | null;
2055
- profilePictureUrl: string | null;
2056
- instagram: string | null;
2057
- mail: string | null;
2058
- dni: string | null;
2059
- alternativeNames: string[];
2060
- birthLocationId: string | null;
2061
- residenceLocationId: string | null;
2062
- isInTrash: boolean;
2063
- movedToTrashDate: string | null;
2064
- created_at: string;
2065
- updated_at: string;
2066
- residenceLocation: {
2067
- id: string;
2068
- latitude: number;
2069
- longitude: number;
2070
- country: string;
2071
- state: string;
2072
- city: string;
2073
- created_at: string;
2074
- updated_at: string;
2075
- } | null;
2076
- birthLocation: {
2077
- id: string;
2078
- latitude: number;
2079
- longitude: number;
2080
- country: string;
2081
- state: string;
2082
- city: string;
2083
- created_at: string;
2084
- updated_at: string;
2085
- } | null;
2086
- tags: {
2087
- id: string;
2088
- name: string;
2089
- groupId: string;
2090
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
2091
- created_at: string;
2092
- updated_at: string;
2093
- group: {
2094
- id: string;
2095
- color: string;
2096
- isExclusive: boolean;
2097
- };
2098
- }[];
2099
- };
2100
- DeleteProfileResponseDto: {
2101
- id: string;
2102
- shortId: number;
2103
- firstTimeMiExpo: boolean;
2104
- username: string | null;
2105
- password: string | null;
2106
- phoneNumber: string;
2107
- isPhoneVerified: boolean;
2108
- secondaryPhoneNumber: string | null;
2109
- fullName: string;
2110
- firstName: string | null;
2111
- gender: string | null;
2112
- birthDate: string | null;
2113
- profilePictureUrl: string | null;
2114
- instagram: string | null;
2115
- mail: string | null;
2116
- dni: string | null;
2117
- alternativeNames: string[];
2118
- birthLocationId: string | null;
2119
- residenceLocationId: string | null;
2120
- isInTrash: boolean;
2121
- movedToTrashDate: string | null;
2122
- created_at: string;
2123
- updated_at: string;
2124
- };
1781
+ FindByIdProfileResponseDto: unknown;
1782
+ DeleteProfileResponseDto: unknown;
2125
1783
  UpdateProfileDto: {
2126
1784
  alternativeNames?: string[];
2127
1785
  birthDate?: string | null;
@@ -2137,6 +1795,7 @@ export interface components {
2137
1795
  movedToTrashDate?: string | null;
2138
1796
  username?: string | null;
2139
1797
  password?: string | null;
1798
+ firstTimeMiExpo?: boolean;
2140
1799
  residence?: {
2141
1800
  city: string;
2142
1801
  country: string;
@@ -2284,43 +1943,7 @@ export interface components {
2284
1943
  };
2285
1944
  VerifyOtpResponseDto: {
2286
1945
  success: boolean;
2287
- profile: {
2288
- id: string;
2289
- shortId: number;
2290
- firstTimeMiExpo: boolean;
2291
- username: string | null;
2292
- password: string | null;
2293
- phoneNumber: string;
2294
- isPhoneVerified: boolean;
2295
- secondaryPhoneNumber: string | null;
2296
- fullName: string;
2297
- firstName: string | null;
2298
- gender: string | null;
2299
- birthDate: string | null;
2300
- profilePictureUrl: string | null;
2301
- instagram: string | null;
2302
- mail: string | null;
2303
- dni: string | null;
2304
- alternativeNames: string[];
2305
- birthLocationId: string | null;
2306
- residenceLocationId: string | null;
2307
- isInTrash: boolean;
2308
- movedToTrashDate: string | null;
2309
- created_at: string;
2310
- updated_at: string;
2311
- residenceLocation: {
2312
- city: string;
2313
- country: string;
2314
- latitude: number;
2315
- longitude: number;
2316
- } | null;
2317
- birthLocation: {
2318
- city: string;
2319
- country: string;
2320
- latitude: number;
2321
- longitude: number;
2322
- } | null;
2323
- };
1946
+ profile: unknown;
2324
1947
  };
2325
1948
  LoginWithPhoneDto: {
2326
1949
  phoneNumber: string;
@@ -2331,54 +1954,34 @@ export interface components {
2331
1954
  refreshToken: string;
2332
1955
  expiresIn: number;
2333
1956
  };
2334
- profile: {
2335
- id: string;
2336
- shortId: number;
2337
- firstTimeMiExpo: boolean;
2338
- username: string | null;
2339
- phoneNumber: string;
2340
- isPhoneVerified: boolean;
2341
- secondaryPhoneNumber: string | null;
2342
- fullName: string;
2343
- firstName: string | null;
2344
- gender: string | null;
2345
- birthDate: string | null;
2346
- profilePictureUrl: string | null;
2347
- instagram: string | null;
2348
- mail: string | null;
2349
- dni: string | null;
2350
- alternativeNames: string[];
2351
- birthLocationId: string | null;
2352
- residenceLocationId: string | null;
2353
- isInTrash: boolean;
2354
- movedToTrashDate: string | null;
2355
- created_at: string;
2356
- updated_at: string;
2357
- };
1957
+ profile: unknown;
2358
1958
  };
2359
- MiExpoMeResponseDto: {
2360
- id: string;
2361
- shortId: number;
2362
- firstTimeMiExpo: boolean;
2363
- username: string | null;
2364
- phoneNumber: string;
2365
- isPhoneVerified: boolean;
2366
- secondaryPhoneNumber: string | null;
2367
- fullName: string;
2368
- firstName: string | null;
2369
- gender: string | null;
2370
- birthDate: string | null;
2371
- profilePictureUrl: string | null;
2372
- instagram: string | null;
2373
- mail: string | null;
2374
- dni: string | null;
2375
- alternativeNames: string[];
2376
- birthLocationId: string | null;
2377
- residenceLocationId: string | null;
2378
- isInTrash: boolean;
2379
- movedToTrashDate: string | null;
2380
- created_at: string;
2381
- updated_at: string;
1959
+ GetMiExpoMeResponseDto: unknown;
1960
+ UpdateMiExpoMeDto: {
1961
+ birthDate?: string | null;
1962
+ dni?: string | null;
1963
+ fullName?: string;
1964
+ gender?: string | null;
1965
+ instagram?: string | null;
1966
+ mail?: string | null;
1967
+ password?: string | null;
1968
+ phoneNumber?: string;
1969
+ secondaryPhoneNumber?: string | null;
1970
+ username?: string | null;
1971
+ birth?: {
1972
+ city: string;
1973
+ country: string;
1974
+ latitude: number;
1975
+ longitude: number;
1976
+ state: string;
1977
+ };
1978
+ residence?: {
1979
+ city: string;
1980
+ country: string;
1981
+ latitude: number;
1982
+ longitude: number;
1983
+ state: string;
1984
+ };
2382
1985
  };
2383
1986
  };
2384
1987
  responses: never;
@@ -4419,7 +4022,30 @@ export interface operations {
4419
4022
  [name: string]: unknown;
4420
4023
  };
4421
4024
  content: {
4422
- "application/json": components["schemas"]["MiExpoMeResponseDto"];
4025
+ "application/json": components["schemas"]["GetMiExpoMeResponseDto"];
4026
+ };
4027
+ };
4028
+ };
4029
+ };
4030
+ MiExpoController_updateMe: {
4031
+ parameters: {
4032
+ query?: never;
4033
+ header?: never;
4034
+ path?: never;
4035
+ cookie?: never;
4036
+ };
4037
+ requestBody: {
4038
+ content: {
4039
+ "application/json": components["schemas"]["UpdateMiExpoMeDto"];
4040
+ };
4041
+ };
4042
+ responses: {
4043
+ 200: {
4044
+ headers: {
4045
+ [name: string]: unknown;
4046
+ };
4047
+ content: {
4048
+ "application/json": components["schemas"]["GetMiExpoMeResponseDto"];
4423
4049
  };
4424
4050
  };
4425
4051
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.30.0-EXPO-308-auth.23",
3
+ "version": "0.30.0-EXPO-308-auth.24",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MiExpoMeResponseDto = exports.meResponseSchema = void 0;
4
- const profile_schema_1 = require("../../schema/profile.schema");
5
- const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
6
- exports.meResponseSchema = profile_schema_1.profileSchema.omit({ password: true });
7
- class MiExpoMeResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.meResponseSchema) {
8
- }
9
- exports.MiExpoMeResponseDto = MiExpoMeResponseDto;
10
- //# sourceMappingURL=me.dto.js.map