feat(schema-workflow): PATCH /drafts/{id} — edit без recreate (A)
This commit is contained in:
@@ -496,6 +496,7 @@ export type ChangelogKind =
|
||||
| 'definition_create'
|
||||
| 'definition_update'
|
||||
| 'draft_create'
|
||||
| 'draft_update'
|
||||
| 'draft_review'
|
||||
| 'draft_approve'
|
||||
| 'draft_reject'
|
||||
@@ -602,6 +603,18 @@ export type CreateSchemaDraftRequest = {
|
||||
proposedSchema: unknown
|
||||
}
|
||||
|
||||
/**
|
||||
* Partial update existing draft без recreate. Status-gate enforced
|
||||
* backend'ом: только DRAFT и CHANGES_REQUESTED. CHANGES_REQUESTED →
|
||||
* DRAFT auto-transition после update (maker должен ре-submit).
|
||||
*/
|
||||
export type UpdateSchemaDraftRequest = {
|
||||
/** Replacement JSON Schema (full document). undefined = не меняем. */
|
||||
proposedSchema?: unknown
|
||||
/** Новая maker rationale. undefined = не меняем. */
|
||||
reason?: string
|
||||
}
|
||||
|
||||
export type SubmitForReviewRequest = {
|
||||
/** Optional explicit reviewer IDs. NULL/[] = pool. */
|
||||
reviewers?: string[] | null
|
||||
|
||||
Reference in New Issue
Block a user