harvester_sdk 1.0.22 → 1.0.23

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
@@ -1839,6 +1839,50 @@ export declare const zodDataSchemaWithValidation: z.ZodEffects<z.ZodObject<{
1839
1839
  processing_status?: "raw" | "processed" | "error" | undefined;
1840
1840
  processing_errors?: string | undefined;
1841
1841
  }>;
1842
+ export declare const zodDashboardStatsSchema: z.ZodObject<{
1843
+ total_active_sources: z.ZodOptional<z.ZodNumber>;
1844
+ total_discovered_sources: z.ZodOptional<z.ZodNumber>;
1845
+ total_sources: z.ZodOptional<z.ZodNumber>;
1846
+ total_groups: z.ZodOptional<z.ZodNumber>;
1847
+ regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1848
+ region_id: z.ZodOptional<z.ZodString>;
1849
+ region_name: z.ZodOptional<z.ZodString>;
1850
+ active_sources: z.ZodOptional<z.ZodNumber>;
1851
+ total_sources: z.ZodOptional<z.ZodNumber>;
1852
+ }, "strip", z.ZodTypeAny, {
1853
+ region_id?: string | undefined;
1854
+ total_sources?: number | undefined;
1855
+ region_name?: string | undefined;
1856
+ active_sources?: number | undefined;
1857
+ }, {
1858
+ region_id?: string | undefined;
1859
+ total_sources?: number | undefined;
1860
+ region_name?: string | undefined;
1861
+ active_sources?: number | undefined;
1862
+ }>, "many">>;
1863
+ }, "strip", z.ZodTypeAny, {
1864
+ total_active_sources?: number | undefined;
1865
+ total_discovered_sources?: number | undefined;
1866
+ total_sources?: number | undefined;
1867
+ total_groups?: number | undefined;
1868
+ regions?: {
1869
+ region_id?: string | undefined;
1870
+ total_sources?: number | undefined;
1871
+ region_name?: string | undefined;
1872
+ active_sources?: number | undefined;
1873
+ }[] | undefined;
1874
+ }, {
1875
+ total_active_sources?: number | undefined;
1876
+ total_discovered_sources?: number | undefined;
1877
+ total_sources?: number | undefined;
1878
+ total_groups?: number | undefined;
1879
+ regions?: {
1880
+ region_id?: string | undefined;
1881
+ total_sources?: number | undefined;
1882
+ region_name?: string | undefined;
1883
+ active_sources?: number | undefined;
1884
+ }[] | undefined;
1885
+ }>;
1842
1886
  export type RegionType = z.infer<typeof zodRegionSchema>;
1843
1887
  export type SourceGroupType = z.infer<typeof zodSourceGroupSchema>;
1844
1888
  export type SourceType = z.infer<typeof zodSourceSchema>;
@@ -1848,6 +1892,7 @@ export type AuthorType = z.infer<typeof authorSchema>;
1848
1892
  export type RepliesInfoType = z.infer<typeof repliesInfoSchema>;
1849
1893
  export type GeoType = z.infer<typeof zodGeoSchema>;
1850
1894
  export type GeoSelectionType = z.infer<typeof zodGeoSelectionSchema>;
1895
+ export type DashboardStatsType = z.infer<typeof zodDashboardStatsSchema>;
1851
1896
  export type TelegramMetadataType = z.infer<typeof telegramMetadataSchema>;
1852
1897
  export type FacebookMetadataType = z.infer<typeof facebookMetadataSchema>;
1853
1898
  export type InstagramMetadataType = z.infer<typeof instagramMetadataSchema>;
package/dist/types.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zodDataSchemaWithValidation = exports.zodDataSchema = exports.authorSchema = exports.repliesInfoSchema = exports.mediaItemSchema = exports.websiteMetadataSchema = exports.tiktokMetadataSchema = exports.instagramMetadataSchema = exports.facebookMetadataSchema = exports.telegramMetadataSchema = exports.zodGeoSelectionSchema = exports.zodGeoSchema = exports.zodSourceSchema = exports.zodSourceGroupSchema = exports.zodRegionSchema = exports.generalStatusList = exports.sourceStatusList = exports.priorityLevels = exports.platformEntityMap = exports.entityTypesList = exports.platformsList = void 0;
3
+ exports.zodDashboardStatsSchema = exports.zodDataSchemaWithValidation = exports.zodDataSchema = exports.authorSchema = exports.repliesInfoSchema = exports.mediaItemSchema = exports.websiteMetadataSchema = exports.tiktokMetadataSchema = exports.instagramMetadataSchema = exports.facebookMetadataSchema = exports.telegramMetadataSchema = exports.zodGeoSelectionSchema = exports.zodGeoSchema = exports.zodSourceSchema = exports.zodSourceGroupSchema = exports.zodRegionSchema = exports.generalStatusList = exports.sourceStatusList = exports.priorityLevels = exports.platformEntityMap = exports.entityTypesList = exports.platformsList = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.platformsList = [
6
6
  'telegram',
@@ -335,3 +335,17 @@ exports.zodDataSchemaWithValidation = exports.zodDataSchema.refine((data) => {
335
335
  message: 'data_id is required for non-website platforms',
336
336
  path: ['data_id'],
337
337
  });
338
+ exports.zodDashboardStatsSchema = zod_1.z.object({
339
+ total_active_sources: zod_1.z.number().optional(),
340
+ total_discovered_sources: zod_1.z.number().optional(),
341
+ total_sources: zod_1.z.number().optional(),
342
+ total_groups: zod_1.z.number().optional(),
343
+ regions: zod_1.z
344
+ .array(zod_1.z.object({
345
+ region_id: zod_1.z.string().optional(),
346
+ region_name: zod_1.z.string().optional(),
347
+ active_sources: zod_1.z.number().optional(),
348
+ total_sources: zod_1.z.number().optional(),
349
+ }))
350
+ .optional(),
351
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harvester_sdk",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
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
@@ -373,6 +373,23 @@ export const zodDataSchemaWithValidation = zodDataSchema.refine(
373
373
  }
374
374
  );
375
375
 
376
+ export const zodDashboardStatsSchema = z.object({
377
+ total_active_sources: z.number().optional(),
378
+ total_discovered_sources: z.number().optional(),
379
+ total_sources: z.number().optional(),
380
+ total_groups: z.number().optional(),
381
+ regions: z
382
+ .array(
383
+ z.object({
384
+ region_id: z.string().optional(),
385
+ region_name: z.string().optional(),
386
+ active_sources: z.number().optional(),
387
+ total_sources: z.number().optional(),
388
+ })
389
+ )
390
+ .optional(),
391
+ });
392
+
376
393
  export type RegionType = z.infer<typeof zodRegionSchema>;
377
394
  export type SourceGroupType = z.infer<typeof zodSourceGroupSchema>;
378
395
  export type SourceType = z.infer<typeof zodSourceSchema>;
@@ -382,6 +399,7 @@ export type AuthorType = z.infer<typeof authorSchema>;
382
399
  export type RepliesInfoType = z.infer<typeof repliesInfoSchema>;
383
400
  export type GeoType = z.infer<typeof zodGeoSchema>;
384
401
  export type GeoSelectionType = z.infer<typeof zodGeoSelectionSchema>;
402
+ export type DashboardStatsType = z.infer<typeof zodDashboardStatsSchema>;
385
403
 
386
404
  // Platform-specific metadata types
387
405
  export type TelegramMetadataType = z.infer<typeof telegramMetadataSchema>;