Skip to content

Commit

Permalink
schema updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bartes committed Dec 22, 2022
1 parent 2158b3f commit 11847be
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions src/payload/models/filter_payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,11 @@ import type { IncomingHttpHeaders } from 'http2';

export type FilterPayload = {
request_token: string;
// deprecated
user?: {
id?: string;
email?: string;
phone?: string;
};
properties?: { [key: string]: any };
context: {
ip: string;
headers: IncomingHttpHeaders | { [key: string]: string | boolean };
};
matching_user_id?: string;
params?: {
email?: string;
phone?: string;
username?: string;
};
product?: any;
session?: {
id: string;
Expand All @@ -31,4 +19,21 @@ export type FilterPayload = {
email?: string;
phone?: string;
};
} & ({ event: string } | { type: string; status?: string });
} & ({ event: string } | { type: string; status?: string }) &
(
| {
user?: {
id?: string;
email?: string;
phone?: string;
};
}
| {
matching_user_id?: string;
params?: {
email?: string;
phone?: string;
username?: string;
};
}
);

0 comments on commit 11847be

Please sign in to comment.