expo-backend-types 0.32.0-EXPO-315-Marcelo-Tinelli.3 → 0.33.0-EXPO-308-auth.1
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.
- package/dist/src/event/dto/create-event.dto.d.ts +2 -115
- package/dist/src/event/dto/create-event.dto.js +0 -8
- package/dist/src/event/dto/delete-event.dto.d.ts +0 -18
- package/dist/src/event/dto/event.dto.d.ts +0 -9
- package/dist/src/event/dto/event.dto.js +0 -9
- package/dist/src/event/dto/get-all-event.dto.d.ts +160 -424
- package/dist/src/event/dto/get-by-id-event.dto.d.ts +48 -208
- package/dist/src/event/dto/get-by-id-event.dto.js +0 -2
- package/dist/src/event/dto/update-event.dto.d.ts +22 -193
- package/dist/src/event/dto/update-event.dto.js +0 -9
- package/dist/src/event/exports.d.ts +0 -3
- package/dist/src/event/exports.js +0 -3
- package/dist/src/event-folder/dto/get-all-event-folder.dto.d.ts +0 -42
- package/dist/src/event-folder/dto/get-by-id-event-folder.dto.d.ts +0 -30
- package/dist/src/exports.d.ts +3 -2
- package/dist/src/exports.js +3 -2
- package/dist/src/i18n/es.d.ts +20 -88
- package/dist/src/i18n/es.js +20 -88
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/image/constants.d.ts +5 -0
- package/dist/src/image/constants.js +9 -0
- package/dist/src/location/dto/find-all-location.dto.js +2 -2
- package/dist/src/location/exports.d.ts +0 -1
- package/dist/src/location/exports.js +0 -1
- package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
- package/dist/src/message/dto/non-read-messages.dto.js +2 -2
- package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
- package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
- package/dist/src/message/dto/template.dto.d.ts +2 -2
- package/dist/src/mi-expo/dto/get-me.dto.d.ts +337 -0
- package/dist/src/mi-expo/dto/get-me.dto.js +16 -0
- package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +311 -0
- package/dist/src/mi-expo/dto/login-with-phone.dto.js +29 -0
- package/dist/src/mi-expo/dto/login.dto.d.ts +327 -0
- package/dist/src/mi-expo/dto/login.dto.js +31 -0
- package/dist/src/mi-expo/dto/update-me.dto.d.ts +352 -0
- package/dist/src/mi-expo/dto/update-me.dto.js +31 -0
- package/dist/src/mi-expo/exports.d.ts +4 -0
- package/dist/src/{ticket → mi-expo}/exports.js +4 -10
- package/dist/src/otp/constants.d.ts +2 -0
- package/dist/src/otp/constants.js +6 -0
- package/dist/src/otp/dto/send-otp.dto.d.ts +158 -0
- package/dist/src/otp/dto/send-otp.dto.js +35 -0
- package/dist/src/otp/dto/verify-otp.dto.d.ts +455 -0
- package/dist/src/otp/dto/verify-otp.dto.js +46 -0
- package/dist/src/otp/exports.d.ts +2 -0
- package/dist/src/otp/exports.js +19 -0
- package/dist/src/prisma/constants.d.ts +1 -0
- package/dist/src/prisma/constants.js +5 -0
- package/dist/src/profile/dto/create-profile.dto.d.ts +48 -14
- package/dist/src/profile/dto/create-profile.dto.js +9 -7
- package/dist/src/profile/dto/delete-profile.dto.d.ts +30 -6
- package/dist/src/profile/dto/delete-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-all-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +75 -11
- package/dist/src/profile/dto/find-by-date-range-profile.dto.js +3 -3
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +32 -13
- package/dist/src/profile/dto/find-by-id-profile.dto.js +7 -5
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +30 -6
- package/dist/src/profile/dto/find-by-phone-number.dto.js +2 -2
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-trash.dto.d.ts +7 -3
- package/dist/src/profile/dto/find-trash.dto.js +2 -2
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-with-active-chat.dto.js +2 -2
- package/dist/src/profile/dto/profile.dto.d.ts +44 -30
- package/dist/src/profile/dto/profile.dto.js +6 -63
- package/dist/src/profile/dto/update-profile.dto.d.ts +54 -12
- package/dist/src/profile/dto/update-profile.dto.js +9 -6
- package/dist/src/schema/exports.d.ts +2 -0
- package/dist/src/schema/exports.js +19 -0
- package/dist/src/{location/dto/location.dto.js → schema/location.schema.js} +2 -2
- package/dist/src/schema/profile.schema.d.ts +74 -0
- package/dist/src/schema/profile.schema.js +133 -0
- package/dist/src/shared/dto-modification/zod-without-dates.d.ts +2 -4
- package/dist/src/shared/dto-modification/zod-without-dates.js +8 -0
- package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +47 -7
- package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +47 -7
- package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
- package/dist/src/webhook/constants.d.ts +1 -0
- package/dist/src/webhook/constants.js +5 -0
- package/dist/types/prisma-schema/edge.js +39 -63
- package/dist/types/prisma-schema/index-browser.js +19 -48
- package/dist/types/prisma-schema/index.d.ts +6259 -6808
- package/dist/types/prisma-schema/index.js +39 -63
- package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/types/prisma-schema/package.json +8 -2
- package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
- package/dist/types/prisma-schema/runtime/edge.js +18 -18
- package/dist/types/prisma-schema/runtime/index-browser.d.ts +3 -1
- package/dist/types/prisma-schema/runtime/index-browser.js +3 -3
- package/dist/types/prisma-schema/runtime/library.d.ts +205 -153
- package/dist/types/prisma-schema/runtime/library.js +55 -55
- package/dist/types/prisma-schema/runtime/react-native.js +26 -26
- package/dist/types/prisma-schema/runtime/wasm.js +17 -17
- package/dist/types/prisma-schema/schema.prisma +27 -58
- package/dist/types/prisma-schema/wasm.js +19 -48
- package/dist/types/schema.d.ts +313 -531
- package/package.json +32 -41
- package/dist/src/event/dto/event-tickets.dto.d.ts +0 -21
- package/dist/src/event/dto/event-tickets.dto.js +0 -21
- package/dist/src/event/dto/get-active-events.dto.d.ts +0 -247
- package/dist/src/event/dto/get-active-events.dto.js +0 -19
- package/dist/src/event/dto/toggle-active-event.dto.d.ts +0 -43
- package/dist/src/event/dto/toggle-active-event.dto.js +0 -6
- package/dist/src/ticket/dto/create-ticket.dto.d.ts +0 -134
- package/dist/src/ticket/dto/create-ticket.dto.js +0 -20
- package/dist/src/ticket/dto/delete-ticket.dto.d.ts +0 -75
- package/dist/src/ticket/dto/delete-ticket.dto.js +0 -10
- package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +0 -201
- package/dist/src/ticket/dto/find-all-tickets.dto.js +0 -23
- package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +0 -201
- package/dist/src/ticket/dto/find-by-event-ticket.dto.js +0 -23
- package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +0 -201
- package/dist/src/ticket/dto/find-by-id-ticket.dto.js +0 -20
- package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +0 -201
- package/dist/src/ticket/dto/find-by-mail-ticket.dto.js +0 -23
- package/dist/src/ticket/dto/find-ticket.dto.d.ts +0 -75
- package/dist/src/ticket/dto/find-ticket.dto.js +0 -10
- package/dist/src/ticket/dto/generate-pdf.dto.d.ts +0 -7
- package/dist/src/ticket/dto/generate-pdf.dto.js +0 -13
- package/dist/src/ticket/dto/ticket.dto.d.ts +0 -76
- package/dist/src/ticket/dto/ticket.dto.js +0 -29
- package/dist/src/ticket/dto/update-ticket.dto.d.ts +0 -125
- package/dist/src/ticket/dto/update-ticket.dto.js +0 -21
- package/dist/src/ticket/exports.d.ts +0 -10
- /package/dist/src/{location/dto/location.dto.d.ts → schema/location.schema.d.ts} +0 -0
@@ -44,7 +44,15 @@ model Profile {
|
|
44
44
|
id String @id @default(uuid())
|
45
45
|
shortId Int @map("short_id")
|
46
46
|
|
47
|
-
|
47
|
+
firstTimeMiExpo Boolean @default(true) @map("first_time_mi_expo")
|
48
|
+
|
49
|
+
username String? @unique
|
50
|
+
password String?
|
51
|
+
|
52
|
+
phoneNumber String @unique @map("phone_number")
|
53
|
+
isPhoneVerified Boolean @default(false) @map("is_phone_verified")
|
54
|
+
otp Otp[]
|
55
|
+
|
48
56
|
secondaryPhoneNumber String? @unique @map("secondary_phone_number")
|
49
57
|
fullName String @map("full_name")
|
50
58
|
firstName String? @map("first_name")
|
@@ -75,6 +83,19 @@ model Profile {
|
|
75
83
|
@@map("PROFILE")
|
76
84
|
}
|
77
85
|
|
86
|
+
model Otp {
|
87
|
+
id String @id @default(uuid())
|
88
|
+
code String
|
89
|
+
ownerPhoneNumber String @map("account_id")
|
90
|
+
owner Profile @relation(fields: [ownerPhoneNumber], references: [phoneNumber])
|
91
|
+
expiresAt DateTime @map("expires_at")
|
92
|
+
|
93
|
+
created_at DateTime @default(now())
|
94
|
+
updated_at DateTime @updatedAt
|
95
|
+
|
96
|
+
@@map("OTP")
|
97
|
+
}
|
98
|
+
|
78
99
|
model Location {
|
79
100
|
id String @id @default(uuid())
|
80
101
|
latitude Float
|
@@ -133,7 +154,6 @@ model Tag {
|
|
133
154
|
|
134
155
|
created_at DateTime @default(now())
|
135
156
|
updated_at DateTime @updatedAt
|
136
|
-
Event Event[] @relation("EVENT_X_TAGS")
|
137
157
|
|
138
158
|
@@map("TAG")
|
139
159
|
}
|
@@ -152,12 +172,10 @@ model TagGroup {
|
|
152
172
|
}
|
153
173
|
|
154
174
|
model Event {
|
155
|
-
id
|
156
|
-
name
|
157
|
-
date
|
158
|
-
|
159
|
-
endingDate DateTime @map("ending_date")
|
160
|
-
location String
|
175
|
+
id String @id @default(uuid())
|
176
|
+
name String
|
177
|
+
date DateTime
|
178
|
+
location String
|
161
179
|
|
162
180
|
folderId String? @map("folder_id")
|
163
181
|
folder EventFolder? @relation("EVENT_FOLDER_X_EVENT", fields: [folderId], references: [id], onDelete: Cascade)
|
@@ -171,12 +189,7 @@ model Event {
|
|
171
189
|
supraEventId String? @map("supra_event_id")
|
172
190
|
supraEvent Event? @relation("SubEvents", fields: [supraEventId], references: [id], onDelete: Cascade)
|
173
191
|
|
174
|
-
|
175
|
-
subEvents Event[] @relation("SubEvents")
|
176
|
-
tags Tag[] @relation("EVENT_X_TAGS")
|
177
|
-
eventTickets EventTicket[] @relation("EVENT_X_EVENTTICKET")
|
178
|
-
|
179
|
-
active Boolean @default(false)
|
192
|
+
subEvents Event[] @relation("SubEvents")
|
180
193
|
|
181
194
|
created_at DateTime @default(now())
|
182
195
|
updated_at DateTime @updatedAt
|
@@ -223,44 +236,12 @@ model CannedResponse {
|
|
223
236
|
@@map("CANNED_RESPONSE")
|
224
237
|
}
|
225
238
|
|
226
|
-
model Ticket {
|
227
|
-
id String @id @default(uuid())
|
228
|
-
|
229
|
-
event Event @relation("EVENT_X_TICKET", fields: [eventId], references: [id], onDelete: Cascade)
|
230
|
-
eventId String @map("event_id")
|
231
|
-
|
232
|
-
type TicketType
|
233
|
-
status TicketStatus
|
234
|
-
|
235
|
-
fullName String
|
236
|
-
mail String
|
237
|
-
|
238
|
-
created_at DateTime @default(now())
|
239
|
-
updated_at DateTime @updatedAt
|
240
|
-
|
241
|
-
@@map("TICKET")
|
242
|
-
}
|
243
|
-
|
244
239
|
model Enums {
|
245
240
|
id String @id
|
246
241
|
templateStatus TemplateStatus
|
247
242
|
templateCategory TemplateCategory
|
248
243
|
}
|
249
244
|
|
250
|
-
model EventTicket {
|
251
|
-
id String @id @default(uuid())
|
252
|
-
eventId String @map("event_id")
|
253
|
-
event Event @relation("EVENT_X_EVENTTICKET", fields: [eventId], references: [id], onDelete: Cascade)
|
254
|
-
amount Int
|
255
|
-
type TicketType
|
256
|
-
price Float?
|
257
|
-
|
258
|
-
created_at DateTime @default(now())
|
259
|
-
updated_at DateTime @updatedAt
|
260
|
-
|
261
|
-
@@map("EVENT_TICKET")
|
262
|
-
}
|
263
|
-
|
264
245
|
enum TemplateStatus {
|
265
246
|
APPROVED
|
266
247
|
PENDING
|
@@ -285,15 +266,3 @@ enum MessageState {
|
|
285
266
|
RECEIVED
|
286
267
|
SEEN
|
287
268
|
}
|
288
|
-
|
289
|
-
enum TicketType {
|
290
|
-
PARTICIPANT
|
291
|
-
STAFF
|
292
|
-
SPECTATOR
|
293
|
-
}
|
294
|
-
|
295
|
-
enum TicketStatus {
|
296
|
-
BOOKED
|
297
|
-
PAID
|
298
|
-
FREE
|
299
|
-
}
|
@@ -17,12 +17,12 @@ exports.Prisma = Prisma
|
|
17
17
|
exports.$Enums = {}
|
18
18
|
|
19
19
|
/**
|
20
|
-
* Prisma Client JS version:
|
21
|
-
* Query Engine version:
|
20
|
+
* Prisma Client JS version: 6.4.1
|
21
|
+
* Query Engine version: a9055b89e58b4b5bfb59600785423b1db3d0e75d
|
22
22
|
*/
|
23
23
|
Prisma.prismaVersion = {
|
24
|
-
client: "
|
25
|
-
engine: "
|
24
|
+
client: "6.4.1",
|
25
|
+
engine: "a9055b89e58b4b5bfb59600785423b1db3d0e75d"
|
26
26
|
}
|
27
27
|
|
28
28
|
Prisma.PrismaClientKnownRequestError = () => {
|
@@ -50,11 +50,6 @@ Prisma.PrismaClientValidationError = () => {
|
|
50
50
|
throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
51
51
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
52
52
|
)}
|
53
|
-
Prisma.NotFoundError = () => {
|
54
|
-
const runtimeName = getRuntime().prettyName;
|
55
|
-
throw new Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
56
|
-
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
57
|
-
)}
|
58
53
|
Prisma.Decimal = Decimal
|
59
54
|
|
60
55
|
/**
|
@@ -136,7 +131,11 @@ exports.Prisma.AccountScalarFieldEnum = {
|
|
136
131
|
exports.Prisma.ProfileScalarFieldEnum = {
|
137
132
|
id: 'id',
|
138
133
|
shortId: 'shortId',
|
134
|
+
firstTimeMiExpo: 'firstTimeMiExpo',
|
135
|
+
username: 'username',
|
136
|
+
password: 'password',
|
139
137
|
phoneNumber: 'phoneNumber',
|
138
|
+
isPhoneVerified: 'isPhoneVerified',
|
140
139
|
secondaryPhoneNumber: 'secondaryPhoneNumber',
|
141
140
|
fullName: 'fullName',
|
142
141
|
firstName: 'firstName',
|
@@ -155,6 +154,15 @@ exports.Prisma.ProfileScalarFieldEnum = {
|
|
155
154
|
updated_at: 'updated_at'
|
156
155
|
};
|
157
156
|
|
157
|
+
exports.Prisma.OtpScalarFieldEnum = {
|
158
|
+
id: 'id',
|
159
|
+
code: 'code',
|
160
|
+
ownerPhoneNumber: 'ownerPhoneNumber',
|
161
|
+
expiresAt: 'expiresAt',
|
162
|
+
created_at: 'created_at',
|
163
|
+
updated_at: 'updated_at'
|
164
|
+
};
|
165
|
+
|
158
166
|
exports.Prisma.LocationScalarFieldEnum = {
|
159
167
|
id: 'id',
|
160
168
|
latitude: 'latitude',
|
@@ -201,14 +209,11 @@ exports.Prisma.EventScalarFieldEnum = {
|
|
201
209
|
id: 'id',
|
202
210
|
name: 'name',
|
203
211
|
date: 'date',
|
204
|
-
startingDate: 'startingDate',
|
205
|
-
endingDate: 'endingDate',
|
206
212
|
location: 'location',
|
207
213
|
folderId: 'folderId',
|
208
214
|
tagAssistedId: 'tagAssistedId',
|
209
215
|
tagConfirmedId: 'tagConfirmedId',
|
210
216
|
supraEventId: 'supraEventId',
|
211
|
-
active: 'active',
|
212
217
|
created_at: 'created_at',
|
213
218
|
updated_at: 'updated_at'
|
214
219
|
};
|
@@ -239,33 +244,12 @@ exports.Prisma.CannedResponseScalarFieldEnum = {
|
|
239
244
|
updated_at: 'updated_at'
|
240
245
|
};
|
241
246
|
|
242
|
-
exports.Prisma.TicketScalarFieldEnum = {
|
243
|
-
id: 'id',
|
244
|
-
eventId: 'eventId',
|
245
|
-
type: 'type',
|
246
|
-
status: 'status',
|
247
|
-
fullName: 'fullName',
|
248
|
-
mail: 'mail',
|
249
|
-
created_at: 'created_at',
|
250
|
-
updated_at: 'updated_at'
|
251
|
-
};
|
252
|
-
|
253
247
|
exports.Prisma.EnumsScalarFieldEnum = {
|
254
248
|
id: 'id',
|
255
249
|
templateStatus: 'templateStatus',
|
256
250
|
templateCategory: 'templateCategory'
|
257
251
|
};
|
258
252
|
|
259
|
-
exports.Prisma.EventTicketScalarFieldEnum = {
|
260
|
-
id: 'id',
|
261
|
-
eventId: 'eventId',
|
262
|
-
amount: 'amount',
|
263
|
-
type: 'type',
|
264
|
-
price: 'price',
|
265
|
-
created_at: 'created_at',
|
266
|
-
updated_at: 'updated_at'
|
267
|
-
};
|
268
|
-
|
269
253
|
exports.Prisma.SortOrder = {
|
270
254
|
asc: 'asc',
|
271
255
|
desc: 'desc'
|
@@ -309,18 +293,6 @@ exports.MessageState = exports.$Enums.MessageState = {
|
|
309
293
|
SEEN: 'SEEN'
|
310
294
|
};
|
311
295
|
|
312
|
-
exports.TicketType = exports.$Enums.TicketType = {
|
313
|
-
PARTICIPANT: 'PARTICIPANT',
|
314
|
-
STAFF: 'STAFF',
|
315
|
-
SPECTATOR: 'SPECTATOR'
|
316
|
-
};
|
317
|
-
|
318
|
-
exports.TicketStatus = exports.$Enums.TicketStatus = {
|
319
|
-
BOOKED: 'BOOKED',
|
320
|
-
PAID: 'PAID',
|
321
|
-
FREE: 'FREE'
|
322
|
-
};
|
323
|
-
|
324
296
|
exports.TemplateStatus = exports.$Enums.TemplateStatus = {
|
325
297
|
APPROVED: 'APPROVED',
|
326
298
|
PENDING: 'PENDING',
|
@@ -336,6 +308,7 @@ exports.TemplateCategory = exports.$Enums.TemplateCategory = {
|
|
336
308
|
exports.Prisma.ModelName = {
|
337
309
|
Account: 'Account',
|
338
310
|
Profile: 'Profile',
|
311
|
+
Otp: 'Otp',
|
339
312
|
Location: 'Location',
|
340
313
|
Comment: 'Comment',
|
341
314
|
Tag: 'Tag',
|
@@ -344,9 +317,7 @@ exports.Prisma.ModelName = {
|
|
344
317
|
EventFolder: 'EventFolder',
|
345
318
|
Message: 'Message',
|
346
319
|
CannedResponse: 'CannedResponse',
|
347
|
-
|
348
|
-
Enums: 'Enums',
|
349
|
-
EventTicket: 'EventTicket'
|
320
|
+
Enums: 'Enums'
|
350
321
|
};
|
351
322
|
|
352
323
|
/**
|