@cfxlabsinc/b2b-services
    Preparing search index...

    Type Alias AdminProductActivationRule

    AdminProductActivationRule: Omit<
        SelectProductActivationRule,
        | "id"
        | "routeId"
        | "productCategory"
        | "vendorId"
        | "productId"
        | "customerId"
        | "routeExternalId"
        | "vendorExternalId"
        | "productExternalId"
        | "customerExternalId"
        | "externalId"
        | "matcherHash"
        | "currentVersionId"
        | "deletedAt",
    > & Omit<
        SelectProductActivationRuleVersion,
        "id"
        | "ruleId"
        | "ruleExternalId"
        | "matcherHash"
        | "createdAt",
    > & {
        customerId: SelectCustomer["externalId"] | null;
        customerName: SelectCustomer["name"] | null;
        id: string;
        matcherReferences: MatcherReferences;
        scheduledVersion: ScheduledRuleVersion | null;
        statusDescription: string;
    } & AdminActivationRuleScope

    Admin-tier view of an activation rule = identity columns + the columns of the rule's version in effect now (before its first takes effect, its latest). id is the identity row's external id. A route rule names its route, product and vendor; a cross-route rule its category, vendor, product and customer, each optional.

    Type Declaration

    • customerId: SelectCustomer["externalId"] | null
    • customerName: SelectCustomer["name"] | null
    • id: string
    • matcherReferences: MatcherReferences

      Display names for the external ids the matcher references; see matcherReferencesSql. Empty when it references none.

    • scheduledVersion: ScheduledRuleVersion | null

      The next version to take effect, if one is scheduled.

    • statusDescription: string