expo-backend-types 0.52.0-EXPO-343-Quique-Wolff.1 → 0.52.0-EXPO-343-Quique-Wolff.3

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.
Files changed (73) hide show
  1. package/dist/src/account/dto/get-global-filter.dto.d.ts +10 -8
  2. package/dist/src/account/dto/get-me.dto.d.ts +20 -16
  3. package/dist/src/account/dto/update-global-filter.dto.d.ts +10 -8
  4. package/dist/src/event/dto/create-event.dto.d.ts +21 -4
  5. package/dist/src/event/dto/create-event.dto.js +1 -1
  6. package/dist/src/event/dto/event-tickets.dto.d.ts +33 -2
  7. package/dist/src/event/dto/event-tickets.dto.js +18 -8
  8. package/dist/src/event/dto/get-active-events.dto.d.ts +23 -3
  9. package/dist/src/event/dto/get-all-event.dto.d.ts +284 -240
  10. package/dist/src/event/dto/get-all-event.dto.js +3 -3
  11. package/dist/src/event/dto/get-all-statistics.dto.d.ts +373 -0
  12. package/dist/src/event/dto/get-all-statistics.dto.js +40 -0
  13. package/dist/src/event/dto/get-by-id-event.dto.d.ts +159 -129
  14. package/dist/src/event/dto/get-by-id-event.dto.js +1 -1
  15. package/dist/src/event/dto/get-statistics-by-id-event.dto.d.ts +303 -0
  16. package/dist/src/event/dto/get-statistics-by-id-event.dto.js +40 -0
  17. package/dist/src/event/dto/update-event.dto.d.ts +87 -47
  18. package/dist/src/event/dto/update-event.dto.js +2 -4
  19. package/dist/src/exports.d.ts +1 -0
  20. package/dist/src/exports.js +1 -0
  21. package/dist/src/i18n/es.d.ts +65 -1
  22. package/dist/src/i18n/es.js +67 -1
  23. package/dist/src/i18n/es.js.map +1 -1
  24. package/dist/src/production/dto/create-production.dto.d.ts +41 -0
  25. package/dist/src/production/dto/create-production.dto.js +18 -0
  26. package/dist/src/production/dto/create-role.dto.d.ts +86 -0
  27. package/dist/src/production/dto/create-role.dto.js +16 -0
  28. package/dist/src/production/dto/delete-production.dto.d.ts +41 -0
  29. package/dist/src/production/dto/delete-production.dto.js +10 -0
  30. package/dist/src/production/dto/get-all-production.dto.d.ts +451 -0
  31. package/dist/src/production/dto/get-all-production.dto.js +21 -0
  32. package/dist/src/production/dto/production.dto.d.ts +20 -0
  33. package/dist/src/production/dto/production.dto.js +21 -0
  34. package/dist/src/production/dto/update-production.dto.d.ts +63 -0
  35. package/dist/src/production/dto/update-production.dto.js +19 -0
  36. package/dist/src/production/exports.d.ts +6 -0
  37. package/dist/src/production/exports.js +23 -0
  38. package/dist/src/production-affiliation-request/dto/create-production-affiliation-request.dto.d.ts +80 -0
  39. package/dist/src/production-affiliation-request/dto/create-production-affiliation-request.dto.js +16 -0
  40. package/dist/src/production-affiliation-request/dto/find-by-production-affiliation-request.dto.d.ts +563 -0
  41. package/dist/src/production-affiliation-request/dto/find-by-production-affiliation-request.dto.js +21 -0
  42. package/dist/src/production-affiliation-request/dto/production-affiliation-request.dto.d.ts +27 -0
  43. package/dist/src/production-affiliation-request/dto/production-affiliation-request.dto.js +22 -0
  44. package/dist/src/production-affiliation-request/dto/update-production-affiliation-request.dto.d.ts +390 -0
  45. package/dist/src/production-affiliation-request/dto/update-production-affiliation-request.dto.js +15 -0
  46. package/dist/src/production-affiliation-request/exports.d.ts +4 -0
  47. package/dist/src/production-affiliation-request/exports.js +21 -0
  48. package/dist/src/profile/dto/find-all-profile.dto.d.ts +14 -12
  49. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +24 -20
  50. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +10 -8
  51. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +14 -12
  52. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +14 -12
  53. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +14 -12
  54. package/dist/src/tag/dto/create-tag.dto.d.ts +41 -9
  55. package/dist/src/tag/dto/create-tag.dto.js +6 -5
  56. package/dist/src/tag/dto/delete-tag.dto.d.ts +6 -4
  57. package/dist/src/tag/dto/find-all-tag.dto.d.ts +10 -8
  58. package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +10 -8
  59. package/dist/src/tag/dto/find-one-tag.dto.d.ts +6 -4
  60. package/dist/src/tag/dto/tag.dto.d.ts +6 -4
  61. package/dist/src/tag/dto/update-tag.dto.d.ts +7 -4
  62. package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +14 -12
  63. package/dist/src/tag-group/dto/find-all-with-tags.dto.d.ts +14 -12
  64. package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +10 -8
  65. package/dist/types/prisma-schema/edge.js +32 -5
  66. package/dist/types/prisma-schema/index-browser.js +29 -2
  67. package/dist/types/prisma-schema/index.d.ts +11960 -6876
  68. package/dist/types/prisma-schema/index.js +32 -5
  69. package/dist/types/prisma-schema/package.json +1 -1
  70. package/dist/types/prisma-schema/schema.prisma +56 -4
  71. package/dist/types/prisma-schema/wasm.js +29 -2
  72. package/dist/types/schema.d.ts +785 -79
  73. package/package.json +2 -1
@@ -81,7 +81,11 @@ model Profile {
81
81
  isInTrash Boolean @default(false) @map("is_in_trash")
82
82
  movedToTrashDate DateTime? @map("moved_to_trash_date")
83
83
 
84
- Ticket Ticket[] @relation("PROFILE_X_TICKET")
84
+ tickets Ticket[] @relation("PROFILE_X_TICKET")
85
+
86
+ productionsAdministrated Production[] @relation("PRODUCTION_X_ADMINISTRATOR")
87
+ productionsParticipated Production[] @relation("PRODUCTION_X_PARTICIPANT")
88
+ productionRequestsSent ProductionAffiliationRequest[] @relation("PRODUCTION_AFILIATION_X_PROFILE")
85
89
 
86
90
  created_at DateTime @default(now())
87
91
  updated_at DateTime @updatedAt
@@ -158,9 +162,11 @@ model Tag {
158
162
  profiles Profile[] @relation("PROFILE_X_TAG")
159
163
  accountsGlobalFilter Account[] @relation("GLOBAL_FILTER_X_ACCOUNT")
160
164
 
165
+ profileEvents Event[] @relation("EVENT_X_PROFILE_TAGS")
166
+ roleEvents Event[] @relation("EVENT_X_ROLES")
167
+
161
168
  created_at DateTime @default(now())
162
169
  updated_at DateTime @updatedAt
163
- Event Event[] @relation("EVENT_X_TAGS")
164
170
 
165
171
  @@map("TAG")
166
172
  }
@@ -204,11 +210,14 @@ model Event {
204
210
  tickets Ticket[] @relation("EVENT_X_TICKET")
205
211
  ticketGroups TicketGroup[] @relation("EVENT_X_TICKET_GROUP")
206
212
  subEvents Event[] @relation("SubEvents")
207
- tags Tag[] @relation("EVENT_X_TAGS")
213
+ profileTags Tag[] @relation("EVENT_X_PROFILE_TAGS")
208
214
  eventTickets EventTicket[] @relation("EVENT_X_EVENTTICKET")
209
215
 
210
216
  active Boolean @default(false)
211
217
 
218
+ productions Production[] @relation("EVENT_X_PRODUCTION")
219
+ participantRoles Tag[] @relation("EVENT_X_ROLES")
220
+
212
221
  created_at DateTime @default(now())
213
222
  updated_at DateTime @updatedAt
214
223
 
@@ -274,7 +283,7 @@ model Ticket {
274
283
  profile Profile? @relation("PROFILE_X_TICKET", fields: [profileId], references: [id])
275
284
 
276
285
  ticketGroupId String? @map("ticket_group_id")
277
- ticketGroup TicketGroup? @relation("TICKET_X_TICKET_GROUP", fields: [ticketGroupId], references: [id])
286
+ ticketGroup TicketGroup? @relation("TICKET_X_TICKET_GROUP", fields: [ticketGroupId], references: [id], onDelete: Cascade)
278
287
 
279
288
  created_at DateTime @default(now())
280
289
  updated_at DateTime @updatedAt
@@ -319,6 +328,48 @@ model EventTicket {
319
328
  @@map("EVENT_TICKET")
320
329
  }
321
330
 
331
+ model Production {
332
+ id String @id @default(uuid())
333
+
334
+ name String @unique
335
+
336
+ administratorId String? @map("adminstrator_id")
337
+ administrator Profile? @relation("PRODUCTION_X_ADMINISTRATOR", fields: [administratorId], references: [id])
338
+
339
+ participants Profile[] @relation("PRODUCTION_X_PARTICIPANT")
340
+ events Event[] @relation("EVENT_X_PRODUCTION")
341
+ affiliationRequests ProductionAffiliationRequest[] @relation("PRODUCTION_AFFILIATION_REQUEST")
342
+
343
+ created_at DateTime @default(now())
344
+ updated_at DateTime @updatedAt
345
+
346
+ @@map("PRODUCTION")
347
+ }
348
+
349
+ model ProductionAffiliationRequest {
350
+ id String @id @default(uuid())
351
+
352
+ productionId String @map("production_id")
353
+ production Production @relation(name: "PRODUCTION_AFFILIATION_REQUEST", fields: [productionId], references: [id], onDelete: Cascade)
354
+
355
+ profileId String
356
+ profile Profile @relation(name: "PRODUCTION_AFILIATION_X_PROFILE", fields: [profileId], references: [id])
357
+
358
+ status AffiliationStatus @default(PENDING)
359
+ reviewedAt DateTime? @map("reviewed_at")
360
+
361
+ created_at DateTime @default(now())
362
+ updated_at DateTime @updatedAt
363
+
364
+ @@map("PRODUCTION_AFFILIATION_REQUEST")
365
+ }
366
+
367
+ enum AffiliationStatus {
368
+ APPROVED
369
+ PENDING
370
+ REJECTED
371
+ }
372
+
322
373
  enum TemplateStatus {
323
374
  APPROVED
324
375
  PENDING
@@ -336,6 +387,7 @@ enum TagType {
336
387
  EVENT
337
388
  PARTICIPANT
338
389
  NOT_IN_SYSTEM
390
+ PRODUCTION_ROLE
339
391
  }
340
392
 
341
393
  enum MessageState {
@@ -292,6 +292,24 @@ exports.Prisma.EventTicketScalarFieldEnum = {
292
292
  updated_at: 'updated_at'
293
293
  };
294
294
 
295
+ exports.Prisma.ProductionScalarFieldEnum = {
296
+ id: 'id',
297
+ name: 'name',
298
+ administratorId: 'administratorId',
299
+ created_at: 'created_at',
300
+ updated_at: 'updated_at'
301
+ };
302
+
303
+ exports.Prisma.ProductionAffiliationRequestScalarFieldEnum = {
304
+ id: 'id',
305
+ productionId: 'productionId',
306
+ profileId: 'profileId',
307
+ status: 'status',
308
+ reviewedAt: 'reviewedAt',
309
+ created_at: 'created_at',
310
+ updated_at: 'updated_at'
311
+ };
312
+
295
313
  exports.Prisma.SortOrder = {
296
314
  asc: 'asc',
297
315
  desc: 'desc'
@@ -328,7 +346,8 @@ exports.TagType = exports.$Enums.TagType = {
328
346
  PROFILE: 'PROFILE',
329
347
  EVENT: 'EVENT',
330
348
  PARTICIPANT: 'PARTICIPANT',
331
- NOT_IN_SYSTEM: 'NOT_IN_SYSTEM'
349
+ NOT_IN_SYSTEM: 'NOT_IN_SYSTEM',
350
+ PRODUCTION_ROLE: 'PRODUCTION_ROLE'
332
351
  };
333
352
 
334
353
  exports.MessageState = exports.$Enums.MessageState = {
@@ -361,6 +380,12 @@ exports.TemplateCategory = exports.$Enums.TemplateCategory = {
361
380
  AUTHENTICATION: 'AUTHENTICATION'
362
381
  };
363
382
 
383
+ exports.AffiliationStatus = exports.$Enums.AffiliationStatus = {
384
+ APPROVED: 'APPROVED',
385
+ PENDING: 'PENDING',
386
+ REJECTED: 'REJECTED'
387
+ };
388
+
364
389
  exports.Prisma.ModelName = {
365
390
  Account: 'Account',
366
391
  Profile: 'Profile',
@@ -376,7 +401,9 @@ exports.Prisma.ModelName = {
376
401
  Ticket: 'Ticket',
377
402
  TicketGroup: 'TicketGroup',
378
403
  Enums: 'Enums',
379
- EventTicket: 'EventTicket'
404
+ EventTicket: 'EventTicket',
405
+ Production: 'Production',
406
+ ProductionAffiliationRequest: 'ProductionAffiliationRequest'
380
407
  };
381
408
 
382
409
  /**