chore: Rename entity to model (#7977)
**What** Start renaming `entity` to `model`
This commit is contained in:
1 parent
e11716fa1e
commit
9750047af1
60 files changed
+171
-171
No files matched your search
@@ -14,7 +14,7 @@ import {
|
||||
Property,
|
||||
} from "@mikro-orm/core"
|
||||
|
||||
type OptionalAddressProps = DAL.SoftDeletableEntityDateColumns
|
||||
type OptionalAddressProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
@Entity({ tableName: "cart_address" })
|
||||
@Filter(DALUtils.mikroOrmSoftDeletableFilterOptions)
|
||||
|
||||
@@ -2,7 +2,7 @@ import { DAL } from "@medusajs/types"
|
||||
import { BigNumber, MikroOrmBigNumberProperty } from "@medusajs/utils"
|
||||
import { OptionalProps, PrimaryKey, Property } from "@mikro-orm/core"
|
||||
|
||||
type OptionalAdjustmentLineProps = DAL.SoftDeletableEntityDateColumns
|
||||
type OptionalAdjustmentLineProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
/**
|
||||
* As per the Mikro ORM docs, superclasses should use the abstract class definition
|
||||
|
||||
@@ -25,7 +25,7 @@ import ShippingMethod from "./shipping-method"
|
||||
type OptionalCartProps =
|
||||
| "shipping_address"
|
||||
| "billing_address"
|
||||
| DAL.SoftDeletableEntityDateColumns
|
||||
| DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const RegionIdIndex = createPsqlIndexStatementHelper({
|
||||
name: "IDX_cart_region_id",
|
||||
|
||||
@@ -30,7 +30,7 @@ type OptionalLineItemProps =
|
||||
| "compare_at_unit_price"
|
||||
| "requires_shipping"
|
||||
| "cart"
|
||||
| DAL.SoftDeletableEntityDateColumns
|
||||
| DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const CartIdIndex = createPsqlIndexStatementHelper({
|
||||
name: "IDX_line_item_cart_id",
|
||||
|
||||
@@ -28,7 +28,7 @@ import ShippingMethodTaxLine from "./shipping-method-tax-line"
|
||||
type OptionalShippingMethodProps =
|
||||
| "cart"
|
||||
| "is_tax_inclusive"
|
||||
| DAL.SoftDeletableEntityDateColumns
|
||||
| DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const CartIdIndex = createPsqlIndexStatementHelper({
|
||||
name: "IDX_shipping_method_cart_id",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { DAL } from "@medusajs/types"
|
||||
import { OptionalProps, PrimaryKey, Property } from "@mikro-orm/core"
|
||||
|
||||
type OptionalTaxLineProps = DAL.SoftDeletableEntityDateColumns
|
||||
type OptionalTaxLineProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
/**
|
||||
* As per the Mikro ORM docs, superclasses should use the abstract class definition
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
} from "@mikro-orm/core"
|
||||
import Customer from "./customer"
|
||||
|
||||
type OptionalAddressProps = DAL.EntityDateColumns // TODO: To be revisited when more clear
|
||||
type OptionalAddressProps = DAL.ModelDateColumns // TODO: To be revisited when more clear
|
||||
|
||||
const CustomerAddressUniqueCustomerShippingAddress =
|
||||
createPsqlIndexStatementHelper({
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
import Customer from "./customer"
|
||||
import CustomerGroup from "./customer-group"
|
||||
|
||||
type OptionalGroupProps = "customer_group" | "customer" | DAL.EntityDateColumns // TODO: To be revisited when more clear
|
||||
type OptionalGroupProps = "customer_group" | "customer" | DAL.ModelDateColumns // TODO: To be revisited when more clear
|
||||
|
||||
@Entity({ tableName: "customer_group_customer" })
|
||||
export default class CustomerGroupCustomer {
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
import Customer from "./customer"
|
||||
import CustomerGroupCustomer from "./customer-group-customer"
|
||||
|
||||
type OptionalGroupProps = DAL.SoftDeletableEntityDateColumns // TODO: To be revisited when more clear
|
||||
type OptionalGroupProps = DAL.SoftDeletableModelDateColumns // TODO: To be revisited when more clear
|
||||
|
||||
const CustomerGroupUniqueName = createPsqlIndexStatementHelper({
|
||||
tableName: "customer_group",
|
||||
|
||||
@@ -26,7 +26,7 @@ import CustomerGroupCustomer from "./customer-group-customer"
|
||||
type OptionalCustomerProps =
|
||||
| "groups"
|
||||
| "addresses"
|
||||
| DAL.SoftDeletableEntityDateColumns
|
||||
| DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const CustomerUniqueEmail = createPsqlIndexStatementHelper({
|
||||
tableName: "customer",
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
Property,
|
||||
} from "@mikro-orm/core"
|
||||
|
||||
type OptionalAddressProps = DAL.SoftDeletableEntityDateColumns
|
||||
type OptionalAddressProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const FulfillmentDeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "fulfillment_address",
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
} from "@mikro-orm/core"
|
||||
import Fulfillment from "./fulfillment"
|
||||
|
||||
type FulfillmentItemOptionalProps = DAL.SoftDeletableEntityDateColumns
|
||||
type FulfillmentItemOptionalProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const FulfillmentIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "fulfillment_item",
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
} from "@mikro-orm/core"
|
||||
import Fulfillment from "./fulfillment"
|
||||
|
||||
type FulfillmentLabelOptionalProps = DAL.SoftDeletableEntityDateColumns
|
||||
type FulfillmentLabelOptionalProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const FulfillmentIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "fulfillment_label",
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
} from "@mikro-orm/core"
|
||||
import ServiceZone from "./service-zone"
|
||||
|
||||
type FulfillmentSetOptionalProps = DAL.SoftDeletableEntityDateColumns
|
||||
type FulfillmentSetOptionalProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const DeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "fulfillment_set",
|
||||
|
||||
@@ -26,7 +26,7 @@ import FulfillmentLabel from "./fulfillment-label"
|
||||
import FulfillmentProvider from "./fulfillment-provider"
|
||||
import ShippingOption from "./shipping-option"
|
||||
|
||||
type FulfillmentOptionalProps = DAL.SoftDeletableEntityDateColumns
|
||||
type FulfillmentOptionalProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const FulfillmentDeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "fulfillment",
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
} from "@mikro-orm/core"
|
||||
import ServiceZone from "./service-zone"
|
||||
|
||||
type GeoZoneOptionalProps = DAL.SoftDeletableEntityDateColumns
|
||||
type GeoZoneOptionalProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const DeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "geo_zone",
|
||||
|
||||
@@ -24,7 +24,7 @@ import FulfillmentSet from "./fulfillment-set"
|
||||
import GeoZone from "./geo-zone"
|
||||
import ShippingOption from "./shipping-option"
|
||||
|
||||
type ServiceZoneOptionalProps = DAL.SoftDeletableEntityDateColumns
|
||||
type ServiceZoneOptionalProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const deletedAtIndexName = "IDX_service_zone_deleted_at"
|
||||
const deletedAtIndexStatement = createPsqlIndexStatementHelper({
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
} from "@mikro-orm/core"
|
||||
import ShippingOption from "./shipping-option"
|
||||
|
||||
type ShippingOptionRuleOptionalProps = DAL.SoftDeletableEntityDateColumns
|
||||
type ShippingOptionRuleOptionalProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const DeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "shipping_option_rule",
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
} from "@mikro-orm/core"
|
||||
import ShippingOption from "./shipping-option"
|
||||
|
||||
type ShippingOptionTypeOptionalProps = DAL.SoftDeletableEntityDateColumns
|
||||
type ShippingOptionTypeOptionalProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const DeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "shipping_option_type",
|
||||
|
||||
@@ -30,7 +30,7 @@ import ShippingOptionRule from "./shipping-option-rule"
|
||||
import ShippingOptionType from "./shipping-option-type"
|
||||
import ShippingProfile from "./shipping-profile"
|
||||
|
||||
type ShippingOptionOptionalProps = DAL.SoftDeletableEntityDateColumns
|
||||
type ShippingOptionOptionalProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const DeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "shipping_option",
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
} from "@mikro-orm/core"
|
||||
import ShippingOption from "./shipping-option"
|
||||
|
||||
type ShippingProfileOptionalProps = DAL.SoftDeletableEntityDateColumns
|
||||
type ShippingProfileOptionalProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const DeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "shipping_profile",
|
||||
|
||||
@@ -34,7 +34,7 @@ const InventoryItemSkuIndex = createPsqlIndexStatementHelper({
|
||||
unique: true,
|
||||
})
|
||||
|
||||
type InventoryItemOptionalProps = DAL.SoftDeletableEntityDateColumns
|
||||
type InventoryItemOptionalProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
@Entity()
|
||||
@Filter(DALUtils.mikroOrmSoftDeletableFilterOptions)
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
Property,
|
||||
} from "@mikro-orm/core"
|
||||
|
||||
type OptionalAddressProps = DAL.EntityDateColumns
|
||||
type OptionalAddressProps = DAL.ModelDateColumns
|
||||
|
||||
const CustomerIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "order_address",
|
||||
|
||||
@@ -2,7 +2,7 @@ import { BigNumberRawValue, DAL } from "@medusajs/types"
|
||||
import { BigNumber, MikroOrmBigNumberProperty } from "@medusajs/utils"
|
||||
import { OptionalProps, PrimaryKey, Property } from "@mikro-orm/core"
|
||||
|
||||
type OptionalAdjustmentLineProps = DAL.EntityDateColumns
|
||||
type OptionalAdjustmentLineProps = DAL.ModelDateColumns
|
||||
|
||||
/**
|
||||
* As per the Mikro ORM docs, superclasses should use the abstract class definition
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
} from "@mikro-orm/core"
|
||||
import ClaimItem from "./claim-item"
|
||||
|
||||
type OptionalClaimItemImageProps = DAL.EntityDateColumns
|
||||
type OptionalClaimItemImageProps = DAL.ModelDateColumns
|
||||
|
||||
const ClaimItemImageDeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "order_claim_item_image",
|
||||
|
||||
@@ -23,7 +23,7 @@ import Claim from "./claim"
|
||||
import ClaimItemImage from "./claim-item-image"
|
||||
import LineItem from "./line-item"
|
||||
|
||||
type OptionalLineItemProps = DAL.EntityDateColumns
|
||||
type OptionalLineItemProps = DAL.ModelDateColumns
|
||||
|
||||
const ClaimIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "order_claim_item",
|
||||
|
||||
@@ -27,7 +27,7 @@ import OrderShippingMethod from "./order-shipping-method"
|
||||
import Return from "./return"
|
||||
import Transaction from "./transaction"
|
||||
|
||||
type OptionalOrderClaimProps = DAL.EntityDateColumns
|
||||
type OptionalOrderClaimProps = DAL.ModelDateColumns
|
||||
|
||||
const DisplayIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "order_claim",
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
import Exchange from "./exchange"
|
||||
import LineItem from "./line-item"
|
||||
|
||||
type OptionalLineItemProps = DAL.EntityDateColumns
|
||||
type OptionalLineItemProps = DAL.ModelDateColumns
|
||||
|
||||
const ExchangeIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "order_exchange_item",
|
||||
|
||||
@@ -24,7 +24,7 @@ import Order from "./order"
|
||||
import OrderShippingMethod from "./order-shipping-method"
|
||||
import Return from "./return"
|
||||
|
||||
type OptionalOrderExchangeProps = DAL.EntityDateColumns
|
||||
type OptionalOrderExchangeProps = DAL.ModelDateColumns
|
||||
|
||||
const DisplayIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "order_exchange",
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
import LineItemAdjustment from "./line-item-adjustment"
|
||||
import LineItemTaxLine from "./line-item-tax-line"
|
||||
|
||||
type OptionalLineItemProps = DAL.EntityDateColumns
|
||||
type OptionalLineItemProps = DAL.ModelDateColumns
|
||||
|
||||
const ProductIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "order_line_item",
|
||||
|
||||
@@ -21,7 +21,7 @@ import Order from "./order"
|
||||
import OrderChange from "./order-change"
|
||||
import Return from "./return"
|
||||
|
||||
type OptionalLineItemProps = DAL.EntityDateColumns
|
||||
type OptionalLineItemProps = DAL.ModelDateColumns
|
||||
|
||||
const OrderChangeIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "order_change_action",
|
||||
|
||||
@@ -24,7 +24,7 @@ import Order from "./order"
|
||||
import OrderChangeAction from "./order-change-action"
|
||||
import Return from "./return"
|
||||
|
||||
type OptionalLineItemProps = DAL.EntityDateColumns
|
||||
type OptionalLineItemProps = DAL.ModelDateColumns
|
||||
|
||||
const OrderIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "order_change",
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
import LineItem from "./line-item"
|
||||
import Order from "./order"
|
||||
|
||||
type OptionalLineItemProps = DAL.EntityDateColumns
|
||||
type OptionalLineItemProps = DAL.ModelDateColumns
|
||||
|
||||
const OrderIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "order_item",
|
||||
|
||||
@@ -19,7 +19,7 @@ import Order from "./order"
|
||||
import Return from "./return"
|
||||
import ShippingMethod from "./shipping-method"
|
||||
|
||||
type OptionalShippingMethodProps = DAL.EntityDateColumns
|
||||
type OptionalShippingMethodProps = DAL.ModelDateColumns
|
||||
|
||||
const OrderIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "order_shipping",
|
||||
|
||||
@@ -27,7 +27,7 @@ import Transaction from "./transaction"
|
||||
type OptionalOrderProps =
|
||||
| "shipping_address"
|
||||
| "billing_address"
|
||||
| DAL.EntityDateColumns
|
||||
| DAL.ModelDateColumns
|
||||
|
||||
const DisplayIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "order",
|
||||
|
||||
@@ -17,7 +17,7 @@ import LineItem from "./line-item"
|
||||
import Return from "./return"
|
||||
import ReturnReason from "./return-reason"
|
||||
|
||||
type OptionalLineItemProps = DAL.EntityDateColumns
|
||||
type OptionalLineItemProps = DAL.ModelDateColumns
|
||||
|
||||
const ReturnIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "return_item",
|
||||
|
||||
@@ -34,7 +34,7 @@ const ParentIndex = createPsqlIndexStatementHelper({
|
||||
where: "deleted_at IS NOT NULL",
|
||||
})
|
||||
|
||||
type OptionalOrderProps = "parent_return_reason" | DAL.EntityDateColumns
|
||||
type OptionalOrderProps = "parent_return_reason" | DAL.ModelDateColumns
|
||||
|
||||
@Entity({ tableName: "return_reason" })
|
||||
export default class ReturnReason {
|
||||
|
||||
@@ -27,7 +27,7 @@ import Exchange from "./exchange"
|
||||
import Order from "./order"
|
||||
import OrderShippingMethod from "./order-shipping-method"
|
||||
|
||||
type OptionalReturnProps = DAL.EntityDateColumns
|
||||
type OptionalReturnProps = DAL.ModelDateColumns
|
||||
|
||||
const DisplayIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "return",
|
||||
|
||||
@@ -20,7 +20,7 @@ import Exchange from "./exchange"
|
||||
import Order from "./order"
|
||||
import Return from "./return"
|
||||
|
||||
type OptionalLineItemProps = DAL.EntityDateColumns
|
||||
type OptionalLineItemProps = DAL.ModelDateColumns
|
||||
|
||||
const ReferenceIdIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "order_transaction",
|
||||
|
||||
@@ -25,7 +25,7 @@ import Payment from "./payment"
|
||||
import PaymentProvider from "./payment-provider"
|
||||
import PaymentSession from "./payment-session"
|
||||
|
||||
type OptionalPaymentCollectionProps = "status" | DAL.EntityDateColumns
|
||||
type OptionalPaymentCollectionProps = "status" | DAL.ModelDateColumns
|
||||
|
||||
@Entity({ tableName: "payment_collection" })
|
||||
@Filter(DALUtils.mikroOrmSoftDeletableFilterOptions)
|
||||
|
||||
@@ -26,7 +26,7 @@ import PaymentCollection from "./payment-collection"
|
||||
import PaymentSession from "./payment-session"
|
||||
import Refund from "./refund"
|
||||
|
||||
type OptionalPaymentProps = DAL.EntityDateColumns
|
||||
type OptionalPaymentProps = DAL.ModelDateColumns
|
||||
|
||||
@Entity({ tableName: "payment" })
|
||||
@Filter(DALUtils.mikroOrmSoftDeletableFilterOptions)
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
} from "@mikro-orm/core"
|
||||
import PriceList from "./price-list"
|
||||
|
||||
type OptionalFields = DAL.SoftDeletableEntityDateColumns
|
||||
type OptionalFields = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const tableName = "price_list_rule"
|
||||
const PriceListRuleDeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
|
||||
@@ -27,7 +27,7 @@ import PriceListRule from "./price-list-rule"
|
||||
type OptionalFields =
|
||||
| "starts_at"
|
||||
| "ends_at"
|
||||
| DAL.SoftDeletableEntityDateColumns
|
||||
| DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const tableName = "price_list"
|
||||
const PriceListDeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
} from "@mikro-orm/core"
|
||||
import Price from "./price"
|
||||
|
||||
type OptionalFields = DAL.SoftDeletableEntityDateColumns
|
||||
type OptionalFields = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const tableName = "price_rule"
|
||||
const PriceRuleDeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
|
||||
@@ -24,7 +24,7 @@ import PriceList from "./price-list"
|
||||
import PriceRule from "./price-rule"
|
||||
import PriceSet from "./price-set"
|
||||
|
||||
type OptionalFields = DAL.SoftDeletableEntityDateColumns
|
||||
type OptionalFields = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const tableName = "price"
|
||||
const PriceDeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
|
||||
@@ -29,7 +29,7 @@ type OptionalFields =
|
||||
| "description"
|
||||
| "limit"
|
||||
| "used"
|
||||
| DAL.SoftDeletableEntityDateColumns
|
||||
| DAL.SoftDeletableModelDateColumns
|
||||
|
||||
@Entity({ tableName: "promotion_campaign_budget" })
|
||||
@Filter(DALUtils.mikroOrmSoftDeletableFilterOptions)
|
||||
|
||||
@@ -26,7 +26,7 @@ type OptionalFields =
|
||||
| "description"
|
||||
| "starts_at"
|
||||
| "ends_at"
|
||||
| DAL.SoftDeletableEntityDateColumns
|
||||
| DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const tableName = "promotion_campaign"
|
||||
const CampaignUniqueCampaignIdentifier = createPsqlIndexStatementHelper({
|
||||
|
||||
@@ -20,7 +20,7 @@ import ApplicationMethod from "./application-method"
|
||||
import Promotion from "./promotion"
|
||||
import PromotionRuleValue from "./promotion-rule-value"
|
||||
|
||||
type OptionalFields = "description" | DAL.SoftDeletableEntityDateColumns
|
||||
type OptionalFields = "description" | DAL.SoftDeletableModelDateColumns
|
||||
type OptionalRelations = "values" | "promotions"
|
||||
|
||||
@Entity({ tableName: "promotion_rule" })
|
||||
|
||||
@@ -26,7 +26,7 @@ import ApplicationMethod from "./application-method"
|
||||
import Campaign from "./campaign"
|
||||
import PromotionRule from "./promotion-rule"
|
||||
|
||||
type OptionalFields = "is_automatic" | DAL.SoftDeletableEntityDateColumns
|
||||
type OptionalFields = "is_automatic" | DAL.SoftDeletableModelDateColumns
|
||||
type OptionalRelations = "application_method" | "campaign"
|
||||
|
||||
@Entity({ tableName: "promotion" })
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
Property,
|
||||
} from "@mikro-orm/core"
|
||||
|
||||
type SalesChannelOptionalProps = "is_disabled" | DAL.EntityDateColumns
|
||||
type SalesChannelOptionalProps = "is_disabled" | DAL.ModelDateColumns
|
||||
|
||||
@Entity()
|
||||
@Filter(DALUtils.mikroOrmSoftDeletableFilterOptions)
|
||||
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
} from "@mikro-orm/core"
|
||||
import StoreCurrency from "./currency"
|
||||
|
||||
type StoreOptionalProps = DAL.SoftDeletableEntityDateColumns
|
||||
type StoreOptionalProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const StoreDeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "store",
|
||||
|
||||
@@ -19,7 +19,7 @@ import TaxRate from "./tax-rate"
|
||||
|
||||
const TABLE_NAME = "tax_rate_rule"
|
||||
|
||||
type OptionalRuleProps = DAL.SoftDeletableEntityDateColumns
|
||||
type OptionalRuleProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const taxRateIdIndexName = "IDX_tax_rate_rule_tax_rate_id"
|
||||
const taxRateIdIndexStatement = createPsqlIndexStatementHelper({
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
import TaxRateRule from "./tax-rate-rule"
|
||||
import TaxRegion from "./tax-region"
|
||||
|
||||
type OptionalTaxRateProps = DAL.SoftDeletableEntityDateColumns
|
||||
type OptionalTaxRateProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const TABLE_NAME = "tax_rate"
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
import TaxProvider from "./tax-provider"
|
||||
import TaxRate from "./tax-rate"
|
||||
|
||||
type OptionalTaxRegionProps = DAL.SoftDeletableEntityDateColumns
|
||||
type OptionalTaxRegionProps = DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const TABLE_NAME = "tax_region"
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ const inviteDeletedAtIndexStatement = createPsqlIndexStatementHelper({
|
||||
type OptionalFields =
|
||||
| "metadata"
|
||||
| "accepted"
|
||||
| DAL.SoftDeletableEntityDateColumns
|
||||
| DAL.SoftDeletableModelDateColumns
|
||||
@Entity({ tableName: "invite" })
|
||||
@Filter(DALUtils.mikroOrmSoftDeletableFilterOptions)
|
||||
export default class Invite {
|
||||
|
||||
@@ -39,7 +39,7 @@ type OptionalFields =
|
||||
| "last_name"
|
||||
| "metadata"
|
||||
| "avatar_url"
|
||||
| DAL.SoftDeletableEntityDateColumns
|
||||
| DAL.SoftDeletableModelDateColumns
|
||||
|
||||
@Entity()
|
||||
@Filter(DALUtils.mikroOrmSoftDeletableFilterOptions)
|
||||
|
||||
Reference in new issue
Block a user