feat(api-client-phase10): API um project-templates erweitern [tsc:fail]
This commit is contained in:
parent
5b48d79516
commit
5b1f87e2b9
@ -1,11 +1,12 @@
|
|||||||
{
|
{
|
||||||
"completed_features": [],
|
"completed_features": [],
|
||||||
"current_feature": "keyboard-help-modal",
|
"current_feature": "api-client-phase10",
|
||||||
"started_at": "2026-05-23T06:10:51.530595",
|
"started_at": "2026-05-23T06:10:51.530595",
|
||||||
"attempted_features": [
|
"attempted_features": [
|
||||||
"markdown-notes-time-entry",
|
"markdown-notes-time-entry",
|
||||||
"customer-tags",
|
"customer-tags",
|
||||||
"project-templates",
|
"project-templates",
|
||||||
"language-toggle"
|
"language-toggle",
|
||||||
|
"keyboard-help-modal"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1248,3 +1248,20 @@ src/index.ts(27,25): error TS2769: No overload matches this call.
|
|||||||
Overload 2 of 3, '(plugin: FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
|
Overload 2 of 3, '(plugin: FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
|
||||||
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
|
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
|
||||||
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTy
|
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTy
|
||||||
|
- `06:18:47` **INFO** Committed feature keyboard-help-modal
|
||||||
|
- `06:18:47` **INFO** Pushed: rc=0
|
||||||
|
|
||||||
|
## Phase-3 Feature: api-client-phase10 (2026-05-23 06:18:47)
|
||||||
|
|
||||||
|
- `06:18:47` **INFO** Description: API um project-templates erweitern
|
||||||
|
- `06:18:47` **INFO** Generating apps/web/src/lib/api.ts (ERWEITERT — behalte ALLES. Füge: listProjectTemplates(), createProject…)
|
||||||
|
- `06:19:31` **INFO** wrote 5036 chars in 43.5s (attempt 1)
|
||||||
|
- `06:19:31` **INFO** Running tsc --noEmit on api…
|
||||||
|
- `06:19:32` **WARN** tsc errors:
|
||||||
|
src/index.ts(27,25): error TS2769: No overload matches this call.
|
||||||
|
Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
|
||||||
|
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
|
||||||
|
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProvider>, opts: { ...; }, done: (err?: Error | undefined) => void): void'.
|
||||||
|
Overload 2 of 3, '(plugin: FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
|
||||||
|
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
|
||||||
|
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTy
|
||||||
|
|||||||
@ -178,33 +178,27 @@ export const api = {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
async listWebhooks() {
|
async listProjectTemplates() {
|
||||||
return request<any[]>("/webhooks")
|
return request<any[]>("/projects/templates")
|
||||||
},
|
},
|
||||||
|
|
||||||
async createWebhook(data: { url: string; event: string }) {
|
async createProjectTemplate(data: any) {
|
||||||
return request("/webhooks", {
|
return request("/projects/templates", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.stringify(data)
|
body: JSON.stringify(data)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
async updateWebhook(id: string, data: { url?: string; event?: string }) {
|
async updateProjectTemplate(id: string, data: any) {
|
||||||
return request(`/webhooks/${id}`, {
|
return request(`/projects/templates/${id}`, {
|
||||||
method: "PATCH",
|
method: "PATCH",
|
||||||
body: JSON.stringify(data)
|
body: JSON.stringify(data)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
async deleteWebhook(id: string) {
|
async deleteProjectTemplate(id: string) {
|
||||||
return request(`/webhooks/${id}`, {
|
return request(`/projects/templates/${id}`, {
|
||||||
method: "DELETE"
|
method: "DELETE"
|
||||||
})
|
})
|
||||||
},
|
|
||||||
|
|
||||||
async testWebhook(id: string) {
|
|
||||||
return request(`/webhooks/${id}/test`, {
|
|
||||||
method: "POST"
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user