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.
65 lines
1.6 KiB
TypeScript
65 lines
1.6 KiB
TypeScript
export { PaginationSchema } from './pagination.schema.js'
|
|
export type { PaginationInput, PaginatedResponse } from './pagination.schema.js'
|
|
|
|
export { UserRole, RegisterSchema, LoginSchema } from './auth.schema.js'
|
|
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 {
|
|
CategoryCreateSchema,
|
|
CategoryUpdateSchema,
|
|
SupplierCreateSchema,
|
|
SupplierUpdateSchema,
|
|
ItemCondition,
|
|
UnitStatus,
|
|
SystemItemCondition,
|
|
SystemUnitStatus,
|
|
ProductCreateSchema,
|
|
ProductUpdateSchema,
|
|
ProductSearchSchema,
|
|
InventoryUnitCreateSchema,
|
|
InventoryUnitUpdateSchema,
|
|
} from './inventory.schema.js'
|
|
export type {
|
|
CategoryCreateInput,
|
|
CategoryUpdateInput,
|
|
SupplierCreateInput,
|
|
SupplierUpdateInput,
|
|
ProductCreateInput,
|
|
ProductUpdateInput,
|
|
InventoryUnitCreateInput,
|
|
InventoryUnitUpdateInput,
|
|
} from './inventory.schema.js'
|