@socotra/ec-react-schemas 2.8.1-next.4 → 2.8.1

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
@@ -1,5 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ export declare const AbsoluteEnum: z.ZodEnum<["none", "required", "excluded"]>;
4
+
3
5
  export declare type AccountBillingLevelEnum = z.infer<typeof accountBillingLevelEnumSchema>;
4
6
 
5
7
  export declare const accountBillingLevelEnumSchema: z.ZodEnum<["account", "policy"]>;
@@ -5780,6 +5782,8 @@ export declare const ListTenantResponseSchema: z.ZodObject<{
5780
5782
  listCompleted: boolean;
5781
5783
  }>;
5782
5784
 
5785
+ export declare const MatchEnum: z.ZodEnum<["fuzzy", "exact", "startsWith"]>;
5786
+
5783
5787
  export declare type ModifyChangeInstructionCreateRequest = z.infer<typeof modifyChangeInstructionCreateRequestSchema>;
5784
5788
 
5785
5789
  export declare const modifyChangeInstructionCreateRequestSchema: z.ZodObject<{
@@ -9426,6 +9430,229 @@ export declare const RoleUpdateRequestSchema: z.ZodObject<z.objectUtil.extendSha
9426
9430
  removePermissions: string[];
9427
9431
  }>;
9428
9432
 
9433
+ export declare const SearchByTokenQueryParamsSchema: z.ZodObject<z.objectUtil.extendShape<{
9434
+ searchToken: z.ZodString;
9435
+ }, {
9436
+ offset: z.ZodOptional<z.ZodString>;
9437
+ count: z.ZodOptional<z.ZodString>;
9438
+ }>, "strip", z.ZodTypeAny, {
9439
+ searchToken: string;
9440
+ count?: string | undefined;
9441
+ offset?: string | undefined;
9442
+ }, {
9443
+ searchToken: string;
9444
+ count?: string | undefined;
9445
+ offset?: string | undefined;
9446
+ }>;
9447
+
9448
+ export declare const SearchEntityTypeEnum: z.ZodEnum<["unspecified", "account", "quote", "policy"]>;
9449
+
9450
+ export declare const SearchParamSchema: z.ZodObject<{
9451
+ tenantLocator: z.ZodString;
9452
+ }, "strip", z.ZodTypeAny, {
9453
+ tenantLocator: string;
9454
+ }, {
9455
+ tenantLocator: string;
9456
+ }>;
9457
+
9458
+ export declare const SearchQueryParamsSchema: z.ZodObject<{
9459
+ offset: z.ZodOptional<z.ZodString>;
9460
+ count: z.ZodOptional<z.ZodString>;
9461
+ }, "strip", z.ZodTypeAny, {
9462
+ count?: string | undefined;
9463
+ offset?: string | undefined;
9464
+ }, {
9465
+ count?: string | undefined;
9466
+ offset?: string | undefined;
9467
+ }>;
9468
+
9469
+ export declare const SearchRequestSchema: z.ZodObject<{
9470
+ searchEntityType: z.ZodOptional<z.ZodEnum<["unspecified", "account", "quote", "policy"]>>;
9471
+ searchString: z.ZodOptional<z.ZodString>;
9472
+ searchTerms: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
9473
+ fieldName: z.ZodOptional<z.ZodString>;
9474
+ absolute: z.ZodOptional<z.ZodEnum<["none", "required", "excluded"]>>;
9475
+ match: z.ZodOptional<z.ZodEnum<["fuzzy", "exact", "startsWith"]>>;
9476
+ searchTerm: z.ZodOptional<z.ZodString>;
9477
+ }, {
9478
+ searchTerm: z.ZodString;
9479
+ fieldName: z.ZodString;
9480
+ match: z.ZodUnion<[z.ZodLiteral<"fuzzy">, z.ZodLiteral<"exact">, z.ZodLiteral<"startsWith">]>;
9481
+ absolute: z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodLiteral<"excluded">]>;
9482
+ }>, "strip", z.ZodTypeAny, {
9483
+ fieldName: string;
9484
+ searchTerm: string;
9485
+ match: "exact" | "startsWith" | "fuzzy";
9486
+ absolute: "none" | "required" | "excluded";
9487
+ }, {
9488
+ fieldName: string;
9489
+ searchTerm: string;
9490
+ match: "exact" | "startsWith" | "fuzzy";
9491
+ absolute: "none" | "required" | "excluded";
9492
+ }>, "many">>;
9493
+ }, "strip", z.ZodTypeAny, {
9494
+ searchEntityType?: "account" | "policy" | "quote" | "unspecified" | undefined;
9495
+ searchString?: string | undefined;
9496
+ searchTerms?: {
9497
+ fieldName: string;
9498
+ searchTerm: string;
9499
+ match: "exact" | "startsWith" | "fuzzy";
9500
+ absolute: "none" | "required" | "excluded";
9501
+ }[] | undefined;
9502
+ }, {
9503
+ searchEntityType?: "account" | "policy" | "quote" | "unspecified" | undefined;
9504
+ searchString?: string | undefined;
9505
+ searchTerms?: {
9506
+ fieldName: string;
9507
+ searchTerm: string;
9508
+ match: "exact" | "startsWith" | "fuzzy";
9509
+ absolute: "none" | "required" | "excluded";
9510
+ }[] | undefined;
9511
+ }>;
9512
+
9513
+ export declare type SearchRequestType = z.infer<typeof SearchRequestSchema>;
9514
+
9515
+ export declare const SearchResponseSchema: z.ZodObject<{
9516
+ count: z.ZodNumber;
9517
+ offset: z.ZodNumber;
9518
+ searchToken: z.ZodOptional<z.ZodString>;
9519
+ results: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
9520
+ score: z.ZodNumber;
9521
+ searchEntityType: z.ZodUnion<[z.ZodLiteral<"unspecified">, z.ZodLiteral<"account">, z.ZodLiteral<"quote">, z.ZodLiteral<"policy">]>;
9522
+ searchEntityLocator: z.ZodObject<{
9523
+ leastSignificantBits: z.ZodNumber;
9524
+ mostSignificantBits: z.ZodNumber;
9525
+ }, "strip", z.ZodTypeAny, {
9526
+ leastSignificantBits: number;
9527
+ mostSignificantBits: number;
9528
+ }, {
9529
+ leastSignificantBits: number;
9530
+ mostSignificantBits: number;
9531
+ }>;
9532
+ productName: z.ZodString;
9533
+ accountLocator: z.ZodString;
9534
+ searchSummary: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9535
+ highlights: z.ZodArray<z.ZodString, "many">;
9536
+ }, {
9537
+ accountLocator: z.ZodOptional<z.ZodString>;
9538
+ searchEntityLocator: z.ZodString;
9539
+ productName: z.ZodOptional<z.ZodString>;
9540
+ score: z.ZodNumber;
9541
+ searchEntityType: z.ZodEnum<["unspecified", "account", "quote", "policy"]>;
9542
+ highlights: z.ZodArray<z.ZodString, "many">;
9543
+ searchSummary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9544
+ }>, "strip", z.ZodTypeAny, {
9545
+ score: number;
9546
+ searchEntityType: "account" | "policy" | "quote" | "unspecified";
9547
+ searchEntityLocator: string;
9548
+ highlights: string[];
9549
+ productName?: string | undefined;
9550
+ accountLocator?: string | undefined;
9551
+ searchSummary?: Record<string, unknown> | undefined;
9552
+ }, {
9553
+ score: number;
9554
+ searchEntityType: "account" | "policy" | "quote" | "unspecified";
9555
+ searchEntityLocator: string;
9556
+ highlights: string[];
9557
+ productName?: string | undefined;
9558
+ accountLocator?: string | undefined;
9559
+ searchSummary?: Record<string, unknown> | undefined;
9560
+ }>, "many">;
9561
+ }, "strip", z.ZodTypeAny, {
9562
+ count: number;
9563
+ offset: number;
9564
+ results: {
9565
+ score: number;
9566
+ searchEntityType: "account" | "policy" | "quote" | "unspecified";
9567
+ searchEntityLocator: string;
9568
+ highlights: string[];
9569
+ productName?: string | undefined;
9570
+ accountLocator?: string | undefined;
9571
+ searchSummary?: Record<string, unknown> | undefined;
9572
+ }[];
9573
+ searchToken?: string | undefined;
9574
+ }, {
9575
+ count: number;
9576
+ offset: number;
9577
+ results: {
9578
+ score: number;
9579
+ searchEntityType: "account" | "policy" | "quote" | "unspecified";
9580
+ searchEntityLocator: string;
9581
+ highlights: string[];
9582
+ productName?: string | undefined;
9583
+ accountLocator?: string | undefined;
9584
+ searchSummary?: Record<string, unknown> | undefined;
9585
+ }[];
9586
+ searchToken?: string | undefined;
9587
+ }>;
9588
+
9589
+ export declare const SearchResultSchema: z.ZodObject<z.objectUtil.extendShape<{
9590
+ score: z.ZodNumber;
9591
+ searchEntityType: z.ZodUnion<[z.ZodLiteral<"unspecified">, z.ZodLiteral<"account">, z.ZodLiteral<"quote">, z.ZodLiteral<"policy">]>;
9592
+ searchEntityLocator: z.ZodObject<{
9593
+ leastSignificantBits: z.ZodNumber;
9594
+ mostSignificantBits: z.ZodNumber;
9595
+ }, "strip", z.ZodTypeAny, {
9596
+ leastSignificantBits: number;
9597
+ mostSignificantBits: number;
9598
+ }, {
9599
+ leastSignificantBits: number;
9600
+ mostSignificantBits: number;
9601
+ }>;
9602
+ productName: z.ZodString;
9603
+ accountLocator: z.ZodString;
9604
+ searchSummary: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9605
+ highlights: z.ZodArray<z.ZodString, "many">;
9606
+ }, {
9607
+ accountLocator: z.ZodOptional<z.ZodString>;
9608
+ searchEntityLocator: z.ZodString;
9609
+ productName: z.ZodOptional<z.ZodString>;
9610
+ score: z.ZodNumber;
9611
+ searchEntityType: z.ZodEnum<["unspecified", "account", "quote", "policy"]>;
9612
+ highlights: z.ZodArray<z.ZodString, "many">;
9613
+ searchSummary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9614
+ }>, "strip", z.ZodTypeAny, {
9615
+ score: number;
9616
+ searchEntityType: "account" | "policy" | "quote" | "unspecified";
9617
+ searchEntityLocator: string;
9618
+ highlights: string[];
9619
+ productName?: string | undefined;
9620
+ accountLocator?: string | undefined;
9621
+ searchSummary?: Record<string, unknown> | undefined;
9622
+ }, {
9623
+ score: number;
9624
+ searchEntityType: "account" | "policy" | "quote" | "unspecified";
9625
+ searchEntityLocator: string;
9626
+ highlights: string[];
9627
+ productName?: string | undefined;
9628
+ accountLocator?: string | undefined;
9629
+ searchSummary?: Record<string, unknown> | undefined;
9630
+ }>;
9631
+
9632
+ export declare type SearchResultType = z.infer<typeof SearchResultSchema>;
9633
+
9634
+ export declare const SearchTermRequestSchema: z.ZodObject<z.objectUtil.extendShape<{
9635
+ fieldName: z.ZodOptional<z.ZodString>;
9636
+ absolute: z.ZodOptional<z.ZodEnum<["none", "required", "excluded"]>>;
9637
+ match: z.ZodOptional<z.ZodEnum<["fuzzy", "exact", "startsWith"]>>;
9638
+ searchTerm: z.ZodOptional<z.ZodString>;
9639
+ }, {
9640
+ searchTerm: z.ZodString;
9641
+ fieldName: z.ZodString;
9642
+ match: z.ZodUnion<[z.ZodLiteral<"fuzzy">, z.ZodLiteral<"exact">, z.ZodLiteral<"startsWith">]>;
9643
+ absolute: z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodLiteral<"excluded">]>;
9644
+ }>, "strip", z.ZodTypeAny, {
9645
+ fieldName: string;
9646
+ searchTerm: string;
9647
+ match: "exact" | "startsWith" | "fuzzy";
9648
+ absolute: "none" | "required" | "excluded";
9649
+ }, {
9650
+ fieldName: string;
9651
+ searchTerm: string;
9652
+ match: "exact" | "startsWith" | "fuzzy";
9653
+ absolute: "none" | "required" | "excluded";
9654
+ }>;
9655
+
9429
9656
  export declare type SegmentResponse = z.infer<typeof segmentResponseSchema>;
9430
9657
 
9431
9658
  export declare const segmentResponseSchema: z.ZodObject<{
@@ -10025,6 +10252,8 @@ export declare const TenantDeploymentResultSchema: z.ZodObject<z.objectUtil.exte
10025
10252
  };
10026
10253
  }>;
10027
10254
 
10255
+ export declare const TenantLocatorSchema: z.ZodString;
10256
+
10028
10257
  export declare type TenantResponse = z.infer<typeof TenantResponseSchema>;
10029
10258
 
10030
10259
  export declare const TenantResponseSchema: z.ZodObject<z.objectUtil.extendShape<{