@@ -4,13 +4,14 @@ import type {
44 ClientRPCResponseResult ,
55 SetIdentityActionMessage ,
66} from '../types' ;
7- import type { IdentityId , ProviderId } from '../../ids/index ' ;
7+ import type { IdentityId , ProviderId } from '../../ids' ;
88import type { GestaltAction } from '../../gestalts/types' ;
99import type GestaltGraph from '../../gestalts/GestaltGraph' ;
1010import { UnaryHandler } from '@matrixai/rpc' ;
11- import { validateSync } from '../../validation/index' ;
12- import * as validationUtils from '../../validation/utils' ;
13- import { matchSync } from '../../utils/index' ;
11+ import * as ids from '../../ids' ;
12+ import * as gestaltsUtils from '../../gestalts/utils' ;
13+ import { validateSync } from '../../validation' ;
14+ import { matchSync } from '../../utils' ;
1415
1516class GestaltsActionsSetByIdentityHandler extends UnaryHandler <
1617 {
@@ -35,9 +36,9 @@ class GestaltsActionsSetByIdentityHandler extends UnaryHandler<
3536 } = validateSync (
3637 ( keyPath , value ) => {
3738 return matchSync ( keyPath ) (
38- [ [ 'action' ] , ( ) => validationUtils . parseGestaltAction ( value ) ] ,
39- [ [ 'providerId' ] , ( ) => validationUtils . parseProviderId ( value ) ] ,
40- [ [ 'identityId' ] , ( ) => validationUtils . parseIdentityId ( value ) ] ,
39+ [ [ 'action' ] , ( ) => gestaltsUtils . parseGestaltAction ( value ) ] ,
40+ [ [ 'providerId' ] , ( ) => ids . parseProviderId ( value ) ] ,
41+ [ [ 'identityId' ] , ( ) => ids . parseIdentityId ( value ) ] ,
4142 ( ) => value ,
4243 ) ;
4344 } ,
0 commit comments