@socotra/ec-react-schemas 2.17.0 → 2.17.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
@@ -8355,35 +8355,35 @@ export declare const dataModelSchema: z.ZodObject<{
8355
8355
  qualifications?: Record<string, string[]> | undefined;
8356
8356
  }>>;
8357
8357
  numberingPlans: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8358
- displayName: z.ZodString;
8359
- initialCoreNumber: z.ZodString;
8360
- format: z.ZodString;
8361
- copyFromQuote: z.ZodBoolean;
8362
- termNumberFormat: z.ZodString;
8363
- quoteNumberFormat: z.ZodString;
8364
- initialQuoteCoreNumber: z.ZodString;
8358
+ displayName: z.ZodOptional<z.ZodString>;
8359
+ initialCoreNumber: z.ZodOptional<z.ZodString>;
8360
+ format: z.ZodOptional<z.ZodString>;
8361
+ copyFromQuote: z.ZodOptional<z.ZodBoolean>;
8362
+ termNumberFormat: z.ZodOptional<z.ZodString>;
8363
+ quoteNumberFormat: z.ZodOptional<z.ZodString>;
8364
+ initialQuoteCoreNumber: z.ZodOptional<z.ZodString>;
8365
8365
  }, "strip", z.ZodTypeAny, {
8366
- displayName: string;
8367
- initialCoreNumber: string;
8368
- format: string;
8369
- copyFromQuote: boolean;
8370
- termNumberFormat: string;
8371
- quoteNumberFormat: string;
8372
- initialQuoteCoreNumber: string;
8366
+ displayName?: string | undefined;
8367
+ initialCoreNumber?: string | undefined;
8368
+ format?: string | undefined;
8369
+ copyFromQuote?: boolean | undefined;
8370
+ termNumberFormat?: string | undefined;
8371
+ quoteNumberFormat?: string | undefined;
8372
+ initialQuoteCoreNumber?: string | undefined;
8373
8373
  }, {
8374
- displayName: string;
8375
- initialCoreNumber: string;
8376
- format: string;
8377
- copyFromQuote: boolean;
8378
- termNumberFormat: string;
8379
- quoteNumberFormat: string;
8380
- initialQuoteCoreNumber: string;
8374
+ displayName?: string | undefined;
8375
+ initialCoreNumber?: string | undefined;
8376
+ format?: string | undefined;
8377
+ copyFromQuote?: boolean | undefined;
8378
+ termNumberFormat?: string | undefined;
8379
+ quoteNumberFormat?: string | undefined;
8380
+ initialQuoteCoreNumber?: string | undefined;
8381
8381
  }>>>;
8382
8382
  fnol: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8383
- extend: z.ZodString;
8384
- lossTypes: z.ZodArray<z.ZodString, "many">;
8385
- defaultSearchable: z.ZodBoolean;
8386
- data: z.ZodRecord<z.ZodString, z.ZodObject<{
8383
+ extend: z.ZodOptional<z.ZodString>;
8384
+ lossTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8385
+ defaultSearchable: z.ZodOptional<z.ZodBoolean>;
8386
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8387
8387
  displayName: z.ZodString;
8388
8388
  type: z.ZodString;
8389
8389
  scope: z.ZodString;
@@ -8594,14 +8594,14 @@ export declare const dataModelSchema: z.ZodObject<{
8594
8594
  removeOnRenewalAfter: string;
8595
8595
  removeOnRenewal: boolean;
8596
8596
  } | undefined;
8597
- }>>;
8598
- numberingPlan: z.ZodString;
8599
- contacts: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
8600
- abstract: z.ZodBoolean;
8597
+ }>>>;
8598
+ numberingPlan: z.ZodOptional<z.ZodString>;
8599
+ contacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
8600
+ abstract: z.ZodOptional<z.ZodBoolean>;
8601
8601
  }, "strip", z.ZodTypeAny, {
8602
- abstract: boolean;
8603
- extend: string;
8604
- data: Record<string, {
8602
+ abstract?: boolean | undefined;
8603
+ extend?: string | undefined;
8604
+ data?: Record<string, {
8605
8605
  options: string[];
8606
8606
  type: string;
8607
8607
  displayName: string;
@@ -8646,15 +8646,15 @@ export declare const dataModelSchema: z.ZodObject<{
8646
8646
  removeOnRenewalAfter: string;
8647
8647
  removeOnRenewal: boolean;
8648
8648
  } | undefined;
8649
- }>;
8650
- defaultSearchable: boolean;
8651
- numberingPlan: string;
8652
- contacts: Record<string, string[]>;
8653
- lossTypes: string[];
8649
+ }> | undefined;
8650
+ defaultSearchable?: boolean | undefined;
8651
+ numberingPlan?: string | undefined;
8652
+ contacts?: Record<string, string[]> | undefined;
8653
+ lossTypes?: string[] | undefined;
8654
8654
  }, {
8655
- abstract: boolean;
8656
- extend: string;
8657
- data: Record<string, {
8655
+ abstract?: boolean | undefined;
8656
+ extend?: string | undefined;
8657
+ data?: Record<string, {
8658
8658
  options: string[];
8659
8659
  type: string;
8660
8660
  displayName: string;
@@ -8699,15 +8699,15 @@ export declare const dataModelSchema: z.ZodObject<{
8699
8699
  removeOnRenewalAfter: string;
8700
8700
  removeOnRenewal: boolean;
8701
8701
  } | undefined;
8702
- }>;
8703
- defaultSearchable: boolean;
8704
- numberingPlan: string;
8705
- contacts: Record<string, string[]>;
8706
- lossTypes: string[];
8702
+ }> | undefined;
8703
+ defaultSearchable?: boolean | undefined;
8704
+ numberingPlan?: string | undefined;
8705
+ contacts?: Record<string, string[]> | undefined;
8706
+ lossTypes?: string[] | undefined;
8707
8707
  }>>>;
8708
8708
  losses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8709
- extend: z.ZodString;
8710
- data: z.ZodRecord<z.ZodString, z.ZodObject<{
8709
+ extend: z.ZodOptional<z.ZodString>;
8710
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8711
8711
  displayName: z.ZodString;
8712
8712
  type: z.ZodString;
8713
8713
  scope: z.ZodString;
@@ -8918,14 +8918,14 @@ export declare const dataModelSchema: z.ZodObject<{
8918
8918
  removeOnRenewalAfter: string;
8919
8919
  removeOnRenewal: boolean;
8920
8920
  } | undefined;
8921
- }>>;
8922
- category: z.ZodString;
8923
- coverageTypes: z.ZodArray<z.ZodString, "many">;
8924
- abstract: z.ZodBoolean;
8921
+ }>>>;
8922
+ category: z.ZodOptional<z.ZodString>;
8923
+ coverageTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8924
+ abstract: z.ZodOptional<z.ZodBoolean>;
8925
8925
  }, "strip", z.ZodTypeAny, {
8926
- abstract: boolean;
8927
- extend: string;
8928
- data: Record<string, {
8926
+ abstract?: boolean | undefined;
8927
+ extend?: string | undefined;
8928
+ data?: Record<string, {
8929
8929
  options: string[];
8930
8930
  type: string;
8931
8931
  displayName: string;
@@ -8970,13 +8970,13 @@ export declare const dataModelSchema: z.ZodObject<{
8970
8970
  removeOnRenewalAfter: string;
8971
8971
  removeOnRenewal: boolean;
8972
8972
  } | undefined;
8973
- }>;
8974
- category: string;
8975
- coverageTypes: string[];
8973
+ }> | undefined;
8974
+ category?: string | undefined;
8975
+ coverageTypes?: string[] | undefined;
8976
8976
  }, {
8977
- abstract: boolean;
8978
- extend: string;
8979
- data: Record<string, {
8977
+ abstract?: boolean | undefined;
8978
+ extend?: string | undefined;
8979
+ data?: Record<string, {
8980
8980
  options: string[];
8981
8981
  type: string;
8982
8982
  displayName: string;
@@ -9021,16 +9021,16 @@ export declare const dataModelSchema: z.ZodObject<{
9021
9021
  removeOnRenewalAfter: string;
9022
9022
  removeOnRenewal: boolean;
9023
9023
  } | undefined;
9024
- }>;
9025
- category: string;
9026
- coverageTypes: string[];
9024
+ }> | undefined;
9025
+ category?: string | undefined;
9026
+ coverageTypes?: string[] | undefined;
9027
9027
  }>>>;
9028
9028
  lossCategories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9029
9029
  contacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
9030
- displayName: z.ZodString;
9031
- extend: z.ZodString;
9032
- defaultSearchable: z.ZodBoolean;
9033
- data: z.ZodRecord<z.ZodString, z.ZodObject<{
9030
+ displayName: z.ZodOptional<z.ZodString>;
9031
+ extend: z.ZodOptional<z.ZodString>;
9032
+ defaultSearchable: z.ZodOptional<z.ZodBoolean>;
9033
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
9034
9034
  displayName: z.ZodString;
9035
9035
  type: z.ZodString;
9036
9036
  scope: z.ZodString;
@@ -9241,13 +9241,13 @@ export declare const dataModelSchema: z.ZodObject<{
9241
9241
  removeOnRenewalAfter: string;
9242
9242
  removeOnRenewal: boolean;
9243
9243
  } | undefined;
9244
- }>>;
9245
- abstract: z.ZodBoolean;
9244
+ }>>>;
9245
+ abstract: z.ZodOptional<z.ZodBoolean>;
9246
9246
  }, "strip", z.ZodTypeAny, {
9247
- displayName: string;
9248
- abstract: boolean;
9249
- extend: string;
9250
- data: Record<string, {
9247
+ displayName?: string | undefined;
9248
+ abstract?: boolean | undefined;
9249
+ extend?: string | undefined;
9250
+ data?: Record<string, {
9251
9251
  options: string[];
9252
9252
  type: string;
9253
9253
  displayName: string;
@@ -9292,13 +9292,13 @@ export declare const dataModelSchema: z.ZodObject<{
9292
9292
  removeOnRenewalAfter: string;
9293
9293
  removeOnRenewal: boolean;
9294
9294
  } | undefined;
9295
- }>;
9296
- defaultSearchable: boolean;
9295
+ }> | undefined;
9296
+ defaultSearchable?: boolean | undefined;
9297
9297
  }, {
9298
- displayName: string;
9299
- abstract: boolean;
9300
- extend: string;
9301
- data: Record<string, {
9298
+ displayName?: string | undefined;
9299
+ abstract?: boolean | undefined;
9300
+ extend?: string | undefined;
9301
+ data?: Record<string, {
9302
9302
  options: string[];
9303
9303
  type: string;
9304
9304
  displayName: string;
@@ -9343,8 +9343,8 @@ export declare const dataModelSchema: z.ZodObject<{
9343
9343
  removeOnRenewalAfter: string;
9344
9344
  removeOnRenewal: boolean;
9345
9345
  } | undefined;
9346
- }>;
9347
- defaultSearchable: boolean;
9346
+ }> | undefined;
9347
+ defaultSearchable?: boolean | undefined;
9348
9348
  }>>>;
9349
9349
  contactRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9350
9350
  policyLines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -10198,10 +10198,10 @@ export declare const dataModelSchema: z.ZodObject<{
10198
10198
  defaultSearchable?: boolean | undefined;
10199
10199
  defaultInvoiceDocument?: string | undefined;
10200
10200
  contacts?: Record<string, {
10201
- displayName: string;
10202
- abstract: boolean;
10203
- extend: string;
10204
- data: Record<string, {
10201
+ displayName?: string | undefined;
10202
+ abstract?: boolean | undefined;
10203
+ extend?: string | undefined;
10204
+ data?: Record<string, {
10205
10205
  options: string[];
10206
10206
  type: string;
10207
10207
  displayName: string;
@@ -10246,8 +10246,8 @@ export declare const dataModelSchema: z.ZodObject<{
10246
10246
  removeOnRenewalAfter: string;
10247
10247
  removeOnRenewal: boolean;
10248
10248
  } | undefined;
10249
- }>;
10250
- defaultSearchable: boolean;
10249
+ }> | undefined;
10250
+ defaultSearchable?: boolean | undefined;
10251
10251
  }> | undefined;
10252
10252
  coverageTerms?: Record<string, {
10253
10253
  type: string;
@@ -10559,18 +10559,18 @@ export declare const dataModelSchema: z.ZodObject<{
10559
10559
  creditType?: "any" | "creditDistribution" | "payment" | undefined;
10560
10560
  }> | undefined;
10561
10561
  numberingPlans?: Record<string, {
10562
- displayName: string;
10563
- initialCoreNumber: string;
10564
- format: string;
10565
- copyFromQuote: boolean;
10566
- termNumberFormat: string;
10567
- quoteNumberFormat: string;
10568
- initialQuoteCoreNumber: string;
10562
+ displayName?: string | undefined;
10563
+ initialCoreNumber?: string | undefined;
10564
+ format?: string | undefined;
10565
+ copyFromQuote?: boolean | undefined;
10566
+ termNumberFormat?: string | undefined;
10567
+ quoteNumberFormat?: string | undefined;
10568
+ initialQuoteCoreNumber?: string | undefined;
10569
10569
  }> | undefined;
10570
10570
  fnol?: Record<string, {
10571
- abstract: boolean;
10572
- extend: string;
10573
- data: Record<string, {
10571
+ abstract?: boolean | undefined;
10572
+ extend?: string | undefined;
10573
+ data?: Record<string, {
10574
10574
  options: string[];
10575
10575
  type: string;
10576
10576
  displayName: string;
@@ -10615,16 +10615,16 @@ export declare const dataModelSchema: z.ZodObject<{
10615
10615
  removeOnRenewalAfter: string;
10616
10616
  removeOnRenewal: boolean;
10617
10617
  } | undefined;
10618
- }>;
10619
- defaultSearchable: boolean;
10620
- numberingPlan: string;
10621
- contacts: Record<string, string[]>;
10622
- lossTypes: string[];
10618
+ }> | undefined;
10619
+ defaultSearchable?: boolean | undefined;
10620
+ numberingPlan?: string | undefined;
10621
+ contacts?: Record<string, string[]> | undefined;
10622
+ lossTypes?: string[] | undefined;
10623
10623
  }> | undefined;
10624
10624
  losses?: Record<string, {
10625
- abstract: boolean;
10626
- extend: string;
10627
- data: Record<string, {
10625
+ abstract?: boolean | undefined;
10626
+ extend?: string | undefined;
10627
+ data?: Record<string, {
10628
10628
  options: string[];
10629
10629
  type: string;
10630
10630
  displayName: string;
@@ -10669,9 +10669,9 @@ export declare const dataModelSchema: z.ZodObject<{
10669
10669
  removeOnRenewalAfter: string;
10670
10670
  removeOnRenewal: boolean;
10671
10671
  } | undefined;
10672
- }>;
10673
- category: string;
10674
- coverageTypes: string[];
10672
+ }> | undefined;
10673
+ category?: string | undefined;
10674
+ coverageTypes?: string[] | undefined;
10675
10675
  }> | undefined;
10676
10676
  lossCategories?: string[] | undefined;
10677
10677
  contactRoles?: string[] | undefined;
@@ -10830,10 +10830,10 @@ export declare const dataModelSchema: z.ZodObject<{
10830
10830
  defaultSearchable?: boolean | undefined;
10831
10831
  defaultInvoiceDocument?: string | undefined;
10832
10832
  contacts?: Record<string, {
10833
- displayName: string;
10834
- abstract: boolean;
10835
- extend: string;
10836
- data: Record<string, {
10833
+ displayName?: string | undefined;
10834
+ abstract?: boolean | undefined;
10835
+ extend?: string | undefined;
10836
+ data?: Record<string, {
10837
10837
  options: string[];
10838
10838
  type: string;
10839
10839
  displayName: string;
@@ -10878,8 +10878,8 @@ export declare const dataModelSchema: z.ZodObject<{
10878
10878
  removeOnRenewalAfter: string;
10879
10879
  removeOnRenewal: boolean;
10880
10880
  } | undefined;
10881
- }>;
10882
- defaultSearchable: boolean;
10881
+ }> | undefined;
10882
+ defaultSearchable?: boolean | undefined;
10883
10883
  }> | undefined;
10884
10884
  coverageTerms?: Record<string, {
10885
10885
  type: string;
@@ -11191,18 +11191,18 @@ export declare const dataModelSchema: z.ZodObject<{
11191
11191
  creditType?: "any" | "creditDistribution" | "payment" | undefined;
11192
11192
  }> | undefined;
11193
11193
  numberingPlans?: Record<string, {
11194
- displayName: string;
11195
- initialCoreNumber: string;
11196
- format: string;
11197
- copyFromQuote: boolean;
11198
- termNumberFormat: string;
11199
- quoteNumberFormat: string;
11200
- initialQuoteCoreNumber: string;
11194
+ displayName?: string | undefined;
11195
+ initialCoreNumber?: string | undefined;
11196
+ format?: string | undefined;
11197
+ copyFromQuote?: boolean | undefined;
11198
+ termNumberFormat?: string | undefined;
11199
+ quoteNumberFormat?: string | undefined;
11200
+ initialQuoteCoreNumber?: string | undefined;
11201
11201
  }> | undefined;
11202
11202
  fnol?: Record<string, {
11203
- abstract: boolean;
11204
- extend: string;
11205
- data: Record<string, {
11203
+ abstract?: boolean | undefined;
11204
+ extend?: string | undefined;
11205
+ data?: Record<string, {
11206
11206
  options: string[];
11207
11207
  type: string;
11208
11208
  displayName: string;
@@ -11247,16 +11247,16 @@ export declare const dataModelSchema: z.ZodObject<{
11247
11247
  removeOnRenewalAfter: string;
11248
11248
  removeOnRenewal: boolean;
11249
11249
  } | undefined;
11250
- }>;
11251
- defaultSearchable: boolean;
11252
- numberingPlan: string;
11253
- contacts: Record<string, string[]>;
11254
- lossTypes: string[];
11250
+ }> | undefined;
11251
+ defaultSearchable?: boolean | undefined;
11252
+ numberingPlan?: string | undefined;
11253
+ contacts?: Record<string, string[]> | undefined;
11254
+ lossTypes?: string[] | undefined;
11255
11255
  }> | undefined;
11256
11256
  losses?: Record<string, {
11257
- abstract: boolean;
11258
- extend: string;
11259
- data: Record<string, {
11257
+ abstract?: boolean | undefined;
11258
+ extend?: string | undefined;
11259
+ data?: Record<string, {
11260
11260
  options: string[];
11261
11261
  type: string;
11262
11262
  displayName: string;
@@ -11301,9 +11301,9 @@ export declare const dataModelSchema: z.ZodObject<{
11301
11301
  removeOnRenewalAfter: string;
11302
11302
  removeOnRenewal: boolean;
11303
11303
  } | undefined;
11304
- }>;
11305
- category: string;
11306
- coverageTypes: string[];
11304
+ }> | undefined;
11305
+ category?: string | undefined;
11306
+ coverageTypes?: string[] | undefined;
11307
11307
  }> | undefined;
11308
11308
  lossCategories?: string[] | undefined;
11309
11309
  contactRoles?: string[] | undefined;
package/dist/index.es.js CHANGED
@@ -7501,11 +7501,11 @@ const tt = e.object({
7501
7501
  disbursements: Il.optional(),
7502
7502
  installmentPlans: Zl.optional(),
7503
7503
  workManagement: Fl.optional(),
7504
- numberingPlans: e.record(an).optional(),
7505
- fnol: e.record(ln).optional(),
7506
- losses: e.record(sn).optional(),
7504
+ numberingPlans: e.record(an.partial()).optional(),
7505
+ fnol: e.record(ln.partial()).optional(),
7506
+ losses: e.record(sn.partial()).optional(),
7507
7507
  lossCategories: e.array(e.string()).optional(),
7508
- contacts: e.record(cn).optional(),
7508
+ contacts: e.record(cn.partial()).optional(),
7509
7509
  contactRoles: e.array(e.string()).optional(),
7510
7510
  // Elements
7511
7511
  policyLines: Pe.optional(),