diff --git a/app/account.go b/app/account.go index 668918a..928a548 100644 --- a/app/account.go +++ b/app/account.go @@ -1,6 +1,19 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/crm/crm_models" +) + +// NewAccountActivity is an activity identifier +const NewAccountActivity = "NEW_ACCOUNT_ACTIVITY" + +// AccountChannelWrapper wraps the object with the security principal +type AccountChannelWrapper struct { + Obj crm_models.Account + Principal User +} // Account is a DB struct type Account struct { diff --git a/app/accountingrule.go b/app/accountingrule.go index 3a4599e..7238234 100644 --- a/app/accountingrule.go +++ b/app/accountingrule.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ledger/ledger_models" +) + +// AccountingRuleChannelWrapper wraps the object with the security principal +type AccountingRuleChannelWrapper struct { + Obj ledger_models.AccountingRule + Principal User +} // AccountingRule is a first class object type type AccountingRule struct { diff --git a/app/accountingruleset.go b/app/accountingruleset.go index 8715ddc..9862473 100644 --- a/app/accountingruleset.go +++ b/app/accountingruleset.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ledger/ledger_models" +) + +// AccountingRulesetChannelWrapper wraps the object with the security principal +type AccountingRulesetChannelWrapper struct { + Obj ledger_models.AccountingRuleset + Principal User +} // AccountingRuleset is exported type AccountingRuleset struct { diff --git a/app/accountingrulesetitem.go b/app/accountingrulesetitem.go index 9eea9aa..5963098 100644 --- a/app/accountingrulesetitem.go +++ b/app/accountingrulesetitem.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ledger/ledger_models" +) + +// AccountingRulesetItemChannelWrapper wraps the object with the security principal +type AccountingRulesetItemChannelWrapper struct { + Obj ledger_models.AccountingRulesetItem + Principal User +} // AccountingRulesetItem is a first class object type type AccountingRulesetItem struct { diff --git a/app/backend.go b/app/backend.go index e7ec3c4..c854eee 100644 --- a/app/backend.go +++ b/app/backend.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" +) + +// BackendChannelWrapper wraps the object with the security principal +type BackendChannelWrapper struct { + Obj regs_models.Backend + Principal User +} // Backend is a first class object type type Backend struct { diff --git a/app/cashreceipt.go b/app/cashreceipt.go index 06a2b4a..73b29ea 100644 --- a/app/cashreceipt.go +++ b/app/cashreceipt.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" +) + +// CashReceiptChannelWrapper wraps the object with the security principal +type CashReceiptChannelWrapper struct { + Obj ops_models.CashReceipt + Principal User +} // CashReceipt is a first class object type type CashReceipt struct { diff --git a/app/charge.go b/app/charge.go index cef706c..65279d3 100644 --- a/app/charge.go +++ b/app/charge.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" +) + +// ChargeChannelWrapper wraps the object with the security principal +type ChargeChannelWrapper struct { + Obj ops_models.Charge + Principal User +} // Charge is a first class object type type Charge struct { diff --git a/app/cluster.go b/app/cluster.go index a4ed6a3..0609a64 100644 --- a/app/cluster.go +++ b/app/cluster.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/devops/devops_models" +) + +// ClusterChannelWrapper wraps the object with the security principal +type ClusterChannelWrapper struct { + Obj devops_models.Cluster + Principal User +} // Cluster is a first class object type type Cluster struct { diff --git a/app/company.go b/app/company.go index fe68c00..eafa41b 100644 --- a/app/company.go +++ b/app/company.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/crm/crm_models" +) + +// CompanyChannelWrapper wraps the object with the security principal +type CompanyChannelWrapper struct { + Obj crm_models.Company + Principal User +} // Company is a DB struct type Company struct { diff --git a/app/contact.go b/app/contact.go index 821862c..6b6ea07 100644 --- a/app/contact.go +++ b/app/contact.go @@ -1,6 +1,19 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/crm/crm_models" +) + +// NewContactActivity is an activity identifier +const NewContactActivity = "NEW_CONTACT_ACTIVITY" + +// ContactChannelWrapper wraps the object with the security principal +type ContactChannelWrapper struct { + Obj crm_models.Contact + Principal User +} // Contact is a first-class object type Contact struct { diff --git a/app/coordinate.go b/app/coordinate.go index a827693..bdff3fa 100644 --- a/app/coordinate.go +++ b/app/coordinate.go @@ -2,8 +2,16 @@ package app import ( "database/sql" + + "code.tnxs.net/taxnexus/lib/api/geo/geo_models" ) +// CoordinateBasicChannelWrapper wraps the object with the security principal +type CoordinateBasicChannelWrapper struct { + Obj geo_models.CoordinateBasic + Principal User +} + // CoordinateBasic is a first class object type type CoordinateBasic struct { ID string @@ -19,6 +27,12 @@ type CoordinateBasic struct { TaxTypes []*string } +// CoordinateChannelWrapper wraps the object with the security principal +type CoordinateChannelWrapper struct { + Obj geo_models.Coordinate + Principal User +} + // Coordinate is a first class object type type Coordinate struct { ID string diff --git a/app/country.go b/app/country.go index 0fee160..62f3d60 100644 --- a/app/country.go +++ b/app/country.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/geo/geo_models" +) + +// CountryChannelWrapper wraps the object with the security principal +type CountryChannelWrapper struct { + Obj geo_models.Country + Principal User +} // Country is a first class object type type Country struct { diff --git a/app/county.go b/app/county.go index 3e3fbcc..2834be1 100644 --- a/app/county.go +++ b/app/county.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/geo/geo_models" +) + +// CountyChannelWrapper wraps the object with the security principal +type CountyChannelWrapper struct { + Obj geo_models.County + Principal User +} // County is a first class object type type County struct { diff --git a/app/database.go b/app/database.go index 2da69ed..8e92151 100644 --- a/app/database.go +++ b/app/database.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/devops/devops_models" +) + +// DatabaseChannelWrapper wraps the object with the security principal +type DatabaseChannelWrapper struct { + Obj devops_models.Database + Principal User +} // Database is a first-class object type type Database struct { diff --git a/app/domain.go b/app/domain.go index b21fd92..104c468 100644 --- a/app/domain.go +++ b/app/domain.go @@ -1,5 +1,13 @@ package app +import "code.tnxs.net/taxnexus/lib/api/geo/geo_models" + +// DomainChannelWrapper wraps the object with the security principal +type DomainChannelWrapper struct { + Obj geo_models.Domain + Principal User +} + // Domain is a first class object type type Domain struct { ID string `json:"id,omitempty"` diff --git a/app/eft.go b/app/eft.go index 7691cc4..daf0699 100644 --- a/app/eft.go +++ b/app/eft.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" +) + +// EftChannelWrapper wraps the object with the security principal +type EftChannelWrapper struct { + Obj ops_models.Eft + Principal User +} // Eft is a first class object type type Eft struct { diff --git a/app/eftitem.go b/app/eftitem.go index d1f2c82..2c79ffe 100644 --- a/app/eftitem.go +++ b/app/eftitem.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" +) + +// EftItemChannelWrapper wraps the object with the security principal +type EftItemChannelWrapper struct { + Obj ops_models.EftItem + Principal User +} // EftItem is a first class object type type EftItem struct { diff --git a/app/emailmessage.go b/app/emailmessage.go index af2353d..651d572 100644 --- a/app/emailmessage.go +++ b/app/emailmessage.go @@ -2,8 +2,16 @@ package app import ( "database/sql" + + "code.tnxs.net/taxnexus/lib/api/workflow/workflow_models" ) +// EmailMessageChannelWrapper wraps the object with the security principal +type EmailMessageChannelWrapper struct { + Obj workflow_models.EmailMessage + Principal User +} + // EmailMessage is a first class object type type EmailMessage struct { ID string diff --git a/app/emaitemplate.go b/app/emaitemplate.go index 51c887b..100dd8c 100644 --- a/app/emaitemplate.go +++ b/app/emaitemplate.go @@ -4,6 +4,12 @@ import ( "database/sql" ) +// EmailTemplateChannelWrapper wraps the object with the security principal +type EmailTemplateChannelWrapper struct { + // Obj workflow_models.EmailTemplate + Principal User +} + // EmailTemplate is a first class object type type EmailTemplate struct { ID string diff --git a/app/filing.go b/app/filing.go index 0c0fcbc..2db365f 100644 --- a/app/filing.go +++ b/app/filing.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" +) + +// FilingChannelWrapper wraps the object with the security principal +type FilingChannelWrapper struct { + Obj regs_models.Filing + Principal User +} // Filing is a first class object type type Filing struct { diff --git a/app/filingscheduleitem.go b/app/filingscheduleitem.go index f55dacb..dbaa169 100644 --- a/app/filingscheduleitem.go +++ b/app/filingscheduleitem.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" +) + +// FilingScheduleItemChannelWrapper wraps the object with the security principal +type FilingScheduleItemChannelWrapper struct { + Obj regs_models.FilingScheduleItem + Principal User +} // FilingScheduleItem is a first class object type type FilingScheduleItem struct { diff --git a/app/filingtype.go b/app/filingtype.go index 6f2741e..4361178 100644 --- a/app/filingtype.go +++ b/app/filingtype.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" +) + +// FilingTypeChannelWrapper wraps the object with the security principal +type FilingTypeChannelWrapper struct { + Obj regs_models.FilingType + Principal User +} // FilingType is a first class object type type FilingType struct { diff --git a/app/filingtypeinstance.go b/app/filingtypeinstance.go index 59e3c61..99a7a96 100644 --- a/app/filingtypeinstance.go +++ b/app/filingtypeinstance.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" +) + +// FilingTypeInstanceChannelWrapper wraps the object with the security principal +type FilingTypeInstanceChannelWrapper struct { + Obj regs_models.FilingTypeInstance + Principal User +} // FilingTypeInstance is a first class object type type FilingTypeInstance struct { diff --git a/app/folder.go b/app/folder.go index df56774..d2466ba 100644 --- a/app/folder.go +++ b/app/folder.go @@ -4,6 +4,12 @@ import ( "database/sql" ) +// FolderChannelWrapper wraps the object with the security principal +type FolderChannelWrapper struct { + // Obj workflow_models.Folder + Principal User +} + // Folder is a first class object type type Folder struct { AccessType string diff --git a/app/glaccount.go b/app/glaccount.go index f2a4b1f..7a2c17b 100644 --- a/app/glaccount.go +++ b/app/glaccount.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ledger/ledger_models" +) + +// GlAccountChannelWrapper wraps the object with the security principal +type GlAccountChannelWrapper struct { + Obj ledger_models.GlAccount + Principal User +} // GlAccount is a first class object type type GlAccount struct { diff --git a/app/glbalance.go b/app/glbalance.go index a0d8047..4b6a851 100644 --- a/app/glbalance.go +++ b/app/glbalance.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ledger/ledger_models" +) + +// GlBalanceChannelWrapper wraps the object with the security principal +type GlBalanceChannelWrapper struct { + Obj ledger_models.GlBalance + Principal User +} // GlBalance is a first class object type type GlBalance struct { diff --git a/app/ingest.go b/app/ingest.go index 04f44f2..85abcdc 100644 --- a/app/ingest.go +++ b/app/ingest.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/devops/devops_models" +) + +// IngestChannelWrapper wraps the object with the security principal +type IngestChannelWrapper struct { + Obj devops_models.Ingest + Principal User +} // Ingest is a first class object type type Ingest struct { diff --git a/app/invoice.go b/app/invoice.go index df088d6..98a6615 100644 --- a/app/invoice.go +++ b/app/invoice.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" +) + +// InvoiceChannelWrapper wraps the object with the security principal +type InvoiceChannelWrapper struct { + Obj ops_models.Invoice + Principal User +} // Invoice is the in-memory struct for invoices type Invoice struct { diff --git a/app/invoiceitem.go b/app/invoiceitem.go index 13bf965..fcbef29 100644 --- a/app/invoiceitem.go +++ b/app/invoiceitem.go @@ -2,8 +2,16 @@ package app import ( "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" ) +// InvoiceItemChannelWrapper wraps the object with the security principal +type InvoiceItemChannelWrapper struct { + Obj ops_models.InvoiceItem + Principal User +} + // InvoiceItem is a large struct type InvoiceItem struct { ID string diff --git a/app/job.go b/app/job.go index ed430f4..60ffde7 100644 --- a/app/job.go +++ b/app/job.go @@ -2,8 +2,16 @@ package app import ( "database/sql" + + "code.tnxs.net/taxnexus/lib/api/devops/devops_models" ) +// JobChannelWrapper wraps the object with the security principal +type JobChannelWrapper struct { + Obj devops_models.Job + Principal User +} + // Job is a first class object type type Job struct { ID string diff --git a/app/journalentry.go b/app/journalentry.go index 8b680f8..fc05bd1 100644 --- a/app/journalentry.go +++ b/app/journalentry.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ledger/ledger_models" +) + +// JournalEntryChannelWrapper wraps the object with the security principal +type JournalEntryChannelWrapper struct { + Obj ledger_models.JournalEntry + Principal User +} // JournalEntry is a first class object type type JournalEntry struct { diff --git a/app/journalitem.go b/app/journalitem.go index cc70230..3415b19 100644 --- a/app/journalitem.go +++ b/app/journalitem.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ledger/ledger_models" +) + +// JournalItemChannelWrapper wraps the object with the security principal +type JournalItemChannelWrapper struct { + Obj ledger_models.JournalItem + Principal User +} // JournalItem is a first class object type type JournalItem struct { diff --git a/app/lead.go b/app/lead.go index acb4631..7f76627 100644 --- a/app/lead.go +++ b/app/lead.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/crm/crm_models" +) + +// LeadChannelWrapper wraps the object with the security principal +type LeadChannelWrapper struct { + Obj crm_models.Lead + Principal User +} // Lead is a first-class object type type Lead struct { diff --git a/app/license.go b/app/license.go index 3845f32..1c30f5a 100644 --- a/app/license.go +++ b/app/license.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" +) + +// LicenseChannelWrapper wraps the object with the security principal +type LicenseChannelWrapper struct { + Obj regs_models.License + Principal User +} // License is a first class object type type License struct { diff --git a/app/licensetype.go b/app/licensetype.go index f6718e8..bcbdbb4 100644 --- a/app/licensetype.go +++ b/app/licensetype.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" +) + +// LicenseTypeChannelWrapper wraps the object with the security principal +type LicenseTypeChannelWrapper struct { + Obj regs_models.LicenseType + Principal User +} // LicenseType is a first class object type type LicenseType struct { @@ -27,6 +37,12 @@ type LicenseType struct { Tier string } +// GeoLicenseTypeInstanceChannelWrapper wraps the object with the security principal +type GeoLicenseTypeInstanceChannelWrapper struct { + Obj regs_models.GeoLicenseTypeInstance + Principal User +} + // GeoLicenseTypeInstance is a first class object type type GeoLicenseTypeInstance struct { ID string @@ -44,6 +60,12 @@ type GeoLicenseTypeInstance struct { StateID string } +// DomainLicenseTypeInstanceChannelWrapper wraps the object with the security principal +type DomainLicenseTypeInstanceChannelWrapper struct { + // Obj regs_models.DomainLicenseTypeInstance + Principal User +} + // DomainLicenseTypeInstance is a first class object type type DomainLicenseTypeInstance struct { ID string diff --git a/app/log.go b/app/log.go index 5536f26..d1c982b 100644 --- a/app/log.go +++ b/app/log.go @@ -2,6 +2,12 @@ package app import "database/sql" +// LogChannelWrapper wraps the object with the security principal +type LogChannelWrapper struct { + // Obj devops_models.AppLog + Principal User +} + // Log is a first class object type type Log struct { ID string diff --git a/app/notebook.go b/app/notebook.go index ddf80a2..c270bfb 100644 --- a/app/notebook.go +++ b/app/notebook.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" +) + +// NotebookChannelWrapper wraps the object with the security principal +type NotebookChannelWrapper struct { + Obj regs_models.Notebook + Principal User +} // Notebook is a first class object type type Notebook struct { diff --git a/app/notebookitem.go b/app/notebookitem.go index 0ac994a..da0521f 100644 --- a/app/notebookitem.go +++ b/app/notebookitem.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" +) + +// NotebookItemChannelWrapper wraps the object with the security principal +type NotebookItemChannelWrapper struct { + Obj regs_models.NotebookItem + Principal User +} // NotebookItem is a first class object type type NotebookItem struct { diff --git a/app/order.go b/app/order.go index c535f0c..d7c49f0 100644 --- a/app/order.go +++ b/app/order.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" +) + +// OrderChannelWrapper wraps the object with the security principal +type OrderChannelWrapper struct { + Obj ops_models.Order + Principal User +} // Order is a first class object type type Order struct { diff --git a/app/orderitem.go b/app/orderitem.go index 6be5ad4..16e7de0 100644 --- a/app/orderitem.go +++ b/app/orderitem.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" +) + +// OrderItemChannelWrapper wraps the object with the security principal +type OrderItemChannelWrapper struct { + Obj ops_models.OrderItem + Principal User +} // OrderItem is a first class object type type OrderItem struct { diff --git a/app/outgoingemail.go b/app/outgoingemail.go index 9347649..dd1e819 100644 --- a/app/outgoingemail.go +++ b/app/outgoingemail.go @@ -1,5 +1,13 @@ package app +import "code.tnxs.net/taxnexus/lib/api/workflow/workflow_models" + +// OutgoingEmailMessageChannelWrapper wraps the object with the security principal +type OutgoingEmailMessageChannelWrapper struct { + Obj workflow_models.OutgoingEmailMessage + Principal User +} + // OutgoingEmailMessage is a first class object type type OutgoingEmailMessage struct { ID string diff --git a/app/outgoingemailreceipt.go b/app/outgoingemailreceipt.go index f537f35..0025452 100644 --- a/app/outgoingemailreceipt.go +++ b/app/outgoingemailreceipt.go @@ -1,5 +1,11 @@ package app +// OutgoingEmailMessageReceiptChannelWrapper wraps the object with the security principal +type OutgoingEmailMessageReceiptChannelWrapper struct { + // Obj workflow_models.OutgoingEmailMessageReceipt + Principal User +} + // OutgoingEmailMessageReceipt is a first class object type type OutgoingEmailMessageReceipt struct { ID string diff --git a/app/paymentmethod.go b/app/paymentmethod.go index 9796b7c..f2491f1 100644 --- a/app/paymentmethod.go +++ b/app/paymentmethod.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" +) + +// PaymentMethodChannelWrapper wraps the object with the security principal +type PaymentMethodChannelWrapper struct { + Obj ops_models.PaymentMethod + Principal User +} // PaymentMethod is a first class object type type PaymentMethod struct { diff --git a/app/pdf.go b/app/pdf.go index 75a3f18..b8f8f09 100644 --- a/app/pdf.go +++ b/app/pdf.go @@ -2,6 +2,12 @@ package app import "database/sql" +// PDFChannelWrapper wraps the object with the security principal +type PDFChannelWrapper struct { + // Obj stash_models.Pdf + Principal User +} + // PDF is a first class object type type PDF struct { ID string diff --git a/app/period.go b/app/period.go index cb17ea1..9ac011d 100644 --- a/app/period.go +++ b/app/period.go @@ -2,8 +2,16 @@ package app import ( "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ledger/ledger_models" ) +// PeriodChannelWrapper wraps the object with the security principal +type PeriodChannelWrapper struct { + Obj ledger_models.Period + Principal User +} + // Period is a first class object type type Period struct { ID string diff --git a/app/place.go b/app/place.go index 07da0f0..65db669 100644 --- a/app/place.go +++ b/app/place.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/geo/geo_models" +) + +// PlaceChannelWrapper wraps the object with the security principal +type PlaceChannelWrapper struct { + Obj geo_models.Place + Principal User +} // Place is a first class object type type Place struct { diff --git a/app/po.go b/app/po.go index d2491c1..8b84bcc 100644 --- a/app/po.go +++ b/app/po.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" +) + +// PurchaseOrderChannelWrapper wraps the object with the security principal +type PurchaseOrderChannelWrapper struct { + Obj ops_models.PurchaseOrder + Principal User +} // PurchaseOrder is a first class object type type PurchaseOrder struct { diff --git a/app/poitem.go b/app/poitem.go index 9e58030..2401927 100644 --- a/app/poitem.go +++ b/app/poitem.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" +) + +// PurchaseOrderItemChannelWrapper wraps the object with the security principal +type PurchaseOrderItemChannelWrapper struct { + Obj ops_models.PurchaseOrderItem + Principal User +} // PurchaseOrderItem is a first class object type type PurchaseOrderItem struct { diff --git a/app/product.go b/app/product.go index e3e15d8..53f0b4e 100644 --- a/app/product.go +++ b/app/product.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" +) + +// ProductChannelWrapper wraps the object with the security principal +type ProductChannelWrapper struct { + Obj ops_models.Product + Principal User +} // Product is a first class object type type Product struct { diff --git a/app/quote.go b/app/quote.go index f306fc2..1f1b8a5 100644 --- a/app/quote.go +++ b/app/quote.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" +) + +// QuoteChannelWrapper wraps the object with the security principal +type QuoteChannelWrapper struct { + Obj ops_models.Quote + Principal User +} // Quote is a first class object type type Quote struct { diff --git a/app/quoteitem.go b/app/quoteitem.go index f2b8658..e5bbec3 100644 --- a/app/quoteitem.go +++ b/app/quoteitem.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" +) + +// QuoteItemChannelWrapper wraps the object with the security principal +type QuoteItemChannelWrapper struct { + Obj ops_models.QuoteItem + Principal User +} // QuoteItem is a first class object type type QuoteItem struct { diff --git a/app/ratingengine.go b/app/ratingengine.go index 52a5dfb..1f828b1 100644 --- a/app/ratingengine.go +++ b/app/ratingengine.go @@ -1,9 +1,18 @@ package app -import "github.com/go-sql-driver/mysql" +import ( + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" + "github.com/go-sql-driver/mysql" +) -// Ratingengine is a first class object type -type Ratingengine struct { +// RatingengineChannelWrapper wraps the object with the security principal +type RatingengineChannelWrapper struct { + Obj regs_models.RatingEngine + Principal User +} + +// RatingEngine is a first class object type +type RatingEngine struct { Account string Backend string Createdbyid string diff --git a/app/ratingengineitem.go b/app/ratingengineitem.go index 3514cec..e05effe 100644 --- a/app/ratingengineitem.go +++ b/app/ratingengineitem.go @@ -1,9 +1,18 @@ package app -import "github.com/go-sql-driver/mysql" +import ( + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" + "github.com/go-sql-driver/mysql" +) -// Ratingengineitem is a first class object type -type Ratingengineitem struct { +// RatingEngineItemChannelWrapper wraps the object with the security principal +type RatingEngineItemChannelWrapper struct { + Obj regs_models.RatingEngineItem + Principal User +} + +// RatingEngineItem is a first class object type +type RatingEngineItem struct { Createdbyid string Createddate mysql.NullTime ID string diff --git a/app/role.go b/app/role.go index 5a2b224..5f1165d 100644 --- a/app/role.go +++ b/app/role.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/devops/devops_models" +) + +// RoleChannelWrapper wraps the object with the security principal +type RoleChannelWrapper struct { + Obj devops_models.Role + Principal User +} // Role is a first class object type type Role struct { diff --git a/app/service.go b/app/service.go index efe9df0..971f455 100644 --- a/app/service.go +++ b/app/service.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/devops/devops_models" +) + +// ServiceChannelWrapper wraps the object with the security principal +type ServiceChannelWrapper struct { + Obj devops_models.Service + Principal User +} // Service is a first class object type type Service struct { diff --git a/app/state.go b/app/state.go index c29fd9b..541b8fe 100644 --- a/app/state.go +++ b/app/state.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/geo/geo_models" +) + +// StateChannelWrapper wraps the object with the security principal +type StateChannelWrapper struct { + Obj geo_models.State + Principal User +} // State is a first class object type type State struct { diff --git a/app/submission.go b/app/submission.go index 2f109ef..b4fd302 100644 --- a/app/submission.go +++ b/app/submission.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" +) + +// SubmissionChannelWrapper wraps the object with the security principal +type SubmissionChannelWrapper struct { + Obj regs_models.Submission + Principal User +} // Submission is a first class object type type Submission struct { diff --git a/app/task.go b/app/task.go index 232cd46..b35fa00 100644 --- a/app/task.go +++ b/app/task.go @@ -4,6 +4,12 @@ import ( "database/sql" ) +// TaskChannelWrapper wraps the object with the security principal +type TaskChannelWrapper struct { + // Obj workflow_models.Task + Principal User +} + // Task is a first class object type type Task struct { AccountID string diff --git a/app/taskrelation.go b/app/taskrelation.go index 7d0bc17..fe7cab7 100644 --- a/app/taskrelation.go +++ b/app/taskrelation.go @@ -4,6 +4,12 @@ import ( "database/sql" ) +// TaskRelationChannelWrapper wraps the object with the security principal +type TaskRelationChannelWrapper struct { + // Obj workflow_models.TaskRelation + Principal User +} + // TaskRelation is a first class object type type TaskRelation struct { AccountID string diff --git a/app/taskwhorelation.go b/app/taskwhorelation.go index 74aea14..f4127fa 100644 --- a/app/taskwhorelation.go +++ b/app/taskwhorelation.go @@ -4,6 +4,12 @@ import ( "database/sql" ) +// TaskWhoRelationChannelWrapper wraps the object with the security principal +type TaskWhoRelationChannelWrapper struct { + // Obj workflow_models.TaskWhoRelation + Principal User +} + // TaskWhoRelation is a first class object type type TaskWhoRelation struct { AccountID string diff --git a/app/taxinstance.go b/app/taxinstance.go index c0fe43f..96fc27e 100644 --- a/app/taxinstance.go +++ b/app/taxinstance.go @@ -2,8 +2,16 @@ package app import ( "database/sql" + + "code.tnxs.net/taxnexus/lib/api/geo/geo_models" ) +// TaxInstanceChannelWrapper wraps the object with the security principal +type TaxInstanceChannelWrapper struct { + Obj geo_models.TaxInstance + Principal User +} + // TaxInstance is a first class object type type TaxInstance struct { ID string diff --git a/app/taxnexuscode.go b/app/taxnexuscode.go index 60f6d53..588c35a 100644 --- a/app/taxnexuscode.go +++ b/app/taxnexuscode.go @@ -1,5 +1,13 @@ package app +import "code.tnxs.net/taxnexus/lib/api/geo/geo_models" + +// TaxnexusCodeChannelWrapper wraps the object with the security principal +type TaxnexusCodeChannelWrapper struct { + Obj geo_models.TaxnexusCode + Principal User +} + // TaxnexusCode is a first class object type type TaxnexusCode struct { ID string `json:"id,omitempty"` diff --git a/app/taxrate.go b/app/taxrate.go index 0a25ea7..ec4176e 100644 --- a/app/taxrate.go +++ b/app/taxrate.go @@ -1,5 +1,13 @@ package app +import "code.tnxs.net/taxnexus/lib/api/geo/geo_models" + +// TaxRateChannelWrapper wraps the object with the security principal +type TaxRateChannelWrapper struct { + Obj geo_models.TaxRate + Principal User +} + // TaxRate is a principal object type type TaxRate struct { CombinedRate float64 diff --git a/app/taxtransaction.go b/app/taxtransaction.go index c084c86..44f51f9 100644 --- a/app/taxtransaction.go +++ b/app/taxtransaction.go @@ -2,8 +2,16 @@ package app import ( "database/sql" + + "code.tnxs.net/taxnexus/lib/api/ops/ops_models" ) +// TaxTransactionChannelWrapper wraps the object with the security principal +type TaxTransactionChannelWrapper struct { + Obj ops_models.TaxTransaction + Principal User +} + // TaxTransaction is the in-memory struct for a Taxnexus Tax Transaction type TaxTransaction struct { ID string diff --git a/app/taxtype.go b/app/taxtype.go index 37e200e..576c983 100644 --- a/app/taxtype.go +++ b/app/taxtype.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/geo/geo_models" +) + +// TaxTypeChannelWrapper wraps the object with the security principal +type TaxTypeChannelWrapper struct { + Obj geo_models.TaxType + Principal User +} // TaxType is a first class object type type TaxType struct { diff --git a/app/taxtypeaccount.go b/app/taxtypeaccount.go index ddd761b..414db57 100644 --- a/app/taxtypeaccount.go +++ b/app/taxtypeaccount.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" +) + +// TaxTypeAccountChannelWrapper wraps the object with the security principal +type TaxTypeAccountChannelWrapper struct { + Obj regs_models.TaxTypeAccount + Principal User +} // TaxTypeAccount is a first class object type type TaxTypeAccount struct { diff --git a/app/template.go b/app/template.go index 54c43b2..2e374f0 100644 --- a/app/template.go +++ b/app/template.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/devops/devops_models" +) + +// TemplateChannelWrapper wraps the object with the security principal +type TemplateChannelWrapper struct { + Obj devops_models.Template + Principal User +} // Template is a first class object type type Template struct { diff --git a/app/tenant.go b/app/tenant.go index 57fd4c4..e85c467 100644 --- a/app/tenant.go +++ b/app/tenant.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/devops/devops_models" +) + +// TenantChannelWrapper wraps the object with the security principal +type TenantChannelWrapper struct { + Obj devops_models.Tenant + Principal User +} // Tenant is a first class object type type Tenant struct { diff --git a/app/tenantuser.go b/app/tenantuser.go index 2487953..a32dc1f 100644 --- a/app/tenantuser.go +++ b/app/tenantuser.go @@ -1,5 +1,13 @@ package app +import "code.tnxs.net/taxnexus/lib/api/devops/devops_models" + +// TenantUserChannelWrapper wraps the object with the security principal +type TenantUserChannelWrapper struct { + Obj devops_models.TenantUser + Principal User +} + // TenantUser is a first class object type type TenantUser struct { AccessLevel string diff --git a/app/total.go b/app/total.go index 566cf76..7ee5cfd 100644 --- a/app/total.go +++ b/app/total.go @@ -1,5 +1,13 @@ package app +import "code.tnxs.net/taxnexus/lib/api/ops/ops_models" + +// TotalChannelWrapper wraps the object with the security principal +type TotalChannelWrapper struct { + Obj ops_models.Total + Principal User +} + // Total is a DB object type Total struct { ID string diff --git a/app/totalitem.go b/app/totalitem.go index 8857efc..beb5f7a 100644 --- a/app/totalitem.go +++ b/app/totalitem.go @@ -1,5 +1,13 @@ package app +import "code.tnxs.net/taxnexus/lib/api/ops/ops_models" + +// TotalItemChannelWrapper wraps the object with the security principal +type TotalItemChannelWrapper struct { + Obj ops_models.TotalItem + Principal User +} + // TotalItem is a DB struct type TotalItem struct { ID string diff --git a/app/totaltaxitem.go b/app/totaltaxitem.go index 23dab82..207f64a 100644 --- a/app/totaltaxitem.go +++ b/app/totaltaxitem.go @@ -1,5 +1,13 @@ package app +import "code.tnxs.net/taxnexus/lib/api/ops/ops_models" + +// TotalTaxItemChannelWrapper wraps the object with the security principal +type TotalTaxItemChannelWrapper struct { + Obj ops_models.TotalTaxItem + Principal User +} + // TotalTaxItem is a DB struct type TotalTaxItem struct { ID string diff --git a/app/transaction.go b/app/transaction.go index 276b67a..408d25a 100644 --- a/app/transaction.go +++ b/app/transaction.go @@ -1,6 +1,16 @@ package app -import "database/sql" +import ( + "database/sql" + + "code.tnxs.net/taxnexus/lib/api/regs/regs_models" +) + +// TransactionItemChannelWrapper wraps the object with the security principal +type TransactionItemChannelWrapper struct { + Obj regs_models.Transaction + Principal User +} // Transaction is a first class object type type Transaction struct { diff --git a/app/user.go b/app/user.go index 42799e5..428167c 100644 --- a/app/user.go +++ b/app/user.go @@ -1,9 +1,16 @@ package app import ( + "code.tnxs.net/taxnexus/lib/api/devops/devops_models" "github.com/go-openapi/runtime" ) +// UserChannelWrapper wraps the object with the security principal +type UserChannelWrapper struct { + Obj devops_models.User + Principal User +} + // User is a first class object type type User struct { ID string diff --git a/app/userrole.go b/app/userrole.go index f029693..d28fa3d 100644 --- a/app/userrole.go +++ b/app/userrole.go @@ -1,5 +1,13 @@ package app +import "code.tnxs.net/taxnexus/lib/api/devops/devops_models" + +// UserRoleChannelWrapper wraps the object with the security principal +type UserRoleChannelWrapper struct { + Obj devops_models.UserRole + Principal User +} + // UserRole is a first class object type type UserRole struct { RoleID string