@deepintel-ltd/farmpro-contracts 1.15.6 → 1.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,16 +11,29 @@ export declare const farmUpdatesRouter: {
11
11
  query: z.ZodObject<{
12
12
  'page[number]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
13
13
  'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
14
+ } & {
15
+ 'filter[hasPhotos]': z.ZodOptional<z.ZodBoolean>;
16
+ 'filter[mentionedUserId]': z.ZodOptional<z.ZodString>;
17
+ 'filter[authorId]': z.ZodOptional<z.ZodString>;
18
+ 'filter[kind]': z.ZodOptional<z.ZodEnum<["report"]>>;
14
19
  } & {
15
20
  include: z.ZodOptional<z.ZodEnum<["replies"]>>;
16
21
  }, "strip", z.ZodTypeAny, {
17
22
  'page[number]'?: number | undefined;
18
23
  'page[size]'?: number | undefined;
19
24
  include?: "replies" | undefined;
25
+ 'filter[hasPhotos]'?: boolean | undefined;
26
+ 'filter[mentionedUserId]'?: string | undefined;
27
+ 'filter[authorId]'?: string | undefined;
28
+ 'filter[kind]'?: "report" | undefined;
20
29
  }, {
21
30
  'page[number]'?: number | undefined;
22
31
  'page[size]'?: number | undefined;
23
32
  include?: "replies" | undefined;
33
+ 'filter[hasPhotos]'?: boolean | undefined;
34
+ 'filter[mentionedUserId]'?: string | undefined;
35
+ 'filter[authorId]'?: string | undefined;
36
+ 'filter[kind]'?: "report" | undefined;
24
37
  }>;
25
38
  summary: "List farm updates";
26
39
  description: "Chronological farm team updates feed (newest first)";
@@ -1997,37 +2010,160 @@ export declare const farmUpdatesRouter: {
1997
2010
  }>;
1998
2011
  };
1999
2012
  };
2000
- deleteUpdate: {
2013
+ getSummary: {
2001
2014
  pathParams: z.ZodObject<{
2002
2015
  farmId: z.ZodString;
2003
- updateId: z.ZodString;
2004
2016
  }, "strip", z.ZodTypeAny, {
2005
2017
  farmId: string;
2006
- updateId: string;
2007
2018
  }, {
2008
2019
  farmId: string;
2009
- updateId: string;
2010
2020
  }>;
2011
- summary: "Delete farm update";
2012
- method: "DELETE";
2013
- path: "/farms/:farmId/updates/:updateId";
2021
+ summary: "Get farm updates activity summary";
2022
+ description: "Pulse metrics for the team activity feed (today / 7d / last post)";
2023
+ method: "GET";
2024
+ path: "/farms/:farmId/updates/summary";
2014
2025
  responses: {
2015
- 204: z.ZodObject<{
2016
- meta: z.ZodObject<{
2017
- message: z.ZodString;
2026
+ 200: z.ZodObject<{
2027
+ data: z.ZodObject<{
2028
+ type: z.ZodLiteral<string>;
2029
+ id: z.ZodString;
2030
+ attributes: z.ZodObject<{
2031
+ farmId: z.ZodString;
2032
+ postsToday: z.ZodNumber;
2033
+ postsLast7Days: z.ZodNumber;
2034
+ photoPostsLast7Days: z.ZodNumber;
2035
+ activeAuthorCountLast7Days: z.ZodNumber;
2036
+ lastPostAt: z.ZodNullable<z.ZodString>;
2037
+ status: z.ZodEnum<["active", "quiet", "silent"]>;
2038
+ }, "strip", z.ZodTypeAny, {
2039
+ status: "active" | "quiet" | "silent";
2040
+ farmId: string;
2041
+ postsToday: number;
2042
+ postsLast7Days: number;
2043
+ photoPostsLast7Days: number;
2044
+ activeAuthorCountLast7Days: number;
2045
+ lastPostAt: string | null;
2046
+ }, {
2047
+ status: "active" | "quiet" | "silent";
2048
+ farmId: string;
2049
+ postsToday: number;
2050
+ postsLast7Days: number;
2051
+ photoPostsLast7Days: number;
2052
+ activeAuthorCountLast7Days: number;
2053
+ lastPostAt: string | null;
2054
+ }>;
2055
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2056
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2057
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2018
2058
  }, "strip", z.ZodTypeAny, {
2019
- message: string;
2059
+ type: string;
2060
+ id: string;
2061
+ attributes: {
2062
+ status: "active" | "quiet" | "silent";
2063
+ farmId: string;
2064
+ postsToday: number;
2065
+ postsLast7Days: number;
2066
+ photoPostsLast7Days: number;
2067
+ activeAuthorCountLast7Days: number;
2068
+ lastPostAt: string | null;
2069
+ };
2070
+ relationships?: Record<string, unknown> | undefined;
2071
+ links?: Record<string, string> | undefined;
2072
+ meta?: Record<string, unknown> | undefined;
2020
2073
  }, {
2021
- message: string;
2074
+ type: string;
2075
+ id: string;
2076
+ attributes: {
2077
+ status: "active" | "quiet" | "silent";
2078
+ farmId: string;
2079
+ postsToday: number;
2080
+ postsLast7Days: number;
2081
+ photoPostsLast7Days: number;
2082
+ activeAuthorCountLast7Days: number;
2083
+ lastPostAt: string | null;
2084
+ };
2085
+ relationships?: Record<string, unknown> | undefined;
2086
+ links?: Record<string, string> | undefined;
2087
+ meta?: Record<string, unknown> | undefined;
2022
2088
  }>;
2089
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2090
+ type: z.ZodString;
2091
+ id: z.ZodString;
2092
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2093
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2094
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2095
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2096
+ }, "strip", z.ZodTypeAny, {
2097
+ type: string;
2098
+ id: string;
2099
+ attributes?: Record<string, unknown> | undefined;
2100
+ relationships?: Record<string, unknown> | undefined;
2101
+ links?: Record<string, string> | undefined;
2102
+ meta?: Record<string, unknown> | undefined;
2103
+ }, {
2104
+ type: string;
2105
+ id: string;
2106
+ attributes?: Record<string, unknown> | undefined;
2107
+ relationships?: Record<string, unknown> | undefined;
2108
+ links?: Record<string, string> | undefined;
2109
+ meta?: Record<string, unknown> | undefined;
2110
+ }>, "many">>;
2111
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2112
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2023
2113
  }, "strip", z.ZodTypeAny, {
2024
- meta: {
2025
- message: string;
2114
+ data: {
2115
+ type: string;
2116
+ id: string;
2117
+ attributes: {
2118
+ status: "active" | "quiet" | "silent";
2119
+ farmId: string;
2120
+ postsToday: number;
2121
+ postsLast7Days: number;
2122
+ photoPostsLast7Days: number;
2123
+ activeAuthorCountLast7Days: number;
2124
+ lastPostAt: string | null;
2125
+ };
2126
+ relationships?: Record<string, unknown> | undefined;
2127
+ links?: Record<string, string> | undefined;
2128
+ meta?: Record<string, unknown> | undefined;
2026
2129
  };
2130
+ links?: Record<string, string> | undefined;
2131
+ meta?: Record<string, unknown> | undefined;
2132
+ included?: {
2133
+ type: string;
2134
+ id: string;
2135
+ attributes?: Record<string, unknown> | undefined;
2136
+ relationships?: Record<string, unknown> | undefined;
2137
+ links?: Record<string, string> | undefined;
2138
+ meta?: Record<string, unknown> | undefined;
2139
+ }[] | undefined;
2027
2140
  }, {
2028
- meta: {
2029
- message: string;
2141
+ data: {
2142
+ type: string;
2143
+ id: string;
2144
+ attributes: {
2145
+ status: "active" | "quiet" | "silent";
2146
+ farmId: string;
2147
+ postsToday: number;
2148
+ postsLast7Days: number;
2149
+ photoPostsLast7Days: number;
2150
+ activeAuthorCountLast7Days: number;
2151
+ lastPostAt: string | null;
2152
+ };
2153
+ relationships?: Record<string, unknown> | undefined;
2154
+ links?: Record<string, string> | undefined;
2155
+ meta?: Record<string, unknown> | undefined;
2030
2156
  };
2157
+ links?: Record<string, string> | undefined;
2158
+ meta?: Record<string, unknown> | undefined;
2159
+ included?: {
2160
+ type: string;
2161
+ id: string;
2162
+ attributes?: Record<string, unknown> | undefined;
2163
+ relationships?: Record<string, unknown> | undefined;
2164
+ links?: Record<string, string> | undefined;
2165
+ meta?: Record<string, unknown> | undefined;
2166
+ }[] | undefined;
2031
2167
  }>;
2032
2168
  401: z.ZodObject<{
2033
2169
  errors: z.ZodArray<z.ZodObject<{
@@ -2707,6 +2843,310 @@ export declare const farmUpdatesRouter: {
2707
2843
  }>;
2708
2844
  };
2709
2845
  };
2846
+ deleteUpdate: {
2847
+ pathParams: z.ZodObject<{
2848
+ farmId: z.ZodString;
2849
+ updateId: z.ZodString;
2850
+ }, "strip", z.ZodTypeAny, {
2851
+ farmId: string;
2852
+ updateId: string;
2853
+ }, {
2854
+ farmId: string;
2855
+ updateId: string;
2856
+ }>;
2857
+ summary: "Delete farm update";
2858
+ method: "DELETE";
2859
+ path: "/farms/:farmId/updates/:updateId";
2860
+ responses: {
2861
+ 204: z.ZodObject<{
2862
+ meta: z.ZodObject<{
2863
+ message: z.ZodString;
2864
+ }, "strip", z.ZodTypeAny, {
2865
+ message: string;
2866
+ }, {
2867
+ message: string;
2868
+ }>;
2869
+ }, "strip", z.ZodTypeAny, {
2870
+ meta: {
2871
+ message: string;
2872
+ };
2873
+ }, {
2874
+ meta: {
2875
+ message: string;
2876
+ };
2877
+ }>;
2878
+ 401: z.ZodObject<{
2879
+ errors: z.ZodArray<z.ZodObject<{
2880
+ id: z.ZodOptional<z.ZodString>;
2881
+ links: z.ZodOptional<z.ZodObject<{
2882
+ about: z.ZodOptional<z.ZodString>;
2883
+ }, "strip", z.ZodTypeAny, {
2884
+ about?: string | undefined;
2885
+ }, {
2886
+ about?: string | undefined;
2887
+ }>>;
2888
+ status: z.ZodOptional<z.ZodString>;
2889
+ code: z.ZodOptional<z.ZodString>;
2890
+ title: z.ZodOptional<z.ZodString>;
2891
+ detail: z.ZodOptional<z.ZodString>;
2892
+ source: z.ZodOptional<z.ZodObject<{
2893
+ pointer: z.ZodOptional<z.ZodString>;
2894
+ parameter: z.ZodOptional<z.ZodString>;
2895
+ }, "strip", z.ZodTypeAny, {
2896
+ pointer?: string | undefined;
2897
+ parameter?: string | undefined;
2898
+ }, {
2899
+ pointer?: string | undefined;
2900
+ parameter?: string | undefined;
2901
+ }>>;
2902
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2903
+ }, "strip", z.ZodTypeAny, {
2904
+ status?: string | undefined;
2905
+ code?: string | undefined;
2906
+ id?: string | undefined;
2907
+ links?: {
2908
+ about?: string | undefined;
2909
+ } | undefined;
2910
+ meta?: Record<string, unknown> | undefined;
2911
+ title?: string | undefined;
2912
+ detail?: string | undefined;
2913
+ source?: {
2914
+ pointer?: string | undefined;
2915
+ parameter?: string | undefined;
2916
+ } | undefined;
2917
+ }, {
2918
+ status?: string | undefined;
2919
+ code?: string | undefined;
2920
+ id?: string | undefined;
2921
+ links?: {
2922
+ about?: string | undefined;
2923
+ } | undefined;
2924
+ meta?: Record<string, unknown> | undefined;
2925
+ title?: string | undefined;
2926
+ detail?: string | undefined;
2927
+ source?: {
2928
+ pointer?: string | undefined;
2929
+ parameter?: string | undefined;
2930
+ } | undefined;
2931
+ }>, "many">;
2932
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2933
+ }, "strip", z.ZodTypeAny, {
2934
+ errors: {
2935
+ status?: string | undefined;
2936
+ code?: string | undefined;
2937
+ id?: string | undefined;
2938
+ links?: {
2939
+ about?: string | undefined;
2940
+ } | undefined;
2941
+ meta?: Record<string, unknown> | undefined;
2942
+ title?: string | undefined;
2943
+ detail?: string | undefined;
2944
+ source?: {
2945
+ pointer?: string | undefined;
2946
+ parameter?: string | undefined;
2947
+ } | undefined;
2948
+ }[];
2949
+ meta?: Record<string, unknown> | undefined;
2950
+ }, {
2951
+ errors: {
2952
+ status?: string | undefined;
2953
+ code?: string | undefined;
2954
+ id?: string | undefined;
2955
+ links?: {
2956
+ about?: string | undefined;
2957
+ } | undefined;
2958
+ meta?: Record<string, unknown> | undefined;
2959
+ title?: string | undefined;
2960
+ detail?: string | undefined;
2961
+ source?: {
2962
+ pointer?: string | undefined;
2963
+ parameter?: string | undefined;
2964
+ } | undefined;
2965
+ }[];
2966
+ meta?: Record<string, unknown> | undefined;
2967
+ }>;
2968
+ 403: z.ZodObject<{
2969
+ errors: z.ZodArray<z.ZodObject<{
2970
+ id: z.ZodOptional<z.ZodString>;
2971
+ links: z.ZodOptional<z.ZodObject<{
2972
+ about: z.ZodOptional<z.ZodString>;
2973
+ }, "strip", z.ZodTypeAny, {
2974
+ about?: string | undefined;
2975
+ }, {
2976
+ about?: string | undefined;
2977
+ }>>;
2978
+ status: z.ZodOptional<z.ZodString>;
2979
+ code: z.ZodOptional<z.ZodString>;
2980
+ title: z.ZodOptional<z.ZodString>;
2981
+ detail: z.ZodOptional<z.ZodString>;
2982
+ source: z.ZodOptional<z.ZodObject<{
2983
+ pointer: z.ZodOptional<z.ZodString>;
2984
+ parameter: z.ZodOptional<z.ZodString>;
2985
+ }, "strip", z.ZodTypeAny, {
2986
+ pointer?: string | undefined;
2987
+ parameter?: string | undefined;
2988
+ }, {
2989
+ pointer?: string | undefined;
2990
+ parameter?: string | undefined;
2991
+ }>>;
2992
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2993
+ }, "strip", z.ZodTypeAny, {
2994
+ status?: string | undefined;
2995
+ code?: string | undefined;
2996
+ id?: string | undefined;
2997
+ links?: {
2998
+ about?: string | undefined;
2999
+ } | undefined;
3000
+ meta?: Record<string, unknown> | undefined;
3001
+ title?: string | undefined;
3002
+ detail?: string | undefined;
3003
+ source?: {
3004
+ pointer?: string | undefined;
3005
+ parameter?: string | undefined;
3006
+ } | undefined;
3007
+ }, {
3008
+ status?: string | undefined;
3009
+ code?: string | undefined;
3010
+ id?: string | undefined;
3011
+ links?: {
3012
+ about?: string | undefined;
3013
+ } | undefined;
3014
+ meta?: Record<string, unknown> | undefined;
3015
+ title?: string | undefined;
3016
+ detail?: string | undefined;
3017
+ source?: {
3018
+ pointer?: string | undefined;
3019
+ parameter?: string | undefined;
3020
+ } | undefined;
3021
+ }>, "many">;
3022
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3023
+ }, "strip", z.ZodTypeAny, {
3024
+ errors: {
3025
+ status?: string | undefined;
3026
+ code?: string | undefined;
3027
+ id?: string | undefined;
3028
+ links?: {
3029
+ about?: string | undefined;
3030
+ } | undefined;
3031
+ meta?: Record<string, unknown> | undefined;
3032
+ title?: string | undefined;
3033
+ detail?: string | undefined;
3034
+ source?: {
3035
+ pointer?: string | undefined;
3036
+ parameter?: string | undefined;
3037
+ } | undefined;
3038
+ }[];
3039
+ meta?: Record<string, unknown> | undefined;
3040
+ }, {
3041
+ errors: {
3042
+ status?: string | undefined;
3043
+ code?: string | undefined;
3044
+ id?: string | undefined;
3045
+ links?: {
3046
+ about?: string | undefined;
3047
+ } | undefined;
3048
+ meta?: Record<string, unknown> | undefined;
3049
+ title?: string | undefined;
3050
+ detail?: string | undefined;
3051
+ source?: {
3052
+ pointer?: string | undefined;
3053
+ parameter?: string | undefined;
3054
+ } | undefined;
3055
+ }[];
3056
+ meta?: Record<string, unknown> | undefined;
3057
+ }>;
3058
+ 404: z.ZodObject<{
3059
+ errors: z.ZodArray<z.ZodObject<{
3060
+ id: z.ZodOptional<z.ZodString>;
3061
+ links: z.ZodOptional<z.ZodObject<{
3062
+ about: z.ZodOptional<z.ZodString>;
3063
+ }, "strip", z.ZodTypeAny, {
3064
+ about?: string | undefined;
3065
+ }, {
3066
+ about?: string | undefined;
3067
+ }>>;
3068
+ status: z.ZodOptional<z.ZodString>;
3069
+ code: z.ZodOptional<z.ZodString>;
3070
+ title: z.ZodOptional<z.ZodString>;
3071
+ detail: z.ZodOptional<z.ZodString>;
3072
+ source: z.ZodOptional<z.ZodObject<{
3073
+ pointer: z.ZodOptional<z.ZodString>;
3074
+ parameter: z.ZodOptional<z.ZodString>;
3075
+ }, "strip", z.ZodTypeAny, {
3076
+ pointer?: string | undefined;
3077
+ parameter?: string | undefined;
3078
+ }, {
3079
+ pointer?: string | undefined;
3080
+ parameter?: string | undefined;
3081
+ }>>;
3082
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3083
+ }, "strip", z.ZodTypeAny, {
3084
+ status?: string | undefined;
3085
+ code?: string | undefined;
3086
+ id?: string | undefined;
3087
+ links?: {
3088
+ about?: string | undefined;
3089
+ } | undefined;
3090
+ meta?: Record<string, unknown> | undefined;
3091
+ title?: string | undefined;
3092
+ detail?: string | undefined;
3093
+ source?: {
3094
+ pointer?: string | undefined;
3095
+ parameter?: string | undefined;
3096
+ } | undefined;
3097
+ }, {
3098
+ status?: string | undefined;
3099
+ code?: string | undefined;
3100
+ id?: string | undefined;
3101
+ links?: {
3102
+ about?: string | undefined;
3103
+ } | undefined;
3104
+ meta?: Record<string, unknown> | undefined;
3105
+ title?: string | undefined;
3106
+ detail?: string | undefined;
3107
+ source?: {
3108
+ pointer?: string | undefined;
3109
+ parameter?: string | undefined;
3110
+ } | undefined;
3111
+ }>, "many">;
3112
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3113
+ }, "strip", z.ZodTypeAny, {
3114
+ errors: {
3115
+ status?: string | undefined;
3116
+ code?: string | undefined;
3117
+ id?: string | undefined;
3118
+ links?: {
3119
+ about?: string | undefined;
3120
+ } | undefined;
3121
+ meta?: Record<string, unknown> | undefined;
3122
+ title?: string | undefined;
3123
+ detail?: string | undefined;
3124
+ source?: {
3125
+ pointer?: string | undefined;
3126
+ parameter?: string | undefined;
3127
+ } | undefined;
3128
+ }[];
3129
+ meta?: Record<string, unknown> | undefined;
3130
+ }, {
3131
+ errors: {
3132
+ status?: string | undefined;
3133
+ code?: string | undefined;
3134
+ id?: string | undefined;
3135
+ links?: {
3136
+ about?: string | undefined;
3137
+ } | undefined;
3138
+ meta?: Record<string, unknown> | undefined;
3139
+ title?: string | undefined;
3140
+ detail?: string | undefined;
3141
+ source?: {
3142
+ pointer?: string | undefined;
3143
+ parameter?: string | undefined;
3144
+ } | undefined;
3145
+ }[];
3146
+ meta?: Record<string, unknown> | undefined;
3147
+ }>;
3148
+ };
3149
+ };
2710
3150
  listReplies: {
2711
3151
  pathParams: z.ZodObject<{
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0K5B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { initContract } from '@ts-rest/core';
2
2
  import { z } from 'zod';
3
- import { createFarmUpdateSchema, createFarmUpdateReplySchema, toggleFarmUpdateReactionSchema, farmUpdateResponseSchema, farmUpdateListResponseSchema, farmUpdateReplyResponseSchema, farmUpdateReplyListResponseSchema, farmUpdateReactionToggleResponseSchema, mentionCandidateListResponseSchema, farmUpdateErrorSchema, } from '../schemas/farm-updates.schemas';
3
+ import { createFarmUpdateSchema, createFarmUpdateReplySchema, toggleFarmUpdateReactionSchema, farmUpdateResponseSchema, farmUpdateListResponseSchema, farmUpdateReplyResponseSchema, farmUpdateReplyListResponseSchema, farmUpdateReactionToggleResponseSchema, mentionCandidateListResponseSchema, farmUpdateSummaryResponseSchema, farmUpdateListFilterQuerySchema, farmUpdateErrorSchema, } from '../schemas/farm-updates.schemas';
4
4
  import { jsonApiPaginationQuerySchema, jsonApiSuccessResponseSchema, } from '../schemas/common.schemas';
5
5
  const c = initContract();
6
6
  export const farmUpdatesRouter = c.router({
@@ -8,7 +8,9 @@ export const farmUpdatesRouter = c.router({
8
8
  method: 'GET',
9
9
  path: '/farms/:farmId/updates',
10
10
  pathParams: z.object({ farmId: z.string().uuid() }),
11
- query: jsonApiPaginationQuerySchema.merge(z.object({
11
+ query: jsonApiPaginationQuerySchema
12
+ .merge(farmUpdateListFilterQuerySchema)
13
+ .merge(z.object({
12
14
  include: z.enum(['replies']).optional(),
13
15
  })),
14
16
  responses: {
@@ -34,20 +36,19 @@ export const farmUpdatesRouter = c.router({
34
36
  },
35
37
  summary: 'Create farm update',
36
38
  },
37
- deleteUpdate: {
38
- method: 'DELETE',
39
- path: '/farms/:farmId/updates/:updateId',
40
- pathParams: z.object({
41
- farmId: z.string().uuid(),
42
- updateId: z.string().uuid(),
43
- }),
39
+ // Static paths before :updateId routes
40
+ getSummary: {
41
+ method: 'GET',
42
+ path: '/farms/:farmId/updates/summary',
43
+ pathParams: z.object({ farmId: z.string().uuid() }),
44
44
  responses: {
45
- 204: jsonApiSuccessResponseSchema,
45
+ 200: farmUpdateSummaryResponseSchema,
46
46
  401: farmUpdateErrorSchema,
47
47
  403: farmUpdateErrorSchema,
48
48
  404: farmUpdateErrorSchema,
49
49
  },
50
- summary: 'Delete farm update',
50
+ summary: 'Get farm updates activity summary',
51
+ description: 'Pulse metrics for the team activity feed (today / 7d / last post)',
51
52
  },
52
53
  listMentionCandidates: {
53
54
  method: 'GET',
@@ -62,6 +63,21 @@ export const farmUpdatesRouter = c.router({
62
63
  summary: 'List @mention candidates',
63
64
  description: 'Farm owner and linked team members for mention typeahead',
64
65
  },
66
+ deleteUpdate: {
67
+ method: 'DELETE',
68
+ path: '/farms/:farmId/updates/:updateId',
69
+ pathParams: z.object({
70
+ farmId: z.string().uuid(),
71
+ updateId: z.string().uuid(),
72
+ }),
73
+ responses: {
74
+ 204: jsonApiSuccessResponseSchema,
75
+ 401: farmUpdateErrorSchema,
76
+ 403: farmUpdateErrorSchema,
77
+ 404: farmUpdateErrorSchema,
78
+ },
79
+ summary: 'Delete farm update',
80
+ },
65
81
  listReplies: {
66
82
  method: 'GET',
67
83
  path: '/farms/:farmId/updates/:updateId/replies',