process: rename agents -> supplier-agents

separate reactions
This commit is contained in:
Chika 2022-10-25 18:27:57 +03:00
parent a2b2cc6a74
commit 1d886bb43e
6 changed files with 15 additions and 5 deletions

View File

@ -1,2 +0,0 @@
/* eslint-disable import/prefer-default-export */
export { default as common } from './common';

View File

@ -1,9 +1,10 @@
import * as agentsReactions from '../../agents/reactions';
import * as calculateReactions from '../../calculate/reactions';
import * as fingapReactions from '../../fingap/reactions';
import * as leadOpportunityReactions from '../../lead-opportunity/reactions';
import paymentsReactions from '../../payments/reactions';
import * as priceReactions from '../../price/reactions';
import * as agentsReactions from '../../supplier-agent/reactions/agents';
import * as supplierReactions from '../../supplier-agent/reactions/supplier';
import setInitialValuesReactions from '../set-values/reactions';
export default function injectDefaultReactions(store, apolloClient, queryClient) {
@ -11,7 +12,10 @@ export default function injectDefaultReactions(store, apolloClient, queryClient)
leadOpportunityReactions.urls(store, apolloClient, queryClient);
paymentsReactions(store, apolloClient, queryClient);
calculateReactions.validation(store, apolloClient, queryClient);
agentsReactions.common(store, apolloClient, queryClient);
supplierReactions.commonReactions(store, apolloClient, queryClient);
supplierReactions.validationReactions(store, apolloClient, queryClient);
agentsReactions.commonReactions(store, apolloClient, queryClient);
agentsReactions.validationReactions(store, apolloClient, queryClient);
priceReactions.computed(store, apolloClient, queryClient);
fingapReactions.common(store, apolloClient, queryClient);
fingapReactions.validation(store, apolloClient, queryClient);

View File

@ -0,0 +1,6 @@
import type { ApolloClient } from '@apollo/client';
import type RootStore from 'stores/root';
export function commonReactions(store: RootStore, apolloClient: ApolloClient<object>) {}
export function validationReactions(store: RootStore, apolloClient: ApolloClient<object>) {}

View File

@ -14,7 +14,7 @@ import { QUERY_GET_AGENT } from '../lib/query';
dayjs.extend(utc);
export default function commonReactions(store: RootStore, apolloClient: ApolloClient<object>) {
export function commonReactions(store: RootStore, apolloClient: ApolloClient<object>) {
const { $calculation, $process } = store;
/**
@ -326,3 +326,5 @@ export default function commonReactions(store: RootStore, apolloClient: ApolloCl
}
);
}
export function validationReactions(store: RootStore, apolloClient: ApolloClient<object>) {}