@deepintel-ltd/farmpro-contracts 1.16.15 → 1.18.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.
Files changed (47) hide show
  1. package/dist/index.d.ts +4 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +3 -0
  4. package/dist/routes/accounting.routes.d.ts +13861 -0
  5. package/dist/routes/accounting.routes.d.ts.map +1 -0
  6. package/dist/routes/accounting.routes.js +448 -0
  7. package/dist/routes/commodity-deals.routes.d.ts +48 -48
  8. package/dist/routes/farms.routes.d.ts +523 -70
  9. package/dist/routes/farms.routes.d.ts.map +1 -1
  10. package/dist/routes/field-activities.routes.d.ts +32 -32
  11. package/dist/routes/finance.routes.d.ts +235 -38
  12. package/dist/routes/finance.routes.d.ts.map +1 -1
  13. package/dist/routes/index.d.ts +3 -0
  14. package/dist/routes/index.d.ts.map +1 -1
  15. package/dist/routes/index.js +2 -0
  16. package/dist/routes/live-monitor.routes.d.ts +4 -4
  17. package/dist/routes/monitoring-visualization.routes.d.ts +16 -10
  18. package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
  19. package/dist/routes/payments.routes.d.ts +22 -22
  20. package/dist/routes/staff.routes.d.ts +36 -36
  21. package/dist/routes/subscriptions.routes.d.ts +52 -16
  22. package/dist/routes/subscriptions.routes.d.ts.map +1 -1
  23. package/dist/routes/subscriptions.routes.js +2 -1
  24. package/dist/schemas/accounting.schemas.d.ts +6002 -0
  25. package/dist/schemas/accounting.schemas.d.ts.map +1 -0
  26. package/dist/schemas/accounting.schemas.js +341 -0
  27. package/dist/schemas/commodity-deals.schemas.d.ts +24 -24
  28. package/dist/schemas/farms.schemas.d.ts +610 -84
  29. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  30. package/dist/schemas/farms.schemas.js +25 -4
  31. package/dist/schemas/field-activities.schemas.d.ts +28 -28
  32. package/dist/schemas/finance.schemas.d.ts +304 -46
  33. package/dist/schemas/finance.schemas.d.ts.map +1 -1
  34. package/dist/schemas/finance.schemas.js +23 -9
  35. package/dist/schemas/live-monitor.schemas.d.ts +6 -6
  36. package/dist/schemas/locale.schemas.d.ts +98 -0
  37. package/dist/schemas/locale.schemas.d.ts.map +1 -0
  38. package/dist/schemas/locale.schemas.js +55 -0
  39. package/dist/schemas/monitoring-visualization.schemas.d.ts +43 -12
  40. package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
  41. package/dist/schemas/monitoring-visualization.schemas.js +5 -1
  42. package/dist/schemas/payments.schemas.d.ts +22 -22
  43. package/dist/schemas/staff.schemas.d.ts +30 -30
  44. package/dist/schemas/subscriptions.schemas.d.ts +77 -13
  45. package/dist/schemas/subscriptions.schemas.d.ts.map +1 -1
  46. package/dist/schemas/subscriptions.schemas.js +11 -10
  47. package/package.json +1 -1
@@ -1737,9 +1737,9 @@ export declare const staffRouter: {
1737
1737
  name: string;
1738
1738
  currency: "NGN" | "USD";
1739
1739
  notes: string | null;
1740
+ isActive: boolean;
1740
1741
  payType: "monthly" | "daily" | "piece";
1741
1742
  defaultAmount: number | null;
1742
- isActive: boolean;
1743
1743
  teamMemberId: string | null;
1744
1744
  }, {
1745
1745
  title: string | null;
@@ -1748,9 +1748,9 @@ export declare const staffRouter: {
1748
1748
  name: string;
1749
1749
  currency: "NGN" | "USD";
1750
1750
  notes: string | null;
1751
+ isActive: boolean;
1751
1752
  payType: "monthly" | "daily" | "piece";
1752
1753
  defaultAmount: number | null;
1753
- isActive: boolean;
1754
1754
  teamMemberId: string | null;
1755
1755
  }>;
1756
1756
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1766,9 +1766,9 @@ export declare const staffRouter: {
1766
1766
  name: string;
1767
1767
  currency: "NGN" | "USD";
1768
1768
  notes: string | null;
1769
+ isActive: boolean;
1769
1770
  payType: "monthly" | "daily" | "piece";
1770
1771
  defaultAmount: number | null;
1771
- isActive: boolean;
1772
1772
  teamMemberId: string | null;
1773
1773
  };
1774
1774
  relationships?: Record<string, unknown> | undefined;
@@ -1784,9 +1784,9 @@ export declare const staffRouter: {
1784
1784
  name: string;
1785
1785
  currency: "NGN" | "USD";
1786
1786
  notes: string | null;
1787
+ isActive: boolean;
1787
1788
  payType: "monthly" | "daily" | "piece";
1788
1789
  defaultAmount: number | null;
1789
- isActive: boolean;
1790
1790
  teamMemberId: string | null;
1791
1791
  };
1792
1792
  relationships?: Record<string, unknown> | undefined;
@@ -1828,9 +1828,9 @@ export declare const staffRouter: {
1828
1828
  name: string;
1829
1829
  currency: "NGN" | "USD";
1830
1830
  notes: string | null;
1831
+ isActive: boolean;
1831
1832
  payType: "monthly" | "daily" | "piece";
1832
1833
  defaultAmount: number | null;
1833
- isActive: boolean;
1834
1834
  teamMemberId: string | null;
1835
1835
  };
1836
1836
  relationships?: Record<string, unknown> | undefined;
@@ -1858,9 +1858,9 @@ export declare const staffRouter: {
1858
1858
  name: string;
1859
1859
  currency: "NGN" | "USD";
1860
1860
  notes: string | null;
1861
+ isActive: boolean;
1861
1862
  payType: "monthly" | "daily" | "piece";
1862
1863
  defaultAmount: number | null;
1863
- isActive: boolean;
1864
1864
  teamMemberId: string | null;
1865
1865
  };
1866
1866
  relationships?: Record<string, unknown> | undefined;
@@ -2086,8 +2086,8 @@ export declare const staffRouter: {
2086
2086
  }, "strip", z.ZodTypeAny, {
2087
2087
  name: string;
2088
2088
  currency: "NGN" | "USD";
2089
- payType: "monthly" | "daily" | "piece";
2090
2089
  isActive: boolean;
2090
+ payType: "monthly" | "daily" | "piece";
2091
2091
  title?: string | undefined;
2092
2092
  notes?: string | undefined;
2093
2093
  defaultAmount?: number | undefined;
@@ -2097,9 +2097,9 @@ export declare const staffRouter: {
2097
2097
  title?: string | undefined;
2098
2098
  currency?: "NGN" | "USD" | undefined;
2099
2099
  notes?: string | undefined;
2100
+ isActive?: boolean | undefined;
2100
2101
  payType?: "monthly" | "daily" | "piece" | undefined;
2101
2102
  defaultAmount?: number | undefined;
2102
- isActive?: boolean | undefined;
2103
2103
  teamMemberId?: string | undefined;
2104
2104
  }>;
2105
2105
  }, "strip", z.ZodTypeAny, {
@@ -2107,8 +2107,8 @@ export declare const staffRouter: {
2107
2107
  attributes: {
2108
2108
  name: string;
2109
2109
  currency: "NGN" | "USD";
2110
- payType: "monthly" | "daily" | "piece";
2111
2110
  isActive: boolean;
2111
+ payType: "monthly" | "daily" | "piece";
2112
2112
  title?: string | undefined;
2113
2113
  notes?: string | undefined;
2114
2114
  defaultAmount?: number | undefined;
@@ -2121,9 +2121,9 @@ export declare const staffRouter: {
2121
2121
  title?: string | undefined;
2122
2122
  currency?: "NGN" | "USD" | undefined;
2123
2123
  notes?: string | undefined;
2124
+ isActive?: boolean | undefined;
2124
2125
  payType?: "monthly" | "daily" | "piece" | undefined;
2125
2126
  defaultAmount?: number | undefined;
2126
- isActive?: boolean | undefined;
2127
2127
  teamMemberId?: string | undefined;
2128
2128
  };
2129
2129
  }>;
@@ -2133,8 +2133,8 @@ export declare const staffRouter: {
2133
2133
  attributes: {
2134
2134
  name: string;
2135
2135
  currency: "NGN" | "USD";
2136
- payType: "monthly" | "daily" | "piece";
2137
2136
  isActive: boolean;
2137
+ payType: "monthly" | "daily" | "piece";
2138
2138
  title?: string | undefined;
2139
2139
  notes?: string | undefined;
2140
2140
  defaultAmount?: number | undefined;
@@ -2149,9 +2149,9 @@ export declare const staffRouter: {
2149
2149
  title?: string | undefined;
2150
2150
  currency?: "NGN" | "USD" | undefined;
2151
2151
  notes?: string | undefined;
2152
+ isActive?: boolean | undefined;
2152
2153
  payType?: "monthly" | "daily" | "piece" | undefined;
2153
2154
  defaultAmount?: number | undefined;
2154
- isActive?: boolean | undefined;
2155
2155
  teamMemberId?: string | undefined;
2156
2156
  };
2157
2157
  };
@@ -2181,9 +2181,9 @@ export declare const staffRouter: {
2181
2181
  name: string;
2182
2182
  currency: "NGN" | "USD";
2183
2183
  notes: string | null;
2184
+ isActive: boolean;
2184
2185
  payType: "monthly" | "daily" | "piece";
2185
2186
  defaultAmount: number | null;
2186
- isActive: boolean;
2187
2187
  teamMemberId: string | null;
2188
2188
  }, {
2189
2189
  title: string | null;
@@ -2192,9 +2192,9 @@ export declare const staffRouter: {
2192
2192
  name: string;
2193
2193
  currency: "NGN" | "USD";
2194
2194
  notes: string | null;
2195
+ isActive: boolean;
2195
2196
  payType: "monthly" | "daily" | "piece";
2196
2197
  defaultAmount: number | null;
2197
- isActive: boolean;
2198
2198
  teamMemberId: string | null;
2199
2199
  }>;
2200
2200
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -2210,9 +2210,9 @@ export declare const staffRouter: {
2210
2210
  name: string;
2211
2211
  currency: "NGN" | "USD";
2212
2212
  notes: string | null;
2213
+ isActive: boolean;
2213
2214
  payType: "monthly" | "daily" | "piece";
2214
2215
  defaultAmount: number | null;
2215
- isActive: boolean;
2216
2216
  teamMemberId: string | null;
2217
2217
  };
2218
2218
  relationships?: Record<string, unknown> | undefined;
@@ -2228,9 +2228,9 @@ export declare const staffRouter: {
2228
2228
  name: string;
2229
2229
  currency: "NGN" | "USD";
2230
2230
  notes: string | null;
2231
+ isActive: boolean;
2231
2232
  payType: "monthly" | "daily" | "piece";
2232
2233
  defaultAmount: number | null;
2233
- isActive: boolean;
2234
2234
  teamMemberId: string | null;
2235
2235
  };
2236
2236
  relationships?: Record<string, unknown> | undefined;
@@ -2272,9 +2272,9 @@ export declare const staffRouter: {
2272
2272
  name: string;
2273
2273
  currency: "NGN" | "USD";
2274
2274
  notes: string | null;
2275
+ isActive: boolean;
2275
2276
  payType: "monthly" | "daily" | "piece";
2276
2277
  defaultAmount: number | null;
2277
- isActive: boolean;
2278
2278
  teamMemberId: string | null;
2279
2279
  };
2280
2280
  relationships?: Record<string, unknown> | undefined;
@@ -2302,9 +2302,9 @@ export declare const staffRouter: {
2302
2302
  name: string;
2303
2303
  currency: "NGN" | "USD";
2304
2304
  notes: string | null;
2305
+ isActive: boolean;
2305
2306
  payType: "monthly" | "daily" | "piece";
2306
2307
  defaultAmount: number | null;
2307
- isActive: boolean;
2308
2308
  teamMemberId: string | null;
2309
2309
  };
2310
2310
  relationships?: Record<string, unknown> | undefined;
@@ -2722,9 +2722,9 @@ export declare const staffRouter: {
2722
2722
  name: string;
2723
2723
  currency: "NGN" | "USD";
2724
2724
  notes: string | null;
2725
+ isActive: boolean;
2725
2726
  payType: "monthly" | "daily" | "piece";
2726
2727
  defaultAmount: number | null;
2727
- isActive: boolean;
2728
2728
  teamMemberId: string | null;
2729
2729
  }, {
2730
2730
  title: string | null;
@@ -2733,9 +2733,9 @@ export declare const staffRouter: {
2733
2733
  name: string;
2734
2734
  currency: "NGN" | "USD";
2735
2735
  notes: string | null;
2736
+ isActive: boolean;
2736
2737
  payType: "monthly" | "daily" | "piece";
2737
2738
  defaultAmount: number | null;
2738
- isActive: boolean;
2739
2739
  teamMemberId: string | null;
2740
2740
  }>;
2741
2741
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -2751,9 +2751,9 @@ export declare const staffRouter: {
2751
2751
  name: string;
2752
2752
  currency: "NGN" | "USD";
2753
2753
  notes: string | null;
2754
+ isActive: boolean;
2754
2755
  payType: "monthly" | "daily" | "piece";
2755
2756
  defaultAmount: number | null;
2756
- isActive: boolean;
2757
2757
  teamMemberId: string | null;
2758
2758
  };
2759
2759
  relationships?: Record<string, unknown> | undefined;
@@ -2769,9 +2769,9 @@ export declare const staffRouter: {
2769
2769
  name: string;
2770
2770
  currency: "NGN" | "USD";
2771
2771
  notes: string | null;
2772
+ isActive: boolean;
2772
2773
  payType: "monthly" | "daily" | "piece";
2773
2774
  defaultAmount: number | null;
2774
- isActive: boolean;
2775
2775
  teamMemberId: string | null;
2776
2776
  };
2777
2777
  relationships?: Record<string, unknown> | undefined;
@@ -2813,9 +2813,9 @@ export declare const staffRouter: {
2813
2813
  name: string;
2814
2814
  currency: "NGN" | "USD";
2815
2815
  notes: string | null;
2816
+ isActive: boolean;
2816
2817
  payType: "monthly" | "daily" | "piece";
2817
2818
  defaultAmount: number | null;
2818
- isActive: boolean;
2819
2819
  teamMemberId: string | null;
2820
2820
  };
2821
2821
  relationships?: Record<string, unknown> | undefined;
@@ -2843,9 +2843,9 @@ export declare const staffRouter: {
2843
2843
  name: string;
2844
2844
  currency: "NGN" | "USD";
2845
2845
  notes: string | null;
2846
+ isActive: boolean;
2846
2847
  payType: "monthly" | "daily" | "piece";
2847
2848
  defaultAmount: number | null;
2848
- isActive: boolean;
2849
2849
  teamMemberId: string | null;
2850
2850
  };
2851
2851
  relationships?: Record<string, unknown> | undefined;
@@ -3076,18 +3076,18 @@ export declare const staffRouter: {
3076
3076
  name?: string | undefined;
3077
3077
  currency?: "NGN" | "USD" | undefined;
3078
3078
  notes?: string | null | undefined;
3079
+ isActive?: boolean | undefined;
3079
3080
  payType?: "monthly" | "daily" | "piece" | undefined;
3080
3081
  defaultAmount?: number | null | undefined;
3081
- isActive?: boolean | undefined;
3082
3082
  teamMemberId?: string | null | undefined;
3083
3083
  }, {
3084
3084
  title?: string | null | undefined;
3085
3085
  name?: string | undefined;
3086
3086
  currency?: "NGN" | "USD" | undefined;
3087
3087
  notes?: string | null | undefined;
3088
+ isActive?: boolean | undefined;
3088
3089
  payType?: "monthly" | "daily" | "piece" | undefined;
3089
3090
  defaultAmount?: number | null | undefined;
3090
- isActive?: boolean | undefined;
3091
3091
  teamMemberId?: string | null | undefined;
3092
3092
  }>;
3093
3093
  }, "strip", z.ZodTypeAny, {
@@ -3098,9 +3098,9 @@ export declare const staffRouter: {
3098
3098
  name?: string | undefined;
3099
3099
  currency?: "NGN" | "USD" | undefined;
3100
3100
  notes?: string | null | undefined;
3101
+ isActive?: boolean | undefined;
3101
3102
  payType?: "monthly" | "daily" | "piece" | undefined;
3102
3103
  defaultAmount?: number | null | undefined;
3103
- isActive?: boolean | undefined;
3104
3104
  teamMemberId?: string | null | undefined;
3105
3105
  };
3106
3106
  }, {
@@ -3111,9 +3111,9 @@ export declare const staffRouter: {
3111
3111
  name?: string | undefined;
3112
3112
  currency?: "NGN" | "USD" | undefined;
3113
3113
  notes?: string | null | undefined;
3114
+ isActive?: boolean | undefined;
3114
3115
  payType?: "monthly" | "daily" | "piece" | undefined;
3115
3116
  defaultAmount?: number | null | undefined;
3116
- isActive?: boolean | undefined;
3117
3117
  teamMemberId?: string | null | undefined;
3118
3118
  };
3119
3119
  }>;
@@ -3126,9 +3126,9 @@ export declare const staffRouter: {
3126
3126
  name?: string | undefined;
3127
3127
  currency?: "NGN" | "USD" | undefined;
3128
3128
  notes?: string | null | undefined;
3129
+ isActive?: boolean | undefined;
3129
3130
  payType?: "monthly" | "daily" | "piece" | undefined;
3130
3131
  defaultAmount?: number | null | undefined;
3131
- isActive?: boolean | undefined;
3132
3132
  teamMemberId?: string | null | undefined;
3133
3133
  };
3134
3134
  };
@@ -3141,9 +3141,9 @@ export declare const staffRouter: {
3141
3141
  name?: string | undefined;
3142
3142
  currency?: "NGN" | "USD" | undefined;
3143
3143
  notes?: string | null | undefined;
3144
+ isActive?: boolean | undefined;
3144
3145
  payType?: "monthly" | "daily" | "piece" | undefined;
3145
3146
  defaultAmount?: number | null | undefined;
3146
- isActive?: boolean | undefined;
3147
3147
  teamMemberId?: string | null | undefined;
3148
3148
  };
3149
3149
  };
@@ -3173,9 +3173,9 @@ export declare const staffRouter: {
3173
3173
  name: string;
3174
3174
  currency: "NGN" | "USD";
3175
3175
  notes: string | null;
3176
+ isActive: boolean;
3176
3177
  payType: "monthly" | "daily" | "piece";
3177
3178
  defaultAmount: number | null;
3178
- isActive: boolean;
3179
3179
  teamMemberId: string | null;
3180
3180
  }, {
3181
3181
  title: string | null;
@@ -3184,9 +3184,9 @@ export declare const staffRouter: {
3184
3184
  name: string;
3185
3185
  currency: "NGN" | "USD";
3186
3186
  notes: string | null;
3187
+ isActive: boolean;
3187
3188
  payType: "monthly" | "daily" | "piece";
3188
3189
  defaultAmount: number | null;
3189
- isActive: boolean;
3190
3190
  teamMemberId: string | null;
3191
3191
  }>;
3192
3192
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -3202,9 +3202,9 @@ export declare const staffRouter: {
3202
3202
  name: string;
3203
3203
  currency: "NGN" | "USD";
3204
3204
  notes: string | null;
3205
+ isActive: boolean;
3205
3206
  payType: "monthly" | "daily" | "piece";
3206
3207
  defaultAmount: number | null;
3207
- isActive: boolean;
3208
3208
  teamMemberId: string | null;
3209
3209
  };
3210
3210
  relationships?: Record<string, unknown> | undefined;
@@ -3220,9 +3220,9 @@ export declare const staffRouter: {
3220
3220
  name: string;
3221
3221
  currency: "NGN" | "USD";
3222
3222
  notes: string | null;
3223
+ isActive: boolean;
3223
3224
  payType: "monthly" | "daily" | "piece";
3224
3225
  defaultAmount: number | null;
3225
- isActive: boolean;
3226
3226
  teamMemberId: string | null;
3227
3227
  };
3228
3228
  relationships?: Record<string, unknown> | undefined;
@@ -3264,9 +3264,9 @@ export declare const staffRouter: {
3264
3264
  name: string;
3265
3265
  currency: "NGN" | "USD";
3266
3266
  notes: string | null;
3267
+ isActive: boolean;
3267
3268
  payType: "monthly" | "daily" | "piece";
3268
3269
  defaultAmount: number | null;
3269
- isActive: boolean;
3270
3270
  teamMemberId: string | null;
3271
3271
  };
3272
3272
  relationships?: Record<string, unknown> | undefined;
@@ -3294,9 +3294,9 @@ export declare const staffRouter: {
3294
3294
  name: string;
3295
3295
  currency: "NGN" | "USD";
3296
3296
  notes: string | null;
3297
+ isActive: boolean;
3297
3298
  payType: "monthly" | "daily" | "piece";
3298
3299
  defaultAmount: number | null;
3299
- isActive: boolean;
3300
3300
  teamMemberId: string | null;
3301
3301
  };
3302
3302
  relationships?: Record<string, unknown> | undefined;
@@ -2,16 +2,16 @@ import { z } from 'zod';
2
2
  export declare const subscriptionsRouter: {
3
3
  getAvailablePlans: {
4
4
  query: z.ZodObject<{
5
- currency: z.ZodOptional<z.ZodEnum<["NGN", "USD"]>>;
5
+ currency: z.ZodOptional<z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>>;
6
6
  country: z.ZodOptional<z.ZodString>;
7
7
  farmId: z.ZodOptional<z.ZodString>;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  farmId?: string | undefined;
10
- currency?: "NGN" | "USD" | undefined;
10
+ currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
11
11
  country?: string | undefined;
12
12
  }, {
13
13
  farmId?: string | undefined;
14
- currency?: "NGN" | "USD" | undefined;
14
+ currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
15
15
  country?: string | undefined;
16
16
  }>;
17
17
  summary: "Get available subscription plans";
@@ -28,22 +28,34 @@ export declare const subscriptionsRouter: {
28
28
  monthly: z.ZodNullable<z.ZodObject<{
29
29
  ngn: z.ZodNullable<z.ZodNumber>;
30
30
  usd: z.ZodNullable<z.ZodNumber>;
31
+ ghs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
+ kes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
33
  }, "strip", z.ZodTypeAny, {
32
34
  ngn: number | null;
33
35
  usd: number | null;
36
+ ghs?: number | null | undefined;
37
+ kes?: number | null | undefined;
34
38
  }, {
35
39
  ngn: number | null;
36
40
  usd: number | null;
41
+ ghs?: number | null | undefined;
42
+ kes?: number | null | undefined;
37
43
  }>>;
38
44
  annual: z.ZodNullable<z.ZodObject<{
39
45
  ngn: z.ZodNullable<z.ZodNumber>;
40
46
  usd: z.ZodNullable<z.ZodNumber>;
47
+ ghs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
48
+ kes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
41
49
  }, "strip", z.ZodTypeAny, {
42
50
  ngn: number | null;
43
51
  usd: number | null;
52
+ ghs?: number | null | undefined;
53
+ kes?: number | null | undefined;
44
54
  }, {
45
55
  ngn: number | null;
46
56
  usd: number | null;
57
+ ghs?: number | null | undefined;
58
+ kes?: number | null | undefined;
47
59
  }>>;
48
60
  custom: z.ZodBoolean;
49
61
  }, "strip", z.ZodTypeAny, {
@@ -51,20 +63,28 @@ export declare const subscriptionsRouter: {
51
63
  monthly: {
52
64
  ngn: number | null;
53
65
  usd: number | null;
66
+ ghs?: number | null | undefined;
67
+ kes?: number | null | undefined;
54
68
  } | null;
55
69
  annual: {
56
70
  ngn: number | null;
57
71
  usd: number | null;
72
+ ghs?: number | null | undefined;
73
+ kes?: number | null | undefined;
58
74
  } | null;
59
75
  }, {
60
76
  custom: boolean;
61
77
  monthly: {
62
78
  ngn: number | null;
63
79
  usd: number | null;
80
+ ghs?: number | null | undefined;
81
+ kes?: number | null | undefined;
64
82
  } | null;
65
83
  annual: {
66
84
  ngn: number | null;
67
85
  usd: number | null;
86
+ ghs?: number | null | undefined;
87
+ kes?: number | null | undefined;
68
88
  } | null;
69
89
  }>;
70
90
  features: z.ZodObject<{
@@ -135,10 +155,14 @@ export declare const subscriptionsRouter: {
135
155
  monthly: {
136
156
  ngn: number | null;
137
157
  usd: number | null;
158
+ ghs?: number | null | undefined;
159
+ kes?: number | null | undefined;
138
160
  } | null;
139
161
  annual: {
140
162
  ngn: number | null;
141
163
  usd: number | null;
164
+ ghs?: number | null | undefined;
165
+ kes?: number | null | undefined;
142
166
  } | null;
143
167
  };
144
168
  popular?: boolean | undefined;
@@ -166,10 +190,14 @@ export declare const subscriptionsRouter: {
166
190
  monthly: {
167
191
  ngn: number | null;
168
192
  usd: number | null;
193
+ ghs?: number | null | undefined;
194
+ kes?: number | null | undefined;
169
195
  } | null;
170
196
  annual: {
171
197
  ngn: number | null;
172
198
  usd: number | null;
199
+ ghs?: number | null | undefined;
200
+ kes?: number | null | undefined;
173
201
  } | null;
174
202
  };
175
203
  popular?: boolean | undefined;
@@ -178,27 +206,27 @@ export declare const subscriptionsRouter: {
178
206
  detectedLocation: z.ZodObject<{
179
207
  country: z.ZodString;
180
208
  countryName: z.ZodString;
181
- currency: z.ZodEnum<["NGN", "USD"]>;
209
+ currency: z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>;
182
210
  }, "strip", z.ZodTypeAny, {
183
- currency: "NGN" | "USD";
184
- country: string;
185
211
  countryName: string;
186
- }, {
187
- currency: "NGN" | "USD";
212
+ currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
188
213
  country: string;
214
+ }, {
189
215
  countryName: string;
216
+ currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
217
+ country: string;
190
218
  }>;
191
219
  }, "strip", z.ZodTypeAny, {
192
220
  detectedLocation: {
193
- currency: "NGN" | "USD";
194
- country: string;
195
221
  countryName: string;
222
+ currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
223
+ country: string;
196
224
  };
197
225
  }, {
198
226
  detectedLocation: {
199
- currency: "NGN" | "USD";
200
- country: string;
201
227
  countryName: string;
228
+ currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
229
+ country: string;
202
230
  };
203
231
  }>>;
204
232
  }, "strip", z.ZodTypeAny, {
@@ -226,19 +254,23 @@ export declare const subscriptionsRouter: {
226
254
  monthly: {
227
255
  ngn: number | null;
228
256
  usd: number | null;
257
+ ghs?: number | null | undefined;
258
+ kes?: number | null | undefined;
229
259
  } | null;
230
260
  annual: {
231
261
  ngn: number | null;
232
262
  usd: number | null;
263
+ ghs?: number | null | undefined;
264
+ kes?: number | null | undefined;
233
265
  } | null;
234
266
  };
235
267
  popular?: boolean | undefined;
236
268
  }[];
237
269
  meta?: {
238
270
  detectedLocation: {
239
- currency: "NGN" | "USD";
240
- country: string;
241
271
  countryName: string;
272
+ currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
273
+ country: string;
242
274
  };
243
275
  } | undefined;
244
276
  }, {
@@ -266,19 +298,23 @@ export declare const subscriptionsRouter: {
266
298
  monthly: {
267
299
  ngn: number | null;
268
300
  usd: number | null;
301
+ ghs?: number | null | undefined;
302
+ kes?: number | null | undefined;
269
303
  } | null;
270
304
  annual: {
271
305
  ngn: number | null;
272
306
  usd: number | null;
307
+ ghs?: number | null | undefined;
308
+ kes?: number | null | undefined;
273
309
  } | null;
274
310
  };
275
311
  popular?: boolean | undefined;
276
312
  }[];
277
313
  meta?: {
278
314
  detectedLocation: {
279
- currency: "NGN" | "USD";
280
- country: string;
281
315
  countryName: string;
316
+ currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
317
+ country: string;
282
318
  };
283
319
  } | undefined;
284
320
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions.routes.d.ts","sourceRoot":"","sources":["../../src/routes/subscriptions.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;CAmO9B,CAAC"}
@@ -2,6 +2,7 @@ import { initContract } from '@ts-rest/core';
2
2
  import { z } from 'zod';
3
3
  import { subscriptionResponseSchema, subscriptionListResponseSchema, upgradeSubscriptionAttributesSchema, usageTrackingListResponseSchema, tierLimitsResponseSchema, currentUsageResponseSchema, availablePlansResponseSchema, createSubscriptionPaymentLinkAttributesSchema, subscriptionPaymentLinkResponseSchema, } from '../schemas/subscriptions.schemas';
4
4
  import { jsonApiErrorResponseSchema, jsonApiPaginationQuerySchema, } from '../schemas/common.schemas';
5
+ import { iso4217CurrencySchema } from '../schemas/locale.schemas';
5
6
  const c = initContract();
6
7
  export const subscriptionsRouter = c.router({
7
8
  // Get all available subscription plans (public endpoint for landing page)
@@ -9,7 +10,7 @@ export const subscriptionsRouter = c.router({
9
10
  method: 'GET',
10
11
  path: '/subscriptions/plans',
11
12
  query: z.object({
12
- 'currency': z.enum(['NGN', 'USD']).optional(),
13
+ 'currency': iso4217CurrencySchema.optional(),
13
14
  'country': z.string().optional(), // ISO 3166-1 alpha-2 country code (e.g., 'NG', 'US')
14
15
  'farmId': z.string().uuid().optional(), // Optional: use farm location for detection
15
16
  }),