Skip to content

Commit 1cccab3

Browse files
committed
Move and change type of 'changed-fields' on entry
1 parent bf07186 commit 1cccab3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/payloads/EntryPayload.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ type EntryPayload = {
2424
};
2525
'flow-name': string;
2626
nda?: string;
27-
'changed-fields'?: Array<string>;
2827
'legal-docs'?: Array<{
2928
id: string;
3029
url: string;
@@ -77,6 +76,13 @@ type EntryPayload = {
7776
data: Array<JSONAPIData<'agreeable-ndas'>>;
7877
};
7978
};
79+
'changed-fields'?: Record<
80+
string,
81+
{
82+
old: unknown;
83+
new: unknown;
84+
}
85+
>;
8086
};
8187

8288
export function normalizeEntryPayload(payload: EntryPayload): EntryPayload {

0 commit comments

Comments
 (0)