@namiml/web-sdk
Version:
Nami Web SDK makes subscriptions & in-app purchases easy, with powerful built-in paywalls and A/B testing
25 lines (24 loc) • 780 B
TypeScript
export declare const LogicalOperator: {
readonly NONE: "none";
readonly AND: "and";
readonly OR: "or";
};
export type LogicalOperator = (typeof LogicalOperator)[keyof typeof LogicalOperator];
export declare const FilterOperator: {
readonly I_CONTAINS: "i_contains";
readonly EQUALS: "equals";
readonly I_EQUALS: "i_equals";
readonly NOT_EQUALS: "not_equals";
readonly NOT_I_EQUALS: "not_i_equals";
readonly NOT_CONTAINS: "not_contains";
};
export type FilterOperator = (typeof FilterOperator)[keyof typeof FilterOperator];
export interface NamiConditionFilter {
identifier: string;
operator: FilterOperator;
values: string[];
}
export interface NamiConditions {
filter?: NamiConditionFilter[];
operator?: LogicalOperator;
}