@gnwebsoft/ui 4.0.2 → 4.0.4
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/README.md +98 -74
- package/dist/{chunk-GLN5JSFF.cjs → chunk-2QTXS736.cjs} +344 -293
- package/dist/{chunk-DS524L7W.cjs → chunk-3RZ4JNO3.cjs} +5 -5
- package/dist/chunk-HKO2FXDM.js +2232 -0
- package/dist/{chunk-QLQ6OH25.cjs → chunk-IKHMJW5A.cjs} +52 -30
- package/dist/chunk-LUW7V5GI.cjs +1 -1
- package/dist/chunk-MVPLBJRK.cjs +1 -1
- package/dist/chunk-NMJ5V7FQ.js +2512 -0
- package/dist/chunk-XN3KVY4J.js +467 -0
- package/dist/chunk-XTPFOURJ.cjs +72 -0
- package/dist/chunk-Y3QTSDLJ.cjs +1 -1
- package/dist/core/api/ApiClient.d.ts +329 -0
- package/dist/core/api/ApiClient.d.ts.map +1 -0
- package/dist/core/api/CorrelationIdGenerator.d.ts +52 -0
- package/dist/core/api/CorrelationIdGenerator.d.ts.map +1 -0
- package/dist/core/api/Errors/ErrorNormalizer.d.ts +106 -0
- package/dist/core/api/Errors/ErrorNormalizer.d.ts.map +1 -0
- package/dist/core/api/Interceptors/InterceptorManager.d.ts +236 -0
- package/dist/core/api/Interceptors/InterceptorManager.d.ts.map +1 -0
- package/dist/core/api/Models/FilterModel.d.ts +22 -0
- package/dist/core/api/Models/FilterModel.d.ts.map +1 -0
- package/dist/core/api/Models/QueryParams.d.ts +13 -0
- package/dist/core/api/Models/QueryParams.d.ts.map +1 -0
- package/dist/core/api/Models/index.d.ts +3 -0
- package/dist/core/api/Models/index.d.ts.map +1 -0
- package/dist/core/api/RequestManager.d.ts +142 -0
- package/dist/core/api/RequestManager.d.ts.map +1 -0
- package/dist/core/api/Retry/RetryHandler.d.ts +100 -0
- package/dist/core/api/Retry/RetryHandler.d.ts.map +1 -0
- package/dist/core/api/Signals/SignalManager.d.ts +153 -0
- package/dist/core/api/Signals/SignalManager.d.ts.map +1 -0
- package/dist/core/api/Utils/ResponseParser.d.ts +105 -0
- package/dist/core/api/Utils/ResponseParser.d.ts.map +1 -0
- package/dist/core/api/Utils/UrlBuilder.d.ts +111 -0
- package/dist/core/api/Utils/UrlBuilder.d.ts.map +1 -0
- package/dist/core/api/createApiClient.d.ts +243 -0
- package/dist/core/api/createApiClient.d.ts.map +1 -0
- package/dist/core/api/index.d.ts +7 -0
- package/dist/core/api/index.d.ts.map +1 -0
- package/dist/core/api/types/ApiError.d.ts +17 -0
- package/dist/core/api/types/ApiError.d.ts.map +1 -0
- package/dist/core/api/types/ApiResponse.d.ts +76 -0
- package/dist/core/api/types/ApiResponse.d.ts.map +1 -0
- package/dist/core/api/types/CancelToken.d.ts +15 -0
- package/dist/core/api/types/CancelToken.d.ts.map +1 -0
- package/dist/core/api/types/ErrorInterceptor.d.ts +3 -0
- package/dist/core/api/types/ErrorInterceptor.d.ts.map +1 -0
- package/dist/core/api/types/ErrorResponseData.d.ts +68 -0
- package/dist/core/api/types/ErrorResponseData.d.ts.map +1 -0
- package/dist/core/api/types/RequestConfig.d.ts +21 -0
- package/dist/core/api/types/RequestConfig.d.ts.map +1 -0
- package/dist/core/api/types/RequestInterceptor.d.ts +3 -0
- package/dist/core/api/types/RequestInterceptor.d.ts.map +1 -0
- package/dist/core/api/types/ResponseInterceptor.d.ts +3 -0
- package/dist/core/api/types/ResponseInterceptor.d.ts.map +1 -0
- package/dist/core/api/types/ValidationErrors.d.ts +7 -0
- package/dist/core/api/types/ValidationErrors.d.ts.map +1 -0
- package/dist/core/api/types/index.d.ts +10 -0
- package/dist/core/api/types/index.d.ts.map +1 -0
- package/dist/core/api/useValidationErrors.d.ts +11 -0
- package/dist/core/api/useValidationErrors.d.ts.map +1 -0
- package/dist/core/components/AuthorizedView/AuthorizedView.d.ts +7 -0
- package/dist/core/components/AuthorizedView/AuthorizedView.d.ts.map +1 -0
- package/dist/core/components/AuthorizedView/index.d.ts +2 -0
- package/dist/core/components/AuthorizedView/index.d.ts.map +1 -0
- package/dist/core/components/CancelButton/CancelButton.d.ts +4 -0
- package/dist/core/components/CancelButton/CancelButton.d.ts.map +1 -0
- package/dist/core/components/CancelButton/index.d.ts +2 -0
- package/dist/core/components/CancelButton/index.d.ts.map +1 -0
- package/dist/core/components/ClearButton/ClearButton.d.ts +63 -0
- package/dist/core/components/ClearButton/ClearButton.d.ts.map +1 -0
- package/dist/core/components/ClearButton/index.d.ts +2 -0
- package/dist/core/components/ClearButton/index.d.ts.map +1 -0
- package/dist/core/components/Containers/SimpleContainer.d.ts +10 -0
- package/dist/core/components/Containers/SimpleContainer.d.ts.map +1 -0
- package/dist/core/components/Containers/index.d.ts +2 -0
- package/dist/core/components/Containers/index.d.ts.map +1 -0
- package/dist/core/components/FilterButton/FilterButton.d.ts +86 -0
- package/dist/core/components/FilterButton/FilterButton.d.ts.map +1 -0
- package/dist/core/components/FilterButton/index.d.ts +2 -0
- package/dist/core/components/FilterButton/index.d.ts.map +1 -0
- package/dist/core/components/FilterDisplay/FilterChip.d.ts +9 -0
- package/dist/core/components/FilterDisplay/FilterChip.d.ts.map +1 -0
- package/dist/core/components/FilterDisplay/FilterDisplay.d.ts +10 -0
- package/dist/core/components/FilterDisplay/FilterDisplay.d.ts.map +1 -0
- package/dist/core/components/FilterDisplay/index.d.ts +3 -0
- package/dist/core/components/FilterDisplay/index.d.ts.map +1 -0
- package/dist/core/components/FilterWrapper/FilterWrapper.d.ts +99 -0
- package/dist/core/components/FilterWrapper/FilterWrapper.d.ts.map +1 -0
- package/dist/core/components/FilterWrapper/index.d.ts +2 -0
- package/dist/core/components/FilterWrapper/index.d.ts.map +1 -0
- package/dist/core/components/Footer/Footer.d.ts +3 -0
- package/dist/core/components/Footer/Footer.d.ts.map +1 -0
- package/dist/core/components/Footer/index.d.ts +2 -0
- package/dist/core/components/Footer/index.d.ts.map +1 -0
- package/dist/core/components/LabelText/LabelText.d.ts +103 -0
- package/dist/core/components/LabelText/LabelText.d.ts.map +1 -0
- package/dist/core/components/LabelText/index.d.ts +2 -0
- package/dist/core/components/LabelText/index.d.ts.map +1 -0
- package/dist/core/components/RenderIf/RenderIf.d.ts +7 -0
- package/dist/core/components/RenderIf/RenderIf.d.ts.map +1 -0
- package/dist/core/components/RenderIf/index.d.ts +2 -0
- package/dist/core/components/RenderIf/index.d.ts.map +1 -0
- package/dist/core/components/SectionBox/SectionBox.d.ts +15 -0
- package/dist/core/components/SectionBox/SectionBox.d.ts.map +1 -0
- package/dist/core/components/SectionBox/index.d.ts +2 -0
- package/dist/core/components/SectionBox/index.d.ts.map +1 -0
- package/dist/core/components/SimpleTabs/SimpleTabs.d.ts +17 -0
- package/dist/core/components/SimpleTabs/SimpleTabs.d.ts.map +1 -0
- package/dist/core/components/SimpleTabs/index.d.ts +2 -0
- package/dist/core/components/SimpleTabs/index.d.ts.map +1 -0
- package/dist/core/components/SubmitButton/SubmitButton.d.ts +6 -0
- package/dist/core/components/SubmitButton/SubmitButton.d.ts.map +1 -0
- package/dist/core/components/SubmitButton/index.d.ts +2 -0
- package/dist/core/components/SubmitButton/index.d.ts.map +1 -0
- package/dist/core/components/WithRef/WithRef.d.ts +14 -0
- package/dist/core/components/WithRef/WithRef.d.ts.map +1 -0
- package/dist/core/components/WithRef/index.d.ts +2 -0
- package/dist/core/components/WithRef/index.d.ts.map +1 -0
- package/dist/core/components/index.d.ts +15 -0
- package/dist/core/components/index.d.ts.map +1 -0
- package/dist/core/config.d.ts +24 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/hooks/index.d.ts +3 -0
- package/dist/core/hooks/index.d.ts.map +1 -0
- package/dist/core/hooks/makeQuery.d.ts +12 -0
- package/dist/core/hooks/makeQuery.d.ts.map +1 -0
- package/dist/core/hooks/useApiClient.d.ts +3 -0
- package/dist/core/hooks/useApiClient.d.ts.map +1 -0
- package/dist/core/hooks/useFormErrorHandler.d.ts +35 -0
- package/dist/core/hooks/useFormErrorHandler.d.ts.map +1 -0
- package/dist/core/hooks/useListView.d.ts +20 -0
- package/dist/core/hooks/useListView.d.ts.map +1 -0
- package/dist/core/index.cjs +3 -3
- package/dist/core/index.d.ts +9 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +1 -1
- package/dist/core/models.d.ts +5 -0
- package/dist/core/models.d.ts.map +1 -0
- package/dist/core/types/FilterLabel.d.ts +6 -0
- package/dist/core/types/FilterLabel.d.ts.map +1 -0
- package/dist/core/types/ListModels.d.ts +18 -0
- package/dist/core/types/ListModels.d.ts.map +1 -0
- package/dist/core/types/OptionsRequest.d.ts +4 -0
- package/dist/core/types/OptionsRequest.d.ts.map +1 -0
- package/dist/core/types/index.d.ts +4 -0
- package/dist/core/types/index.d.ts.map +1 -0
- package/dist/core/utils/CacheUtility/index.d.ts +15 -0
- package/dist/core/utils/CacheUtility/index.d.ts.map +1 -0
- package/dist/core/utils/calculateFilterCount.d.ts +2 -0
- package/dist/core/utils/calculateFilterCount.d.ts.map +1 -0
- package/dist/core/utils/format-time.d.ts +79 -0
- package/dist/core/utils/format-time.d.ts.map +1 -0
- package/dist/core/utils/getEmptyObject.d.ts +7 -0
- package/dist/core/utils/getEmptyObject.d.ts.map +1 -0
- package/dist/core/utils/index.d.ts +7 -0
- package/dist/core/utils/index.d.ts.map +1 -0
- package/dist/core/utils/useStableRowCount.d.ts +9 -0
- package/dist/core/utils/useStableRowCount.d.ts.map +1 -0
- package/dist/core/utils/watch/core.d.ts +22 -0
- package/dist/core/utils/watch/core.d.ts.map +1 -0
- package/dist/core/utils/watch/index.d.ts +49 -0
- package/dist/core/utils/watch/index.d.ts.map +1 -0
- package/dist/core/utils/watch/utilities.d.ts +34 -0
- package/dist/core/utils/watch/utilities.d.ts.map +1 -0
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useTransform/enhanced.d.ts +133 -0
- package/dist/hooks/useTransform/enhanced.d.ts.map +1 -0
- package/dist/hooks/useTransform/index.d.ts +93 -0
- package/dist/hooks/useTransform/index.d.ts.map +1 -0
- package/dist/index.cjs +6 -6
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -18
- package/dist/types/AsyncSelectPayload.d.ts +9 -0
- package/dist/types/AsyncSelectPayload.d.ts.map +1 -0
- package/dist/types/OperationResponse.d.ts +5 -0
- package/dist/types/OperationResponse.d.ts.map +1 -0
- package/dist/types/OptionItem.d.ts +75 -0
- package/dist/types/OptionItem.d.ts.map +1 -0
- package/dist/types/api.d.ts +127 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/events.d.ts +74 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/index.cjs +3 -3
- package/dist/types/index.d.ts +17 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -1
- package/dist/types/utilities.d.ts +458 -0
- package/dist/types/utilities.d.ts.map +1 -0
- package/dist/utils/api.d.ts +14 -0
- package/dist/utils/api.d.ts.map +1 -0
- package/dist/utils/api2.d.ts +14 -0
- package/dist/utils/api2.d.ts.map +1 -0
- package/dist/utils/flattenObjectKeys.d.ts +63 -0
- package/dist/utils/flattenObjectKeys.d.ts.map +1 -0
- package/dist/utils/getTimezone.d.ts +4 -0
- package/dist/utils/getTimezone.d.ts.map +1 -0
- package/dist/utils/handleServerErrors.d.ts +70 -0
- package/dist/utils/handleServerErrors.d.ts.map +1 -0
- package/dist/utils/index.cjs +3 -3
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/propertyExists.d.ts +35 -0
- package/dist/utils/propertyExists.d.ts.map +1 -0
- package/dist/utils/readValueAsDate.d.ts +4 -0
- package/dist/utils/readValueAsDate.d.ts.map +1 -0
- package/dist/utils/removeLeadingTrailingSlashes.d.ts +2 -0
- package/dist/utils/removeLeadingTrailingSlashes.d.ts.map +1 -0
- package/dist/utils/schemaTools.d.ts +82 -0
- package/dist/utils/schemaTools.d.ts.map +1 -0
- package/dist/utils/typeGuards.d.ts +316 -0
- package/dist/utils/typeGuards.d.ts.map +1 -0
- package/dist/utils/watch/core.d.ts +22 -0
- package/dist/utils/watch/core.d.ts.map +1 -0
- package/dist/utils/watch/index.d.ts +49 -0
- package/dist/utils/watch/index.d.ts.map +1 -0
- package/dist/utils/watch/utilities.d.ts +34 -0
- package/dist/utils/watch/utilities.d.ts.map +1 -0
- package/dist/wrappers/AsyncMultiSelect/AsyncMultiSelect.d.ts +9 -0
- package/dist/wrappers/AsyncMultiSelect/AsyncMultiSelect.d.ts.map +1 -0
- package/dist/wrappers/AsyncMultiSelect/index.d.ts +3 -0
- package/dist/wrappers/AsyncMultiSelect/index.d.ts.map +1 -0
- package/dist/wrappers/AsyncMultiSelect/types.d.ts +19 -0
- package/dist/wrappers/AsyncMultiSelect/types.d.ts.map +1 -0
- package/dist/wrappers/AsyncMultiSelect2/AsyncMultiSelect2.d.ts +8 -0
- package/dist/wrappers/AsyncMultiSelect2/AsyncMultiSelect2.d.ts.map +1 -0
- package/dist/wrappers/AsyncMultiSelect2/index.d.ts +3 -0
- package/dist/wrappers/AsyncMultiSelect2/index.d.ts.map +1 -0
- package/dist/wrappers/AsyncMultiSelect2/types.d.ts +29 -0
- package/dist/wrappers/AsyncMultiSelect2/types.d.ts.map +1 -0
- package/dist/wrappers/AsyncSelect/index.d.ts +9 -0
- package/dist/wrappers/AsyncSelect/index.d.ts.map +1 -0
- package/dist/wrappers/AsyncSelect/types.d.ts +19 -0
- package/dist/wrappers/AsyncSelect/types.d.ts.map +1 -0
- package/dist/wrappers/Button.d.ts +49 -0
- package/dist/wrappers/Button.d.ts.map +1 -0
- package/dist/wrappers/CheckboxElement/CheckboxElement.d.ts +102 -0
- package/dist/wrappers/CheckboxElement/CheckboxElement.d.ts.map +1 -0
- package/dist/wrappers/CheckboxElement/index.d.ts +3 -0
- package/dist/wrappers/CheckboxElement/index.d.ts.map +1 -0
- package/dist/wrappers/CheckboxElement/types.d.ts +76 -0
- package/dist/wrappers/CheckboxElement/types.d.ts.map +1 -0
- package/dist/wrappers/CheckboxGroup/CheckboxGroup.d.ts +96 -0
- package/dist/wrappers/CheckboxGroup/CheckboxGroup.d.ts.map +1 -0
- package/dist/wrappers/CheckboxGroup/EnhancedCheckboxGroup.d.ts +49 -0
- package/dist/wrappers/CheckboxGroup/EnhancedCheckboxGroup.d.ts.map +1 -0
- package/dist/wrappers/CheckboxGroup/enhanced-types.d.ts +171 -0
- package/dist/wrappers/CheckboxGroup/enhanced-types.d.ts.map +1 -0
- package/dist/wrappers/CheckboxGroup/index.d.ts +3 -0
- package/dist/wrappers/CheckboxGroup/index.d.ts.map +1 -0
- package/dist/wrappers/CheckboxGroup/types.d.ts +106 -0
- package/dist/wrappers/CheckboxGroup/types.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/DatePickerElement.d.ts +131 -0
- package/dist/wrappers/DatePickerElement/DatePickerElement.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/DatePickerElementCore.d.ts +57 -0
- package/dist/wrappers/DatePickerElement/DatePickerElementCore.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/hooks/index.d.ts +24 -0
- package/dist/wrappers/DatePickerElement/hooks/index.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/hooks/useDatePickerStyles.d.ts +63 -0
- package/dist/wrappers/DatePickerElement/hooks/useDatePickerStyles.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/hooks/useDatePickerValidation.d.ts +79 -0
- package/dist/wrappers/DatePickerElement/hooks/useDatePickerValidation.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/hooks/useDatePickerValue.d.ts +73 -0
- package/dist/wrappers/DatePickerElement/hooks/useDatePickerValue.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/index.d.ts +47 -0
- package/dist/wrappers/DatePickerElement/index.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/types.d.ts +183 -0
- package/dist/wrappers/DatePickerElement/types.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/utils.d.ts +89 -0
- package/dist/wrappers/DatePickerElement/utils.d.ts.map +1 -0
- package/dist/wrappers/DateTimePickerElement/index.d.ts +1 -0
- package/dist/wrappers/DateTimePickerElement/index.d.ts.map +1 -0
- package/dist/wrappers/DateTimePickerElement/types.d.ts +1 -0
- package/dist/wrappers/DateTimePickerElement/types.d.ts.map +1 -0
- package/dist/wrappers/Field/index.d.ts +42 -0
- package/dist/wrappers/Field/index.d.ts.map +1 -0
- package/dist/wrappers/NumberFieldElement/NumberFieldElement.d.ts +176 -0
- package/dist/wrappers/NumberFieldElement/NumberFieldElement.d.ts.map +1 -0
- package/dist/wrappers/NumberFieldElement/index.d.ts +3 -0
- package/dist/wrappers/NumberFieldElement/index.d.ts.map +1 -0
- package/dist/wrappers/OTPInputElement/HelperText.d.ts +8 -0
- package/dist/wrappers/OTPInputElement/HelperText.d.ts.map +1 -0
- package/dist/wrappers/OTPInputElement/OTPInputElement.d.ts +32 -0
- package/dist/wrappers/OTPInputElement/OTPInputElement.d.ts.map +1 -0
- package/dist/wrappers/OTPInputElement/index.d.ts +3 -0
- package/dist/wrappers/OTPInputElement/index.d.ts.map +1 -0
- package/dist/wrappers/PasswordElement/PasswordElement.d.ts +104 -0
- package/dist/wrappers/PasswordElement/PasswordElement.d.ts.map +1 -0
- package/dist/wrappers/PasswordElement/index.d.ts +2 -0
- package/dist/wrappers/PasswordElement/index.d.ts.map +1 -0
- package/dist/wrappers/RadioButtonGroup/RadioButtonGroup.d.ts +38 -0
- package/dist/wrappers/RadioButtonGroup/RadioButtonGroup.d.ts.map +1 -0
- package/dist/wrappers/RadioButtonGroup/index.d.ts +2 -0
- package/dist/wrappers/RadioButtonGroup/index.d.ts.map +1 -0
- package/dist/wrappers/SelectCascadeElement/SelectCascadeElement.d.ts +22 -0
- package/dist/wrappers/SelectCascadeElement/SelectCascadeElement.d.ts.map +1 -0
- package/dist/wrappers/SelectCascadeElement/index.d.ts +2 -0
- package/dist/wrappers/SelectCascadeElement/index.d.ts.map +1 -0
- package/dist/wrappers/SelectElement/SelectElement.d.ts +152 -0
- package/dist/wrappers/SelectElement/SelectElement.d.ts.map +1 -0
- package/dist/wrappers/SelectElement/index.d.ts +2 -0
- package/dist/wrappers/SelectElement/index.d.ts.map +1 -0
- package/dist/wrappers/SelectMultiElement/SelectMultiElement.d.ts +21 -0
- package/dist/wrappers/SelectMultiElement/SelectMultiElement.d.ts.map +1 -0
- package/dist/wrappers/SelectMultiElement/index.d.ts +2 -0
- package/dist/wrappers/SelectMultiElement/index.d.ts.map +1 -0
- package/dist/wrappers/TextFieldElement/TextFieldElement.d.ts +179 -0
- package/dist/wrappers/TextFieldElement/TextFieldElement.d.ts.map +1 -0
- package/dist/wrappers/TextFieldElement/index.d.ts +3 -0
- package/dist/wrappers/TextFieldElement/index.d.ts.map +1 -0
- package/dist/wrappers/TimePickerElement/TimePickerElement.d.ts +30 -0
- package/dist/wrappers/TimePickerElement/TimePickerElement.d.ts.map +1 -0
- package/dist/wrappers/TimePickerElement/index.d.ts +2 -0
- package/dist/wrappers/TimePickerElement/index.d.ts.map +1 -0
- package/dist/wrappers/index.cjs +3 -3
- package/dist/wrappers/index.d.ts +14 -0
- package/dist/wrappers/index.d.ts.map +1 -0
- package/dist/wrappers/index.js +1 -1
- package/dist/wrappers/types/common.d.ts +87 -0
- package/dist/wrappers/types/common.d.ts.map +1 -0
- package/dist/wrappers/types/index.d.ts +8 -0
- package/dist/wrappers/types/index.d.ts.map +1 -0
- package/package.json +4 -2
- package/dist/chunk-BXF3QEBN.js +0 -2181
- package/dist/chunk-GHW77WIM.cjs +0 -72
- package/dist/chunk-M526GQZS.js +0 -2490
- package/dist/chunk-PUQIPRL2.js +0 -467
- /package/dist/{chunk-MULSVYFT.js → chunk-6GKAC3KH.js} +0 -0
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility types and type helpers for enhanced type safety
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Makes all properties of T required and non-nullable
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* interface User {
|
|
12
|
+
* id?: string;
|
|
13
|
+
* name?: string | null;
|
|
14
|
+
* }
|
|
15
|
+
*
|
|
16
|
+
* type RequiredUser = DeepRequired<User>;
|
|
17
|
+
* // { id: string; name: string }
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export type DeepRequired<T> = {
|
|
23
|
+
[P in keyof T]-?: NonNullable<T[P]>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Makes all properties of T optional
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* interface User {
|
|
31
|
+
* id: string;
|
|
32
|
+
* name: string;
|
|
33
|
+
* }
|
|
34
|
+
*
|
|
35
|
+
* type PartialUser = DeepPartial<User>;
|
|
36
|
+
* // { id?: string; name?: string }
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
export type DeepPartial<T> = {
|
|
42
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Makes all properties of T readonly deeply
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```typescript
|
|
49
|
+
* interface User {
|
|
50
|
+
* id: string;
|
|
51
|
+
* profile: {
|
|
52
|
+
* name: string;
|
|
53
|
+
* };
|
|
54
|
+
* }
|
|
55
|
+
*
|
|
56
|
+
* type ReadonlyUser = DeepReadonly<User>;
|
|
57
|
+
* // { readonly id: string; readonly profile: { readonly name: string } }
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
export type DeepReadonly<T> = {
|
|
63
|
+
readonly [P in keyof T]: T[P] extends object ? DeepReadonly<T[P]> : T[P];
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Extracts keys from T that are not undefined
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```typescript
|
|
70
|
+
* interface User {
|
|
71
|
+
* id: string;
|
|
72
|
+
* name?: string;
|
|
73
|
+
* email: string | undefined;
|
|
74
|
+
* }
|
|
75
|
+
*
|
|
76
|
+
* type RequiredKeys = RequiredKeys<User>;
|
|
77
|
+
* // 'id'
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export type RequiredKeys<T> = {
|
|
83
|
+
[K in keyof T]-?: undefined extends T[K] ? never : K;
|
|
84
|
+
}[keyof T];
|
|
85
|
+
/**
|
|
86
|
+
* Extracts keys from T that can be undefined
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```typescript
|
|
90
|
+
* interface User {
|
|
91
|
+
* id: string;
|
|
92
|
+
* name?: string;
|
|
93
|
+
* email: string | undefined;
|
|
94
|
+
* }
|
|
95
|
+
*
|
|
96
|
+
* type OptKeys = OptionalKeys<User>;
|
|
97
|
+
* // 'name' | 'email'
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export type OptionalKeys<T> = {
|
|
103
|
+
[K in keyof T]-?: undefined extends T[K] ? K : never;
|
|
104
|
+
}[keyof T];
|
|
105
|
+
/**
|
|
106
|
+
* Makes specified keys K of type T required
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```typescript
|
|
110
|
+
* interface User {
|
|
111
|
+
* id?: string;
|
|
112
|
+
* name?: string;
|
|
113
|
+
* email?: string;
|
|
114
|
+
* }
|
|
115
|
+
*
|
|
116
|
+
* type UserWithId = RequireKeys<User, 'id' | 'email'>;
|
|
117
|
+
* // { id: string; name?: string; email: string }
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
export type RequireKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
123
|
+
/**
|
|
124
|
+
* Makes specified keys K of type T optional
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```typescript
|
|
128
|
+
* interface User {
|
|
129
|
+
* id: string;
|
|
130
|
+
* name: string;
|
|
131
|
+
* email: string;
|
|
132
|
+
* }
|
|
133
|
+
*
|
|
134
|
+
* type UserUpdate = PartialKeys<User, 'name' | 'email'>;
|
|
135
|
+
* // { id: string; name?: string; email?: string }
|
|
136
|
+
* ```
|
|
137
|
+
*
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
140
|
+
export type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
141
|
+
/**
|
|
142
|
+
* Excludes keys K from type T
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```typescript
|
|
146
|
+
* interface User {
|
|
147
|
+
* id: string;
|
|
148
|
+
* password: string;
|
|
149
|
+
* email: string;
|
|
150
|
+
* }
|
|
151
|
+
*
|
|
152
|
+
* type PublicUser = ExcludeKeys<User, 'password'>;
|
|
153
|
+
* // { id: string; email: string }
|
|
154
|
+
* ```
|
|
155
|
+
*
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
158
|
+
export type ExcludeKeys<T, K extends keyof T> = Omit<T, K>;
|
|
159
|
+
/**
|
|
160
|
+
* Picks only keys K from type T
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* ```typescript
|
|
164
|
+
* interface User {
|
|
165
|
+
* id: string;
|
|
166
|
+
* name: string;
|
|
167
|
+
* email: string;
|
|
168
|
+
* }
|
|
169
|
+
*
|
|
170
|
+
* type UserCredentials = PickKeys<User, 'email'>;
|
|
171
|
+
* // { email: string }
|
|
172
|
+
* ```
|
|
173
|
+
*
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
export type PickKeys<T, K extends keyof T> = Pick<T, K>;
|
|
177
|
+
/**
|
|
178
|
+
* Extracts the value type from an array type
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```typescript
|
|
182
|
+
* type StringArray = string[];
|
|
183
|
+
* type Item = ArrayElement<StringArray>;
|
|
184
|
+
* // string
|
|
185
|
+
* ```
|
|
186
|
+
*
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
export type ArrayElement<T> = T extends ReadonlyArray<infer E> ? E : never;
|
|
190
|
+
/**
|
|
191
|
+
* Extracts the return type of an async function
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
194
|
+
* ```typescript
|
|
195
|
+
* async function getUser(): Promise<User> {
|
|
196
|
+
* return { id: '1', name: 'John' };
|
|
197
|
+
* }
|
|
198
|
+
*
|
|
199
|
+
* type User = AsyncReturnType<typeof getUser>;
|
|
200
|
+
* // User
|
|
201
|
+
* ```
|
|
202
|
+
*
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
export type AsyncReturnType<T extends (...args: readonly unknown[]) => Promise<unknown>> = T extends (...args: readonly unknown[]) => Promise<infer R> ? R : never;
|
|
206
|
+
/**
|
|
207
|
+
* Makes a type nullable (adds null)
|
|
208
|
+
*
|
|
209
|
+
* @example
|
|
210
|
+
* ```typescript
|
|
211
|
+
* type Username = string;
|
|
212
|
+
* type NullableUsername = Nullable<Username>;
|
|
213
|
+
* // string | null
|
|
214
|
+
* ```
|
|
215
|
+
*
|
|
216
|
+
* @public
|
|
217
|
+
*/
|
|
218
|
+
export type Nullable<T> = T | null;
|
|
219
|
+
/**
|
|
220
|
+
* Makes a type optional (adds undefined)
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* ```typescript
|
|
224
|
+
* type Username = string;
|
|
225
|
+
* type OptionalUsername = Maybe<Username>;
|
|
226
|
+
* // string | undefined
|
|
227
|
+
* ```
|
|
228
|
+
*
|
|
229
|
+
* @public
|
|
230
|
+
*/
|
|
231
|
+
export type Maybe<T> = T | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* Makes a type nullish (adds null and undefined)
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* ```typescript
|
|
237
|
+
* type Username = string;
|
|
238
|
+
* type NullishUsername = Nullish<Username>;
|
|
239
|
+
* // string | null | undefined
|
|
240
|
+
* ```
|
|
241
|
+
*
|
|
242
|
+
* @public
|
|
243
|
+
*/
|
|
244
|
+
export type Nullish<T> = T | null | undefined;
|
|
245
|
+
/**
|
|
246
|
+
* Creates a union of all possible paths through an object type
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* ```typescript
|
|
250
|
+
* interface User {
|
|
251
|
+
* profile: {
|
|
252
|
+
* name: string;
|
|
253
|
+
* address: {
|
|
254
|
+
* city: string;
|
|
255
|
+
* };
|
|
256
|
+
* };
|
|
257
|
+
* }
|
|
258
|
+
*
|
|
259
|
+
* type Paths = ObjectPaths<User>;
|
|
260
|
+
* // 'profile' | 'profile.name' | 'profile.address' | 'profile.address.city'
|
|
261
|
+
* ```
|
|
262
|
+
*
|
|
263
|
+
* @public
|
|
264
|
+
*/
|
|
265
|
+
export type ObjectPaths<T> = {
|
|
266
|
+
[K in keyof T & string]: T[K] extends object ? K | `${K}.${ObjectPaths<T[K]>}` : K;
|
|
267
|
+
}[keyof T & string];
|
|
268
|
+
/**
|
|
269
|
+
* Merges two types, with properties from B overriding those in A
|
|
270
|
+
*
|
|
271
|
+
* @example
|
|
272
|
+
* ```typescript
|
|
273
|
+
* interface A {
|
|
274
|
+
* id: number;
|
|
275
|
+
* name: string;
|
|
276
|
+
* }
|
|
277
|
+
*
|
|
278
|
+
* interface B {
|
|
279
|
+
* id: string;
|
|
280
|
+
* email: string;
|
|
281
|
+
* }
|
|
282
|
+
*
|
|
283
|
+
* type Merged = Merge<A, B>;
|
|
284
|
+
* // { id: string; name: string; email: string }
|
|
285
|
+
* ```
|
|
286
|
+
*
|
|
287
|
+
* @public
|
|
288
|
+
*/
|
|
289
|
+
export type Merge<A, B> = Omit<A, keyof B> & B;
|
|
290
|
+
/**
|
|
291
|
+
* Ensures a type is serializable (no functions, symbols, undefined)
|
|
292
|
+
*
|
|
293
|
+
* @example
|
|
294
|
+
* ```typescript
|
|
295
|
+
* interface Data {
|
|
296
|
+
* id: string;
|
|
297
|
+
* callback: () => void;
|
|
298
|
+
* value: number;
|
|
299
|
+
* }
|
|
300
|
+
*
|
|
301
|
+
* type SerializableData = Serializable<Data>;
|
|
302
|
+
* // { id: string; value: number }
|
|
303
|
+
* ```
|
|
304
|
+
*
|
|
305
|
+
* @public
|
|
306
|
+
*/
|
|
307
|
+
export type Serializable<T> = {
|
|
308
|
+
[K in keyof T as T[K] extends (...args: readonly unknown[]) => unknown ? never : T[K] extends symbol ? never : T[K] extends undefined ? never : K]: T[K] extends object ? Serializable<T[K]> : T[K];
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* Converts a union type to an intersection type
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
* ```typescript
|
|
315
|
+
* type Union = { a: string } | { b: number };
|
|
316
|
+
* type Intersection = UnionToIntersection<Union>;
|
|
317
|
+
* // { a: string } & { b: number }
|
|
318
|
+
* ```
|
|
319
|
+
*
|
|
320
|
+
* @public
|
|
321
|
+
*/
|
|
322
|
+
export type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
323
|
+
/**
|
|
324
|
+
* Gets all keys of T whose values extend V
|
|
325
|
+
*
|
|
326
|
+
* @example
|
|
327
|
+
* ```typescript
|
|
328
|
+
* interface User {
|
|
329
|
+
* id: string;
|
|
330
|
+
* age: number;
|
|
331
|
+
* name: string;
|
|
332
|
+
* active: boolean;
|
|
333
|
+
* }
|
|
334
|
+
*
|
|
335
|
+
* type StringKeys = KeysOfType<User, string>;
|
|
336
|
+
* // 'id' | 'name'
|
|
337
|
+
* ```
|
|
338
|
+
*
|
|
339
|
+
* @public
|
|
340
|
+
*/
|
|
341
|
+
export type KeysOfType<T, V> = {
|
|
342
|
+
[K in keyof T]: T[K] extends V ? K : never;
|
|
343
|
+
}[keyof T];
|
|
344
|
+
/**
|
|
345
|
+
* Ensures a value is exactly the type T (no wider types allowed)
|
|
346
|
+
*
|
|
347
|
+
* @example
|
|
348
|
+
* ```typescript
|
|
349
|
+
* const config: Exact<{ debug: boolean }> = {
|
|
350
|
+
* debug: true,
|
|
351
|
+
* // extra: 'value' // ❌ Error: extra property not allowed
|
|
352
|
+
* };
|
|
353
|
+
* ```
|
|
354
|
+
*
|
|
355
|
+
* @public
|
|
356
|
+
*/
|
|
357
|
+
export type Exact<T, Shape = T> = T extends Shape ? Exclude<keyof T, keyof Shape> extends never ? T : never : never;
|
|
358
|
+
/**
|
|
359
|
+
* Creates a branded type for nominal typing
|
|
360
|
+
* This prevents mixing values of the same primitive type
|
|
361
|
+
*
|
|
362
|
+
* @example
|
|
363
|
+
* ```typescript
|
|
364
|
+
* type UserId = Brand<string, 'UserId'>;
|
|
365
|
+
* type ProductId = Brand<string, 'ProductId'>;
|
|
366
|
+
*
|
|
367
|
+
* const userId: UserId = '123' as UserId;
|
|
368
|
+
* const productId: ProductId = '456' as ProductId;
|
|
369
|
+
*
|
|
370
|
+
* // ❌ Type error: UserId is not assignable to ProductId
|
|
371
|
+
* const test: ProductId = userId;
|
|
372
|
+
* ```
|
|
373
|
+
*
|
|
374
|
+
* @public
|
|
375
|
+
*/
|
|
376
|
+
export type Brand<T, TBrand extends string> = T & {
|
|
377
|
+
readonly __brand: TBrand;
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* Helper to create a branded value
|
|
381
|
+
*
|
|
382
|
+
* @param value - The value to brand
|
|
383
|
+
* @returns The value as a branded type
|
|
384
|
+
*
|
|
385
|
+
* @example
|
|
386
|
+
* ```typescript
|
|
387
|
+
* type UserId = Brand<string, 'UserId'>;
|
|
388
|
+
* const id = brand<string, 'UserId'>('user-123');
|
|
389
|
+
* // id has type UserId
|
|
390
|
+
* ```
|
|
391
|
+
*
|
|
392
|
+
* @public
|
|
393
|
+
*/
|
|
394
|
+
export declare function brand<T, TBrand extends string>(value: T): Brand<T, TBrand>;
|
|
395
|
+
/**
|
|
396
|
+
* Removes branding from a branded type
|
|
397
|
+
*
|
|
398
|
+
* @example
|
|
399
|
+
* ```typescript
|
|
400
|
+
* type UserId = Brand<string, 'UserId'>;
|
|
401
|
+
* type PlainId = Unbrand<UserId>;
|
|
402
|
+
* // string
|
|
403
|
+
* ```
|
|
404
|
+
*
|
|
405
|
+
* @public
|
|
406
|
+
*/
|
|
407
|
+
export type Unbrand<T> = T extends infer U & {
|
|
408
|
+
readonly __brand: string;
|
|
409
|
+
} ? U : T;
|
|
410
|
+
/**
|
|
411
|
+
* Type-safe Object.keys that preserves key types
|
|
412
|
+
*
|
|
413
|
+
* @param obj - The object to get keys from
|
|
414
|
+
* @returns Array of keys with proper type
|
|
415
|
+
*
|
|
416
|
+
* @example
|
|
417
|
+
* ```typescript
|
|
418
|
+
* const user = { id: '1', name: 'John' } as const;
|
|
419
|
+
* const keys = typedKeys(user);
|
|
420
|
+
* // keys has type: ('id' | 'name')[]
|
|
421
|
+
* ```
|
|
422
|
+
*
|
|
423
|
+
* @public
|
|
424
|
+
*/
|
|
425
|
+
export declare function typedKeys<T extends Record<string, unknown>>(obj: T): Array<keyof T>;
|
|
426
|
+
/**
|
|
427
|
+
* Type-safe Object.entries that preserves key and value types
|
|
428
|
+
*
|
|
429
|
+
* @param obj - The object to get entries from
|
|
430
|
+
* @returns Array of [key, value] tuples with proper types
|
|
431
|
+
*
|
|
432
|
+
* @example
|
|
433
|
+
* ```typescript
|
|
434
|
+
* const user = { id: '1', age: 30 } as const;
|
|
435
|
+
* const entries = typedEntries(user);
|
|
436
|
+
* // entries has type: ['id', '1'] | ['age', 30]
|
|
437
|
+
* ```
|
|
438
|
+
*
|
|
439
|
+
* @public
|
|
440
|
+
*/
|
|
441
|
+
export declare function typedEntries<T extends Record<string, unknown>>(obj: T): Array<[keyof T, T[keyof T]]>;
|
|
442
|
+
/**
|
|
443
|
+
* Type-safe Object.values that preserves value types
|
|
444
|
+
*
|
|
445
|
+
* @param obj - The object to get values from
|
|
446
|
+
* @returns Array of values with proper type
|
|
447
|
+
*
|
|
448
|
+
* @example
|
|
449
|
+
* ```typescript
|
|
450
|
+
* const user = { id: '1', age: 30 };
|
|
451
|
+
* const values = typedValues(user);
|
|
452
|
+
* // values has type: (string | number)[]
|
|
453
|
+
* ```
|
|
454
|
+
*
|
|
455
|
+
* @public
|
|
456
|
+
*/
|
|
457
|
+
export declare function typedValues<T extends Record<string, unknown>>(obj: T): Array<T[keyof T]>;
|
|
458
|
+
//# sourceMappingURL=utilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/types/utilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACpC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAChC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACjB,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;IAC5B,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACxC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAClB,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,SAAS,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC;CACrD,CAAC,MAAM,CAAC,CAAC,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,SAAS,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK;CACrD,CAAC,MAAM,CAAC,CAAC,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACxD,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEvB;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACxD,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEtB;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE3D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE3E;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,SAAS,OAAO,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,IACrF,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,SAAS,OAAO,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE1E;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAEnC;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;AAErC;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACxC,CAAC,GAAG,GAAG,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAC/B,CAAC;CACN,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;AAE/C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,SAAS,OAAO,EAAE,KAAK,OAAO,GAClE,KAAK,GACL,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACnB,KAAK,GACL,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,GACtB,KAAK,GACL,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACxD,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,CACnC,CAAC,SAAS,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,GAAG,KAAK,CAC3C,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,IAAI,GAC1B,CAAC,GACD,KAAK,CAAC;AAEV;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI;KAC5B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK;CAC3C,CAAC,MAAM,CAAC,CAAC,CAAC;AAEX;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,IAAI,CAAC,SAAS,KAAK,GAC7C,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,KAAK,GACzC,CAAC,GACD,KAAK,GACP,KAAK,CAAC;AAEV;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,MAAM,SAAS,MAAM,IAAI,CAAC,GAAG;IAChD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAE1E;AAED;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,CAAC,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,CAAC,GAAG,CAAC,CAAC;AAElF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACzD,GAAG,EAAE,CAAC,GACL,KAAK,CAAC,MAAM,CAAC,CAAC,CAEhB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5D,GAAG,EAAE,CAAC,GACL,KAAK,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAE9B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3D,GAAG,EAAE,CAAC,GACL,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAEnB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ApiResponse } from '../core/api/types/ApiResponse';
|
|
2
|
+
import type { ListResponse, PostModel } from '../types';
|
|
3
|
+
import type { RequestOptions, JsonObject } from '../types/api';
|
|
4
|
+
export default class api {
|
|
5
|
+
static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
|
|
6
|
+
static post<T>(url: string, body?: JsonObject): Promise<ApiResponse<T>>;
|
|
7
|
+
static get<T>(url: string): Promise<ApiResponse<T>>;
|
|
8
|
+
static delete<T>(url: string): Promise<ApiResponse<T>>;
|
|
9
|
+
static put<T>(url: string, body?: JsonObject): Promise<ApiResponse<T>>;
|
|
10
|
+
static fetch(url: string, options?: RequestInit): Promise<Response>;
|
|
11
|
+
static tempFetch<T>(url: string, options?: RequestOptions): Promise<ApiResponse<T>>;
|
|
12
|
+
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/utils/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA+B/D,MAAM,CAAC,OAAO,OAAO,GAAG;WACT,MAAM,CAAC,CAAC,EAAE,OAAO,EAC5B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,GAC5B,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;WAgB3B,IAAI,CAAC,CAAC,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,UAAe,GACpB,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;WAeb,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;WAc5C,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;WAc/C,GAAG,CAAC,CAAC,EAChB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,UAAe,GACpB,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;WAeb,KAAK,CAChB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,QAAQ,CAAC;WAcP,SAAS,CAAC,CAAC,EACtB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,cAAkC,GAC1C,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;WAYb,MAAM,CAAC,CAAC,EACnB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAa3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ApiResponse } from '../core/api/types/ApiResponse';
|
|
2
|
+
import type { ListResponse, PostModel } from '../types';
|
|
3
|
+
import type { RequestOptions, JsonObject } from '../types/api';
|
|
4
|
+
export default class api2 {
|
|
5
|
+
static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
|
|
6
|
+
static post<T>(url: string, body?: JsonObject): Promise<ApiResponse<T>>;
|
|
7
|
+
static get<T>(url: string): Promise<ApiResponse<T>>;
|
|
8
|
+
static delete<T>(url: string): Promise<ApiResponse<T>>;
|
|
9
|
+
static put<T>(url: string, body?: JsonObject): Promise<ApiResponse<T>>;
|
|
10
|
+
static fetch(url: string, options?: RequestInit): Promise<Response>;
|
|
11
|
+
static tempFetch<T>(url: string, options?: RequestOptions): Promise<ApiResponse<T>>;
|
|
12
|
+
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=api2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api2.d.ts","sourceRoot":"","sources":["../../src/utils/api2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA+B/D,MAAM,CAAC,OAAO,OAAO,IAAI;WACV,MAAM,CAAC,CAAC,EAAE,OAAO,EAC5B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,GAC5B,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;WAgB3B,IAAI,CAAC,CAAC,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,UAAe,GACpB,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;WAeb,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;WAc5C,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;WAc/C,GAAG,CAAC,CAAC,EAChB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,UAAe,GACpB,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;WAeb,KAAK,CAChB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,QAAQ,CAAC;WAcP,SAAS,CAAC,CAAC,EACtB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,cAAkC,GAC1C,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;WAYb,MAAM,CAAC,CAAC,EACnB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAa3B"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recursively flattens an object into a flat structure with dot-notation keys.
|
|
3
|
+
*
|
|
4
|
+
* This utility function takes a nested object and converts it into a flat object
|
|
5
|
+
* where nested properties are represented using dot notation. It handles both
|
|
6
|
+
* nested objects and arrays, preserving all levels of the original structure
|
|
7
|
+
* as separate keys in the result.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* Basic object flattening:
|
|
11
|
+
* ```tsx
|
|
12
|
+
* const nested = {
|
|
13
|
+
* user: {
|
|
14
|
+
* name: 'John',
|
|
15
|
+
* address: {
|
|
16
|
+
* city: 'New York',
|
|
17
|
+
* zip: '10001'
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* };
|
|
21
|
+
*
|
|
22
|
+
* const flattened = flattenObjectKeys(nested);
|
|
23
|
+
* // Result:
|
|
24
|
+
* // {
|
|
25
|
+
* // 'user': { name: 'John', address: { city: 'New York', zip: '10001' } },
|
|
26
|
+
* // 'user.name': 'John',
|
|
27
|
+
* // 'user.address': { city: 'New York', zip: '10001' },
|
|
28
|
+
* // 'user.address.city': 'New York',
|
|
29
|
+
* // 'user.address.zip': '10001'
|
|
30
|
+
* // }
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* Array handling:
|
|
35
|
+
* ```tsx
|
|
36
|
+
* const withArrays = {
|
|
37
|
+
* items: [
|
|
38
|
+
* { id: 1, name: 'Item 1' },
|
|
39
|
+
* { id: 2, name: 'Item 2' }
|
|
40
|
+
* ]
|
|
41
|
+
* };
|
|
42
|
+
*
|
|
43
|
+
* const flattened = flattenObjectKeys(withArrays);
|
|
44
|
+
* // Result includes:
|
|
45
|
+
* // {
|
|
46
|
+
* // 'items': [...],
|
|
47
|
+
* // 'items.0': { id: 1, name: 'Item 1' },
|
|
48
|
+
* // 'items.0.id': 1,
|
|
49
|
+
* // 'items.0.name': 'Item 1',
|
|
50
|
+
* // 'items.1': { id: 2, name: 'Item 2' },
|
|
51
|
+
* // 'items.1.id': 2,
|
|
52
|
+
* // 'items.1.name': 'Item 2'
|
|
53
|
+
* // }
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param obj - The object to flatten
|
|
57
|
+
* @param prefix - Internal parameter for building key paths (used in recursion)
|
|
58
|
+
* @returns A flat object with dot-notation keys representing the original structure
|
|
59
|
+
*
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
export declare const flattenObjectKeys: (obj: unknown, prefix?: string) => Record<string, unknown>;
|
|
63
|
+
//# sourceMappingURL=flattenObjectKeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flattenObjectKeys.d.ts","sourceRoot":"","sources":["../../src/utils/flattenObjectKeys.ts"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,eAAO,MAAM,iBAAiB,GAAI,KAAK,OAAO,EAAE,eAAW,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CA8BnF,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PickerValidDate } from "@mui/x-date-pickers";
|
|
2
|
+
import type { useLocalizationContext } from "@mui/x-date-pickers/internals";
|
|
3
|
+
export declare function getTimezone<TDate extends PickerValidDate>(adapter: ReturnType<typeof useLocalizationContext>, value: TDate): string | null;
|
|
4
|
+
//# sourceMappingURL=getTimezone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTimezone.d.ts","sourceRoot":"","sources":["../../src/utils/getTimezone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAG5E,wBAAgB,WAAW,CAAC,KAAK,SAAS,eAAe,EACvD,OAAO,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,EAClD,KAAK,EAAE,KAAK,GACX,MAAM,GAAG,IAAI,CAIf"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { FieldValues, UseFormSetError } from 'react-hook-form';
|
|
2
|
+
import type { ValidationErrors } from '@/core';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration options for the handleServerErrors function.
|
|
5
|
+
*
|
|
6
|
+
* @template TFieldValues - The form values type
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
interface HandleServerErrorsType<TFieldValues extends FieldValues = FieldValues> {
|
|
11
|
+
/**
|
|
12
|
+
* Server validation errors object containing field-specific error messages
|
|
13
|
+
* @example { email: 'Email is already taken', password: ['Too short', 'Must contain numbers'] }
|
|
14
|
+
*/
|
|
15
|
+
errors?: ValidationErrors;
|
|
16
|
+
/**
|
|
17
|
+
* The setError function from react-hook-form for setting field errors
|
|
18
|
+
*/
|
|
19
|
+
setError: UseFormSetError<TFieldValues>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Processes server validation errors and applies them to react-hook-form fields.
|
|
23
|
+
*
|
|
24
|
+
* This utility function takes validation errors from a server response and automatically
|
|
25
|
+
* applies them to the corresponding form fields using react-hook-form's setError function.
|
|
26
|
+
* It supports various error formats including strings, arrays of strings, and boolean flags.
|
|
27
|
+
*
|
|
28
|
+
* The function uses object flattening to handle nested error structures and ensures
|
|
29
|
+
* that only valid field paths are processed.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* Basic usage with server response:
|
|
33
|
+
* ```tsx
|
|
34
|
+
* const { setError } = useForm();
|
|
35
|
+
*
|
|
36
|
+
* try {
|
|
37
|
+
* await submitForm(data);
|
|
38
|
+
* } catch (error) {
|
|
39
|
+
* handleServerErrors({
|
|
40
|
+
* errors: error.response.data.errors,
|
|
41
|
+
* setError
|
|
42
|
+
* });
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* With different error formats:
|
|
48
|
+
* ```tsx
|
|
49
|
+
* const serverErrors = {
|
|
50
|
+
* email: 'Email is already taken',
|
|
51
|
+
* password: ['Too short', 'Must contain numbers'],
|
|
52
|
+
* terms: true // Boolean flag indicating invalid
|
|
53
|
+
* };
|
|
54
|
+
*
|
|
55
|
+
* handleServerErrors({ errors: serverErrors, setError });
|
|
56
|
+
* // Results in:
|
|
57
|
+
* // - email field shows: "Email is already taken"
|
|
58
|
+
* // - password field shows: "Too short Must contain numbers"
|
|
59
|
+
* // - terms field shows: "Field is not valid."
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @template TFieldValues - The form values type
|
|
63
|
+
*
|
|
64
|
+
* @param args - Configuration object containing errors and setError function
|
|
65
|
+
*
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export declare const handleServerErrors: <TFieldValues extends FieldValues = FieldValues>(args: HandleServerErrorsType<TFieldValues>) => void;
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=handleServerErrors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleServerErrors.d.ts","sourceRoot":"","sources":["../../src/utils/handleServerErrors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAQ,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAI1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE/C;;;;;;GAMG;AACH,UAAU,sBAAsB,CAC9B,YAAY,SAAS,WAAW,GAAG,WAAW;IAE9C;;;OAGG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;CACzC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,eAAO,MAAM,kBAAkB,GAC7B,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,MAAM,sBAAsB,CAAC,YAAY,CAAC,SAgC3C,CAAC"}
|
package/dist/utils/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk3RZ4JNO3cjs = require('../chunk-3RZ4JNO3.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkLUW7V5GIcjs = require('../chunk-LUW7V5GI.cjs');
|
|
@@ -55,5 +55,5 @@ var _chunkLUW7V5GIcjs = require('../chunk-LUW7V5GI.cjs');
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
exports.api =
|
|
59
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
58
|
+
exports.api = _chunk3RZ4JNO3cjs.api; exports.api2 = _chunk3RZ4JNO3cjs.api2; exports.flattenObjectKeys = _chunk3RZ4JNO3cjs.flattenObjectKeys; exports.getTimezone = _chunk3RZ4JNO3cjs.getTimezone; exports.handleServerErrors = _chunk3RZ4JNO3cjs.handleServerErrors; exports.hasProperty = _chunk3RZ4JNO3cjs.hasProperty; exports.isArray = _chunk3RZ4JNO3cjs.isArray; exports.isBoolean = _chunk3RZ4JNO3cjs.isBoolean; exports.isDate = _chunk3RZ4JNO3cjs.isDate; exports.isDefined = _chunk3RZ4JNO3cjs.isDefined; exports.isError = _chunk3RZ4JNO3cjs.isError; exports.isFunction = _chunk3RZ4JNO3cjs.isFunction; exports.isNonEmptyArray = _chunk3RZ4JNO3cjs.isNonEmptyArray; exports.isNonEmptyString = _chunk3RZ4JNO3cjs.isNonEmptyString; exports.isNull = _chunk3RZ4JNO3cjs.isNull; exports.isNullish = _chunk3RZ4JNO3cjs.isNullish; exports.isNumber = _chunk3RZ4JNO3cjs.isNumber; exports.isPromise = _chunk3RZ4JNO3cjs.isPromise; exports.isRecord = _chunk3RZ4JNO3cjs.isRecord; exports.isString = _chunk3RZ4JNO3cjs.isString; exports.isUndefined = _chunk3RZ4JNO3cjs.isUndefined; exports.matches = _chunk3RZ4JNO3cjs.matches; exports.propertyExists = _chunk3RZ4JNO3cjs.propertyExists; exports.readValueAsDate = _chunkLUW7V5GIcjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunk3RZ4JNO3cjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunk3RZ4JNO3cjs.schemaTools;
|
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImQ6XFxQcm9qZWN0c1xcR05XZWJTb2Z0LlVJXFxwYWNrYWdlc1xcdWlcXGRpc3RcXHV0aWxzXFxpbmRleC5janMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDRTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNGLHlEQUE4QjtBQUM5QjtBQUNFO0FBQ0YseURBQThCO0FBQzlCO0FBQ0U7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNGLCswQ0FBQyIsImZpbGUiOiJEOlxcUHJvamVjdHNcXEdOV2ViU29mdC5VSVxccGFja2FnZXNcXHVpXFxkaXN0XFx1dGlsc1xcaW5kZXguY2pzIn0=
|