expo-backend-types 0.32.0-EXPO-308-auth.1 → 0.32.0-EXPO-315-Marcelo-Tinelli.2
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/exports.d.ts +2 -3
- package/dist/src/exports.js +2 -3
- package/dist/src/i18n/es.d.ts +64 -20
- package/dist/src/i18n/es.js +64 -20
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/location/dto/find-all-location.dto.js +2 -2
- package/dist/src/{schema/location.schema.js → location/dto/location.dto.js} +2 -2
- package/dist/src/location/exports.d.ts +1 -0
- package/dist/src/location/exports.js +1 -0
- 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/profile/dto/create-profile.dto.d.ts +14 -48
- package/dist/src/profile/dto/create-profile.dto.js +7 -9
- package/dist/src/profile/dto/delete-profile.dto.d.ts +6 -30
- package/dist/src/profile/dto/delete-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +7 -47
- 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 +11 -75
- 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 +13 -32
- package/dist/src/profile/dto/find-by-id-profile.dto.js +5 -7
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +6 -30
- 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 +7 -47
- 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 +7 -47
- package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-trash.dto.d.ts +3 -7
- package/dist/src/profile/dto/find-trash.dto.js +2 -2
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +7 -47
- package/dist/src/profile/dto/find-with-active-chat.dto.js +2 -2
- package/dist/src/profile/dto/profile.dto.d.ts +30 -44
- package/dist/src/profile/dto/profile.dto.js +63 -6
- package/dist/src/profile/dto/update-profile.dto.d.ts +12 -54
- package/dist/src/profile/dto/update-profile.dto.js +6 -9
- package/dist/src/shared/dto-modification/zod-without-dates.d.ts +4 -2
- package/dist/src/shared/dto-modification/zod-without-dates.js +0 -8
- package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +7 -47
- package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +7 -47
- package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
- package/dist/src/ticket/dto/create-ticket.dto.d.ts +134 -0
- package/dist/src/ticket/dto/create-ticket.dto.js +20 -0
- package/dist/src/ticket/dto/delete-ticket.dto.d.ts +75 -0
- package/dist/src/ticket/dto/delete-ticket.dto.js +10 -0
- package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +198 -0
- package/dist/src/ticket/dto/find-all-tickets.dto.js +23 -0
- package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +198 -0
- package/dist/src/ticket/dto/find-by-event-ticket.dto.js +23 -0
- package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +198 -0
- package/dist/src/ticket/dto/find-by-id-ticket.dto.js +20 -0
- package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +198 -0
- package/dist/src/ticket/dto/find-by-mail-ticket.dto.js +23 -0
- package/dist/src/ticket/dto/find-ticket.dto.d.ts +75 -0
- package/dist/src/ticket/dto/find-ticket.dto.js +10 -0
- package/dist/src/ticket/dto/generate-pdf.dto.d.ts +7 -0
- package/dist/src/ticket/dto/generate-pdf.dto.js +13 -0
- package/dist/src/ticket/dto/ticket.dto.d.ts +76 -0
- package/dist/src/ticket/dto/ticket.dto.js +29 -0
- package/dist/src/ticket/dto/update-ticket.dto.d.ts +125 -0
- package/dist/src/ticket/dto/update-ticket.dto.js +21 -0
- package/dist/src/ticket/exports.d.ts +10 -0
- package/dist/src/{otp → ticket}/exports.js +10 -2
- package/dist/types/prisma-schema/edge.js +48 -38
- package/dist/types/prisma-schema/index-browser.js +33 -18
- package/dist/types/prisma-schema/index.d.ts +4312 -5988
- package/dist/types/prisma-schema/index.js +48 -38
- package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/types/prisma-schema/package.json +2 -8
- 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 +1 -3
- package/dist/types/prisma-schema/runtime/index-browser.js +3 -3
- package/dist/types/prisma-schema/runtime/library.d.ts +153 -205
- 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 +33 -23
- package/dist/types/prisma-schema/wasm.js +33 -18
- package/dist/types/schema.d.ts +339 -313
- package/package.json +41 -32
- package/dist/src/image/constants.d.ts +0 -5
- package/dist/src/image/constants.js +0 -9
- package/dist/src/mi-expo/dto/get-me.dto.d.ts +0 -337
- package/dist/src/mi-expo/dto/get-me.dto.js +0 -16
- package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +0 -311
- package/dist/src/mi-expo/dto/login-with-phone.dto.js +0 -29
- package/dist/src/mi-expo/dto/login.dto.d.ts +0 -327
- package/dist/src/mi-expo/dto/login.dto.js +0 -31
- package/dist/src/mi-expo/dto/update-me.dto.d.ts +0 -352
- package/dist/src/mi-expo/dto/update-me.dto.js +0 -31
- package/dist/src/mi-expo/exports.d.ts +0 -4
- package/dist/src/mi-expo/exports.js +0 -21
- package/dist/src/otp/constants.d.ts +0 -2
- package/dist/src/otp/constants.js +0 -6
- package/dist/src/otp/dto/send-otp.dto.d.ts +0 -158
- package/dist/src/otp/dto/send-otp.dto.js +0 -35
- package/dist/src/otp/dto/verify-otp.dto.d.ts +0 -455
- package/dist/src/otp/dto/verify-otp.dto.js +0 -46
- package/dist/src/otp/exports.d.ts +0 -2
- package/dist/src/prisma/constants.d.ts +0 -1
- package/dist/src/prisma/constants.js +0 -5
- package/dist/src/schema/exports.d.ts +0 -2
- package/dist/src/schema/exports.js +0 -19
- package/dist/src/schema/profile.schema.d.ts +0 -74
- package/dist/src/schema/profile.schema.js +0 -133
- package/dist/src/webhook/constants.d.ts +0 -1
- package/dist/src/webhook/constants.js +0 -5
- /package/dist/src/{schema/location.schema.d.ts → location/dto/location.dto.d.ts} +0 -0
@@ -44,15 +44,7 @@ model Profile {
|
|
44
44
|
id String @id @default(uuid())
|
45
45
|
shortId Int @map("short_id")
|
46
46
|
|
47
|
-
|
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
|
-
|
47
|
+
phoneNumber String @unique @map("phone_number")
|
56
48
|
secondaryPhoneNumber String? @unique @map("secondary_phone_number")
|
57
49
|
fullName String @map("full_name")
|
58
50
|
firstName String? @map("first_name")
|
@@ -83,19 +75,6 @@ model Profile {
|
|
83
75
|
@@map("PROFILE")
|
84
76
|
}
|
85
77
|
|
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
|
-
|
99
78
|
model Location {
|
100
79
|
id String @id @default(uuid())
|
101
80
|
latitude Float
|
@@ -189,7 +168,8 @@ model Event {
|
|
189
168
|
supraEventId String? @map("supra_event_id")
|
190
169
|
supraEvent Event? @relation("SubEvents", fields: [supraEventId], references: [id], onDelete: Cascade)
|
191
170
|
|
192
|
-
subEvents Event[]
|
171
|
+
subEvents Event[] @relation("SubEvents")
|
172
|
+
tickets Ticket[] @relation("EVENT_X_TICKET")
|
193
173
|
|
194
174
|
created_at DateTime @default(now())
|
195
175
|
updated_at DateTime @updatedAt
|
@@ -236,12 +216,42 @@ model CannedResponse {
|
|
236
216
|
@@map("CANNED_RESPONSE")
|
237
217
|
}
|
238
218
|
|
219
|
+
model Ticket {
|
220
|
+
id String @id @default(uuid())
|
221
|
+
|
222
|
+
event Event @relation("EVENT_X_TICKET", fields: [eventId], references: [id], onDelete: Cascade)
|
223
|
+
eventId String @map("event_id")
|
224
|
+
|
225
|
+
type TicketType
|
226
|
+
status TicketStatus
|
227
|
+
|
228
|
+
fullName String
|
229
|
+
mail String
|
230
|
+
|
231
|
+
created_at DateTime @default(now())
|
232
|
+
updated_at DateTime @updatedAt
|
233
|
+
|
234
|
+
@@map("TICKET")
|
235
|
+
}
|
236
|
+
|
239
237
|
model Enums {
|
240
238
|
id String @id
|
241
239
|
templateStatus TemplateStatus
|
242
240
|
templateCategory TemplateCategory
|
243
241
|
}
|
244
242
|
|
243
|
+
enum TicketType {
|
244
|
+
PARTICIPANT
|
245
|
+
SPECTATOR
|
246
|
+
STAFF
|
247
|
+
}
|
248
|
+
|
249
|
+
enum TicketStatus {
|
250
|
+
BOOKED
|
251
|
+
PAID
|
252
|
+
FREE
|
253
|
+
}
|
254
|
+
|
245
255
|
enum TemplateStatus {
|
246
256
|
APPROVED
|
247
257
|
PENDING
|
@@ -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: 5.22.0
|
21
|
+
* Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
|
22
22
|
*/
|
23
23
|
Prisma.prismaVersion = {
|
24
|
-
client: "
|
25
|
-
engine: "
|
24
|
+
client: "5.22.0",
|
25
|
+
engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
|
26
26
|
}
|
27
27
|
|
28
28
|
Prisma.PrismaClientKnownRequestError = () => {
|
@@ -50,6 +50,11 @@ 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
|
+
)}
|
53
58
|
Prisma.Decimal = Decimal
|
54
59
|
|
55
60
|
/**
|
@@ -131,11 +136,7 @@ exports.Prisma.AccountScalarFieldEnum = {
|
|
131
136
|
exports.Prisma.ProfileScalarFieldEnum = {
|
132
137
|
id: 'id',
|
133
138
|
shortId: 'shortId',
|
134
|
-
firstTimeMiExpo: 'firstTimeMiExpo',
|
135
|
-
username: 'username',
|
136
|
-
password: 'password',
|
137
139
|
phoneNumber: 'phoneNumber',
|
138
|
-
isPhoneVerified: 'isPhoneVerified',
|
139
140
|
secondaryPhoneNumber: 'secondaryPhoneNumber',
|
140
141
|
fullName: 'fullName',
|
141
142
|
firstName: 'firstName',
|
@@ -154,15 +155,6 @@ exports.Prisma.ProfileScalarFieldEnum = {
|
|
154
155
|
updated_at: 'updated_at'
|
155
156
|
};
|
156
157
|
|
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
|
-
|
166
158
|
exports.Prisma.LocationScalarFieldEnum = {
|
167
159
|
id: 'id',
|
168
160
|
latitude: 'latitude',
|
@@ -244,6 +236,17 @@ exports.Prisma.CannedResponseScalarFieldEnum = {
|
|
244
236
|
updated_at: 'updated_at'
|
245
237
|
};
|
246
238
|
|
239
|
+
exports.Prisma.TicketScalarFieldEnum = {
|
240
|
+
id: 'id',
|
241
|
+
eventId: 'eventId',
|
242
|
+
type: 'type',
|
243
|
+
status: 'status',
|
244
|
+
fullName: 'fullName',
|
245
|
+
mail: 'mail',
|
246
|
+
created_at: 'created_at',
|
247
|
+
updated_at: 'updated_at'
|
248
|
+
};
|
249
|
+
|
247
250
|
exports.Prisma.EnumsScalarFieldEnum = {
|
248
251
|
id: 'id',
|
249
252
|
templateStatus: 'templateStatus',
|
@@ -293,6 +296,18 @@ exports.MessageState = exports.$Enums.MessageState = {
|
|
293
296
|
SEEN: 'SEEN'
|
294
297
|
};
|
295
298
|
|
299
|
+
exports.TicketType = exports.$Enums.TicketType = {
|
300
|
+
PARTICIPANT: 'PARTICIPANT',
|
301
|
+
SPECTATOR: 'SPECTATOR',
|
302
|
+
STAFF: 'STAFF'
|
303
|
+
};
|
304
|
+
|
305
|
+
exports.TicketStatus = exports.$Enums.TicketStatus = {
|
306
|
+
BOOKED: 'BOOKED',
|
307
|
+
PAID: 'PAID',
|
308
|
+
FREE: 'FREE'
|
309
|
+
};
|
310
|
+
|
296
311
|
exports.TemplateStatus = exports.$Enums.TemplateStatus = {
|
297
312
|
APPROVED: 'APPROVED',
|
298
313
|
PENDING: 'PENDING',
|
@@ -308,7 +323,6 @@ exports.TemplateCategory = exports.$Enums.TemplateCategory = {
|
|
308
323
|
exports.Prisma.ModelName = {
|
309
324
|
Account: 'Account',
|
310
325
|
Profile: 'Profile',
|
311
|
-
Otp: 'Otp',
|
312
326
|
Location: 'Location',
|
313
327
|
Comment: 'Comment',
|
314
328
|
Tag: 'Tag',
|
@@ -317,6 +331,7 @@ exports.Prisma.ModelName = {
|
|
317
331
|
EventFolder: 'EventFolder',
|
318
332
|
Message: 'Message',
|
319
333
|
CannedResponse: 'CannedResponse',
|
334
|
+
Ticket: 'Ticket',
|
320
335
|
Enums: 'Enums'
|
321
336
|
};
|
322
337
|
|