expo-backend-types 0.14.0-EXPO-249-EB-Modelo.4 → 0.14.0-EXPO-249-EB-Modelo.5

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.
@@ -455,8 +455,7 @@ declare const similarProfileSchema: z.ZodObject<{
455
455
  similarityFullNamePercentage: number;
456
456
  }>;
457
457
  export declare const createProfileResponseSchema: z.ZodObject<{
458
- response: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
459
- type: z.ZodLiteral<"similar">;
458
+ response: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
460
459
  similarProfiles: z.ZodArray<z.ZodObject<{
461
460
  profile: z.ZodObject<Pick<{
462
461
  id: z.ZodString;
@@ -506,7 +505,9 @@ export declare const createProfileResponseSchema: z.ZodObject<{
506
505
  similarityPhoneNumberPercentage: number;
507
506
  similarityFullNamePercentage: number;
508
507
  }>, "many">;
509
- }, "strip", z.ZodTypeAny, {
508
+ }, {
509
+ type: z.ZodLiteral<"similar">;
510
+ }>, "strip", z.ZodTypeAny, {
510
511
  type: "similar";
511
512
  similarProfiles: {
512
513
  profile: {
@@ -528,10 +529,11 @@ export declare const createProfileResponseSchema: z.ZodObject<{
528
529
  similarityPhoneNumberPercentage: number;
529
530
  similarityFullNamePercentage: number;
530
531
  }[];
531
- }>, z.ZodObject<{
532
- type: z.ZodLiteral<"created">;
532
+ }>, z.ZodObject<z.objectUtil.extendShape<{
533
533
  id: z.ZodString;
534
- }, "strip", z.ZodTypeAny, {
534
+ }, {
535
+ type: z.ZodLiteral<"created">;
536
+ }>, "strip", z.ZodTypeAny, {
535
537
  id: string;
536
538
  type: "created";
537
539
  }, {
@@ -572,8 +574,7 @@ export declare const createProfileResponseSchema: z.ZodObject<{
572
574
  };
573
575
  }>;
574
576
  declare const CreateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
575
- response: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
576
- type: z.ZodLiteral<"similar">;
577
+ response: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
577
578
  similarProfiles: z.ZodArray<z.ZodObject<{
578
579
  profile: z.ZodObject<Pick<{
579
580
  id: z.ZodString;
@@ -623,7 +624,9 @@ declare const CreateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
623
624
  similarityPhoneNumberPercentage: number;
624
625
  similarityFullNamePercentage: number;
625
626
  }>, "many">;
626
- }, "strip", z.ZodTypeAny, {
627
+ }, {
628
+ type: z.ZodLiteral<"similar">;
629
+ }>, "strip", z.ZodTypeAny, {
627
630
  type: "similar";
628
631
  similarProfiles: {
629
632
  profile: {
@@ -645,10 +648,11 @@ declare const CreateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
645
648
  similarityPhoneNumberPercentage: number;
646
649
  similarityFullNamePercentage: number;
647
650
  }[];
648
- }>, z.ZodObject<{
649
- type: z.ZodLiteral<"created">;
651
+ }>, z.ZodObject<z.objectUtil.extendShape<{
650
652
  id: z.ZodString;
651
- }, "strip", z.ZodTypeAny, {
653
+ }, {
654
+ type: z.ZodLiteral<"created">;
655
+ }>, "strip", z.ZodTypeAny, {
652
656
  id: string;
653
657
  type: "created";
654
658
  }, {
@@ -65,14 +65,18 @@ const similarProfileSchema = zod_1.default.object({
65
65
  similarityPhoneNumberPercentage: zod_1.default.number(),
66
66
  similarityFullNamePercentage: zod_1.default.number(),
67
67
  });
68
+ const similarityProfileSchema = zod_1.default.object({
69
+ similarProfiles: zod_1.default.array(similarProfileSchema),
70
+ });
71
+ const createdProfileSchema = zod_1.default.object({
72
+ id: profile_dto_1.profileSchema.shape.id,
73
+ });
68
74
  const createProfileResponseSchemaBase = zod_1.default.discriminatedUnion('type', [
69
- zod_1.default.object({
75
+ similarityProfileSchema.extend({
70
76
  type: zod_1.default.literal('similar'),
71
- similarProfiles: zod_1.default.array(similarProfileSchema),
72
77
  }),
73
- zod_1.default.object({
78
+ createdProfileSchema.extend({
74
79
  type: zod_1.default.literal('created'),
75
- id: profile_dto_1.profileSchema.shape.id,
76
80
  }),
77
81
  ]);
78
82
  exports.createProfileResponseSchema = zod_1.default.object({
@@ -1,4 +1,4 @@
1
- import { OpenApiZodAny } from '@anatine/zod-openapi';
1
+ import { type OpenApiZodAny } from '@anatine/zod-openapi';
2
2
  import { z, ZodArray, ZodDate, ZodIntersection, ZodNullable, ZodObject, ZodOptional, ZodTypeAny, ZodUnion } from 'zod';
3
3
  export type ReplaceDatesWithStrings<T extends ZodTypeAny> = T extends ZodDate ? ReturnType<typeof z.string> : T extends ZodObject<infer Shape> ? ZodObject<{
4
4
  [k in keyof Shape]: ReplaceDatesWithStrings<Shape[k]>;
@@ -511,6 +511,54 @@ export interface paths {
511
511
  patch?: never;
512
512
  trace?: never;
513
513
  };
514
+ "/event/create": {
515
+ parameters: {
516
+ query?: never;
517
+ header?: never;
518
+ path?: never;
519
+ cookie?: never;
520
+ };
521
+ get?: never;
522
+ put?: never;
523
+ post: operations["EventController_create"];
524
+ delete?: never;
525
+ options?: never;
526
+ head?: never;
527
+ patch?: never;
528
+ trace?: never;
529
+ };
530
+ "/event/all": {
531
+ parameters: {
532
+ query?: never;
533
+ header?: never;
534
+ path?: never;
535
+ cookie?: never;
536
+ };
537
+ get: operations["EventController_findAll"];
538
+ put?: never;
539
+ post?: never;
540
+ delete?: never;
541
+ options?: never;
542
+ head?: never;
543
+ patch?: never;
544
+ trace?: never;
545
+ };
546
+ "/event/{id}": {
547
+ parameters: {
548
+ query?: never;
549
+ header?: never;
550
+ path?: never;
551
+ cookie?: never;
552
+ };
553
+ get: operations["EventController_findById"];
554
+ put?: never;
555
+ post?: never;
556
+ delete: operations["EventController_remove"];
557
+ options?: never;
558
+ head?: never;
559
+ patch: operations["EventController_update"];
560
+ trace?: never;
561
+ };
514
562
  "/profile/all": {
515
563
  parameters: {
516
564
  query?: never;
@@ -1134,7 +1182,7 @@ export interface components {
1134
1182
  updated_at: string;
1135
1183
  };
1136
1184
  GetAllEventFolderResponseDto: {
1137
- eventFolders: {
1185
+ folders: {
1138
1186
  id: string;
1139
1187
  name: string;
1140
1188
  color: string;
@@ -1191,6 +1239,198 @@ export interface components {
1191
1239
  created_at: string;
1192
1240
  updated_at: string;
1193
1241
  };
1242
+ CreateEventDto: {
1243
+ name: string;
1244
+ date: string;
1245
+ location: string;
1246
+ folderId: string | null;
1247
+ subEvents?: {
1248
+ name: string;
1249
+ date: string;
1250
+ location: string;
1251
+ }[];
1252
+ };
1253
+ CreateEventResponseDto: {
1254
+ id: string;
1255
+ name: string;
1256
+ date: string;
1257
+ location: string;
1258
+ folderId: string | null;
1259
+ tagAssistedId: string;
1260
+ tagConfirmedId: string;
1261
+ supraEventId: string | null;
1262
+ created_at: string;
1263
+ updated_at: string;
1264
+ };
1265
+ GetAllEventsResponseDto: {
1266
+ folders: {
1267
+ id: string;
1268
+ name: string;
1269
+ color: string;
1270
+ created_at: string;
1271
+ updated_at: string;
1272
+ events: {
1273
+ id: string;
1274
+ name: string;
1275
+ date: string;
1276
+ location: string;
1277
+ folderId: string | null;
1278
+ tagAssistedId: string;
1279
+ tagConfirmedId: string;
1280
+ supraEventId: string | null;
1281
+ created_at: string;
1282
+ updated_at: string;
1283
+ supraEvent: {
1284
+ id: string;
1285
+ name: string;
1286
+ date: string;
1287
+ location: string;
1288
+ folderId: string | null;
1289
+ tagAssistedId: string;
1290
+ tagConfirmedId: string;
1291
+ supraEventId: string | null;
1292
+ created_at: string;
1293
+ updated_at: string;
1294
+ } | null;
1295
+ subEvents: {
1296
+ id: string;
1297
+ name: string;
1298
+ date: string;
1299
+ location: string;
1300
+ folderId: string | null;
1301
+ tagAssistedId: string;
1302
+ tagConfirmedId: string;
1303
+ supraEventId: string | null;
1304
+ created_at: string;
1305
+ updated_at: string;
1306
+ }[];
1307
+ }[];
1308
+ }[];
1309
+ withoutFolder: {
1310
+ id: string;
1311
+ name: string;
1312
+ date: string;
1313
+ location: string;
1314
+ folderId: string | null;
1315
+ tagAssistedId: string;
1316
+ tagConfirmedId: string;
1317
+ supraEventId: string | null;
1318
+ created_at: string;
1319
+ updated_at: string;
1320
+ supraEvent: {
1321
+ id: string;
1322
+ name: string;
1323
+ date: string;
1324
+ location: string;
1325
+ folderId: string | null;
1326
+ tagAssistedId: string;
1327
+ tagConfirmedId: string;
1328
+ supraEventId: string | null;
1329
+ created_at: string;
1330
+ updated_at: string;
1331
+ } | null;
1332
+ subEvents: {
1333
+ id: string;
1334
+ name: string;
1335
+ date: string;
1336
+ location: string;
1337
+ folderId: string | null;
1338
+ tagAssistedId: string;
1339
+ tagConfirmedId: string;
1340
+ supraEventId: string | null;
1341
+ created_at: string;
1342
+ updated_at: string;
1343
+ }[];
1344
+ }[];
1345
+ };
1346
+ GetByIdEventResponseDto: {
1347
+ id: string;
1348
+ name: string;
1349
+ date: string;
1350
+ location: string;
1351
+ folderId: string | null;
1352
+ tagAssistedId: string;
1353
+ tagConfirmedId: string;
1354
+ supraEventId: string | null;
1355
+ created_at: string;
1356
+ updated_at: string;
1357
+ subEvents: {
1358
+ id: string;
1359
+ name: string;
1360
+ date: string;
1361
+ location: string;
1362
+ folderId: string | null;
1363
+ tagAssistedId: string;
1364
+ tagConfirmedId: string;
1365
+ supraEventId: string | null;
1366
+ created_at: string;
1367
+ updated_at: string;
1368
+ }[];
1369
+ supraEvent: {
1370
+ id: string;
1371
+ name: string;
1372
+ date: string;
1373
+ location: string;
1374
+ folderId: string | null;
1375
+ tagAssistedId: string;
1376
+ tagConfirmedId: string;
1377
+ supraEventId: string | null;
1378
+ created_at: string;
1379
+ updated_at: string;
1380
+ } | null;
1381
+ };
1382
+ UpdateEventDto: {
1383
+ name: string;
1384
+ folderId: string | null;
1385
+ date: string;
1386
+ location: string;
1387
+ subEvents: {
1388
+ name: string;
1389
+ location: string;
1390
+ date: string;
1391
+ id: string | "";
1392
+ }[];
1393
+ };
1394
+ UpdateEventResponseDto: {
1395
+ id: string;
1396
+ name: string;
1397
+ date: string;
1398
+ location: string;
1399
+ folderId: string | null;
1400
+ tagAssistedId: string;
1401
+ tagConfirmedId: string;
1402
+ supraEventId: string | null;
1403
+ created_at: string;
1404
+ updated_at: string;
1405
+ tagAssisted: {
1406
+ id: string;
1407
+ name: string;
1408
+ groupId: string;
1409
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
1410
+ created_at: string;
1411
+ updated_at: string;
1412
+ group: {
1413
+ id: string;
1414
+ name: string;
1415
+ color: string;
1416
+ isExclusive: boolean;
1417
+ created_at: string;
1418
+ updated_at: string;
1419
+ };
1420
+ };
1421
+ };
1422
+ DeleteEventResponseDto: {
1423
+ id: string;
1424
+ name: string;
1425
+ date: string;
1426
+ location: string;
1427
+ folderId: string | null;
1428
+ tagAssistedId: string;
1429
+ tagConfirmedId: string;
1430
+ supraEventId: string | null;
1431
+ created_at: string;
1432
+ updated_at: string;
1433
+ };
1194
1434
  FindAllProfileResponseDto: {
1195
1435
  profiles: {
1196
1436
  id: string;
@@ -1446,7 +1686,6 @@ export interface components {
1446
1686
  };
1447
1687
  CreateProfileResponseDto: {
1448
1688
  response: {
1449
- type: "similar";
1450
1689
  similarProfiles: {
1451
1690
  profile: {
1452
1691
  fullName: string;
@@ -1456,9 +1695,10 @@ export interface components {
1456
1695
  similarityPhoneNumberPercentage: number;
1457
1696
  similarityFullNamePercentage: number;
1458
1697
  }[];
1698
+ type: "similar";
1459
1699
  } | {
1460
- type: "created";
1461
1700
  id: string;
1701
+ type: "created";
1462
1702
  };
1463
1703
  };
1464
1704
  FindByIdProfileResponseDto: {
@@ -2533,6 +2773,155 @@ export interface operations {
2533
2773
  };
2534
2774
  };
2535
2775
  };
2776
+ EventController_create: {
2777
+ parameters: {
2778
+ query?: never;
2779
+ header?: never;
2780
+ path?: never;
2781
+ cookie?: never;
2782
+ };
2783
+ requestBody: {
2784
+ content: {
2785
+ "application/json": components["schemas"]["CreateEventDto"];
2786
+ };
2787
+ };
2788
+ responses: {
2789
+ 201: {
2790
+ headers: {
2791
+ [name: string]: unknown;
2792
+ };
2793
+ content: {
2794
+ "application/json": components["schemas"]["CreateEventResponseDto"];
2795
+ };
2796
+ };
2797
+ 409: {
2798
+ headers: {
2799
+ [name: string]: unknown;
2800
+ };
2801
+ content: {
2802
+ "application/json": components["schemas"]["ErrorDto"];
2803
+ };
2804
+ };
2805
+ };
2806
+ };
2807
+ EventController_findAll: {
2808
+ parameters: {
2809
+ query?: never;
2810
+ header?: never;
2811
+ path?: never;
2812
+ cookie?: never;
2813
+ };
2814
+ requestBody?: never;
2815
+ responses: {
2816
+ 200: {
2817
+ headers: {
2818
+ [name: string]: unknown;
2819
+ };
2820
+ content: {
2821
+ "application/json": components["schemas"]["GetAllEventsResponseDto"];
2822
+ };
2823
+ };
2824
+ 404: {
2825
+ headers: {
2826
+ [name: string]: unknown;
2827
+ };
2828
+ content: {
2829
+ "application/json": components["schemas"]["ErrorDto"];
2830
+ };
2831
+ };
2832
+ };
2833
+ };
2834
+ EventController_findById: {
2835
+ parameters: {
2836
+ query?: never;
2837
+ header?: never;
2838
+ path: {
2839
+ id: string;
2840
+ };
2841
+ cookie?: never;
2842
+ };
2843
+ requestBody?: never;
2844
+ responses: {
2845
+ 200: {
2846
+ headers: {
2847
+ [name: string]: unknown;
2848
+ };
2849
+ content: {
2850
+ "application/json": components["schemas"]["GetByIdEventResponseDto"];
2851
+ };
2852
+ };
2853
+ 404: {
2854
+ headers: {
2855
+ [name: string]: unknown;
2856
+ };
2857
+ content: {
2858
+ "application/json": components["schemas"]["ErrorDto"];
2859
+ };
2860
+ };
2861
+ };
2862
+ };
2863
+ EventController_remove: {
2864
+ parameters: {
2865
+ query?: never;
2866
+ header?: never;
2867
+ path: {
2868
+ id: string;
2869
+ };
2870
+ cookie?: never;
2871
+ };
2872
+ requestBody?: never;
2873
+ responses: {
2874
+ 404: {
2875
+ headers: {
2876
+ [name: string]: unknown;
2877
+ };
2878
+ content: {
2879
+ "application/json": components["schemas"]["ErrorDto"];
2880
+ };
2881
+ };
2882
+ 410: {
2883
+ headers: {
2884
+ [name: string]: unknown;
2885
+ };
2886
+ content: {
2887
+ "application/json": components["schemas"]["DeleteEventResponseDto"];
2888
+ };
2889
+ };
2890
+ };
2891
+ };
2892
+ EventController_update: {
2893
+ parameters: {
2894
+ query?: never;
2895
+ header?: never;
2896
+ path: {
2897
+ id: string;
2898
+ };
2899
+ cookie?: never;
2900
+ };
2901
+ requestBody: {
2902
+ content: {
2903
+ "application/json": components["schemas"]["UpdateEventDto"];
2904
+ };
2905
+ };
2906
+ responses: {
2907
+ 200: {
2908
+ headers: {
2909
+ [name: string]: unknown;
2910
+ };
2911
+ content: {
2912
+ "application/json": components["schemas"]["UpdateEventResponseDto"];
2913
+ };
2914
+ };
2915
+ 404: {
2916
+ headers: {
2917
+ [name: string]: unknown;
2918
+ };
2919
+ content: {
2920
+ "application/json": components["schemas"]["ErrorDto"];
2921
+ };
2922
+ };
2923
+ };
2924
+ };
2536
2925
  ProfileController_findAll: {
2537
2926
  parameters: {
2538
2927
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.14.0-EXPO-249-EB-Modelo.4",
3
+ "version": "0.14.0-EXPO-249-EB-Modelo.5",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,