This commit is contained in:
alma 2025-05-22 20:59:31 +02:00
parent 7ce04af59c
commit 355bc5424f
8 changed files with 292 additions and 17 deletions

View File

@ -176,7 +176,15 @@ export async function POST(request: Request) {
// Check if mission with same name exists
const existingMission = await prisma.mission.findFirst({
where: { name }
where: { name },
select: {
id: true,
name: true,
rocketChatChannelId: true,
leantimeProjectId: true,
outlineCollectionId: true,
giteaRepositoryUrl: true
} as const
});
if (existingMission) {
@ -192,17 +200,36 @@ export async function POST(request: Request) {
leantimeProjectId: body.leantimeProjectId || existingMission.leantimeProjectId,
outlineCollectionId: body.documentationCollectionId || existingMission.outlineCollectionId,
giteaRepositoryUrl: body.gitRepoUrl || existingMission.giteaRepositoryUrl
} as any;
} as const;
const updatedMission = await prisma.mission.update({
where: { id: existingMission.id },
data: updateData
data: updateData as Prisma.MissionUncheckedUpdateInput
});
console.log('Updated existing mission:', JSON.stringify(updatedMission, null, 2));
return NextResponse.json(updatedMission);
}
// Check if there's already a mission being created with this name
const missionInProgress = await prisma.mission.findFirst({
where: {
name,
createdAt: {
gte: new Date(Date.now() - 5 * 60 * 1000) // Within last 5 minutes
}
}
});
if (missionInProgress) {
console.log('Mission creation already in progress:', missionInProgress);
return NextResponse.json({
error: 'Mission creation already in progress',
details: 'Please wait a few minutes and try again',
code: 'MISSION_CREATION_IN_PROGRESS'
}, { status: 409 });
}
// Trigger n8n workflow first
const n8nService = new N8nService();
const n8nData = {
@ -232,7 +259,8 @@ export async function POST(request: Request) {
console.error('N8n workflow failed:', workflowResult.error);
return NextResponse.json({
error: 'Failed to create mission resources',
details: workflowResult.error
details: workflowResult.error,
code: 'WORKFLOW_ERROR'
}, { status: 500 });
}

13
node_modules/.prisma/client/edge.js generated vendored

File diff suppressed because one or more lines are too long

View File

@ -204,7 +204,12 @@ exports.Prisma.MissionScalarFieldEnum = {
profils: 'profils',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
creatorId: 'creatorId'
creatorId: 'creatorId',
leantimeProjectId: 'leantimeProjectId',
outlineCollectionId: 'outlineCollectionId',
rocketChatChannelId: 'rocketChatChannelId',
giteaRepositoryUrl: 'giteaRepositoryUrl',
penpotProjectId: 'penpotProjectId'
};
exports.Prisma.AttachmentScalarFieldEnum = {

View File

@ -8707,6 +8707,11 @@ export namespace Prisma {
createdAt: Date | null
updatedAt: Date | null
creatorId: string | null
leantimeProjectId: string | null
outlineCollectionId: string | null
rocketChatChannelId: string | null
giteaRepositoryUrl: string | null
penpotProjectId: string | null
}
export type MissionMaxAggregateOutputType = {
@ -8722,6 +8727,11 @@ export namespace Prisma {
createdAt: Date | null
updatedAt: Date | null
creatorId: string | null
leantimeProjectId: string | null
outlineCollectionId: string | null
rocketChatChannelId: string | null
giteaRepositoryUrl: string | null
penpotProjectId: string | null
}
export type MissionCountAggregateOutputType = {
@ -8740,6 +8750,11 @@ export namespace Prisma {
createdAt: number
updatedAt: number
creatorId: number
leantimeProjectId: number
outlineCollectionId: number
rocketChatChannelId: number
giteaRepositoryUrl: number
penpotProjectId: number
_all: number
}
@ -8757,6 +8772,11 @@ export namespace Prisma {
createdAt?: true
updatedAt?: true
creatorId?: true
leantimeProjectId?: true
outlineCollectionId?: true
rocketChatChannelId?: true
giteaRepositoryUrl?: true
penpotProjectId?: true
}
export type MissionMaxAggregateInputType = {
@ -8772,6 +8792,11 @@ export namespace Prisma {
createdAt?: true
updatedAt?: true
creatorId?: true
leantimeProjectId?: true
outlineCollectionId?: true
rocketChatChannelId?: true
giteaRepositoryUrl?: true
penpotProjectId?: true
}
export type MissionCountAggregateInputType = {
@ -8790,6 +8815,11 @@ export namespace Prisma {
createdAt?: true
updatedAt?: true
creatorId?: true
leantimeProjectId?: true
outlineCollectionId?: true
rocketChatChannelId?: true
giteaRepositoryUrl?: true
penpotProjectId?: true
_all?: true
}
@ -8881,6 +8911,11 @@ export namespace Prisma {
createdAt: Date
updatedAt: Date
creatorId: string
leantimeProjectId: string | null
outlineCollectionId: string | null
rocketChatChannelId: string | null
giteaRepositoryUrl: string | null
penpotProjectId: string | null
_count: MissionCountAggregateOutputType | null
_min: MissionMinAggregateOutputType | null
_max: MissionMaxAggregateOutputType | null
@ -8916,6 +8951,11 @@ export namespace Prisma {
createdAt?: boolean
updatedAt?: boolean
creatorId?: boolean
leantimeProjectId?: boolean
outlineCollectionId?: boolean
rocketChatChannelId?: boolean
giteaRepositoryUrl?: boolean
penpotProjectId?: boolean
creator?: boolean | UserDefaultArgs<ExtArgs>
attachments?: boolean | Mission$attachmentsArgs<ExtArgs>
missionUsers?: boolean | Mission$missionUsersArgs<ExtArgs>
@ -8938,6 +8978,11 @@ export namespace Prisma {
createdAt?: boolean
updatedAt?: boolean
creatorId?: boolean
leantimeProjectId?: boolean
outlineCollectionId?: boolean
rocketChatChannelId?: boolean
giteaRepositoryUrl?: boolean
penpotProjectId?: boolean
creator?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mission"]>
@ -8957,6 +9002,11 @@ export namespace Prisma {
createdAt?: boolean
updatedAt?: boolean
creatorId?: boolean
leantimeProjectId?: boolean
outlineCollectionId?: boolean
rocketChatChannelId?: boolean
giteaRepositoryUrl?: boolean
penpotProjectId?: boolean
creator?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mission"]>
@ -8976,9 +9026,14 @@ export namespace Prisma {
createdAt?: boolean
updatedAt?: boolean
creatorId?: boolean
leantimeProjectId?: boolean
outlineCollectionId?: boolean
rocketChatChannelId?: boolean
giteaRepositoryUrl?: boolean
penpotProjectId?: boolean
}
export type MissionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "logo" | "oddScope" | "niveau" | "intention" | "missionType" | "donneurDOrdre" | "projection" | "services" | "participation" | "profils" | "createdAt" | "updatedAt" | "creatorId", ExtArgs["result"]["mission"]>
export type MissionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "logo" | "oddScope" | "niveau" | "intention" | "missionType" | "donneurDOrdre" | "projection" | "services" | "participation" | "profils" | "createdAt" | "updatedAt" | "creatorId" | "leantimeProjectId" | "outlineCollectionId" | "rocketChatChannelId" | "giteaRepositoryUrl" | "penpotProjectId", ExtArgs["result"]["mission"]>
export type MissionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
creator?: boolean | UserDefaultArgs<ExtArgs>
attachments?: boolean | Mission$attachmentsArgs<ExtArgs>
@ -9015,6 +9070,11 @@ export namespace Prisma {
createdAt: Date
updatedAt: Date
creatorId: string
leantimeProjectId: string | null
outlineCollectionId: string | null
rocketChatChannelId: string | null
giteaRepositoryUrl: string | null
penpotProjectId: string | null
}, ExtArgs["result"]["mission"]>
composites: {}
}
@ -9456,6 +9516,11 @@ export namespace Prisma {
readonly createdAt: FieldRef<"Mission", 'DateTime'>
readonly updatedAt: FieldRef<"Mission", 'DateTime'>
readonly creatorId: FieldRef<"Mission", 'String'>
readonly leantimeProjectId: FieldRef<"Mission", 'String'>
readonly outlineCollectionId: FieldRef<"Mission", 'String'>
readonly rocketChatChannelId: FieldRef<"Mission", 'String'>
readonly giteaRepositoryUrl: FieldRef<"Mission", 'String'>
readonly penpotProjectId: FieldRef<"Mission", 'String'>
}
@ -12268,7 +12333,12 @@ export namespace Prisma {
profils: 'profils',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
creatorId: 'creatorId'
creatorId: 'creatorId',
leantimeProjectId: 'leantimeProjectId',
outlineCollectionId: 'outlineCollectionId',
rocketChatChannelId: 'rocketChatChannelId',
giteaRepositoryUrl: 'giteaRepositoryUrl',
penpotProjectId: 'penpotProjectId'
};
export type MissionScalarFieldEnum = (typeof MissionScalarFieldEnum)[keyof typeof MissionScalarFieldEnum]
@ -12895,6 +12965,11 @@ export namespace Prisma {
createdAt?: DateTimeFilter<"Mission"> | Date | string
updatedAt?: DateTimeFilter<"Mission"> | Date | string
creatorId?: StringFilter<"Mission"> | string
leantimeProjectId?: StringNullableFilter<"Mission"> | string | null
outlineCollectionId?: StringNullableFilter<"Mission"> | string | null
rocketChatChannelId?: StringNullableFilter<"Mission"> | string | null
giteaRepositoryUrl?: StringNullableFilter<"Mission"> | string | null
penpotProjectId?: StringNullableFilter<"Mission"> | string | null
creator?: XOR<UserScalarRelationFilter, UserWhereInput>
attachments?: AttachmentListRelationFilter
missionUsers?: MissionUserListRelationFilter
@ -12916,6 +12991,11 @@ export namespace Prisma {
createdAt?: SortOrder
updatedAt?: SortOrder
creatorId?: SortOrder
leantimeProjectId?: SortOrderInput | SortOrder
outlineCollectionId?: SortOrderInput | SortOrder
rocketChatChannelId?: SortOrderInput | SortOrder
giteaRepositoryUrl?: SortOrderInput | SortOrder
penpotProjectId?: SortOrderInput | SortOrder
creator?: UserOrderByWithRelationInput
attachments?: AttachmentOrderByRelationAggregateInput
missionUsers?: MissionUserOrderByRelationAggregateInput
@ -12940,6 +13020,11 @@ export namespace Prisma {
createdAt?: DateTimeFilter<"Mission"> | Date | string
updatedAt?: DateTimeFilter<"Mission"> | Date | string
creatorId?: StringFilter<"Mission"> | string
leantimeProjectId?: StringNullableFilter<"Mission"> | string | null
outlineCollectionId?: StringNullableFilter<"Mission"> | string | null
rocketChatChannelId?: StringNullableFilter<"Mission"> | string | null
giteaRepositoryUrl?: StringNullableFilter<"Mission"> | string | null
penpotProjectId?: StringNullableFilter<"Mission"> | string | null
creator?: XOR<UserScalarRelationFilter, UserWhereInput>
attachments?: AttachmentListRelationFilter
missionUsers?: MissionUserListRelationFilter
@ -12961,6 +13046,11 @@ export namespace Prisma {
createdAt?: SortOrder
updatedAt?: SortOrder
creatorId?: SortOrder
leantimeProjectId?: SortOrderInput | SortOrder
outlineCollectionId?: SortOrderInput | SortOrder
rocketChatChannelId?: SortOrderInput | SortOrder
giteaRepositoryUrl?: SortOrderInput | SortOrder
penpotProjectId?: SortOrderInput | SortOrder
_count?: MissionCountOrderByAggregateInput
_max?: MissionMaxOrderByAggregateInput
_min?: MissionMinOrderByAggregateInput
@ -12985,6 +13075,11 @@ export namespace Prisma {
createdAt?: DateTimeWithAggregatesFilter<"Mission"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Mission"> | Date | string
creatorId?: StringWithAggregatesFilter<"Mission"> | string
leantimeProjectId?: StringNullableWithAggregatesFilter<"Mission"> | string | null
outlineCollectionId?: StringNullableWithAggregatesFilter<"Mission"> | string | null
rocketChatChannelId?: StringNullableWithAggregatesFilter<"Mission"> | string | null
giteaRepositoryUrl?: StringNullableWithAggregatesFilter<"Mission"> | string | null
penpotProjectId?: StringNullableWithAggregatesFilter<"Mission"> | string | null
}
export type AttachmentWhereInput = {
@ -13680,6 +13775,11 @@ export namespace Prisma {
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
creator: UserCreateNestedOneWithoutMissionsInput
attachments?: AttachmentCreateNestedManyWithoutMissionInput
missionUsers?: MissionUserCreateNestedManyWithoutMissionInput
@ -13701,6 +13801,11 @@ export namespace Prisma {
createdAt?: Date | string
updatedAt?: Date | string
creatorId: string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
attachments?: AttachmentUncheckedCreateNestedManyWithoutMissionInput
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutMissionInput
}
@ -13720,6 +13825,11 @@ export namespace Prisma {
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
creator?: UserUpdateOneRequiredWithoutMissionsNestedInput
attachments?: AttachmentUpdateManyWithoutMissionNestedInput
missionUsers?: MissionUserUpdateManyWithoutMissionNestedInput
@ -13741,6 +13851,11 @@ export namespace Prisma {
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: StringFieldUpdateOperationsInput | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
attachments?: AttachmentUncheckedUpdateManyWithoutMissionNestedInput
missionUsers?: MissionUserUncheckedUpdateManyWithoutMissionNestedInput
}
@ -13761,6 +13876,11 @@ export namespace Prisma {
createdAt?: Date | string
updatedAt?: Date | string
creatorId: string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
}
export type MissionUpdateManyMutationInput = {
@ -13778,6 +13898,11 @@ export namespace Prisma {
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
}
export type MissionUncheckedUpdateManyInput = {
@ -13796,6 +13921,11 @@ export namespace Prisma {
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: StringFieldUpdateOperationsInput | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
}
export type AttachmentCreateInput = {
@ -14480,6 +14610,11 @@ export namespace Prisma {
createdAt?: SortOrder
updatedAt?: SortOrder
creatorId?: SortOrder
leantimeProjectId?: SortOrder
outlineCollectionId?: SortOrder
rocketChatChannelId?: SortOrder
giteaRepositoryUrl?: SortOrder
penpotProjectId?: SortOrder
}
export type MissionMaxOrderByAggregateInput = {
@ -14495,6 +14630,11 @@ export namespace Prisma {
createdAt?: SortOrder
updatedAt?: SortOrder
creatorId?: SortOrder
leantimeProjectId?: SortOrder
outlineCollectionId?: SortOrder
rocketChatChannelId?: SortOrder
giteaRepositoryUrl?: SortOrder
penpotProjectId?: SortOrder
}
export type MissionMinOrderByAggregateInput = {
@ -14510,6 +14650,11 @@ export namespace Prisma {
createdAt?: SortOrder
updatedAt?: SortOrder
creatorId?: SortOrder
leantimeProjectId?: SortOrder
outlineCollectionId?: SortOrder
rocketChatChannelId?: SortOrder
giteaRepositoryUrl?: SortOrder
penpotProjectId?: SortOrder
}
export type MissionScalarRelationFilter = {
@ -15670,6 +15815,11 @@ export namespace Prisma {
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
attachments?: AttachmentCreateNestedManyWithoutMissionInput
missionUsers?: MissionUserCreateNestedManyWithoutMissionInput
}
@ -15689,6 +15839,11 @@ export namespace Prisma {
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
attachments?: AttachmentUncheckedCreateNestedManyWithoutMissionInput
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutMissionInput
}
@ -15954,6 +16109,11 @@ export namespace Prisma {
createdAt?: DateTimeFilter<"Mission"> | Date | string
updatedAt?: DateTimeFilter<"Mission"> | Date | string
creatorId?: StringFilter<"Mission"> | string
leantimeProjectId?: StringNullableFilter<"Mission"> | string | null
outlineCollectionId?: StringNullableFilter<"Mission"> | string | null
rocketChatChannelId?: StringNullableFilter<"Mission"> | string | null
giteaRepositoryUrl?: StringNullableFilter<"Mission"> | string | null
penpotProjectId?: StringNullableFilter<"Mission"> | string | null
}
export type MissionUserUpsertWithWhereUniqueWithoutUserInput = {
@ -16684,6 +16844,11 @@ export namespace Prisma {
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
creator: UserCreateNestedOneWithoutMissionsInput
missionUsers?: MissionUserCreateNestedManyWithoutMissionInput
}
@ -16704,6 +16869,11 @@ export namespace Prisma {
createdAt?: Date | string
updatedAt?: Date | string
creatorId: string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutMissionInput
}
@ -16773,6 +16943,11 @@ export namespace Prisma {
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
creator?: UserUpdateOneRequiredWithoutMissionsNestedInput
missionUsers?: MissionUserUpdateManyWithoutMissionNestedInput
}
@ -16793,6 +16968,11 @@ export namespace Prisma {
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: StringFieldUpdateOperationsInput | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
missionUsers?: MissionUserUncheckedUpdateManyWithoutMissionNestedInput
}
@ -16852,6 +17032,11 @@ export namespace Prisma {
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
creator: UserCreateNestedOneWithoutMissionsInput
attachments?: AttachmentCreateNestedManyWithoutMissionInput
}
@ -16872,6 +17057,11 @@ export namespace Prisma {
createdAt?: Date | string
updatedAt?: Date | string
creatorId: string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
attachments?: AttachmentUncheckedCreateNestedManyWithoutMissionInput
}
@ -16941,6 +17131,11 @@ export namespace Prisma {
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
creator?: UserUpdateOneRequiredWithoutMissionsNestedInput
attachments?: AttachmentUpdateManyWithoutMissionNestedInput
}
@ -16961,6 +17156,11 @@ export namespace Prisma {
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: StringFieldUpdateOperationsInput | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
attachments?: AttachmentUncheckedUpdateManyWithoutMissionNestedInput
}
@ -17071,6 +17271,11 @@ export namespace Prisma {
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
}
export type MissionUserCreateManyUserInput = {
@ -17262,6 +17467,11 @@ export namespace Prisma {
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
attachments?: AttachmentUpdateManyWithoutMissionNestedInput
missionUsers?: MissionUserUpdateManyWithoutMissionNestedInput
}
@ -17281,6 +17491,11 @@ export namespace Prisma {
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
attachments?: AttachmentUncheckedUpdateManyWithoutMissionNestedInput
missionUsers?: MissionUserUncheckedUpdateManyWithoutMissionNestedInput
}
@ -17300,6 +17515,11 @@ export namespace Prisma {
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
}
export type MissionUserUpdateWithoutUserInput = {

13
node_modules/.prisma/client/index.js generated vendored

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
{
"name": "prisma-client-d795f1d6d1080356e47b7b9bc2c7e97913938c4d241f1ee6aa4d3f8bbd27445b",
"name": "prisma-client-1994dc52aa4f59938721431e3940ffa67d6e93e681792ba749fd038a9012d8cc",
"main": "index.js",
"types": "index.d.ts",
"browser": "index-browser.js",

View File

@ -138,6 +138,13 @@ model Mission {
attachments Attachment[]
missionUsers MissionUser[]
// External integration fields
leantimeProjectId String?
outlineCollectionId String?
rocketChatChannelId String?
giteaRepositoryUrl String?
penpotProjectId String?
@@index([creatorId])
}

View File

@ -204,7 +204,12 @@ exports.Prisma.MissionScalarFieldEnum = {
profils: 'profils',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
creatorId: 'creatorId'
creatorId: 'creatorId',
leantimeProjectId: 'leantimeProjectId',
outlineCollectionId: 'outlineCollectionId',
rocketChatChannelId: 'rocketChatChannelId',
giteaRepositoryUrl: 'giteaRepositoryUrl',
penpotProjectId: 'penpotProjectId'
};
exports.Prisma.AttachmentScalarFieldEnum = {