@deepintel-ltd/farmpro-contracts 1.15.6 → 1.16.0

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',
@@ -3580,6 +3580,252 @@ export declare const farmUpdateErrorSchema: z.ZodObject<{
3580
3580
  }[];
3581
3581
  meta?: Record<string, unknown> | undefined;
3582
3582
  }>;
3583
+ export declare const farmUpdateActivityStatusSchema: z.ZodEnum<["active", "quiet", "silent"]>;
3584
+ export declare const farmUpdateSummaryAttributesSchema: z.ZodObject<{
3585
+ farmId: z.ZodString;
3586
+ postsToday: z.ZodNumber;
3587
+ postsLast7Days: z.ZodNumber;
3588
+ photoPostsLast7Days: z.ZodNumber;
3589
+ activeAuthorCountLast7Days: z.ZodNumber;
3590
+ lastPostAt: z.ZodNullable<z.ZodString>;
3591
+ status: z.ZodEnum<["active", "quiet", "silent"]>;
3592
+ }, "strip", z.ZodTypeAny, {
3593
+ status: "active" | "quiet" | "silent";
3594
+ farmId: string;
3595
+ postsToday: number;
3596
+ postsLast7Days: number;
3597
+ photoPostsLast7Days: number;
3598
+ activeAuthorCountLast7Days: number;
3599
+ lastPostAt: string | null;
3600
+ }, {
3601
+ status: "active" | "quiet" | "silent";
3602
+ farmId: string;
3603
+ postsToday: number;
3604
+ postsLast7Days: number;
3605
+ photoPostsLast7Days: number;
3606
+ activeAuthorCountLast7Days: number;
3607
+ lastPostAt: string | null;
3608
+ }>;
3609
+ export declare const farmUpdateSummaryResourceSchema: z.ZodObject<{
3610
+ type: z.ZodLiteral<string>;
3611
+ id: z.ZodString;
3612
+ attributes: z.ZodObject<{
3613
+ farmId: z.ZodString;
3614
+ postsToday: z.ZodNumber;
3615
+ postsLast7Days: z.ZodNumber;
3616
+ photoPostsLast7Days: z.ZodNumber;
3617
+ activeAuthorCountLast7Days: z.ZodNumber;
3618
+ lastPostAt: z.ZodNullable<z.ZodString>;
3619
+ status: z.ZodEnum<["active", "quiet", "silent"]>;
3620
+ }, "strip", z.ZodTypeAny, {
3621
+ status: "active" | "quiet" | "silent";
3622
+ farmId: string;
3623
+ postsToday: number;
3624
+ postsLast7Days: number;
3625
+ photoPostsLast7Days: number;
3626
+ activeAuthorCountLast7Days: number;
3627
+ lastPostAt: string | null;
3628
+ }, {
3629
+ status: "active" | "quiet" | "silent";
3630
+ farmId: string;
3631
+ postsToday: number;
3632
+ postsLast7Days: number;
3633
+ photoPostsLast7Days: number;
3634
+ activeAuthorCountLast7Days: number;
3635
+ lastPostAt: string | null;
3636
+ }>;
3637
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3638
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3639
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3640
+ }, "strip", z.ZodTypeAny, {
3641
+ type: string;
3642
+ id: string;
3643
+ attributes: {
3644
+ status: "active" | "quiet" | "silent";
3645
+ farmId: string;
3646
+ postsToday: number;
3647
+ postsLast7Days: number;
3648
+ photoPostsLast7Days: number;
3649
+ activeAuthorCountLast7Days: number;
3650
+ lastPostAt: string | null;
3651
+ };
3652
+ relationships?: Record<string, unknown> | undefined;
3653
+ links?: Record<string, string> | undefined;
3654
+ meta?: Record<string, unknown> | undefined;
3655
+ }, {
3656
+ type: string;
3657
+ id: string;
3658
+ attributes: {
3659
+ status: "active" | "quiet" | "silent";
3660
+ farmId: string;
3661
+ postsToday: number;
3662
+ postsLast7Days: number;
3663
+ photoPostsLast7Days: number;
3664
+ activeAuthorCountLast7Days: number;
3665
+ lastPostAt: string | null;
3666
+ };
3667
+ relationships?: Record<string, unknown> | undefined;
3668
+ links?: Record<string, string> | undefined;
3669
+ meta?: Record<string, unknown> | undefined;
3670
+ }>;
3671
+ export declare const farmUpdateSummaryResponseSchema: z.ZodObject<{
3672
+ data: z.ZodObject<{
3673
+ type: z.ZodLiteral<string>;
3674
+ id: z.ZodString;
3675
+ attributes: z.ZodObject<{
3676
+ farmId: z.ZodString;
3677
+ postsToday: z.ZodNumber;
3678
+ postsLast7Days: z.ZodNumber;
3679
+ photoPostsLast7Days: z.ZodNumber;
3680
+ activeAuthorCountLast7Days: z.ZodNumber;
3681
+ lastPostAt: z.ZodNullable<z.ZodString>;
3682
+ status: z.ZodEnum<["active", "quiet", "silent"]>;
3683
+ }, "strip", z.ZodTypeAny, {
3684
+ status: "active" | "quiet" | "silent";
3685
+ farmId: string;
3686
+ postsToday: number;
3687
+ postsLast7Days: number;
3688
+ photoPostsLast7Days: number;
3689
+ activeAuthorCountLast7Days: number;
3690
+ lastPostAt: string | null;
3691
+ }, {
3692
+ status: "active" | "quiet" | "silent";
3693
+ farmId: string;
3694
+ postsToday: number;
3695
+ postsLast7Days: number;
3696
+ photoPostsLast7Days: number;
3697
+ activeAuthorCountLast7Days: number;
3698
+ lastPostAt: string | null;
3699
+ }>;
3700
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3701
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3702
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3703
+ }, "strip", z.ZodTypeAny, {
3704
+ type: string;
3705
+ id: string;
3706
+ attributes: {
3707
+ status: "active" | "quiet" | "silent";
3708
+ farmId: string;
3709
+ postsToday: number;
3710
+ postsLast7Days: number;
3711
+ photoPostsLast7Days: number;
3712
+ activeAuthorCountLast7Days: number;
3713
+ lastPostAt: string | null;
3714
+ };
3715
+ relationships?: Record<string, unknown> | undefined;
3716
+ links?: Record<string, string> | undefined;
3717
+ meta?: Record<string, unknown> | undefined;
3718
+ }, {
3719
+ type: string;
3720
+ id: string;
3721
+ attributes: {
3722
+ status: "active" | "quiet" | "silent";
3723
+ farmId: string;
3724
+ postsToday: number;
3725
+ postsLast7Days: number;
3726
+ photoPostsLast7Days: number;
3727
+ activeAuthorCountLast7Days: number;
3728
+ lastPostAt: string | null;
3729
+ };
3730
+ relationships?: Record<string, unknown> | undefined;
3731
+ links?: Record<string, string> | undefined;
3732
+ meta?: Record<string, unknown> | undefined;
3733
+ }>;
3734
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
3735
+ type: z.ZodString;
3736
+ id: z.ZodString;
3737
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3738
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3739
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3740
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3741
+ }, "strip", z.ZodTypeAny, {
3742
+ type: string;
3743
+ id: string;
3744
+ attributes?: Record<string, unknown> | undefined;
3745
+ relationships?: Record<string, unknown> | undefined;
3746
+ links?: Record<string, string> | undefined;
3747
+ meta?: Record<string, unknown> | undefined;
3748
+ }, {
3749
+ type: string;
3750
+ id: string;
3751
+ attributes?: Record<string, unknown> | undefined;
3752
+ relationships?: Record<string, unknown> | undefined;
3753
+ links?: Record<string, string> | undefined;
3754
+ meta?: Record<string, unknown> | undefined;
3755
+ }>, "many">>;
3756
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3757
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3758
+ }, "strip", z.ZodTypeAny, {
3759
+ data: {
3760
+ type: string;
3761
+ id: string;
3762
+ attributes: {
3763
+ status: "active" | "quiet" | "silent";
3764
+ farmId: string;
3765
+ postsToday: number;
3766
+ postsLast7Days: number;
3767
+ photoPostsLast7Days: number;
3768
+ activeAuthorCountLast7Days: number;
3769
+ lastPostAt: string | null;
3770
+ };
3771
+ relationships?: Record<string, unknown> | undefined;
3772
+ links?: Record<string, string> | undefined;
3773
+ meta?: Record<string, unknown> | undefined;
3774
+ };
3775
+ links?: Record<string, string> | undefined;
3776
+ meta?: Record<string, unknown> | undefined;
3777
+ included?: {
3778
+ type: string;
3779
+ id: string;
3780
+ attributes?: Record<string, unknown> | undefined;
3781
+ relationships?: Record<string, unknown> | undefined;
3782
+ links?: Record<string, string> | undefined;
3783
+ meta?: Record<string, unknown> | undefined;
3784
+ }[] | undefined;
3785
+ }, {
3786
+ data: {
3787
+ type: string;
3788
+ id: string;
3789
+ attributes: {
3790
+ status: "active" | "quiet" | "silent";
3791
+ farmId: string;
3792
+ postsToday: number;
3793
+ postsLast7Days: number;
3794
+ photoPostsLast7Days: number;
3795
+ activeAuthorCountLast7Days: number;
3796
+ lastPostAt: string | null;
3797
+ };
3798
+ relationships?: Record<string, unknown> | undefined;
3799
+ links?: Record<string, string> | undefined;
3800
+ meta?: Record<string, unknown> | undefined;
3801
+ };
3802
+ links?: Record<string, string> | undefined;
3803
+ meta?: Record<string, unknown> | undefined;
3804
+ included?: {
3805
+ type: string;
3806
+ id: string;
3807
+ attributes?: Record<string, unknown> | undefined;
3808
+ relationships?: Record<string, unknown> | undefined;
3809
+ links?: Record<string, string> | undefined;
3810
+ meta?: Record<string, unknown> | undefined;
3811
+ }[] | undefined;
3812
+ }>;
3813
+ export declare const farmUpdateListFilterQuerySchema: z.ZodObject<{
3814
+ 'filter[hasPhotos]': z.ZodOptional<z.ZodBoolean>;
3815
+ 'filter[mentionedUserId]': z.ZodOptional<z.ZodString>;
3816
+ 'filter[authorId]': z.ZodOptional<z.ZodString>;
3817
+ 'filter[kind]': z.ZodOptional<z.ZodEnum<["report"]>>;
3818
+ }, "strip", z.ZodTypeAny, {
3819
+ 'filter[hasPhotos]'?: boolean | undefined;
3820
+ 'filter[mentionedUserId]'?: string | undefined;
3821
+ 'filter[authorId]'?: string | undefined;
3822
+ 'filter[kind]'?: "report" | undefined;
3823
+ }, {
3824
+ 'filter[hasPhotos]'?: boolean | undefined;
3825
+ 'filter[mentionedUserId]'?: string | undefined;
3826
+ 'filter[authorId]'?: string | undefined;
3827
+ 'filter[kind]'?: "report" | undefined;
3828
+ }>;
3583
3829
  export type FarmUpdateReactionEmoji = z.infer<typeof farmUpdateReactionEmojiSchema>;
3584
3830
  export type FarmUpdateAttributes = z.infer<typeof farmUpdateAttributesSchema>;
3585
3831
  export type FarmUpdateReplyAttributes = z.infer<typeof farmUpdateReplyAttributesSchema>;
@@ -3592,4 +3838,7 @@ export type FarmUpdateReplyResponse = z.infer<typeof farmUpdateReplyResponseSche
3592
3838
  export type FarmUpdateReplyListResponse = z.infer<typeof farmUpdateReplyListResponseSchema>;
3593
3839
  export type FarmUpdateReactionToggleResponse = z.infer<typeof farmUpdateReactionToggleResponseSchema>;
3594
3840
  export type MentionCandidateListResponse = z.infer<typeof mentionCandidateListResponseSchema>;
3841
+ export type FarmUpdateActivityStatus = z.infer<typeof farmUpdateActivityStatusSchema>;
3842
+ export type FarmUpdateSummaryAttributes = z.infer<typeof farmUpdateSummaryAttributesSchema>;
3843
+ export type FarmUpdateSummaryResponse = z.infer<typeof farmUpdateSummaryResponseSchema>;
3595
3844
  //# sourceMappingURL=farm-updates.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"farm-updates.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/farm-updates.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,6BAA6B,iDAA+C,CAAC;AAE1F,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;EAKnC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;EAI1C,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU1C,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGzC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;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MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AACtG,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
@@ -89,3 +89,21 @@ export const farmUpdateReplyListResponseSchema = jsonApiCollectionResponseSchema
89
89
  export const farmUpdateReactionToggleResponseSchema = jsonApiSingleResponseSchema(farmUpdateReactionToggleResourceSchema);
90
90
  export const mentionCandidateListResponseSchema = jsonApiCollectionResponseSchema(mentionCandidateResourceSchema);
91
91
  export const farmUpdateErrorSchema = jsonApiErrorResponseSchema;
92
+ export const farmUpdateActivityStatusSchema = z.enum(['active', 'quiet', 'silent']);
93
+ export const farmUpdateSummaryAttributesSchema = z.object({
94
+ farmId: z.string().uuid(),
95
+ postsToday: z.number().int().nonnegative(),
96
+ postsLast7Days: z.number().int().nonnegative(),
97
+ photoPostsLast7Days: z.number().int().nonnegative(),
98
+ activeAuthorCountLast7Days: z.number().int().nonnegative(),
99
+ lastPostAt: z.string().datetime().nullable(),
100
+ status: farmUpdateActivityStatusSchema,
101
+ });
102
+ export const farmUpdateSummaryResourceSchema = createJsonApiResourceSchema('farm-update-summaries', farmUpdateSummaryAttributesSchema);
103
+ export const farmUpdateSummaryResponseSchema = jsonApiSingleResponseSchema(farmUpdateSummaryResourceSchema);
104
+ export const farmUpdateListFilterQuerySchema = z.object({
105
+ 'filter[hasPhotos]': z.coerce.boolean().optional(),
106
+ 'filter[mentionedUserId]': z.string().uuid().optional(),
107
+ 'filter[authorId]': z.string().uuid().optional(),
108
+ 'filter[kind]': z.enum(['report']).optional(),
109
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.15.6",
3
+ "version": "1.16.0",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",