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

    Type Alias ProductLimitRule

    ProductLimitRule: Omit<
        SelectProductLimitRule,
        | "id"
        | "routeId"
        | "routeExternalId"
        | "productCategory"
        | "customerId"
        | "customerExternalId"
        | "externalId"
        | "matcherHash"
        | "currentVersionId"
        | "deletedAt",
    > & Omit<
        SelectProductLimitRuleVersion,
        "id"
        | "ruleId"
        | "ruleExternalId"
        | "matcherHash"
        | "createdAt",
    > & { id: string; scheduledVersion: ScheduledRuleVersion | null } & LimitRuleScope

    View of a limit rule visible to a customer = identity columns + the columns of the rule's version in effect now (before its first takes effect, its latest).

    customerId is intentionally omitted — see ProductActivationRule for the rationale.

    Type Declaration

    • id: string
    • scheduledVersion: ScheduledRuleVersion | null

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