expo-backend-types 0.13.0 → 0.14.0-EXPO-249-EB-Modelo.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -511,54 +511,6 @@ 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
- };
562
514
  "/profile/all": {
563
515
  parameters: {
564
516
  query?: never;
@@ -1180,7 +1132,7 @@ export interface components {
1180
1132
  updated_at: string;
1181
1133
  };
1182
1134
  GetAllEventFolderResponseDto: {
1183
- folders: {
1135
+ eventFolders: {
1184
1136
  id: string;
1185
1137
  name: string;
1186
1138
  color: string;
@@ -1237,198 +1189,6 @@ export interface components {
1237
1189
  created_at: string;
1238
1190
  updated_at: string;
1239
1191
  };
1240
- CreateEventDto: {
1241
- name: string;
1242
- date: string;
1243
- location: string;
1244
- folderId: string | null;
1245
- subEvents?: {
1246
- name: string;
1247
- date: string;
1248
- location: string;
1249
- }[];
1250
- };
1251
- CreateEventResponseDto: {
1252
- id: string;
1253
- name: string;
1254
- date: string;
1255
- location: string;
1256
- folderId: string | null;
1257
- tagAssistedId: string;
1258
- tagConfirmedId: string;
1259
- supraEventId: string | null;
1260
- created_at: string;
1261
- updated_at: string;
1262
- };
1263
- GetAllEventsResponseDto: {
1264
- folders: {
1265
- id: string;
1266
- name: string;
1267
- color: string;
1268
- created_at: string;
1269
- updated_at: string;
1270
- events: {
1271
- id: string;
1272
- name: string;
1273
- date: string;
1274
- location: string;
1275
- folderId: string | null;
1276
- tagAssistedId: string;
1277
- tagConfirmedId: string;
1278
- supraEventId: string | null;
1279
- created_at: string;
1280
- updated_at: string;
1281
- supraEvent: {
1282
- id: string;
1283
- name: string;
1284
- date: string;
1285
- location: string;
1286
- folderId: string | null;
1287
- tagAssistedId: string;
1288
- tagConfirmedId: string;
1289
- supraEventId: string | null;
1290
- created_at: string;
1291
- updated_at: string;
1292
- } | null;
1293
- subEvents: {
1294
- id: string;
1295
- name: string;
1296
- date: string;
1297
- location: string;
1298
- folderId: string | null;
1299
- tagAssistedId: string;
1300
- tagConfirmedId: string;
1301
- supraEventId: string | null;
1302
- created_at: string;
1303
- updated_at: string;
1304
- }[];
1305
- }[];
1306
- }[];
1307
- withoutFolder: {
1308
- id: string;
1309
- name: string;
1310
- date: string;
1311
- location: string;
1312
- folderId: string | null;
1313
- tagAssistedId: string;
1314
- tagConfirmedId: string;
1315
- supraEventId: string | null;
1316
- created_at: string;
1317
- updated_at: string;
1318
- supraEvent: {
1319
- id: string;
1320
- name: string;
1321
- date: string;
1322
- location: string;
1323
- folderId: string | null;
1324
- tagAssistedId: string;
1325
- tagConfirmedId: string;
1326
- supraEventId: string | null;
1327
- created_at: string;
1328
- updated_at: string;
1329
- } | null;
1330
- subEvents: {
1331
- id: string;
1332
- name: string;
1333
- date: string;
1334
- location: string;
1335
- folderId: string | null;
1336
- tagAssistedId: string;
1337
- tagConfirmedId: string;
1338
- supraEventId: string | null;
1339
- created_at: string;
1340
- updated_at: string;
1341
- }[];
1342
- }[];
1343
- };
1344
- GetByIdEventResponseDto: {
1345
- id: string;
1346
- name: string;
1347
- date: string;
1348
- location: string;
1349
- folderId: string | null;
1350
- tagAssistedId: string;
1351
- tagConfirmedId: string;
1352
- supraEventId: string | null;
1353
- created_at: string;
1354
- updated_at: string;
1355
- subEvents: {
1356
- id: string;
1357
- name: string;
1358
- date: string;
1359
- location: string;
1360
- folderId: string | null;
1361
- tagAssistedId: string;
1362
- tagConfirmedId: string;
1363
- supraEventId: string | null;
1364
- created_at: string;
1365
- updated_at: string;
1366
- }[];
1367
- supraEvent: {
1368
- id: string;
1369
- name: string;
1370
- date: string;
1371
- location: string;
1372
- folderId: string | null;
1373
- tagAssistedId: string;
1374
- tagConfirmedId: string;
1375
- supraEventId: string | null;
1376
- created_at: string;
1377
- updated_at: string;
1378
- } | null;
1379
- };
1380
- UpdateEventDto: {
1381
- name: string;
1382
- folderId: string | null;
1383
- date: string;
1384
- location: string;
1385
- subEvents: {
1386
- name: string;
1387
- location: string;
1388
- date: string;
1389
- id: string | "";
1390
- }[];
1391
- };
1392
- UpdateEventResponseDto: {
1393
- id: string;
1394
- name: string;
1395
- date: string;
1396
- location: string;
1397
- folderId: string | null;
1398
- tagAssistedId: string;
1399
- tagConfirmedId: string;
1400
- supraEventId: string | null;
1401
- created_at: string;
1402
- updated_at: string;
1403
- tagAssisted: {
1404
- id: string;
1405
- name: string;
1406
- groupId: string;
1407
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
1408
- created_at: string;
1409
- updated_at: string;
1410
- group: {
1411
- id: string;
1412
- name: string;
1413
- color: string;
1414
- isExclusive: boolean;
1415
- created_at: string;
1416
- updated_at: string;
1417
- };
1418
- };
1419
- };
1420
- DeleteEventResponseDto: {
1421
- id: string;
1422
- name: string;
1423
- date: string;
1424
- location: string;
1425
- folderId: string | null;
1426
- tagAssistedId: string;
1427
- tagConfirmedId: string;
1428
- supraEventId: string | null;
1429
- created_at: string;
1430
- updated_at: string;
1431
- };
1432
1192
  FindAllProfileResponseDto: {
1433
1193
  profiles: {
1434
1194
  id: string;
@@ -1684,6 +1444,7 @@ export interface components {
1684
1444
  };
1685
1445
  CreateProfileResponseDto: {
1686
1446
  response: {
1447
+ type: "similar";
1687
1448
  similarProfiles: {
1688
1449
  profile: {
1689
1450
  fullName: string;
@@ -1693,10 +1454,9 @@ export interface components {
1693
1454
  similarityPhoneNumberPercentage: number;
1694
1455
  similarityFullNamePercentage: number;
1695
1456
  }[];
1696
- type: "similar";
1697
1457
  } | {
1698
- id: string;
1699
1458
  type: "created";
1459
+ id: string;
1700
1460
  };
1701
1461
  };
1702
1462
  FindByIdProfileResponseDto: {
@@ -1775,18 +1535,18 @@ export interface components {
1775
1535
  updated_at: string;
1776
1536
  };
1777
1537
  UpdateProfileDto: {
1778
- alternativeNames: string[];
1779
- birthDate: string | null;
1780
- dni: string | null;
1781
- fullName: string;
1782
- gender: string | null;
1783
- instagram: string | null;
1784
- mail: string | null;
1785
- phoneNumber: string;
1786
- profilePictureUrl: string | null;
1787
- secondaryPhoneNumber: string | null;
1788
- isInTrash: boolean;
1789
- movedToTrashDate: string | null;
1538
+ alternativeNames?: string[];
1539
+ birthDate?: string | null;
1540
+ dni?: string | null;
1541
+ fullName?: string;
1542
+ gender?: string | null;
1543
+ instagram?: string | null;
1544
+ mail?: string | null;
1545
+ phoneNumber?: string;
1546
+ profilePictureUrl?: string | null;
1547
+ secondaryPhoneNumber?: string | null;
1548
+ isInTrash?: boolean;
1549
+ movedToTrashDate?: string | null;
1790
1550
  residence?: {
1791
1551
  city: string;
1792
1552
  country: string;
@@ -2771,155 +2531,6 @@ export interface operations {
2771
2531
  };
2772
2532
  };
2773
2533
  };
2774
- EventController_create: {
2775
- parameters: {
2776
- query?: never;
2777
- header?: never;
2778
- path?: never;
2779
- cookie?: never;
2780
- };
2781
- requestBody: {
2782
- content: {
2783
- "application/json": components["schemas"]["CreateEventDto"];
2784
- };
2785
- };
2786
- responses: {
2787
- 201: {
2788
- headers: {
2789
- [name: string]: unknown;
2790
- };
2791
- content: {
2792
- "application/json": components["schemas"]["CreateEventResponseDto"];
2793
- };
2794
- };
2795
- 409: {
2796
- headers: {
2797
- [name: string]: unknown;
2798
- };
2799
- content: {
2800
- "application/json": components["schemas"]["ErrorDto"];
2801
- };
2802
- };
2803
- };
2804
- };
2805
- EventController_findAll: {
2806
- parameters: {
2807
- query?: never;
2808
- header?: never;
2809
- path?: never;
2810
- cookie?: never;
2811
- };
2812
- requestBody?: never;
2813
- responses: {
2814
- 200: {
2815
- headers: {
2816
- [name: string]: unknown;
2817
- };
2818
- content: {
2819
- "application/json": components["schemas"]["GetAllEventsResponseDto"];
2820
- };
2821
- };
2822
- 404: {
2823
- headers: {
2824
- [name: string]: unknown;
2825
- };
2826
- content: {
2827
- "application/json": components["schemas"]["ErrorDto"];
2828
- };
2829
- };
2830
- };
2831
- };
2832
- EventController_findById: {
2833
- parameters: {
2834
- query?: never;
2835
- header?: never;
2836
- path: {
2837
- id: string;
2838
- };
2839
- cookie?: never;
2840
- };
2841
- requestBody?: never;
2842
- responses: {
2843
- 200: {
2844
- headers: {
2845
- [name: string]: unknown;
2846
- };
2847
- content: {
2848
- "application/json": components["schemas"]["GetByIdEventResponseDto"];
2849
- };
2850
- };
2851
- 404: {
2852
- headers: {
2853
- [name: string]: unknown;
2854
- };
2855
- content: {
2856
- "application/json": components["schemas"]["ErrorDto"];
2857
- };
2858
- };
2859
- };
2860
- };
2861
- EventController_remove: {
2862
- parameters: {
2863
- query?: never;
2864
- header?: never;
2865
- path: {
2866
- id: string;
2867
- };
2868
- cookie?: never;
2869
- };
2870
- requestBody?: never;
2871
- responses: {
2872
- 404: {
2873
- headers: {
2874
- [name: string]: unknown;
2875
- };
2876
- content: {
2877
- "application/json": components["schemas"]["ErrorDto"];
2878
- };
2879
- };
2880
- 410: {
2881
- headers: {
2882
- [name: string]: unknown;
2883
- };
2884
- content: {
2885
- "application/json": components["schemas"]["DeleteEventResponseDto"];
2886
- };
2887
- };
2888
- };
2889
- };
2890
- EventController_update: {
2891
- parameters: {
2892
- query?: never;
2893
- header?: never;
2894
- path: {
2895
- id: string;
2896
- };
2897
- cookie?: never;
2898
- };
2899
- requestBody: {
2900
- content: {
2901
- "application/json": components["schemas"]["UpdateEventDto"];
2902
- };
2903
- };
2904
- responses: {
2905
- 200: {
2906
- headers: {
2907
- [name: string]: unknown;
2908
- };
2909
- content: {
2910
- "application/json": components["schemas"]["UpdateEventResponseDto"];
2911
- };
2912
- };
2913
- 404: {
2914
- headers: {
2915
- [name: string]: unknown;
2916
- };
2917
- content: {
2918
- "application/json": components["schemas"]["ErrorDto"];
2919
- };
2920
- };
2921
- };
2922
- };
2923
2534
  ProfileController_findAll: {
2924
2535
  parameters: {
2925
2536
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.13.0",
3
+ "version": "0.14.0-EXPO-249-EB-Modelo.2",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -1,166 +0,0 @@
1
- import z from 'zod';
2
- export declare const createEventSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
3
- id: z.ZodString;
4
- name: z.ZodString;
5
- date: z.ZodDate;
6
- location: z.ZodString;
7
- folderId: z.ZodNullable<z.ZodString>;
8
- tagAssistedId: z.ZodString;
9
- tagConfirmedId: z.ZodString;
10
- supraEventId: z.ZodNullable<z.ZodString>;
11
- created_at: z.ZodDate;
12
- updated_at: z.ZodDate;
13
- }, "location" | "name" | "date" | "folderId">, {
14
- subEvents: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
15
- id: z.ZodString;
16
- name: z.ZodString;
17
- date: z.ZodDate;
18
- location: z.ZodString;
19
- folderId: z.ZodNullable<z.ZodString>;
20
- tagAssistedId: z.ZodString;
21
- tagConfirmedId: z.ZodString;
22
- supraEventId: z.ZodNullable<z.ZodString>;
23
- created_at: z.ZodDate;
24
- updated_at: z.ZodDate;
25
- }, "location" | "name" | "date">, "strip", z.ZodTypeAny, {
26
- location: string;
27
- name: string;
28
- date: Date;
29
- }, {
30
- location: string;
31
- name: string;
32
- date: Date;
33
- }>, "many">>;
34
- }>, "strip", z.ZodTypeAny, {
35
- location: string;
36
- name: string;
37
- date: Date;
38
- folderId: string | null;
39
- subEvents?: {
40
- location: string;
41
- name: string;
42
- date: Date;
43
- }[] | undefined;
44
- }, {
45
- location: string;
46
- name: string;
47
- date: Date;
48
- folderId: string | null;
49
- subEvents?: {
50
- location: string;
51
- name: string;
52
- date: Date;
53
- }[] | undefined;
54
- }>;
55
- declare const CreateEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
56
- location: z.ZodString;
57
- name: z.ZodString;
58
- date: z.ZodString;
59
- folderId: z.ZodNullable<z.ZodString>;
60
- subEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
- location: z.ZodString;
62
- name: z.ZodString;
63
- date: z.ZodString;
64
- }, z.UnknownKeysParam, z.ZodTypeAny, {
65
- location: string;
66
- name: string;
67
- date: string;
68
- }, {
69
- location: string;
70
- name: string;
71
- date: string;
72
- }>, "many">>;
73
- }, z.UnknownKeysParam, z.ZodTypeAny, {
74
- location: string;
75
- name: string;
76
- date: string;
77
- folderId: string | null;
78
- subEvents?: {
79
- location: string;
80
- name: string;
81
- date: string;
82
- }[] | undefined;
83
- }, {
84
- location: string;
85
- name: string;
86
- date: string;
87
- folderId: string | null;
88
- subEvents?: {
89
- location: string;
90
- name: string;
91
- date: string;
92
- }[] | undefined;
93
- }>>;
94
- export declare class CreateEventDto extends CreateEventDto_base {
95
- }
96
- export declare const createEventResponseSchema: z.ZodObject<{
97
- id: z.ZodString;
98
- name: z.ZodString;
99
- date: z.ZodDate;
100
- location: z.ZodString;
101
- folderId: z.ZodNullable<z.ZodString>;
102
- tagAssistedId: z.ZodString;
103
- tagConfirmedId: z.ZodString;
104
- supraEventId: z.ZodNullable<z.ZodString>;
105
- created_at: z.ZodDate;
106
- updated_at: z.ZodDate;
107
- }, "strip", z.ZodTypeAny, {
108
- location: string;
109
- id: string;
110
- name: string;
111
- date: Date;
112
- created_at: Date;
113
- updated_at: Date;
114
- folderId: string | null;
115
- tagAssistedId: string;
116
- tagConfirmedId: string;
117
- supraEventId: string | null;
118
- }, {
119
- location: string;
120
- id: string;
121
- name: string;
122
- date: Date;
123
- created_at: Date;
124
- updated_at: Date;
125
- folderId: string | null;
126
- tagAssistedId: string;
127
- tagConfirmedId: string;
128
- supraEventId: string | null;
129
- }>;
130
- declare const CreateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
131
- id: z.ZodString;
132
- name: z.ZodString;
133
- date: z.ZodString;
134
- location: z.ZodString;
135
- folderId: z.ZodNullable<z.ZodString>;
136
- tagAssistedId: z.ZodString;
137
- tagConfirmedId: z.ZodString;
138
- supraEventId: z.ZodNullable<z.ZodString>;
139
- created_at: z.ZodString;
140
- updated_at: z.ZodString;
141
- }, z.UnknownKeysParam, z.ZodTypeAny, {
142
- location: string;
143
- id: string;
144
- name: string;
145
- date: string;
146
- created_at: string;
147
- updated_at: string;
148
- folderId: string | null;
149
- tagAssistedId: string;
150
- tagConfirmedId: string;
151
- supraEventId: string | null;
152
- }, {
153
- location: string;
154
- id: string;
155
- name: string;
156
- date: string;
157
- created_at: string;
158
- updated_at: string;
159
- folderId: string | null;
160
- tagAssistedId: string;
161
- tagConfirmedId: string;
162
- supraEventId: string | null;
163
- }>>;
164
- export declare class CreateEventResponseDto extends CreateEventResponseDto_base {
165
- }
166
- export {};
@@ -1,33 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CreateEventResponseDto = exports.createEventResponseSchema = exports.CreateEventDto = exports.createEventSchema = void 0;
7
- const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
8
- const zod_1 = __importDefault(require("zod"));
9
- const event_dto_1 = require("./event.dto");
10
- exports.createEventSchema = event_dto_1.eventSchema
11
- .pick({
12
- name: true,
13
- date: true,
14
- location: true,
15
- folderId: true,
16
- })
17
- .merge(zod_1.default.object({
18
- subEvents: zod_1.default
19
- .array(event_dto_1.eventSchema.pick({
20
- name: true,
21
- date: true,
22
- location: true,
23
- }))
24
- .optional(),
25
- }));
26
- class CreateEventDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createEventSchema) {
27
- }
28
- exports.CreateEventDto = CreateEventDto;
29
- exports.createEventResponseSchema = event_dto_1.eventSchema;
30
- class CreateEventResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createEventResponseSchema) {
31
- }
32
- exports.CreateEventResponseDto = CreateEventResponseDto;
33
- //# sourceMappingURL=create-event.dto.js.map