UNPKG

@gsb-core/core

Version:

GSB core services and classes for platform-independent web applications

284 lines 11.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OrganizationalUnitType = exports.GsbOrganizationalUnit = exports.GsbPrtInvoiceItem = exports.SalesInvoiceStatus = exports.InvoiceType = exports.GsbPrtInvoice = exports.GsbPrtCity = exports.GsbPrtCountry = exports.GsbPrtState = exports.GsbAddress = exports.GsbPrtLegalEntity = exports.GsbPrtProductVariant = exports.ProductType = exports.GsbPrtProduct = exports.GsbPrtSalesPackItemVar = exports.GsbPrtSalesPackItem = exports.GsbPrtSalesPack = exports.PartnerType = exports.BillingType = exports.GsbPrtPartner = exports.BillingPeriod = exports.GsbPrtPaymentOption = exports.GsbPrtCurrency = exports.OrderStatus = exports.Priority = exports.PaymentOrigin = exports.OrderType = exports.GsbPrtOrder = exports.SubscriptionType = exports.GsbTenant = exports.GsbCmRegistration = exports.GsbPrtPaymentLog = exports.PaymentStatus = exports.TransactionDirection = exports.GsbPrtPayment = exports.GsbSubscription = exports.SubscriptionPlanStatus = exports.PaymentType = exports.GsbSubscriptionPlan = void 0; class GsbSubscriptionPlan { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbSubscriptionPlan"; } } exports.GsbSubscriptionPlan = GsbSubscriptionPlan; var PaymentType; (function (PaymentType) { PaymentType[PaymentType["CreditCardOnline"] = 2] = "CreditCardOnline"; PaymentType[PaymentType["CreditCardManuel"] = 4] = "CreditCardManuel"; PaymentType[PaymentType["Cash"] = 8] = "Cash"; PaymentType[PaymentType["BankTransfer"] = 1] = "BankTransfer"; })(PaymentType || (exports.PaymentType = PaymentType = {})); var SubscriptionPlanStatus; (function (SubscriptionPlanStatus) { SubscriptionPlanStatus[SubscriptionPlanStatus["Active"] = 1] = "Active"; SubscriptionPlanStatus[SubscriptionPlanStatus["Freezed"] = 2] = "Freezed"; SubscriptionPlanStatus[SubscriptionPlanStatus["Cancelled"] = 4] = "Cancelled"; SubscriptionPlanStatus[SubscriptionPlanStatus["Renewing"] = 8] = "Renewing"; })(SubscriptionPlanStatus || (exports.SubscriptionPlanStatus = SubscriptionPlanStatus = {})); class GsbSubscription { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbSubscription"; } } exports.GsbSubscription = GsbSubscription; class GsbPrtPayment { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtPayment"; } } exports.GsbPrtPayment = GsbPrtPayment; var TransactionDirection; (function (TransactionDirection) { TransactionDirection[TransactionDirection["Incoming"] = 1] = "Incoming"; TransactionDirection[TransactionDirection["None"] = 4] = "None"; TransactionDirection[TransactionDirection["Outgoing"] = 2] = "Outgoing"; })(TransactionDirection || (exports.TransactionDirection = TransactionDirection = {})); var PaymentStatus; (function (PaymentStatus) { PaymentStatus[PaymentStatus["Awaiting"] = 1] = "Awaiting"; PaymentStatus[PaymentStatus["Completed"] = 2] = "Completed"; PaymentStatus[PaymentStatus["Failed"] = 4] = "Failed"; PaymentStatus[PaymentStatus["Cancelled"] = 8] = "Cancelled"; PaymentStatus[PaymentStatus["Refunded"] = 16] = "Refunded"; })(PaymentStatus || (exports.PaymentStatus = PaymentStatus = {})); class GsbPrtPaymentLog { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtPaymentLog"; } } exports.GsbPrtPaymentLog = GsbPrtPaymentLog; class GsbCmRegistration { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbCmRegistration"; } } exports.GsbCmRegistration = GsbCmRegistration; class GsbTenant { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbTenant"; } } exports.GsbTenant = GsbTenant; var SubscriptionType; (function (SubscriptionType) { SubscriptionType[SubscriptionType["Free"] = 1] = "Free"; SubscriptionType[SubscriptionType["Premium"] = 2] = "Premium"; SubscriptionType[SubscriptionType["Professional"] = 4] = "Professional"; SubscriptionType[SubscriptionType["Team"] = 8] = "Team"; SubscriptionType[SubscriptionType["Enterprise"] = 16] = "Enterprise"; })(SubscriptionType || (exports.SubscriptionType = SubscriptionType = {})); class GsbPrtOrder { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtOrder"; } } exports.GsbPrtOrder = GsbPrtOrder; var OrderType; (function (OrderType) { OrderType[OrderType["Sales"] = 1] = "Sales"; OrderType[OrderType["Purchase"] = 2] = "Purchase"; OrderType[OrderType["Transfer"] = 4] = "Transfer"; OrderType[OrderType["Production"] = 8] = "Production"; OrderType[OrderType["Service"] = 16] = "Service"; })(OrderType || (exports.OrderType = OrderType = {})); var PaymentOrigin; (function (PaymentOrigin) { PaymentOrigin[PaymentOrigin["User"] = 0] = "User"; PaymentOrigin[PaymentOrigin["Registration"] = 1] = "Registration"; PaymentOrigin[PaymentOrigin["Subscription"] = 2] = "Subscription"; PaymentOrigin[PaymentOrigin["RecurringPayment"] = 4] = "RecurringPayment"; })(PaymentOrigin || (exports.PaymentOrigin = PaymentOrigin = {})); var Priority; (function (Priority) { Priority[Priority["Urgent"] = 8] = "Urgent"; Priority[Priority["High"] = 4] = "High"; Priority[Priority["Medium"] = 2] = "Medium"; Priority[Priority["Low"] = 1] = "Low"; })(Priority || (exports.Priority = Priority = {})); var OrderStatus; (function (OrderStatus) { OrderStatus[OrderStatus["Editing"] = 1] = "Editing"; OrderStatus[OrderStatus["OnReview"] = 2] = "OnReview"; OrderStatus[OrderStatus["Preparing"] = 4] = "Preparing"; OrderStatus[OrderStatus["Completed"] = 8] = "Completed"; OrderStatus[OrderStatus["Freezed"] = 16] = "Freezed"; OrderStatus[OrderStatus["Cancelled"] = 32] = "Cancelled"; OrderStatus[OrderStatus["AwaitingPayment"] = 64] = "AwaitingPayment"; })(OrderStatus || (exports.OrderStatus = OrderStatus = {})); class GsbPrtCurrency { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtCurrency"; } } exports.GsbPrtCurrency = GsbPrtCurrency; class GsbPrtPaymentOption { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtPaymentOption"; } } exports.GsbPrtPaymentOption = GsbPrtPaymentOption; var BillingPeriod; (function (BillingPeriod) { BillingPeriod[BillingPeriod["Weekly"] = 1] = "Weekly"; BillingPeriod[BillingPeriod["Monthly"] = 2] = "Monthly"; BillingPeriod[BillingPeriod["Quarterly"] = 3] = "Quarterly"; BillingPeriod[BillingPeriod["Yearly"] = 4] = "Yearly"; })(BillingPeriod || (exports.BillingPeriod = BillingPeriod = {})); class GsbPrtPartner { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtPartner"; } } exports.GsbPrtPartner = GsbPrtPartner; var BillingType; (function (BillingType) { BillingType[BillingType["Organization"] = 2] = "Organization"; BillingType[BillingType["Personal"] = 1] = "Personal"; })(BillingType || (exports.BillingType = BillingType = {})); var PartnerType; (function (PartnerType) { PartnerType[PartnerType["Customer"] = 1] = "Customer"; PartnerType[PartnerType["Supplier"] = 2] = "Supplier"; PartnerType[PartnerType["Distributer"] = 4] = "Distributer"; PartnerType[PartnerType["Reseller"] = 8] = "Reseller"; PartnerType[PartnerType["Branch"] = 16] = "Branch"; PartnerType[PartnerType["Franchise"] = 32] = "Franchise"; PartnerType[PartnerType["GroupCompany"] = 64] = "GroupCompany"; })(PartnerType || (exports.PartnerType = PartnerType = {})); class GsbPrtSalesPack { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtSalesPack"; } } exports.GsbPrtSalesPack = GsbPrtSalesPack; class GsbPrtSalesPackItem { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtSalesPackItem"; } } exports.GsbPrtSalesPackItem = GsbPrtSalesPackItem; class GsbPrtSalesPackItemVar { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtSalesPackItemVar"; } } exports.GsbPrtSalesPackItemVar = GsbPrtSalesPackItemVar; class GsbPrtProduct { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtProduct"; } } exports.GsbPrtProduct = GsbPrtProduct; var ProductType; (function (ProductType) { ProductType[ProductType["Sale"] = 1] = "Sale"; ProductType[ProductType["Supply"] = 2] = "Supply"; ProductType[ProductType["InternalService"] = 4] = "InternalService"; ProductType[ProductType["FixedAsset"] = 8] = "FixedAsset"; })(ProductType || (exports.ProductType = ProductType = {})); class GsbPrtProductVariant { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtProductVariant"; } } exports.GsbPrtProductVariant = GsbPrtProductVariant; class GsbPrtLegalEntity { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtLegalEntity"; } } exports.GsbPrtLegalEntity = GsbPrtLegalEntity; class GsbAddress { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbAddress"; } } exports.GsbAddress = GsbAddress; class GsbPrtState { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtState"; } } exports.GsbPrtState = GsbPrtState; class GsbPrtCountry { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtCountry"; } } exports.GsbPrtCountry = GsbPrtCountry; class GsbPrtCity { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtCity"; } } exports.GsbPrtCity = GsbPrtCity; class GsbPrtInvoice { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtInvoice"; } } exports.GsbPrtInvoice = GsbPrtInvoice; var InvoiceType; (function (InvoiceType) { InvoiceType[InvoiceType["Internal"] = 4] = "Internal"; InvoiceType[InvoiceType["Sales"] = 1] = "Sales"; InvoiceType[InvoiceType["Purchase"] = 2] = "Purchase"; })(InvoiceType || (exports.InvoiceType = InvoiceType = {})); var SalesInvoiceStatus; (function (SalesInvoiceStatus) { SalesInvoiceStatus[SalesInvoiceStatus["EInvoiceSaved"] = 4] = "EInvoiceSaved"; SalesInvoiceStatus[SalesInvoiceStatus["Approved"] = 1] = "Approved"; SalesInvoiceStatus[SalesInvoiceStatus["Signed"] = 2] = "Signed"; SalesInvoiceStatus[SalesInvoiceStatus["Preparing"] = 0] = "Preparing"; SalesInvoiceStatus[SalesInvoiceStatus["Cancelled"] = 8] = "Cancelled"; })(SalesInvoiceStatus || (exports.SalesInvoiceStatus = SalesInvoiceStatus = {})); class GsbPrtInvoiceItem { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbPrtInvoiceItem"; } } exports.GsbPrtInvoiceItem = GsbPrtInvoiceItem; class GsbOrganizationalUnit { constructor(obj) { Object.assign(this, obj); this._entDefName = "GsbOrganizationalUnit"; } } exports.GsbOrganizationalUnit = GsbOrganizationalUnit; var OrganizationalUnitType; (function (OrganizationalUnitType) { OrganizationalUnitType[OrganizationalUnitType["Operation"] = 16] = "Operation"; OrganizationalUnitType[OrganizationalUnitType["Office"] = 1] = "Office"; OrganizationalUnitType[OrganizationalUnitType["Warehouse"] = 2] = "Warehouse"; OrganizationalUnitType[OrganizationalUnitType["Production"] = 4] = "Production"; OrganizationalUnitType[OrganizationalUnitType["Store"] = 8] = "Store"; })(OrganizationalUnitType || (exports.OrganizationalUnitType = OrganizationalUnitType = {})); //# sourceMappingURL=gsb-subscription.model.js.map