mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Store actions as a json in db
This commit is contained in:
parent
23c527c345
commit
845e932d93
4 changed files with 9 additions and 9 deletions
|
|
@ -21,8 +21,8 @@ export class Rule {
|
|||
@Column('text')
|
||||
query!: string
|
||||
|
||||
@Column('text', { array: true })
|
||||
actions!: string[]
|
||||
@Column('simple-json')
|
||||
actions!: { type: string; params: string[] }[]
|
||||
|
||||
@Column('text', { nullable: true })
|
||||
description?: string | null
|
||||
|
|
|
|||
|
|
@ -1660,13 +1660,13 @@ export type Rule = {
|
|||
|
||||
export type RuleAction = {
|
||||
__typename?: 'RuleAction';
|
||||
params: Array<Maybe<Scalars['String']>>;
|
||||
type: RuleActionType;
|
||||
value?: Maybe<Scalars['String']>;
|
||||
};
|
||||
|
||||
export type RuleActionInput = {
|
||||
params: Array<InputMaybe<Scalars['String']>>;
|
||||
type: RuleActionType;
|
||||
value?: InputMaybe<Scalars['String']>;
|
||||
};
|
||||
|
||||
export enum RuleActionType {
|
||||
|
|
@ -4413,8 +4413,8 @@ export type RuleResolvers<ContextType = ResolverContext, ParentType extends Reso
|
|||
};
|
||||
|
||||
export type RuleActionResolvers<ContextType = ResolverContext, ParentType extends ResolversParentTypes['RuleAction'] = ResolversParentTypes['RuleAction']> = {
|
||||
params?: Resolver<Array<Maybe<ResolversTypes['String']>>, ParentType, ContextType>;
|
||||
type?: Resolver<ResolversTypes['RuleActionType'], ParentType, ContextType>;
|
||||
value?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
||||
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1167,13 +1167,13 @@ type Rule {
|
|||
}
|
||||
|
||||
type RuleAction {
|
||||
params: [String]!
|
||||
type: RuleActionType!
|
||||
value: String
|
||||
}
|
||||
|
||||
input RuleActionInput {
|
||||
params: [String]!
|
||||
type: RuleActionType!
|
||||
value: String
|
||||
}
|
||||
|
||||
enum RuleActionType {
|
||||
|
|
|
|||
|
|
@ -1968,7 +1968,7 @@ const schema = gql`
|
|||
|
||||
type RuleAction {
|
||||
type: RuleActionType!
|
||||
value: String
|
||||
params: [String]!
|
||||
}
|
||||
|
||||
enum RuleActionType {
|
||||
|
|
@ -1997,7 +1997,7 @@ const schema = gql`
|
|||
|
||||
input RuleActionInput {
|
||||
type: RuleActionType!
|
||||
value: String
|
||||
params: [String]!
|
||||
}
|
||||
|
||||
union SetRuleResult = SetRuleSuccess | SetRuleError
|
||||
|
|
|
|||
Loading…
Reference in a new issue