🗃️ Add updatedAt fields where missing
This commit is contained in:
@ -4,7 +4,7 @@ import { sendRequest } from 'utils'
|
||||
export const updateCollaboratorQuery = (
|
||||
typebotId: string,
|
||||
userId: string,
|
||||
collaborator: CollaboratorsOnTypebots
|
||||
collaborator: Omit<CollaboratorsOnTypebots, 'createdAt' | 'updatedAt'>
|
||||
) =>
|
||||
sendRequest({
|
||||
method: 'PATCH',
|
||||
|
@ -4,7 +4,7 @@ import { sendRequest } from 'utils'
|
||||
export const updateInvitationQuery = (
|
||||
typebotId: string,
|
||||
email: string,
|
||||
invitation: Omit<Invitation, 'createdAt' | 'id'>
|
||||
invitation: Omit<Invitation, 'createdAt' | 'id' | 'updatedAt'>
|
||||
) =>
|
||||
sendRequest({
|
||||
method: 'PATCH',
|
||||
|
@ -3,7 +3,7 @@ import { sendRequest } from 'utils'
|
||||
import { Member } from '../types'
|
||||
|
||||
export const sendInvitationQuery = (
|
||||
invitation: Omit<WorkspaceInvitation, 'id' | 'createdAt'>
|
||||
invitation: Omit<WorkspaceInvitation, 'id' | 'createdAt' | 'updatedAt'>
|
||||
) =>
|
||||
sendRequest<{ invitation?: WorkspaceInvitation; member?: Member }>({
|
||||
url: `/api/workspaces/${invitation.workspaceId}/invitations`,
|
||||
|
@ -127,13 +127,17 @@
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"icon": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
@ -195,8 +199,9 @@
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name",
|
||||
"createdAt",
|
||||
"updatedAt",
|
||||
"name",
|
||||
"icon",
|
||||
"plan",
|
||||
"stripeId",
|
||||
@ -263,13 +268,17 @@
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"icon": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
@ -331,8 +340,9 @@
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name",
|
||||
"createdAt",
|
||||
"updatedAt",
|
||||
"name",
|
||||
"icon",
|
||||
"plan",
|
||||
"stripeId",
|
||||
@ -416,13 +426,17 @@
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"icon": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
@ -484,8 +498,9 @@
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name",
|
||||
"createdAt",
|
||||
"updatedAt",
|
||||
"name",
|
||||
"icon",
|
||||
"plan",
|
||||
"stripeId",
|
||||
|
Reference in New Issue
Block a user