harvester_sdk 1.0.34 → 1.0.35

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.
package/dist/types.d.ts CHANGED
@@ -50,6 +50,7 @@ export declare const zodSourceGroupSchema: z.ZodObject<{
50
50
  updated_at: z.ZodOptional<z.ZodNumber>;
51
51
  notes: z.ZodOptional<z.ZodString>;
52
52
  status: z.ZodOptional<z.ZodEnum<["active", "inactive", "deleted"]>>;
53
+ active_sources: z.ZodOptional<z.ZodNumber>;
53
54
  }, "strip", z.ZodTypeAny, {
54
55
  name: string;
55
56
  platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch";
@@ -61,6 +62,7 @@ export declare const zodSourceGroupSchema: z.ZodObject<{
61
62
  description?: string | undefined;
62
63
  region_id?: string | undefined;
63
64
  max_active_sources?: number | undefined;
65
+ active_sources?: number | undefined;
64
66
  }, {
65
67
  name: string;
66
68
  platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch";
@@ -72,6 +74,7 @@ export declare const zodSourceGroupSchema: z.ZodObject<{
72
74
  description?: string | undefined;
73
75
  region_id?: string | undefined;
74
76
  max_active_sources?: number | undefined;
77
+ active_sources?: number | undefined;
75
78
  }>;
76
79
  export declare const zodSourceSchema: z.ZodObject<{
77
80
  _id: z.ZodOptional<z.ZodString>;
@@ -1851,14 +1854,14 @@ export declare const zodDashboardStatsSchema: z.ZodObject<{
1851
1854
  total_sources: z.ZodOptional<z.ZodNumber>;
1852
1855
  }, "strip", z.ZodTypeAny, {
1853
1856
  region_id?: string | undefined;
1857
+ active_sources?: number | undefined;
1854
1858
  total_sources?: number | undefined;
1855
1859
  region_name?: string | undefined;
1856
- active_sources?: number | undefined;
1857
1860
  }, {
1858
1861
  region_id?: string | undefined;
1862
+ active_sources?: number | undefined;
1859
1863
  total_sources?: number | undefined;
1860
1864
  region_name?: string | undefined;
1861
- active_sources?: number | undefined;
1862
1865
  }>, "many">>;
1863
1866
  }, "strip", z.ZodTypeAny, {
1864
1867
  total_active_sources?: number | undefined;
@@ -1867,9 +1870,9 @@ export declare const zodDashboardStatsSchema: z.ZodObject<{
1867
1870
  total_groups?: number | undefined;
1868
1871
  regions?: {
1869
1872
  region_id?: string | undefined;
1873
+ active_sources?: number | undefined;
1870
1874
  total_sources?: number | undefined;
1871
1875
  region_name?: string | undefined;
1872
- active_sources?: number | undefined;
1873
1876
  }[] | undefined;
1874
1877
  }, {
1875
1878
  total_active_sources?: number | undefined;
@@ -1878,9 +1881,9 @@ export declare const zodDashboardStatsSchema: z.ZodObject<{
1878
1881
  total_groups?: number | undefined;
1879
1882
  regions?: {
1880
1883
  region_id?: string | undefined;
1884
+ active_sources?: number | undefined;
1881
1885
  total_sources?: number | undefined;
1882
1886
  region_name?: string | undefined;
1883
- active_sources?: number | undefined;
1884
1887
  }[] | undefined;
1885
1888
  }>;
1886
1889
  export type RegionType = z.infer<typeof zodRegionSchema>;
package/dist/types.js CHANGED
@@ -71,6 +71,7 @@ exports.zodSourceGroupSchema = zod_1.z.object({
71
71
  updated_at: zod_1.z.number().optional(),
72
72
  notes: zod_1.z.string().optional(),
73
73
  status: zod_1.z.enum(exports.generalStatusList).optional(),
74
+ active_sources: zod_1.z.number().optional(), // e.g., current number of active sources
74
75
  });
75
76
  exports.zodSourceSchema = zod_1.z.object({
76
77
  _id: zod_1.z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harvester_sdk",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "SDK for interacting with the Harvester API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.ts CHANGED
@@ -76,6 +76,7 @@ export const zodSourceGroupSchema = z.object({
76
76
  updated_at: z.number().optional(), // last update date
77
77
  notes: z.string().optional(), // internal notes about the source group
78
78
  status: z.enum(generalStatusList).optional(),
79
+ active_sources: z.number().optional(), // e.g., current number of active sources
79
80
  });
80
81
 
81
82
  export const zodSourceSchema = z.object({
@@ -406,4 +407,4 @@ export type TelegramMetadataType = z.infer<typeof telegramMetadataSchema>;
406
407
  export type FacebookMetadataType = z.infer<typeof facebookMetadataSchema>;
407
408
  export type InstagramMetadataType = z.infer<typeof instagramMetadataSchema>;
408
409
  export type TiktokMetadataType = z.infer<typeof tiktokMetadataSchema>;
409
- export type WebsiteMetadataType = z.infer<typeof websiteMetadataSchema>;
410
+ export type WebsiteMetadataType = z.infer<typeof websiteMetadataSchema>;