add event verify
This commit is contained in:
@@ -17,6 +17,7 @@ export type EventItem = {
|
||||
requireValue?: boolean;
|
||||
status?: EventStatus;
|
||||
requirePhoto?: boolean;
|
||||
requireVerification?: boolean;
|
||||
limitType?: EventLimitType;
|
||||
limitValue?: number;
|
||||
beginAt?: number;
|
||||
|
||||
@@ -4,6 +4,9 @@ import type { EventItem } from "@/types/EventItem";
|
||||
import type { PointLedgerChangeType } from "@/types/Point";
|
||||
|
||||
export type EventRecord = {
|
||||
verificationStatus?: VerificationStatus;
|
||||
verifierUserId?: string;
|
||||
verifiedAt?: number;
|
||||
storeId?: string;
|
||||
customerId?: string;
|
||||
customerIdList?: string[];
|
||||
@@ -21,9 +24,12 @@ export type EventRecord = {
|
||||
customer?: Customer;
|
||||
event?: EventItem;
|
||||
operator?: Partial<User>;
|
||||
verifier?: Partial<User>;
|
||||
attachmentList?: Attachment[];
|
||||
} & Model;
|
||||
|
||||
export type VerificationStatus = "NOT_REQUIRED" | "PENDING" | "VERIFIED";
|
||||
|
||||
export type EventRecordListItemView = {
|
||||
id?: string;
|
||||
customerId?: string;
|
||||
@@ -31,6 +37,9 @@ export type EventRecordListItemView = {
|
||||
eventId?: string;
|
||||
event?: EventItem;
|
||||
registeredAt?: number;
|
||||
verificationStatus?: VerificationStatus;
|
||||
verifierUserId?: string;
|
||||
verifiedAt?: number;
|
||||
};
|
||||
|
||||
export type EventRecordPageResult = PageResult<EventRecordListItemView> & {
|
||||
@@ -41,6 +50,7 @@ export type EventRecordPage = {
|
||||
storeId?: string;
|
||||
customerId?: string;
|
||||
eventIdList?: string[];
|
||||
verificationStatus?: VerificationStatus;
|
||||
keyword?: string;
|
||||
beginAt?: number;
|
||||
endAt?: number;
|
||||
|
||||
Reference in New Issue
Block a user