chaging schemas for front
This commit is contained in:
@@ -2,7 +2,7 @@ mutation CreateActivityLog(
|
|||||||
$title: String!,
|
$title: String!,
|
||||||
$description: String!,
|
$description: String!,
|
||||||
$activityType: ActivityType!,
|
$activityType: ActivityType!,
|
||||||
$userId: UUID!,
|
$userId: String!,
|
||||||
$isRead: Boolean
|
$isRead: Boolean
|
||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
activityLog_insert(
|
activityLog_insert(
|
||||||
@@ -21,7 +21,7 @@ mutation UpdateActivityLog(
|
|||||||
$title: String,
|
$title: String,
|
||||||
$description: String,
|
$description: String,
|
||||||
$activityType: ActivityType,
|
$activityType: ActivityType,
|
||||||
$userId: UUID,
|
$userId: String,
|
||||||
$isRead: Boolean
|
$isRead: Boolean
|
||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
activityLog_update(
|
activityLog_update(
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ query getActivityLogById(
|
|||||||
}
|
}
|
||||||
|
|
||||||
query filterActivityLog(
|
query filterActivityLog(
|
||||||
$userId: UUID,
|
$userId: String,
|
||||||
$activityType: ActivityType,
|
$activityType: ActivityType,
|
||||||
$isRead: Boolean
|
$isRead: Boolean
|
||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
|
|||||||
@@ -6,16 +6,16 @@ mutation CreateEvent(
|
|||||||
$recurrenceType: RecurrenceType,
|
$recurrenceType: RecurrenceType,
|
||||||
$recurrenceStartDate: Timestamp,
|
$recurrenceStartDate: Timestamp,
|
||||||
$recurrenceEndDate: Timestamp,
|
$recurrenceEndDate: Timestamp,
|
||||||
$scatterDates: String,
|
$scatterDates: Any,
|
||||||
$multiDayStartDate: Timestamp,
|
$multiDayStartDate: Timestamp,
|
||||||
$multiDayEndDate: Timestamp,
|
$multiDayEndDate: Timestamp,
|
||||||
$bufferTimeBefore: Float,
|
$bufferTimeBefore: Float,
|
||||||
$bufferTimeAfter: Float,
|
$bufferTimeAfter: Float,
|
||||||
$conflictDetectionEnabled: Boolean,
|
$conflictDetectionEnabled: Boolean,
|
||||||
$detectedConflicts: String,
|
$detectedConflicts: Any,
|
||||||
$businessId: UUID!,
|
$businessId: UUID!,
|
||||||
$businessName: String,
|
$businessName: String,
|
||||||
$vendorId: UUID,
|
$vendorId: String,
|
||||||
$vendorName: String,
|
$vendorName: String,
|
||||||
$hub: String,
|
$hub: String,
|
||||||
$eventLocation: String,
|
$eventLocation: String,
|
||||||
@@ -23,8 +23,8 @@ mutation CreateEvent(
|
|||||||
$poReference: String,
|
$poReference: String,
|
||||||
$status: EventStatus!,
|
$status: EventStatus!,
|
||||||
$date: Timestamp!,
|
$date: Timestamp!,
|
||||||
$shifts: String,
|
$shifts: Any,
|
||||||
$addons: String,
|
$addons: Any,
|
||||||
$total: Float,
|
$total: Float,
|
||||||
$clientName: String,
|
$clientName: String,
|
||||||
$clientEmail: String,
|
$clientEmail: String,
|
||||||
@@ -32,7 +32,7 @@ mutation CreateEvent(
|
|||||||
$invoiceId: UUID,
|
$invoiceId: UUID,
|
||||||
$notes: String,
|
$notes: String,
|
||||||
$requested: Int,
|
$requested: Int,
|
||||||
$assignedStaff: String
|
$assignedStaff: Any
|
||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
event_insert(
|
event_insert(
|
||||||
data: {
|
data: {
|
||||||
@@ -84,16 +84,16 @@ mutation UpdateEvent(
|
|||||||
$recurrenceType: RecurrenceType,
|
$recurrenceType: RecurrenceType,
|
||||||
$recurrenceStartDate: Timestamp,
|
$recurrenceStartDate: Timestamp,
|
||||||
$recurrenceEndDate: Timestamp,
|
$recurrenceEndDate: Timestamp,
|
||||||
$scatterDates: String,
|
$scatterDates: Any,
|
||||||
$multiDayStartDate: Timestamp,
|
$multiDayStartDate: Timestamp,
|
||||||
$multiDayEndDate: Timestamp,
|
$multiDayEndDate: Timestamp,
|
||||||
$bufferTimeBefore: Float,
|
$bufferTimeBefore: Float,
|
||||||
$bufferTimeAfter: Float,
|
$bufferTimeAfter: Float,
|
||||||
$conflictDetectionEnabled: Boolean,
|
$conflictDetectionEnabled: Boolean,
|
||||||
$detectedConflicts: String,
|
$detectedConflicts: Any,
|
||||||
$businessId: UUID,
|
$businessId: UUID,
|
||||||
$businessName: String,
|
$businessName: String,
|
||||||
$vendorId: UUID,
|
$vendorId: String,
|
||||||
$vendorName: String,
|
$vendorName: String,
|
||||||
$hub: String,
|
$hub: String,
|
||||||
$eventLocation: String,
|
$eventLocation: String,
|
||||||
@@ -101,8 +101,8 @@ mutation UpdateEvent(
|
|||||||
$poReference: String,
|
$poReference: String,
|
||||||
$status: EventStatus,
|
$status: EventStatus,
|
||||||
$date: Timestamp,
|
$date: Timestamp,
|
||||||
$shifts: String,
|
$shifts: Any,
|
||||||
$addons: String,
|
$addons: Any,
|
||||||
$total: Float,
|
$total: Float,
|
||||||
$clientName: String,
|
$clientName: String,
|
||||||
$clientEmail: String,
|
$clientEmail: String,
|
||||||
@@ -110,7 +110,7 @@ mutation UpdateEvent(
|
|||||||
$invoiceId: UUID,
|
$invoiceId: UUID,
|
||||||
$notes: String,
|
$notes: String,
|
||||||
$requested: Int,
|
$requested: Int,
|
||||||
$assignedStaff: String
|
$assignedStaff: Any
|
||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
event_update(
|
event_update(
|
||||||
id: $id,
|
id: $id,
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
query listEvents @auth(level: USER) {
|
query listEvents (
|
||||||
events {
|
$orderByDate: OrderDirection
|
||||||
|
$limit: Int
|
||||||
|
) @auth(level: USER) {
|
||||||
|
events(
|
||||||
|
orderBy: { date: $orderByDate }
|
||||||
|
limit: $limit
|
||||||
|
) {
|
||||||
id
|
id
|
||||||
eventName
|
eventName
|
||||||
status
|
status
|
||||||
@@ -84,7 +90,7 @@ query getEventById(
|
|||||||
query filterEvents(
|
query filterEvents(
|
||||||
$status: EventStatus,
|
$status: EventStatus,
|
||||||
$businessId: UUID,
|
$businessId: UUID,
|
||||||
$vendorId: UUID,
|
$vendorId: String,
|
||||||
$isRecurring: Boolean,
|
$isRecurring: Boolean,
|
||||||
$isRapid: Boolean,
|
$isRapid: Boolean,
|
||||||
$isMultiDay: Boolean,
|
$isMultiDay: Boolean,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
mutation CreateTeam(
|
mutation CreateTeam(
|
||||||
$teamName: String!,
|
$teamName: String!,
|
||||||
$ownerId: UUID!,
|
$ownerId: String!,
|
||||||
$ownerName: String!,
|
$ownerName: String!,
|
||||||
$ownerRole: TeamOwnerRole!,
|
$ownerRole: TeamOwnerRole!,
|
||||||
$favoriteStaff: String,
|
$favoriteStaff: String,
|
||||||
@@ -21,7 +21,7 @@ mutation CreateTeam(
|
|||||||
mutation UpdateTeam(
|
mutation UpdateTeam(
|
||||||
$id: UUID!,
|
$id: UUID!,
|
||||||
$teamName: String,
|
$teamName: String,
|
||||||
$ownerId: UUID,
|
$ownerId: String,
|
||||||
$ownerName: String,
|
$ownerName: String,
|
||||||
$ownerRole: TeamOwnerRole,
|
$ownerRole: TeamOwnerRole,
|
||||||
$favoriteStaff: String,
|
$favoriteStaff: String,
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
query listTeam @auth(level: USER) {
|
query listTeam (
|
||||||
teams {
|
$orderByCreatedDate: OrderDirection
|
||||||
|
$limit: Int
|
||||||
|
) @auth(level: USER) {
|
||||||
|
teams(
|
||||||
|
orderBy: { createdDate: $orderByCreatedDate }
|
||||||
|
limit: $limit
|
||||||
|
) {
|
||||||
id
|
id
|
||||||
teamName
|
teamName
|
||||||
ownerId
|
ownerId
|
||||||
@@ -26,7 +32,7 @@ query getTeamById(
|
|||||||
|
|
||||||
query filterTeam(
|
query filterTeam(
|
||||||
$teamName: String,
|
$teamName: String,
|
||||||
$ownerId: UUID,
|
$ownerId: String,
|
||||||
$ownerRole: TeamOwnerRole
|
$ownerRole: TeamOwnerRole
|
||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
teams(
|
teams(
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ type ActivityLog @table(name: "activity_logs") {
|
|||||||
title: String!
|
title: String!
|
||||||
description: String!
|
description: String!
|
||||||
activityType: ActivityType!
|
activityType: ActivityType!
|
||||||
userId: UUID! # user_id (FK lógica a User.id)
|
userId: String! # user_id (FK lógica a User.id)
|
||||||
isRead: Boolean @default(expr: "false")
|
isRead: Boolean @default(expr: "false")
|
||||||
createdDate: Timestamp @default(expr: "request.time")
|
createdDate: Timestamp @default(expr: "request.time")
|
||||||
updatedDate: Timestamp @default(expr: "request.time")
|
updatedDate: Timestamp @default(expr: "request.time")
|
||||||
|
|||||||
@@ -33,16 +33,16 @@ type Event @table(name: "events") {
|
|||||||
recurrenceType: RecurrenceType
|
recurrenceType: RecurrenceType
|
||||||
recurrenceStartDate: Timestamp
|
recurrenceStartDate: Timestamp
|
||||||
recurrenceEndDate: Timestamp
|
recurrenceEndDate: Timestamp
|
||||||
scatterDates: String
|
scatterDates: Any
|
||||||
multiDayStartDate: Timestamp
|
multiDayStartDate: Timestamp
|
||||||
multiDayEndDate: Timestamp
|
multiDayEndDate: Timestamp
|
||||||
bufferTimeBefore: Float @default(expr: "0")
|
bufferTimeBefore: Float @default(expr: "0")
|
||||||
bufferTimeAfter: Float @default(expr: "0")
|
bufferTimeAfter: Float @default(expr: "0")
|
||||||
conflictDetectionEnabled: Boolean @default(expr: "true")
|
conflictDetectionEnabled: Boolean @default(expr: "true")
|
||||||
detectedConflicts: String
|
detectedConflicts: Any
|
||||||
businessId: UUID!
|
businessId: UUID!
|
||||||
businessName: String
|
businessName: String
|
||||||
vendorId: UUID
|
vendorId: String
|
||||||
vendorName: String
|
vendorName: String
|
||||||
hub: String
|
hub: String
|
||||||
eventLocation: String
|
eventLocation: String
|
||||||
@@ -50,8 +50,8 @@ type Event @table(name: "events") {
|
|||||||
poReference: String
|
poReference: String
|
||||||
status: EventStatus!
|
status: EventStatus!
|
||||||
date: Timestamp!
|
date: Timestamp!
|
||||||
shifts: String
|
shifts: Any
|
||||||
addons: String
|
addons: Any
|
||||||
total: Float
|
total: Float
|
||||||
clientName: String
|
clientName: String
|
||||||
clientEmail: String
|
clientEmail: String
|
||||||
@@ -59,7 +59,7 @@ type Event @table(name: "events") {
|
|||||||
invoiceId: UUID
|
invoiceId: UUID
|
||||||
notes: String
|
notes: String
|
||||||
requested: Int @default(expr: "0")
|
requested: Int @default(expr: "0")
|
||||||
assignedStaff: String
|
assignedStaff: Any
|
||||||
createdDate: Timestamp @default(expr: "request.time")
|
createdDate: Timestamp @default(expr: "request.time")
|
||||||
updatedDate: Timestamp @default(expr: "request.time")
|
updatedDate: Timestamp @default(expr: "request.time")
|
||||||
createdBy: String @default(expr: "auth.uid")
|
createdBy: String @default(expr: "auth.uid")
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ enum TeamOwnerRole {
|
|||||||
type Team @table(name: "team") {
|
type Team @table(name: "team") {
|
||||||
id: UUID! @default(expr: "uuidV4()")
|
id: UUID! @default(expr: "uuidV4()")
|
||||||
teamName: String!
|
teamName: String!
|
||||||
ownerId: UUID!
|
ownerId: String!
|
||||||
ownerName: String!
|
ownerName: String!
|
||||||
ownerRole: TeamOwnerRole!
|
ownerRole: TeamOwnerRole!
|
||||||
favoriteStaff: String
|
favoriteStaff: String
|
||||||
|
|||||||
Reference in New Issue
Block a user