Add lead workflows, PDF signing, AR projects and photo gallery integration
This commit is contained in:
23
GasTankAR/Domain/Leads/LeadQuery.swift
Normal file
23
GasTankAR/Domain/Leads/LeadQuery.swift
Normal file
@ -0,0 +1,23 @@
|
||||
import Foundation
|
||||
|
||||
struct LeadQuery: Equatable, Sendable {
|
||||
var searchText = ""
|
||||
var sort: LeadSort = .newest
|
||||
var filter: LeadFilter = .all
|
||||
|
||||
var normalized: LeadQuery {
|
||||
var query = self
|
||||
query.searchText = searchText.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
return query
|
||||
}
|
||||
}
|
||||
|
||||
enum LeadSort: Sendable {
|
||||
case newest
|
||||
case nameAscending
|
||||
}
|
||||
|
||||
enum LeadFilter: Sendable {
|
||||
case all
|
||||
case unsignedContracts
|
||||
}
|
||||
Reference in New Issue
Block a user