@socotra/ec-react-utils 2.14.0 → 2.14.1-next.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
@@ -88,6 +88,7 @@ export declare const dataModelToJSONSchema: (args: DataModelToJsonSchemaProps) =
88
88
 
89
89
  declare interface DataModelToJsonSchemaProps {
90
90
  data: FieldConfigRecord;
91
+ timezone?: string;
91
92
  dataTypes?: DataTypeConfigRecord;
92
93
  evaluatedConstraints?: ConstraintEvaluationResponse;
93
94
  constraintDependencyMap?: QuoteDependencyMapResponse;
@@ -323,12 +324,13 @@ export declare const getDefaultAccountFormValues: ({ defaultValues, accountType,
323
324
  saveAsDraft: boolean;
324
325
  };
325
326
 
326
- export declare const getDefaultDraftTransactionValues: ({ transactionSnapshot, paramsChangeInstruction, modifyChangeInstruction, coverageTerms, coverageTermsDataModel, }: {
327
+ export declare const getDefaultDraftTransactionValues: ({ transactionSnapshot, paramsChangeInstruction, modifyChangeInstruction, coverageTerms, coverageTermsDataModel, timezone, }: {
327
328
  transactionSnapshot: TransactionSnapshotResponse;
328
329
  paramsChangeInstruction: ParamsChangeInstructionCreateRequest;
329
330
  coverageTerms: string[];
330
331
  modifyChangeInstruction?: ModifyChangeInstructionCreateRequest;
331
332
  coverageTermsDataModel?: CoverageTermsConfigRecord;
333
+ timezone: string;
332
334
  }) => {
333
335
  default: {
334
336
  newPolicyEndDate?: string | undefined;
@@ -442,7 +444,7 @@ export declare const getModifyChangeInstructionCreateRequestFromFormData: ({ dat
442
444
  * @param data - form data
443
445
  * @returns ParamsChangeInstructionCreateRequest
444
446
  */
445
- export declare const getParamsChangeInstructionCreateRequestFromFormData: ({ data, }: TransactionFormData_3) => ParamsChangeInstructionCreateRequest;
447
+ export declare const getParamsChangeInstructionCreateRequestFromFormData: ({ data, timezone, }: TransactionFormData_3) => ParamsChangeInstructionCreateRequest;
446
448
 
447
449
  /**
448
450
  * The function `getQuoteRequest` processes form data to create a `QuoteRequest` object.
@@ -526,6 +528,7 @@ declare interface TransactionFormData {
526
528
  [key: string]: string;
527
529
  };
528
530
  element: ElementResponse;
531
+ timezone: string;
529
532
  }
530
533
 
531
534
  declare interface TransactionFormData_2 {
@@ -559,6 +562,7 @@ declare interface TransactionFormData_3 {
559
562
  newPolicyEndDate?: string;
560
563
  };
561
564
  };
565
+ timezone: string;
562
566
  }
563
567
 
564
568
  export declare function translateError(error: ErrorObject): string;