Skip to content

Commit

Permalink
feat: add name in webhook document data (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dafyh authored Jul 2, 2024
1 parent 80f4e18 commit 14562e7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export interface Document {
data: {
id: string;
kind: DocumentKind;
name: string;
};
}
```
Expand Down
5 changes: 4 additions & 1 deletion docs/json-schema/events/document.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@
},
"kind": {
"enum": ["AF", "PF", "DB", "ED"]
},
"name": {
"type": "string"
}
},
"required": ["id", "kind"]
"required": ["id", "kind", "name"]
}
},
"required": ["name", "operation", "scope", "data"]
Expand Down
5 changes: 4 additions & 1 deletion src/schema/events/document.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@
},
"kind": {
"enum": ["AF", "PF", "DB", "ED"]
},
"name": {
"type": "string"
}
},
"required": ["id", "kind"],
"required": ["id", "kind", "name"],
"additionalProperties": false
}
}
Expand Down
1 change: 1 addition & 0 deletions src/types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export interface Document {
data: {
id: string;
kind: DocumentKind;
name: string;
}
}

Expand Down

0 comments on commit 14562e7

Please sign in to comment.