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

    Type Alias ActivationRuleScopeInput

    ActivationRuleScopeInput:
        | {
            productCategory?: never;
            productId?: never;
            routeId: SelectProductRoute["externalId"];
            vendorId?: never;
        }
        | {
            productCategory?: ProductCategory;
            productId?: Product["id"];
            routeId?: never;
            vendorId?: Vendor;
        }

    An activation rule's scope as a write takes it: a route, or (cross-route) a conjunction of a product category, a vendor, a product and the rule's customerId, at least one of the four set.

    Type Declaration

    • {
          productCategory?: never;
          productId?: never;
          routeId: SelectProductRoute["externalId"];
          vendorId?: never;
      }
    • {
          productCategory?: ProductCategory;
          productId?: Product["id"];
          routeId?: never;
          vendorId?: Vendor;
      }
      • OptionalproductCategory?: ProductCategory
      • OptionalproductId?: Product["id"]

        A live product; with productCategory, it must be of it.

      • OptionalrouteId?: never
      • OptionalvendorId?: Vendor