expo-backend-types 0.9.0-EXPO-249-EB-Modelo.6 → 0.9.0-EXPO-247-EB-Evento.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/dist/src/account/dto/account.dto.d.ts +4 -6
  2. package/dist/src/account/dto/create-account.dto.d.ts +8 -12
  3. package/dist/src/account/dto/get-global-filter.dto.d.ts +0 -1
  4. package/dist/src/account/dto/get-me.dto.d.ts +4 -6
  5. package/dist/src/account/dto/update-global-filter.dto.d.ts +4 -6
  6. package/dist/src/auth/dto/login.dto.d.ts +8 -11
  7. package/dist/src/comment/dto/get-by-profile-comment.dto.d.ts +0 -1
  8. package/dist/src/event/dto/create-event.dto.d.ts +126 -0
  9. package/dist/src/event/dto/create-event.dto.js +22 -0
  10. package/dist/src/event/dto/delete-event.dto.d.ts +71 -0
  11. package/dist/src/event/dto/delete-event.dto.js +10 -0
  12. package/dist/src/event/dto/get-all-event.dto.d.ts +223 -0
  13. package/dist/src/event/dto/get-all-event.dto.js +19 -0
  14. package/dist/src/event/dto/get-by-id-event.dto.d.ts +139 -0
  15. package/dist/src/event/dto/get-by-id-event.dto.js +17 -0
  16. package/dist/src/event/dto/update-event.dto.d.ts +126 -0
  17. package/dist/src/event/dto/update-event.dto.js +22 -0
  18. package/dist/src/event/exports.d.ts +5 -0
  19. package/dist/src/event/exports.js +5 -0
  20. package/dist/src/event-folder/dto/update-event-folder.dto.d.ts +14 -17
  21. package/dist/src/event-folder/dto/update-event-folder.dto.js +4 -2
  22. package/dist/src/i18n/es.d.ts +16 -21
  23. package/dist/src/i18n/es.js +16 -21
  24. package/dist/src/i18n/es.js.map +1 -1
  25. package/dist/src/profile/dto/profile.dto.d.ts +2 -2
  26. package/dist/src/profile/dto/profile.dto.js +2 -6
  27. package/dist/src/profile/exports.d.ts +0 -5
  28. package/dist/src/profile/exports.js +0 -5
  29. package/dist/src/tag/dto/massive-allocation.dto.d.ts +6 -6
  30. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +6 -6
  31. package/dist/types/prisma-schema/edge.js +4 -5
  32. package/dist/types/prisma-schema/index-browser.js +1 -2
  33. package/dist/types/prisma-schema/index.d.ts +2 -9
  34. package/dist/types/prisma-schema/index.js +4 -5
  35. package/dist/types/prisma-schema/package.json +1 -1
  36. package/dist/types/prisma-schema/schema.prisma +0 -2
  37. package/dist/types/prisma-schema/wasm.js +1 -2
  38. package/dist/types/schema.d.ts +131 -261
  39. package/package.json +1 -2
  40. package/dist/src/profile/dto/create-profile.dto.d.ts +0 -694
  41. package/dist/src/profile/dto/create-profile.dto.js +0 -84
  42. package/dist/src/profile/dto/find-all-profile.dto.d.ts +0 -410
  43. package/dist/src/profile/dto/find-all-profile.dto.js +0 -25
  44. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +0 -475
  45. package/dist/src/profile/dto/find-by-id-profile.dto.js +0 -27
  46. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +0 -337
  47. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +0 -19
  48. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +0 -393
  49. package/dist/src/profile/dto/find-by-tags-profile.dto.js +0 -24
@@ -511,46 +511,30 @@ export interface paths {
511
511
  patch?: never;
512
512
  trace?: never;
513
513
  };
514
- "/profile/all": {
514
+ "/event/create": {
515
515
  parameters: {
516
516
  query?: never;
517
517
  header?: never;
518
518
  path?: never;
519
519
  cookie?: never;
520
520
  };
521
- get: operations["ProfileController_findAll"];
522
- put?: never;
523
- post?: never;
524
- delete?: never;
525
- options?: never;
526
- head?: never;
527
- patch?: never;
528
- trace?: never;
529
- };
530
- "/profile/find-by-tags": {
531
- parameters: {
532
- query?: never;
533
- header?: never;
534
- path?: never;
535
- cookie?: never;
536
- };
537
- get: operations["ProfileController_findByTag"];
521
+ get?: never;
538
522
  put?: never;
539
- post?: never;
523
+ post: operations["EventController_create"];
540
524
  delete?: never;
541
525
  options?: never;
542
526
  head?: never;
543
527
  patch?: never;
544
528
  trace?: never;
545
529
  };
546
- "/profile/find-by-tag-groups": {
530
+ "/event/all": {
547
531
  parameters: {
548
532
  query?: never;
549
533
  header?: never;
550
534
  path?: never;
551
535
  cookie?: never;
552
536
  };
553
- get: operations["ProfileController_findByTagGroups"];
537
+ get: operations["EventController_findAll"];
554
538
  put?: never;
555
539
  post?: never;
556
540
  delete?: never;
@@ -559,36 +543,20 @@ export interface paths {
559
543
  patch?: never;
560
544
  trace?: never;
561
545
  };
562
- "/profile/create": {
563
- parameters: {
564
- query?: never;
565
- header?: never;
566
- path?: never;
567
- cookie?: never;
568
- };
569
- get?: never;
570
- put?: never;
571
- post: operations["ProfileController_create"];
572
- delete?: never;
573
- options?: never;
574
- head?: never;
575
- patch?: never;
576
- trace?: never;
577
- };
578
- "/profile/{id}": {
546
+ "/event/{id}": {
579
547
  parameters: {
580
548
  query?: never;
581
549
  header?: never;
582
550
  path?: never;
583
551
  cookie?: never;
584
552
  };
585
- get: operations["ProfileController_findById"];
553
+ get: operations["EventController_findById"];
586
554
  put?: never;
587
555
  post?: never;
588
- delete?: never;
556
+ delete: operations["EventController_remove"];
589
557
  options?: never;
590
558
  head?: never;
591
- patch?: never;
559
+ patch: operations["EventController_update"];
592
560
  trace?: never;
593
561
  };
594
562
  }
@@ -603,7 +571,7 @@ export interface components {
603
571
  user: {
604
572
  id?: string;
605
573
  username?: string;
606
- role?: "USER" | "ADMIN" | "FORM";
574
+ role?: "USER" | "ADMIN";
607
575
  isGlobalFilterActive: boolean;
608
576
  fcmToken: string[];
609
577
  created_at?: string;
@@ -764,12 +732,12 @@ export interface components {
764
732
  CreateAccountDto: {
765
733
  username: string;
766
734
  password: string;
767
- role: "USER" | "ADMIN" | "FORM";
735
+ role: "USER" | "ADMIN";
768
736
  };
769
737
  CreateAccountResponseDto: {
770
738
  id: string;
771
739
  username: string;
772
- role: "USER" | "ADMIN" | "FORM";
740
+ role: "USER" | "ADMIN";
773
741
  isGlobalFilterActive: boolean;
774
742
  fcmToken: string[];
775
743
  };
@@ -781,7 +749,7 @@ export interface components {
781
749
  id: string;
782
750
  username: string;
783
751
  password: string;
784
- role: "USER" | "ADMIN" | "FORM";
752
+ role: "USER" | "ADMIN";
785
753
  isGlobalFilterActive: boolean;
786
754
  fcmToken: string[];
787
755
  created_at: string;
@@ -811,7 +779,7 @@ export interface components {
811
779
  GetMeResponseDto: {
812
780
  id: string;
813
781
  username: string;
814
- role: "USER" | "ADMIN" | "FORM";
782
+ role: "USER" | "ADMIN";
815
783
  isGlobalFilterActive: boolean;
816
784
  fcmToken: string[];
817
785
  created_at: string;
@@ -1125,193 +1093,99 @@ export interface components {
1125
1093
  created_at: string;
1126
1094
  updated_at: string;
1127
1095
  };
1128
- FindAllProfileResponseDto: {
1129
- profiles: {
1130
- id: string;
1131
- shortId: number;
1132
- phoneNumber: string;
1133
- secondaryPhoneNumber: string | null;
1134
- fullName: string;
1135
- firstName: string | null;
1136
- gender: string | null;
1137
- birthDate: string | null;
1138
- profilePictureUrl: string | null;
1139
- instagram: string | null;
1140
- mail: string | null;
1141
- dni: string | null;
1142
- alternativeNames: string[] | null;
1143
- birthLocationId: string | null;
1144
- residenceLocationId: string | null;
1145
- isInTrash: boolean;
1146
- movedToTrashDate: string | null;
1147
- created_at: string;
1148
- updated_at: string;
1149
- tags: {
1150
- id: string;
1151
- name: string;
1152
- groupId: string;
1153
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
1154
- created_at: string;
1155
- updated_at: string;
1156
- group: {
1157
- color: string;
1158
- isExclusive: boolean;
1159
- };
1160
- }[];
1161
- }[];
1162
- };
1163
- FindByTagsProfileResponseDto: {
1164
- profiles: {
1165
- id: string;
1166
- shortId: number;
1167
- phoneNumber: string;
1168
- secondaryPhoneNumber: string | null;
1169
- fullName: string;
1170
- firstName: string | null;
1171
- gender: string | null;
1172
- birthDate: string | null;
1173
- profilePictureUrl: string | null;
1174
- instagram: string | null;
1175
- mail: string | null;
1176
- dni: string | null;
1177
- alternativeNames: string[] | null;
1178
- birthLocationId: string | null;
1179
- residenceLocationId: string | null;
1180
- isInTrash: boolean;
1181
- movedToTrashDate: string | null;
1182
- created_at: string;
1183
- updated_at: string;
1184
- tags: {
1185
- id: string;
1186
- name: string;
1187
- groupId: string;
1188
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
1189
- created_at: string;
1190
- updated_at: string;
1191
- group: {
1192
- isExclusive: boolean;
1193
- };
1194
- }[];
1195
- }[];
1096
+ CreateEventDto: {
1097
+ name: string;
1098
+ date: string;
1099
+ location: string;
1100
+ folderId: string | null;
1101
+ tagAssistedId: string;
1102
+ tagConfirmedId: string;
1103
+ supraEventId: string | null;
1104
+ };
1105
+ CreateEventResponseDto: {
1106
+ id: string;
1107
+ name: string;
1108
+ date: string;
1109
+ location: string;
1110
+ folderId: string | null;
1111
+ tagAssistedId: string;
1112
+ tagConfirmedId: string;
1113
+ supraEventId: string | null;
1114
+ created_at: string;
1115
+ updated_at: string;
1196
1116
  };
1197
- FindByTagGroupsProfileResponseDto: {
1198
- profiles: {
1117
+ GetAllEventsResponseDto: {
1118
+ events: {
1199
1119
  id: string;
1200
- shortId: number;
1201
- phoneNumber: string;
1202
- secondaryPhoneNumber: string | null;
1203
- fullName: string;
1204
- firstName: string | null;
1205
- gender: string | null;
1206
- birthDate: string | null;
1207
- profilePictureUrl: string | null;
1208
- instagram: string | null;
1209
- mail: string | null;
1210
- dni: string | null;
1211
- alternativeNames: string[] | null;
1212
- birthLocationId: string | null;
1213
- residenceLocationId: string | null;
1214
- isInTrash: boolean;
1215
- movedToTrashDate: string | null;
1120
+ name: string;
1121
+ date: string;
1122
+ location: string;
1123
+ folderId: string | null;
1124
+ tagAssistedId: string;
1125
+ tagConfirmedId: string;
1126
+ supraEventId: string | null;
1216
1127
  created_at: string;
1217
1128
  updated_at: string;
1218
- tags: {
1129
+ folder: {
1219
1130
  id: string;
1220
1131
  name: string;
1221
- groupId: string;
1222
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
1132
+ color: string;
1223
1133
  created_at: string;
1224
1134
  updated_at: string;
1225
- }[];
1135
+ } | null;
1226
1136
  }[];
1227
1137
  };
1228
- CreateProfileDto: {
1229
- profile: {
1230
- alternativeNames?: string[] | null;
1231
- birthDate?: string | null;
1232
- dni?: string | null;
1233
- fullName?: string;
1234
- gender?: string | null;
1235
- instagram?: string | null;
1236
- mail?: string | null;
1237
- phoneNumber?: string;
1238
- profilePictureUrl?: string | null;
1239
- secondaryPhoneNumber?: string | null;
1240
- comments?: {
1241
- content: string;
1242
- isSolvable: boolean;
1243
- }[];
1244
- residence?: {
1245
- city: string;
1246
- country: string;
1247
- latitude: number;
1248
- longitude: number;
1249
- state: string;
1250
- };
1251
- birth?: {
1252
- city: string;
1253
- country: string;
1254
- latitude: number;
1255
- longitude: number;
1256
- state: string;
1257
- };
1258
- tags?: string[];
1259
- };
1260
- checkForSimilarity: boolean;
1261
- };
1262
- FindByIdProfileResponseDto: {
1138
+ GetByIdEventResponseDto: {
1263
1139
  id: string;
1264
- shortId: number;
1265
- phoneNumber: string;
1266
- secondaryPhoneNumber: string | null;
1267
- fullName: string;
1268
- firstName: string | null;
1269
- gender: string | null;
1270
- birthDate: string | null;
1271
- profilePictureUrl: string | null;
1272
- instagram: string | null;
1273
- mail: string | null;
1274
- dni: string | null;
1275
- alternativeNames: string[] | null;
1276
- birthLocationId: string | null;
1277
- residenceLocationId: string | null;
1278
- isInTrash: boolean;
1279
- movedToTrashDate: string | null;
1140
+ name: string;
1141
+ date: string;
1142
+ location: string;
1143
+ folderId: string | null;
1144
+ tagAssistedId: string;
1145
+ tagConfirmedId: string;
1146
+ supraEventId: string | null;
1280
1147
  created_at: string;
1281
1148
  updated_at: string;
1282
- residenceLocation: {
1149
+ folder: {
1283
1150
  id?: string;
1284
- latitude?: number;
1285
- longitude?: number;
1286
- country?: string;
1287
- state?: string;
1288
- city?: string;
1289
- created_at?: string;
1290
- updated_at?: string;
1291
- } | null;
1292
- birthLocation: {
1293
- id?: string;
1294
- latitude?: number;
1295
- longitude?: number;
1296
- country?: string;
1297
- state?: string;
1298
- city?: string;
1151
+ name?: string;
1152
+ color?: string;
1299
1153
  created_at?: string;
1300
1154
  updated_at?: string;
1301
1155
  } | null;
1302
- tags: {
1303
- id: string;
1304
- name: string;
1305
- groupId: string;
1306
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
1307
- created_at: string;
1308
- updated_at: string;
1309
- group: {
1310
- id: string;
1311
- color: string;
1312
- isExclusive: boolean;
1313
- };
1314
- }[];
1156
+ };
1157
+ UpdateEventDto: {
1158
+ name: string;
1159
+ folderId: string | null;
1160
+ date: string;
1161
+ location: string;
1162
+ supraEventId: string | null;
1163
+ tagAssistedId: string;
1164
+ tagConfirmedId: string;
1165
+ };
1166
+ UpdateEventResponseDto: {
1167
+ id: string;
1168
+ name: string;
1169
+ date: string;
1170
+ location: string;
1171
+ folderId: string | null;
1172
+ tagAssistedId: string;
1173
+ tagConfirmedId: string;
1174
+ supraEventId: string | null;
1175
+ created_at: string;
1176
+ updated_at: string;
1177
+ };
1178
+ DeleteEventResponseDto: {
1179
+ id: string;
1180
+ name: string;
1181
+ date: string;
1182
+ location: string;
1183
+ folderId: string | null;
1184
+ tagAssistedId: string;
1185
+ tagConfirmedId: string;
1186
+ supraEventId: string | null;
1187
+ created_at: string;
1188
+ updated_at: string;
1315
1189
  };
1316
1190
  };
1317
1191
  responses: never;
@@ -2281,30 +2155,40 @@ export interface operations {
2281
2155
  };
2282
2156
  };
2283
2157
  };
2284
- ProfileController_findAll: {
2158
+ EventController_create: {
2285
2159
  parameters: {
2286
2160
  query?: never;
2287
2161
  header?: never;
2288
2162
  path?: never;
2289
2163
  cookie?: never;
2290
2164
  };
2291
- requestBody?: never;
2165
+ requestBody: {
2166
+ content: {
2167
+ "application/json": components["schemas"]["CreateEventDto"];
2168
+ };
2169
+ };
2292
2170
  responses: {
2293
- 200: {
2171
+ 201: {
2294
2172
  headers: {
2295
2173
  [name: string]: unknown;
2296
2174
  };
2297
2175
  content: {
2298
- "application/json": components["schemas"]["FindAllProfileResponseDto"];
2176
+ "application/json": components["schemas"]["CreateEventResponseDto"];
2177
+ };
2178
+ };
2179
+ 409: {
2180
+ headers: {
2181
+ [name: string]: unknown;
2182
+ };
2183
+ content: {
2184
+ "application/json": components["schemas"]["ErrorDto"];
2299
2185
  };
2300
2186
  };
2301
2187
  };
2302
2188
  };
2303
- ProfileController_findByTag: {
2189
+ EventController_findAll: {
2304
2190
  parameters: {
2305
- query: {
2306
- tags: string[];
2307
- };
2191
+ query?: never;
2308
2192
  header?: never;
2309
2193
  path?: never;
2310
2194
  cookie?: never;
@@ -2316,7 +2200,7 @@ export interface operations {
2316
2200
  [name: string]: unknown;
2317
2201
  };
2318
2202
  content: {
2319
- "application/json": components["schemas"]["FindByTagsProfileResponseDto"];
2203
+ "application/json": components["schemas"]["GetAllEventsResponseDto"];
2320
2204
  };
2321
2205
  };
2322
2206
  404: {
@@ -2329,13 +2213,13 @@ export interface operations {
2329
2213
  };
2330
2214
  };
2331
2215
  };
2332
- ProfileController_findByTagGroups: {
2216
+ EventController_findById: {
2333
2217
  parameters: {
2334
- query: {
2335
- tagGroups: string[];
2336
- };
2218
+ query?: never;
2337
2219
  header?: never;
2338
- path?: never;
2220
+ path: {
2221
+ id: string;
2222
+ };
2339
2223
  cookie?: never;
2340
2224
  };
2341
2225
  requestBody?: never;
@@ -2345,7 +2229,7 @@ export interface operations {
2345
2229
  [name: string]: unknown;
2346
2230
  };
2347
2231
  content: {
2348
- "application/json": components["schemas"]["FindByTagGroupsProfileResponseDto"];
2232
+ "application/json": components["schemas"]["GetByIdEventResponseDto"];
2349
2233
  };
2350
2234
  };
2351
2235
  404: {
@@ -2358,54 +2242,36 @@ export interface operations {
2358
2242
  };
2359
2243
  };
2360
2244
  };
2361
- ProfileController_create: {
2245
+ EventController_remove: {
2362
2246
  parameters: {
2363
2247
  query?: never;
2364
2248
  header?: never;
2365
- path?: never;
2366
- cookie?: never;
2367
- };
2368
- requestBody: {
2369
- content: {
2370
- "application/json": components["schemas"]["CreateProfileDto"];
2249
+ path: {
2250
+ id: string;
2371
2251
  };
2252
+ cookie?: never;
2372
2253
  };
2254
+ requestBody?: never;
2373
2255
  responses: {
2374
- 200: {
2256
+ 404: {
2375
2257
  headers: {
2376
2258
  [name: string]: unknown;
2377
2259
  };
2378
2260
  content: {
2379
- "application/json": {
2380
- response: {
2381
- type: "similar";
2382
- similarProfiles: {
2383
- profile: {
2384
- fullName: string;
2385
- phoneNumber: string;
2386
- id: string;
2387
- };
2388
- similarityPhoneNumberPercentage: number;
2389
- similarityFullNamePercentage: number;
2390
- }[];
2391
- } | {
2392
- type: "created";
2393
- id: string;
2394
- };
2395
- };
2261
+ "application/json": components["schemas"]["ErrorDto"];
2396
2262
  };
2397
2263
  };
2398
- 409: {
2264
+ 410: {
2399
2265
  headers: {
2400
2266
  [name: string]: unknown;
2401
2267
  };
2402
2268
  content: {
2403
- "application/json": components["schemas"]["ErrorDto"];
2269
+ "application/json": components["schemas"]["DeleteEventResponseDto"];
2404
2270
  };
2405
2271
  };
2406
2272
  };
2407
2273
  };
2408
- ProfileController_findById: {
2274
+ EventController_update: {
2409
2275
  parameters: {
2410
2276
  query?: never;
2411
2277
  header?: never;
@@ -2414,14 +2280,18 @@ export interface operations {
2414
2280
  };
2415
2281
  cookie?: never;
2416
2282
  };
2417
- requestBody?: never;
2283
+ requestBody: {
2284
+ content: {
2285
+ "application/json": components["schemas"]["UpdateEventDto"];
2286
+ };
2287
+ };
2418
2288
  responses: {
2419
2289
  200: {
2420
2290
  headers: {
2421
2291
  [name: string]: unknown;
2422
2292
  };
2423
2293
  content: {
2424
- "application/json": components["schemas"]["FindByIdProfileResponseDto"];
2294
+ "application/json": components["schemas"]["UpdateEventResponseDto"];
2425
2295
  };
2426
2296
  };
2427
2297
  404: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.9.0-EXPO-249-EB-Modelo.6",
3
+ "version": "0.9.0-EXPO-247-EB-Evento.1",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -54,7 +54,6 @@
54
54
  "openapi3-ts": "^4.4.0",
55
55
  "patch-package": "^8.0.0",
56
56
  "reflect-metadata": "^0.2.0",
57
- "string-comparison": "^1.3.0",
58
57
  "zod": "^3.23.8"
59
58
  },
60
59
  "devDependencies": {