@socotra/ec-react-schemas 2.30.0-next.7 → 2.31.0-next.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.
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { default as default_2 } from 'zod/v4';
2
2
  import { z } from 'zod/v4';
3
3
  import { z as z_2 } from 'zod';
4
4
 
5
- export declare type AbsoluteEnum = z.infer<typeof AbsoluteEnum>;
5
+ export declare type AbsoluteEnum = z.infer<typeof AbsoluteEnumSchema>;
6
6
 
7
7
  /** @deprecated - use AbsoluteEnumSchema instead */
8
8
  export declare const AbsoluteEnum: z.ZodEnum<{
@@ -7354,7 +7354,7 @@ export declare const MapStringMapZ: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodSt
7354
7354
 
7355
7355
  export declare const MapStringStringZ: z.ZodRecord<z.ZodString, z.ZodString>;
7356
7356
 
7357
- export declare type MatchEnum = z.infer<typeof MatchEnum>;
7357
+ export declare type MatchEnum = z.infer<typeof MatchEnumSchema>;
7358
7358
 
7359
7359
  /** @deprecated - use MatchEnumSchema instead */
7360
7360
  export declare const MatchEnum: z.ZodEnum<{
@@ -12315,18 +12315,32 @@ export declare const SearchByTokenQueryParamsSchema: z.ZodObject<{
12315
12315
  count: z.ZodOptional<z.ZodString>;
12316
12316
  }, z.core.$strip>;
12317
12317
 
12318
+ /** @deprecated - use SearchEntityTypeEnumSchema instead */
12318
12319
  export declare const SearchEntityTypeEnum: z.ZodEnum<{
12319
12320
  account: "account";
12320
12321
  policy: "policy";
12321
12322
  quote: "quote";
12322
12323
  payment: "payment";
12324
+ task: "task";
12323
12325
  fnol: "fnol";
12324
12326
  diary: "diary";
12325
12327
  unspecified: "unspecified";
12326
12328
  contact: "contact";
12327
12329
  }>;
12328
12330
 
12329
- export declare type SearchEntityTypeEnum = z.infer<typeof SearchEntityTypeEnum>;
12331
+ export declare type SearchEntityTypeEnum = z.infer<typeof SearchEntityTypeEnumSchema>;
12332
+
12333
+ export declare const SearchEntityTypeEnumSchema: z.ZodEnum<{
12334
+ account: "account";
12335
+ policy: "policy";
12336
+ quote: "quote";
12337
+ payment: "payment";
12338
+ task: "task";
12339
+ fnol: "fnol";
12340
+ diary: "diary";
12341
+ unspecified: "unspecified";
12342
+ contact: "contact";
12343
+ }>;
12330
12344
 
12331
12345
  export declare const SearchParamSchema: z.ZodObject<{
12332
12346
  tenantLocator: z.ZodUUID;
@@ -12337,12 +12351,15 @@ export declare const SearchQueryParamsSchema: z.ZodObject<{
12337
12351
  count: z.ZodOptional<z.ZodString>;
12338
12352
  }, z.core.$strip>;
12339
12353
 
12354
+ export declare type SearchRequest = z.infer<typeof SearchRequestSchema>;
12355
+
12340
12356
  export declare const SearchRequestSchema: z.ZodObject<{
12341
12357
  searchEntityType: z.ZodOptional<z.ZodEnum<{
12342
12358
  account: "account";
12343
12359
  policy: "policy";
12344
12360
  quote: "quote";
12345
12361
  payment: "payment";
12362
+ task: "task";
12346
12363
  fnol: "fnol";
12347
12364
  diary: "diary";
12348
12365
  unspecified: "unspecified";
@@ -12351,80 +12368,139 @@ export declare const SearchRequestSchema: z.ZodObject<{
12351
12368
  searchString: z.ZodOptional<z.ZodString>;
12352
12369
  searchTerms: z.ZodOptional<z.ZodArray<z.ZodObject<{
12353
12370
  searchTerm: z.ZodString;
12354
- fieldName: z.ZodString;
12355
- match: z.ZodEnum<{
12371
+ fieldName: z.ZodOptional<z.ZodString>;
12372
+ match: z.ZodOptional<z.ZodEnum<{
12356
12373
  exact: "exact";
12357
12374
  startsWith: "startsWith";
12358
12375
  fuzzy: "fuzzy";
12359
- }>;
12360
- absolute: z.ZodEnum<{
12376
+ }>>;
12377
+ absolute: z.ZodOptional<z.ZodEnum<{
12361
12378
  none: "none";
12362
12379
  excluded: "excluded";
12363
12380
  required: "required";
12364
- }>;
12381
+ }>>;
12365
12382
  }, z.core.$strip>>>;
12366
12383
  }, z.core.$strip>;
12367
12384
 
12385
+ /** @deprecated - use SearchRequest instead */
12368
12386
  export declare type SearchRequestType = z.infer<typeof SearchRequestSchema>;
12369
12387
 
12388
+ export declare type SearchResponse = z.infer<typeof SearchResponseSchema>;
12389
+
12370
12390
  export declare const SearchResponseSchema: z.ZodObject<{
12371
- count: z.ZodInt;
12372
- offset: z.ZodInt;
12373
- searchToken: z.ZodOptional<z.ZodString>;
12374
12391
  results: z.ZodArray<z.ZodObject<{
12375
- accountLocator: z.ZodOptional<z.ZodString>;
12376
- searchEntityLocator: z.ZodULID;
12377
- productName: z.ZodOptional<z.ZodString>;
12378
- score: z.ZodNumber;
12379
12392
  searchEntityType: z.ZodEnum<{
12380
12393
  account: "account";
12381
12394
  policy: "policy";
12382
12395
  quote: "quote";
12383
12396
  payment: "payment";
12397
+ task: "task";
12384
12398
  fnol: "fnol";
12385
12399
  diary: "diary";
12386
12400
  unspecified: "unspecified";
12387
12401
  contact: "contact";
12388
12402
  }>;
12389
- highlights: z.ZodArray<z.ZodString>;
12390
- searchSummary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12403
+ score: z.ZodNumber;
12404
+ searchEntityLocator: z.ZodString;
12405
+ productName: z.ZodOptional<z.ZodString>;
12406
+ accountLocator: z.ZodOptional<z.ZodString>;
12407
+ searchSummary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12408
+ highlights: z.ZodOptional<z.ZodArray<z.ZodString>>;
12391
12409
  }, z.core.$strip>>;
12410
+ searchToken: z.ZodString;
12411
+ offset: z.ZodInt;
12412
+ count: z.ZodInt;
12392
12413
  }, z.core.$strip>;
12393
12414
 
12415
+ export declare type SearchResult = z.infer<typeof SearchResultSchema>;
12416
+
12394
12417
  export declare const SearchResultSchema: z.ZodObject<{
12395
- accountLocator: z.ZodOptional<z.ZodString>;
12396
- searchEntityLocator: z.ZodULID;
12397
- productName: z.ZodOptional<z.ZodString>;
12398
- score: z.ZodNumber;
12399
12418
  searchEntityType: z.ZodEnum<{
12400
12419
  account: "account";
12401
12420
  policy: "policy";
12402
12421
  quote: "quote";
12403
12422
  payment: "payment";
12423
+ task: "task";
12404
12424
  fnol: "fnol";
12405
12425
  diary: "diary";
12406
12426
  unspecified: "unspecified";
12407
12427
  contact: "contact";
12408
12428
  }>;
12409
- highlights: z.ZodArray<z.ZodString>;
12410
- searchSummary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12429
+ score: z.ZodNumber;
12430
+ searchEntityLocator: z.ZodString;
12431
+ productName: z.ZodOptional<z.ZodString>;
12432
+ accountLocator: z.ZodOptional<z.ZodString>;
12433
+ searchSummary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12434
+ highlights: z.ZodOptional<z.ZodArray<z.ZodString>>;
12411
12435
  }, z.core.$strip>;
12412
12436
 
12437
+ /** @deprecated - use SearchResult instead */
12413
12438
  export declare type SearchResultType = z.infer<typeof SearchResultSchema>;
12414
12439
 
12440
+ export declare type SearchStatsResponse = z.infer<typeof SearchStatsResponseSchema>;
12441
+
12442
+ export declare const SearchStatsResponseSchema: z.ZodObject<{
12443
+ searchToken: z.ZodString;
12444
+ results: z.ZodOptional<z.ZodArray<z.ZodObject<{
12445
+ searchEntityType: z.ZodEnum<{
12446
+ account: "account";
12447
+ policy: "policy";
12448
+ quote: "quote";
12449
+ payment: "payment";
12450
+ task: "task";
12451
+ fnol: "fnol";
12452
+ diary: "diary";
12453
+ unspecified: "unspecified";
12454
+ contact: "contact";
12455
+ }>;
12456
+ recordCount: z.ZodNumber;
12457
+ }, z.core.$strip>>>;
12458
+ }, z.core.$strip>;
12459
+
12460
+ export declare type SearchStatsResult = z.infer<typeof SearchStatsResultSchema>;
12461
+
12462
+ export declare const SearchStatsResultSchema: z.ZodObject<{
12463
+ searchEntityType: z.ZodEnum<{
12464
+ account: "account";
12465
+ policy: "policy";
12466
+ quote: "quote";
12467
+ payment: "payment";
12468
+ task: "task";
12469
+ fnol: "fnol";
12470
+ diary: "diary";
12471
+ unspecified: "unspecified";
12472
+ contact: "contact";
12473
+ }>;
12474
+ recordCount: z.ZodNumber;
12475
+ }, z.core.$strip>;
12476
+
12477
+ export declare type SearchTasksRequestBff = z.infer<typeof SearchTasksRequestBffSchema>;
12478
+
12479
+ export declare const SearchTasksRequestBffSchema: z.ZodObject<{
12480
+ assignedTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
12481
+ taskNumber: z.ZodOptional<z.ZodArray<z.ZodString>>;
12482
+ referenceType: z.ZodOptional<z.ZodArray<z.ZodString>>;
12483
+ taskType: z.ZodOptional<z.ZodArray<z.ZodString>>;
12484
+ dueDateStart: z.ZodOptional<z.ZodArray<z.ZodString>>;
12485
+ dueDateEnd: z.ZodOptional<z.ZodArray<z.ZodString>>;
12486
+ taskState: z.ZodOptional<z.ZodArray<z.ZodString>>;
12487
+ }, z.core.$strip>;
12488
+
12489
+ export declare type SearchTermRequest = z.infer<typeof SearchTermRequestSchema>;
12490
+
12415
12491
  export declare const SearchTermRequestSchema: z.ZodObject<{
12416
12492
  searchTerm: z.ZodString;
12417
- fieldName: z.ZodString;
12418
- match: z.ZodEnum<{
12493
+ fieldName: z.ZodOptional<z.ZodString>;
12494
+ match: z.ZodOptional<z.ZodEnum<{
12419
12495
  exact: "exact";
12420
12496
  startsWith: "startsWith";
12421
12497
  fuzzy: "fuzzy";
12422
- }>;
12423
- absolute: z.ZodEnum<{
12498
+ }>>;
12499
+ absolute: z.ZodOptional<z.ZodEnum<{
12424
12500
  none: "none";
12425
12501
  excluded: "excluded";
12426
12502
  required: "required";
12427
- }>;
12503
+ }>>;
12428
12504
  }, z.core.$strip>;
12429
12505
 
12430
12506
  export declare type Segment = z.infer<typeof SegmentSchema>;
@@ -12899,6 +12975,10 @@ export declare const TaskListResponseBffSchema: z.ZodObject<{
12899
12975
  }, z.core.$strip>>;
12900
12976
  }, z.core.$strip>;
12901
12977
 
12978
+ export declare type TaskListResponseBffWithStats = TaskListResponseBff & {
12979
+ searchStats?: NonNullable<SearchStatsResponse['results']>;
12980
+ };
12981
+
12902
12982
  export declare const TaskListResponseSchema: z.ZodObject<{
12903
12983
  listCompleted: z.ZodBoolean;
12904
12984
  items: z.ZodArray<z.ZodObject<{
@@ -13234,8 +13314,6 @@ export declare type TenantId = z.infer<typeof TenantIdSchema>;
13234
13314
 
13235
13315
  export declare const TenantIdSchema: z.ZodUUID;
13236
13316
 
13237
- export declare const TenantLocatorSchema: z.ZodUUID;
13238
-
13239
13317
  export declare const TenantQualificationsParamsSchema: z.ZodObject<{
13240
13318
  tenantLocator: z.ZodUUID;
13241
13319
  }, z.core.$strip>;
@@ -14965,6 +15043,14 @@ export declare const transactionUnderwritingResponseSchema: z.ZodObject<{
14965
15043
  }, z.core.$strip>>>;
14966
15044
  }, z.core.$strip>;
14967
15045
 
15046
+ export declare type TypedSearchResponse<T> = Omit<SearchResponse, 'results'> & {
15047
+ results: TypedSearchResult<T>[];
15048
+ };
15049
+
15050
+ export declare type TypedSearchResult<T> = Omit<SearchResult, 'searchSummary'> & {
15051
+ searchSummary: T;
15052
+ };
15053
+
14968
15054
  export declare const ULIDZ: z.ZodULID;
14969
15055
 
14970
15056
  export declare type UnderwritingFlagCreateRequest = z.infer<typeof UnderwritingFlagCreateRequestSchema>;