Add lookup tables, payment methods, tax exemptions, and processor link APIs
Replace unit_status and item_condition pgEnums with company-scoped lookup tables that support custom values. Add account_payment_method table, tax_exemption table with approve/revoke workflow, and CRUD routes for processor links. Validate inventory unit status/condition against lookup tables at service layer.
This commit is contained in:
@@ -6,17 +6,35 @@ export type { RegisterInput, LoginInput } from './auth.schema.js'
|
||||
|
||||
export {
|
||||
BillingMode,
|
||||
PaymentProcessor,
|
||||
TaxExemptStatus,
|
||||
AccountCreateSchema,
|
||||
AccountUpdateSchema,
|
||||
MemberCreateSchema,
|
||||
MemberUpdateSchema,
|
||||
AccountSearchSchema,
|
||||
ProcessorLinkCreateSchema,
|
||||
ProcessorLinkUpdateSchema,
|
||||
PaymentMethodCreateSchema,
|
||||
PaymentMethodUpdateSchema,
|
||||
TaxExemptionCreateSchema,
|
||||
TaxExemptionUpdateSchema,
|
||||
LookupCreateSchema,
|
||||
LookupUpdateSchema,
|
||||
} from './account.schema.js'
|
||||
export type {
|
||||
AccountCreateInput,
|
||||
AccountUpdateInput,
|
||||
MemberCreateInput,
|
||||
MemberUpdateInput,
|
||||
ProcessorLinkCreateInput,
|
||||
ProcessorLinkUpdateInput,
|
||||
PaymentMethodCreateInput,
|
||||
PaymentMethodUpdateInput,
|
||||
TaxExemptionCreateInput,
|
||||
TaxExemptionUpdateInput,
|
||||
LookupCreateInput,
|
||||
LookupUpdateInput,
|
||||
} from './account.schema.js'
|
||||
|
||||
export {
|
||||
@@ -26,6 +44,8 @@ export {
|
||||
SupplierUpdateSchema,
|
||||
ItemCondition,
|
||||
UnitStatus,
|
||||
SystemItemCondition,
|
||||
SystemUnitStatus,
|
||||
ProductCreateSchema,
|
||||
ProductUpdateSchema,
|
||||
ProductSearchSchema,
|
||||
|
||||
Reference in New Issue
Block a user