expo-backend-types 0.9.0-EXPO-249-EB-Modelo.6 → 0.9.0-EXPO-249-EB-Modelo.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -559,6 +559,22 @@ export interface paths {
559
559
  patch?: never;
560
560
  trace?: never;
561
561
  };
562
+ "/profile/find-by-date-range": {
563
+ parameters: {
564
+ query?: never;
565
+ header?: never;
566
+ path?: never;
567
+ cookie?: never;
568
+ };
569
+ get: operations["ProfileController_findByDateRange"];
570
+ put?: never;
571
+ post?: never;
572
+ delete?: never;
573
+ options?: never;
574
+ head?: never;
575
+ patch?: never;
576
+ trace?: never;
577
+ };
562
578
  "/profile/create": {
563
579
  parameters: {
564
580
  query?: never;
@@ -585,10 +601,10 @@ export interface paths {
585
601
  get: operations["ProfileController_findById"];
586
602
  put?: never;
587
603
  post?: never;
588
- delete?: never;
604
+ delete: operations["ProfileController_delete"];
589
605
  options?: never;
590
606
  head?: never;
591
- patch?: never;
607
+ patch: operations["ProfileController_update"];
592
608
  trace?: never;
593
609
  };
594
610
  }
@@ -601,18 +617,18 @@ export interface components {
601
617
  };
602
618
  LoginResponseDto: {
603
619
  user: {
604
- id?: string;
605
- username?: string;
606
- role?: "USER" | "ADMIN" | "FORM";
620
+ id: string;
621
+ username: string;
622
+ role: "USER" | "ADMIN" | "FORM";
607
623
  isGlobalFilterActive: boolean;
608
624
  fcmToken: string[];
609
- created_at?: string;
610
- updated_at?: string;
625
+ created_at: string;
626
+ updated_at: string;
611
627
  };
612
628
  backendTokens: {
613
- accessToken?: string;
614
- refreshToken?: string;
615
- expiresIn?: number;
629
+ accessToken: string;
630
+ refreshToken: string;
631
+ expiresIn: number;
616
632
  };
617
633
  };
618
634
  ErrorDto: {
@@ -679,12 +695,12 @@ export interface components {
679
695
  created_at: string;
680
696
  updated_at: string;
681
697
  group: {
682
- id?: string;
683
- name?: string;
684
- color?: string;
685
- isExclusive?: boolean;
686
- created_at?: string;
687
- updated_at?: string;
698
+ id: string;
699
+ name: string;
700
+ color: string;
701
+ isExclusive: boolean;
702
+ created_at: string;
703
+ updated_at: string;
688
704
  };
689
705
  };
690
706
  UpdateTagDto: {
@@ -716,20 +732,20 @@ export interface components {
716
732
  id: string;
717
733
  shortId: number;
718
734
  phoneNumber: string;
719
- secondaryPhoneNumber: string | null;
735
+ secondaryPhoneNumber: null;
720
736
  fullName: string;
721
- firstName: string | null;
722
- gender: string | null;
723
- birthDate: string | null;
724
- profilePictureUrl: string | null;
725
- instagram: string | null;
726
- mail: string | null;
727
- dni: string | null;
728
- alternativeNames: string[] | null;
729
- birthLocationId: string | null;
730
- residenceLocationId: string | null;
737
+ firstName: null;
738
+ gender: null;
739
+ birthDate: null;
740
+ profilePictureUrl: null;
741
+ instagram: null;
742
+ mail: null;
743
+ dni: null;
744
+ alternativeNames: string[];
745
+ birthLocationId: null;
746
+ residenceLocationId: null;
731
747
  isInTrash: boolean;
732
- movedToTrashDate: string | null;
748
+ movedToTrashDate: null;
733
749
  created_at: string;
734
750
  updated_at: string;
735
751
  }[];
@@ -743,20 +759,20 @@ export interface components {
743
759
  id: string;
744
760
  shortId: number;
745
761
  phoneNumber: string;
746
- secondaryPhoneNumber: string | null;
762
+ secondaryPhoneNumber: null;
747
763
  fullName: string;
748
- firstName: string | null;
749
- gender: string | null;
750
- birthDate: string | null;
751
- profilePictureUrl: string | null;
752
- instagram: string | null;
753
- mail: string | null;
754
- dni: string | null;
755
- alternativeNames: string[] | null;
756
- birthLocationId: string | null;
757
- residenceLocationId: string | null;
764
+ firstName: null;
765
+ gender: null;
766
+ birthDate: null;
767
+ profilePictureUrl: null;
768
+ instagram: null;
769
+ mail: null;
770
+ dni: null;
771
+ alternativeNames: string[];
772
+ birthLocationId: null;
773
+ residenceLocationId: null;
758
774
  isInTrash: boolean;
759
- movedToTrashDate: string | null;
775
+ movedToTrashDate: null;
760
776
  created_at: string;
761
777
  updated_at: string;
762
778
  }[];
@@ -937,8 +953,8 @@ export interface components {
937
953
  profileId: string;
938
954
  isSolvable: boolean;
939
955
  isSolved: boolean;
940
- solvedAt: string | null;
941
- solvedBy: string;
956
+ solvedAt: null;
957
+ solvedBy?: string;
942
958
  created_at: string;
943
959
  updated_at: string;
944
960
  };
@@ -950,7 +966,7 @@ export interface components {
950
966
  profileId: string;
951
967
  isSolvable: boolean;
952
968
  isSolved: boolean;
953
- solvedAt: string | null;
969
+ solvedAt: null;
954
970
  solvedBy?: string;
955
971
  created_at: string;
956
972
  updated_at: string;
@@ -966,8 +982,8 @@ export interface components {
966
982
  profileId: string;
967
983
  isSolvable: boolean;
968
984
  isSolved: boolean;
969
- solvedAt: string | null;
970
- solvedBy: string;
985
+ solvedAt: null;
986
+ solvedBy?: string;
971
987
  created_at: string;
972
988
  updated_at: string;
973
989
  };
@@ -1014,8 +1030,8 @@ export interface components {
1014
1030
  isoCode: string;
1015
1031
  countryCode: string;
1016
1032
  countryName: string;
1017
- latitude?: string | null;
1018
- longitude?: string | null;
1033
+ latitude?: null;
1034
+ longitude?: null;
1019
1035
  }[];
1020
1036
  };
1021
1037
  CreateCannedResponseDto: {
@@ -1079,10 +1095,10 @@ export interface components {
1079
1095
  name: string;
1080
1096
  date: string;
1081
1097
  location: string;
1082
- folderId: string | null;
1098
+ folderId: null;
1083
1099
  tagAssistedId: string;
1084
1100
  tagConfirmedId: string;
1085
- supraEventId: string | null;
1101
+ supraEventId: null;
1086
1102
  created_at: string;
1087
1103
  updated_at: string;
1088
1104
  }[];
@@ -1099,10 +1115,10 @@ export interface components {
1099
1115
  name: string;
1100
1116
  date: string;
1101
1117
  location: string;
1102
- folderId: string | null;
1118
+ folderId: null;
1103
1119
  tagAssistedId: string;
1104
1120
  tagConfirmedId: string;
1105
- supraEventId: string | null;
1121
+ supraEventId: null;
1106
1122
  created_at: string;
1107
1123
  updated_at: string;
1108
1124
  }[];
@@ -1130,20 +1146,20 @@ export interface components {
1130
1146
  id: string;
1131
1147
  shortId: number;
1132
1148
  phoneNumber: string;
1133
- secondaryPhoneNumber: string | null;
1149
+ secondaryPhoneNumber: null;
1134
1150
  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;
1151
+ firstName: null;
1152
+ gender: null;
1153
+ birthDate: null;
1154
+ profilePictureUrl: null;
1155
+ instagram: null;
1156
+ mail: null;
1157
+ dni: null;
1158
+ alternativeNames: string[];
1159
+ birthLocationId: null;
1160
+ residenceLocationId: null;
1145
1161
  isInTrash: boolean;
1146
- movedToTrashDate: string | null;
1162
+ movedToTrashDate: null;
1147
1163
  created_at: string;
1148
1164
  updated_at: string;
1149
1165
  tags: {
@@ -1165,20 +1181,20 @@ export interface components {
1165
1181
  id: string;
1166
1182
  shortId: number;
1167
1183
  phoneNumber: string;
1168
- secondaryPhoneNumber: string | null;
1184
+ secondaryPhoneNumber: null;
1169
1185
  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;
1186
+ firstName: null;
1187
+ gender: null;
1188
+ birthDate: null;
1189
+ profilePictureUrl: null;
1190
+ instagram: null;
1191
+ mail: null;
1192
+ dni: null;
1193
+ alternativeNames: string[];
1194
+ birthLocationId: null;
1195
+ residenceLocationId: null;
1180
1196
  isInTrash: boolean;
1181
- movedToTrashDate: string | null;
1197
+ movedToTrashDate: null;
1182
1198
  created_at: string;
1183
1199
  updated_at: string;
1184
1200
  tags: {
@@ -1199,20 +1215,20 @@ export interface components {
1199
1215
  id: string;
1200
1216
  shortId: number;
1201
1217
  phoneNumber: string;
1202
- secondaryPhoneNumber: string | null;
1218
+ secondaryPhoneNumber: null;
1203
1219
  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;
1220
+ firstName: null;
1221
+ gender: null;
1222
+ birthDate: null;
1223
+ profilePictureUrl: null;
1224
+ instagram: null;
1225
+ mail: null;
1226
+ dni: null;
1227
+ alternativeNames: string[];
1228
+ birthLocationId: null;
1229
+ residenceLocationId: null;
1214
1230
  isInTrash: boolean;
1215
- movedToTrashDate: string | null;
1231
+ movedToTrashDate: null;
1216
1232
  created_at: string;
1217
1233
  updated_at: string;
1218
1234
  tags: {
@@ -1225,18 +1241,52 @@ export interface components {
1225
1241
  }[];
1226
1242
  }[];
1227
1243
  };
1244
+ FindByDateRangeResponseDto: {
1245
+ [key: string]: {
1246
+ id: string;
1247
+ shortId: number;
1248
+ phoneNumber: string;
1249
+ secondaryPhoneNumber: null;
1250
+ fullName: string;
1251
+ firstName: null;
1252
+ gender: null;
1253
+ birthDate: null;
1254
+ profilePictureUrl: null;
1255
+ instagram: null;
1256
+ mail: null;
1257
+ dni: null;
1258
+ alternativeNames: string[];
1259
+ birthLocationId: null;
1260
+ residenceLocationId: null;
1261
+ isInTrash: boolean;
1262
+ movedToTrashDate: null;
1263
+ created_at: string;
1264
+ updated_at: string;
1265
+ tags: {
1266
+ id: string;
1267
+ name: string;
1268
+ groupId: string;
1269
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
1270
+ created_at: string;
1271
+ updated_at: string;
1272
+ group: {
1273
+ id: string;
1274
+ };
1275
+ }[];
1276
+ }[] | undefined;
1277
+ };
1228
1278
  CreateProfileDto: {
1229
1279
  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;
1280
+ alternativeNames: string[];
1281
+ birthDate: null;
1282
+ dni: null;
1283
+ fullName: string;
1284
+ gender: null;
1285
+ instagram: null;
1286
+ mail: null;
1287
+ phoneNumber: string;
1288
+ profilePictureUrl: null;
1289
+ secondaryPhoneNumber: null;
1240
1290
  comments?: {
1241
1291
  content: string;
1242
1292
  isSolvable: boolean;
@@ -1257,48 +1307,47 @@ export interface components {
1257
1307
  };
1258
1308
  tags?: string[];
1259
1309
  };
1260
- checkForSimilarity: boolean;
1310
+ checkForSimilarity?: boolean;
1311
+ };
1312
+ CreateProfileResponseDto: {
1313
+ response: {
1314
+ type: "similar";
1315
+ similarProfiles: {
1316
+ profile: {
1317
+ fullName: string;
1318
+ phoneNumber: string;
1319
+ id: string;
1320
+ };
1321
+ similarityPhoneNumberPercentage: number;
1322
+ similarityFullNamePercentage: number;
1323
+ }[];
1324
+ } | {
1325
+ type: "created";
1326
+ id: string;
1327
+ };
1261
1328
  };
1262
1329
  FindByIdProfileResponseDto: {
1263
1330
  id: string;
1264
1331
  shortId: number;
1265
1332
  phoneNumber: string;
1266
- secondaryPhoneNumber: string | null;
1333
+ secondaryPhoneNumber: null;
1267
1334
  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;
1335
+ firstName: null;
1336
+ gender: null;
1337
+ birthDate: null;
1338
+ profilePictureUrl: null;
1339
+ instagram: null;
1340
+ mail: null;
1341
+ dni: null;
1342
+ alternativeNames: string[];
1343
+ birthLocationId: null;
1344
+ residenceLocationId: null;
1278
1345
  isInTrash: boolean;
1279
- movedToTrashDate: string | null;
1346
+ movedToTrashDate: null;
1280
1347
  created_at: string;
1281
1348
  updated_at: string;
1282
- residenceLocation: {
1283
- 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;
1299
- created_at?: string;
1300
- updated_at?: string;
1301
- } | null;
1349
+ residenceLocation: null;
1350
+ birthLocation: null;
1302
1351
  tags: {
1303
1352
  id: string;
1304
1353
  name: string;
@@ -1313,6 +1362,56 @@ export interface components {
1313
1362
  };
1314
1363
  }[];
1315
1364
  };
1365
+ DeleteProfileResponseDto: {
1366
+ id: string;
1367
+ shortId: number;
1368
+ phoneNumber: string;
1369
+ secondaryPhoneNumber: null;
1370
+ fullName: string;
1371
+ firstName: null;
1372
+ gender: null;
1373
+ birthDate: null;
1374
+ profilePictureUrl: null;
1375
+ instagram: null;
1376
+ mail: null;
1377
+ dni: null;
1378
+ alternativeNames: string[];
1379
+ birthLocationId: null;
1380
+ residenceLocationId: null;
1381
+ isInTrash: boolean;
1382
+ movedToTrashDate: null;
1383
+ created_at: string;
1384
+ updated_at: string;
1385
+ };
1386
+ UpdateProfileDto: {
1387
+ alternativeNames: string[];
1388
+ birthDate: null;
1389
+ dni: null;
1390
+ fullName: string;
1391
+ gender: null;
1392
+ instagram: null;
1393
+ mail: null;
1394
+ phoneNumber: string;
1395
+ profilePictureUrl: null;
1396
+ secondaryPhoneNumber: null;
1397
+ isInTrash: boolean;
1398
+ movedToTrashDate: null;
1399
+ residence?: {
1400
+ city: string;
1401
+ country: string;
1402
+ latitude: number;
1403
+ longitude: number;
1404
+ state: string;
1405
+ };
1406
+ birth?: {
1407
+ city: string;
1408
+ country: string;
1409
+ latitude: number;
1410
+ longitude: number;
1411
+ state: string;
1412
+ };
1413
+ tags?: string[];
1414
+ };
1316
1415
  };
1317
1416
  responses: never;
1318
1417
  parameters: never;
@@ -2358,6 +2457,36 @@ export interface operations {
2358
2457
  };
2359
2458
  };
2360
2459
  };
2460
+ ProfileController_findByDateRange: {
2461
+ parameters: {
2462
+ query: {
2463
+ from: string;
2464
+ to: string;
2465
+ };
2466
+ header?: never;
2467
+ path?: never;
2468
+ cookie?: never;
2469
+ };
2470
+ requestBody?: never;
2471
+ responses: {
2472
+ 200: {
2473
+ headers: {
2474
+ [name: string]: unknown;
2475
+ };
2476
+ content: {
2477
+ "application/json": components["schemas"]["FindByDateRangeResponseDto"];
2478
+ };
2479
+ };
2480
+ 412: {
2481
+ headers: {
2482
+ [name: string]: unknown;
2483
+ };
2484
+ content: {
2485
+ "application/json": components["schemas"]["ErrorDto"];
2486
+ };
2487
+ };
2488
+ };
2489
+ };
2361
2490
  ProfileController_create: {
2362
2491
  parameters: {
2363
2492
  query?: never;
@@ -2376,23 +2505,15 @@ export interface operations {
2376
2505
  [name: string]: unknown;
2377
2506
  };
2378
2507
  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
- };
2508
+ "application/json": components["schemas"]["CreateProfileResponseDto"];
2509
+ };
2510
+ };
2511
+ 404: {
2512
+ headers: {
2513
+ [name: string]: unknown;
2514
+ };
2515
+ content: {
2516
+ "application/json": components["schemas"]["ErrorDto"];
2396
2517
  };
2397
2518
  };
2398
2519
  409: {
@@ -2434,4 +2555,74 @@ export interface operations {
2434
2555
  };
2435
2556
  };
2436
2557
  };
2558
+ ProfileController_delete: {
2559
+ parameters: {
2560
+ query?: never;
2561
+ header?: never;
2562
+ path: {
2563
+ id: string;
2564
+ };
2565
+ cookie?: never;
2566
+ };
2567
+ requestBody?: never;
2568
+ responses: {
2569
+ 200: {
2570
+ headers: {
2571
+ [name: string]: unknown;
2572
+ };
2573
+ content: {
2574
+ "application/json": components["schemas"]["DeleteProfileResponseDto"];
2575
+ };
2576
+ };
2577
+ 404: {
2578
+ headers: {
2579
+ [name: string]: unknown;
2580
+ };
2581
+ content: {
2582
+ "application/json": components["schemas"]["ErrorDto"];
2583
+ };
2584
+ };
2585
+ };
2586
+ };
2587
+ ProfileController_update: {
2588
+ parameters: {
2589
+ query?: never;
2590
+ header?: never;
2591
+ path: {
2592
+ id: string;
2593
+ };
2594
+ cookie?: never;
2595
+ };
2596
+ requestBody: {
2597
+ content: {
2598
+ "application/json": components["schemas"]["UpdateProfileDto"];
2599
+ };
2600
+ };
2601
+ responses: {
2602
+ 200: {
2603
+ headers: {
2604
+ [name: string]: unknown;
2605
+ };
2606
+ content: {
2607
+ "application/json": components["schemas"]["UpdateProfileDto"];
2608
+ };
2609
+ };
2610
+ 404: {
2611
+ headers: {
2612
+ [name: string]: unknown;
2613
+ };
2614
+ content: {
2615
+ "application/json": components["schemas"]["ErrorDto"];
2616
+ };
2617
+ };
2618
+ 409: {
2619
+ headers: {
2620
+ [name: string]: unknown;
2621
+ };
2622
+ content: {
2623
+ "application/json": components["schemas"]["ErrorDto"];
2624
+ };
2625
+ };
2626
+ };
2627
+ };
2437
2628
  }
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-249-EB-Modelo.7",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -68,6 +68,7 @@
68
68
  "@types/express": "^4.17.17",
69
69
  "@types/jest": "^29.5.2",
70
70
  "@types/json-to-pretty-yaml": "^1.2.1",
71
+ "@types/luxon": "^3.4.2",
71
72
  "@types/node": "^20.3.1",
72
73
  "@types/supertest": "^6.0.0",
73
74
  "@typescript-eslint/eslint-plugin": "^8.8.0",
@@ -80,6 +81,7 @@
80
81
  "husky": "^9.0.11",
81
82
  "jest": "^29.5.0",
82
83
  "lint-staged": "^15.2.5",
84
+ "luxon": "^3.5.0",
83
85
  "openapi-typescript": "^7.0.0-rc.0",
84
86
  "prettier": "^3.0.0",
85
87
  "prisma": "^5.14.0",