@@ -106,18 +106,19 @@ export const MEMBER_INSERT_COLUMNS = [
106106]
107107
108108const QUERY_FILTER_COLUMN_MAP : Map < string , { name : string ; queryable ?: boolean } > = new Map ( [
109- [ 'id ' , { name : 'm.id ' } ] ,
110- [ 'segmentId ' , { name : 'msa."segmentId" ' } ] ,
109+ [ 'activityCount ' , { name : 'coalesce(msa."activityCount", 0)::integer ' } ] ,
110+ [ 'attributes ' , { name : 'm.attributes ' } ] ,
111111 [ 'displayName' , { name : 'm."displayName"' } ] ,
112- [ 'jobTitle' , { name : `m.attributes -> 'jobTitle' ->> 'default'` } ] ,
112+ [ 'id' , { name : 'm.id' } ] ,
113+ [ 'identityPlatforms' , { name : 'coalesce(msa."activeOn", \'{}\'::text[])' } ] ,
113114 [ 'isBot' , { name : `COALESCE((m.attributes -> 'isBot' ->> 'default')::BOOLEAN, FALSE)` } ] ,
114115 [
115116 'isOrganization' ,
116117 { name : `COALESCE((m.attributes -> 'isOrganization' ->> 'default')::BOOLEAN, FALSE)` } ,
117118 ] ,
118- [ 'activityCount ' , { name : 'coalesce(msa."activityCount", 0)::integer' } ] ,
119+ [ 'jobTitle ' , { name : `m.attributes -> 'jobTitle' ->> 'default'` } ] ,
119120 [ 'organizations' , { name : 'mo."organizationId"' , queryable : false } ] ,
120- [ 'attributes ' , { name : 'm.attributes ' } ] ,
121+ [ 'segmentId ' , { name : 'msa."segmentId" ' } ] ,
121122] )
122123
123124const QUERY_FILTER_ATTRIBUTE_MAP = [ 'avatarUrl' , 'isBot' , 'isTeamMember' , 'jobTitle' ]
0 commit comments