dce-reactkit 4.3.4 → 5.0.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/cjs/index.js +338 -2316
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/LogReviewer.d.ts +1 -1
- package/dist/cjs/types/helpers/logClientEvent.d.ts +1 -1
- package/dist/cjs/types/html/genErrorPage.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +2 -64
- package/dist/cjs/types/types/IntelliTableColumn.d.ts +1 -1
- package/dist/esm/index.js +78 -2223
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/LogReviewer.d.ts +1 -1
- package/dist/esm/types/helpers/logClientEvent.d.ts +1 -1
- package/dist/esm/types/html/genErrorPage.d.ts +1 -1
- package/dist/esm/types/index.d.ts +2 -64
- package/dist/esm/types/types/IntelliTableColumn.d.ts +1 -1
- package/dist/index.d.ts +3 -835
- package/package.json +4 -3
- package/src/components/AppWrapper.tsx +12 -10
- package/src/components/AutoscrollToBottomContainer.tsx +5 -3
- package/src/components/CopiableBox.tsx +5 -1
- package/src/components/DBEntryManagerPanel/helpers/generateEndpointPath.ts +2 -2
- package/src/components/ErrorBox.tsx +6 -2
- package/src/components/IntelliTable.tsx +7 -5
- package/src/components/LogReviewer.tsx +23 -21
- package/src/components/Modal/index.tsx +5 -3
- package/src/components/MultiSwitch.tsx +5 -1
- package/src/components/Shimmer.tsx +4 -2
- package/src/components/SimpleDateChooser.tsx +11 -13
- package/src/components/SimpleTimeChooser.tsx +4 -2
- package/src/helpers/canReviewLogs.test.ts +5 -3
- package/src/helpers/canReviewLogs.ts +5 -3
- package/src/helpers/initClient.tsx +8 -8
- package/src/helpers/isMobileOrTablet.tsx +2 -1
- package/src/helpers/isSelectAdmin.ts +4 -2
- package/src/helpers/logClientEvent.tsx +7 -5
- package/src/helpers/stubServerEndpoint.tsx +1 -1
- package/src/helpers/visitServerEndpoint.tsx +10 -7
- package/src/html/genErrorPage.ts +6 -4
- package/src/index.ts +105 -98
- package/src/types/IntelliTableColumn.ts +4 -1
- package/dist/cjs/types/constants/DAY_IN_MS.d.ts +0 -6
- package/dist/cjs/types/constants/HOUR_IN_MS.d.ts +0 -6
- package/dist/cjs/types/constants/LOG_REVIEW_GET_LOGS_ROUTE.d.ts +0 -6
- package/dist/cjs/types/constants/LOG_REVIEW_ROUTE_PATH_PREFIX.d.ts +0 -6
- package/dist/cjs/types/constants/LOG_REVIEW_STATUS_ROUTE.d.ts +0 -7
- package/dist/cjs/types/constants/LOG_ROUTE_PATH.d.ts +0 -6
- package/dist/cjs/types/constants/MINUTE_IN_MS.d.ts +0 -6
- package/dist/cjs/types/constants/ROUTE_PATH_PREFIX.d.ts +0 -6
- package/dist/cjs/types/constants/SELECT_ADMIN_CHECK_ROUTE.d.ts +0 -6
- package/dist/cjs/types/errors/ErrorWithCode.d.ts +0 -9
- package/dist/cjs/types/helpers/abbreviate.d.ts +0 -10
- package/dist/cjs/types/helpers/abbreviate.test.d.ts +0 -5
- package/dist/cjs/types/helpers/asyncArrayFunctions/everyAsync.d.ts +0 -13
- package/dist/cjs/types/helpers/asyncArrayFunctions/everyAsync.test.d.ts +0 -1
- package/dist/cjs/types/helpers/asyncArrayFunctions/filterAsync.d.ts +0 -13
- package/dist/cjs/types/helpers/asyncArrayFunctions/filterAsync.test.d.ts +0 -1
- package/dist/cjs/types/helpers/asyncArrayFunctions/forEachAsync.d.ts +0 -10
- package/dist/cjs/types/helpers/asyncArrayFunctions/forEachAsync.test.d.ts +0 -1
- package/dist/cjs/types/helpers/asyncArrayFunctions/mapAsync.d.ts +0 -11
- package/dist/cjs/types/helpers/asyncArrayFunctions/mapAsync.test.d.ts +0 -1
- package/dist/cjs/types/helpers/asyncArrayFunctions/someAsync.d.ts +0 -13
- package/dist/cjs/types/helpers/asyncArrayFunctions/someAsync.test.d.ts +0 -1
- package/dist/cjs/types/helpers/avg.d.ts +0 -8
- package/dist/cjs/types/helpers/avg.test.d.ts +0 -5
- package/dist/cjs/types/helpers/capitalize.d.ts +0 -7
- package/dist/cjs/types/helpers/ceilToNumDecimals.d.ts +0 -9
- package/dist/cjs/types/helpers/ceilToNumDecimals.test.d.ts +0 -5
- package/dist/cjs/types/helpers/cloneDeep.d.ts +0 -8
- package/dist/cjs/types/helpers/compareArraysByProp.d.ts +0 -13
- package/dist/cjs/types/helpers/compareArraysByProp.test.d.ts +0 -5
- package/dist/cjs/types/helpers/extractProp.d.ts +0 -12
- package/dist/cjs/types/helpers/extractProp.test.d.ts +0 -5
- package/dist/cjs/types/helpers/floorToNumDecimals.d.ts +0 -9
- package/dist/cjs/types/helpers/floorToNumDecimals.test.d.ts +0 -5
- package/dist/cjs/types/helpers/forceNumIntoBounds.d.ts +0 -10
- package/dist/cjs/types/helpers/forceNumIntoBounds.test.d.ts +0 -5
- package/dist/cjs/types/helpers/genCSV.d.ts +0 -18
- package/dist/cjs/types/helpers/genCSV.test.d.ts +0 -5
- package/dist/cjs/types/helpers/genCommaList.d.ts +0 -12
- package/dist/cjs/types/helpers/genCommaList.test.d.ts +0 -1
- package/dist/cjs/types/helpers/getHumanReadableDate.d.ts +0 -8
- package/dist/cjs/types/helpers/getHumanReadableDate.test.d.ts +0 -5
- package/dist/cjs/types/helpers/getLocalTimeInfo.d.ts +0 -19
- package/dist/cjs/types/helpers/getLocalTimeInfo.test.d.ts +0 -6
- package/dist/cjs/types/helpers/getMonthName.d.ts +0 -14
- package/dist/cjs/types/helpers/getMonthName.test.d.ts +0 -5
- package/dist/cjs/types/helpers/getOrdinal.d.ts +0 -8
- package/dist/cjs/types/helpers/getOrdinal.test.d.ts +0 -5
- package/dist/cjs/types/helpers/getPartOfDay.d.ts +0 -7
- package/dist/cjs/types/helpers/getPartOfDay.test.d.ts +0 -5
- package/dist/cjs/types/helpers/getTimeInfoInET.d.ts +0 -21
- package/dist/cjs/types/helpers/getTimeInfoInET.test.d.ts +0 -5
- package/dist/cjs/types/helpers/getTimestampFromTimeInfoInET.d.ts +0 -20
- package/dist/cjs/types/helpers/getWordCount.d.ts +0 -10
- package/dist/cjs/types/helpers/idify.d.ts +0 -9
- package/dist/cjs/types/helpers/onlyKeepLetters.d.ts +0 -8
- package/dist/cjs/types/helpers/padDecimalZeros.d.ts +0 -10
- package/dist/cjs/types/helpers/padZerosLeft.d.ts +0 -9
- package/dist/cjs/types/helpers/parallelLimit.d.ts +0 -12
- package/dist/cjs/types/helpers/prefixWithAOrAn.d.ts +0 -10
- package/dist/cjs/types/helpers/roundToNumDecimals.d.ts +0 -9
- package/dist/cjs/types/helpers/shuffleArray.d.ts +0 -8
- package/dist/cjs/types/helpers/startMinWait.d.ts +0 -9
- package/dist/cjs/types/helpers/stringsToHumanReadableList.d.ts +0 -10
- package/dist/cjs/types/helpers/sum.d.ts +0 -8
- package/dist/cjs/types/helpers/validators/ChicagoTitleCase.d.ts +0 -9
- package/dist/cjs/types/helpers/validators/shared/constants/ERROR_MESSAGES.d.ts +0 -10
- package/dist/cjs/types/helpers/validators/shared/helpers/validateRegex.d.ts +0 -19
- package/dist/cjs/types/helpers/validators/shared/types/ValidationResult.d.ts +0 -12
- package/dist/cjs/types/helpers/validators/validURL.d.ts +0 -8
- package/dist/cjs/types/helpers/validators/validateEmail.d.ts +0 -11
- package/dist/cjs/types/helpers/validators/validateEmail.test.d.ts +0 -1
- package/dist/cjs/types/helpers/validators/validatePhoneNumber.d.ts +0 -11
- package/dist/cjs/types/helpers/validators/validatePhoneNumber.test.d.ts +0 -1
- package/dist/cjs/types/helpers/validators/validateString.d.ts +0 -22
- package/dist/cjs/types/helpers/validators/validateString.test.d.ts +0 -1
- package/dist/cjs/types/helpers/waitMs.d.ts +0 -7
- package/dist/cjs/types/types/DayOfWeek.d.ts +0 -14
- package/dist/cjs/types/types/Log/LogMainInfo.d.ts +0 -39
- package/dist/cjs/types/types/Log/LogSourceSpecificInfo.d.ts +0 -13
- package/dist/cjs/types/types/Log/LogTypeSpecificInfo.d.ts +0 -17
- package/dist/cjs/types/types/Log/index.d.ts +0 -10
- package/dist/cjs/types/types/LogAction.d.ts +0 -29
- package/dist/cjs/types/types/LogBuiltInMetadata.d.ts +0 -16
- package/dist/cjs/types/types/LogFunction.d.ts +0 -24
- package/dist/cjs/types/types/LogLevel.d.ts +0 -10
- package/dist/cjs/types/types/LogMetadataContextMap.d.ts +0 -11
- package/dist/cjs/types/types/LogMetadataTagMap.d.ts +0 -8
- package/dist/cjs/types/types/LogMetadataTargetMap.d.ts +0 -8
- package/dist/cjs/types/types/LogMetadataType.d.ts +0 -13
- package/dist/cjs/types/types/LogReviewerFilterState/ActionErrorFilterState.d.ts +0 -17
- package/dist/cjs/types/types/LogReviewerFilterState/AdvancedFilterState.d.ts +0 -21
- package/dist/cjs/types/types/LogReviewerFilterState/ContextFilterState.d.ts +0 -10
- package/dist/cjs/types/types/LogReviewerFilterState/DateFilterState.d.ts +0 -17
- package/dist/cjs/types/types/LogReviewerFilterState/TagFilterState.d.ts +0 -8
- package/dist/cjs/types/types/LogReviewerFilterState/index.d.ts +0 -17
- package/dist/cjs/types/types/LogSource.d.ts +0 -9
- package/dist/cjs/types/types/LogType.d.ts +0 -9
- package/dist/cjs/types/types/ParamType.d.ts +0 -17
- package/dist/cjs/types/types/ReactKitErrorCode.d.ts +0 -14
- package/dist/esm/types/constants/DAY_IN_MS.d.ts +0 -6
- package/dist/esm/types/constants/HOUR_IN_MS.d.ts +0 -6
- package/dist/esm/types/constants/LOG_REVIEW_GET_LOGS_ROUTE.d.ts +0 -6
- package/dist/esm/types/constants/LOG_REVIEW_ROUTE_PATH_PREFIX.d.ts +0 -6
- package/dist/esm/types/constants/LOG_REVIEW_STATUS_ROUTE.d.ts +0 -7
- package/dist/esm/types/constants/LOG_ROUTE_PATH.d.ts +0 -6
- package/dist/esm/types/constants/MINUTE_IN_MS.d.ts +0 -6
- package/dist/esm/types/constants/ROUTE_PATH_PREFIX.d.ts +0 -6
- package/dist/esm/types/constants/SELECT_ADMIN_CHECK_ROUTE.d.ts +0 -6
- package/dist/esm/types/errors/ErrorWithCode.d.ts +0 -9
- package/dist/esm/types/helpers/abbreviate.d.ts +0 -10
- package/dist/esm/types/helpers/abbreviate.test.d.ts +0 -5
- package/dist/esm/types/helpers/asyncArrayFunctions/everyAsync.d.ts +0 -13
- package/dist/esm/types/helpers/asyncArrayFunctions/everyAsync.test.d.ts +0 -1
- package/dist/esm/types/helpers/asyncArrayFunctions/filterAsync.d.ts +0 -13
- package/dist/esm/types/helpers/asyncArrayFunctions/filterAsync.test.d.ts +0 -1
- package/dist/esm/types/helpers/asyncArrayFunctions/forEachAsync.d.ts +0 -10
- package/dist/esm/types/helpers/asyncArrayFunctions/forEachAsync.test.d.ts +0 -1
- package/dist/esm/types/helpers/asyncArrayFunctions/mapAsync.d.ts +0 -11
- package/dist/esm/types/helpers/asyncArrayFunctions/mapAsync.test.d.ts +0 -1
- package/dist/esm/types/helpers/asyncArrayFunctions/someAsync.d.ts +0 -13
- package/dist/esm/types/helpers/asyncArrayFunctions/someAsync.test.d.ts +0 -1
- package/dist/esm/types/helpers/avg.d.ts +0 -8
- package/dist/esm/types/helpers/avg.test.d.ts +0 -5
- package/dist/esm/types/helpers/capitalize.d.ts +0 -7
- package/dist/esm/types/helpers/ceilToNumDecimals.d.ts +0 -9
- package/dist/esm/types/helpers/ceilToNumDecimals.test.d.ts +0 -5
- package/dist/esm/types/helpers/cloneDeep.d.ts +0 -8
- package/dist/esm/types/helpers/compareArraysByProp.d.ts +0 -13
- package/dist/esm/types/helpers/compareArraysByProp.test.d.ts +0 -5
- package/dist/esm/types/helpers/extractProp.d.ts +0 -12
- package/dist/esm/types/helpers/extractProp.test.d.ts +0 -5
- package/dist/esm/types/helpers/floorToNumDecimals.d.ts +0 -9
- package/dist/esm/types/helpers/floorToNumDecimals.test.d.ts +0 -5
- package/dist/esm/types/helpers/forceNumIntoBounds.d.ts +0 -10
- package/dist/esm/types/helpers/forceNumIntoBounds.test.d.ts +0 -5
- package/dist/esm/types/helpers/genCSV.d.ts +0 -18
- package/dist/esm/types/helpers/genCSV.test.d.ts +0 -5
- package/dist/esm/types/helpers/genCommaList.d.ts +0 -12
- package/dist/esm/types/helpers/genCommaList.test.d.ts +0 -1
- package/dist/esm/types/helpers/getHumanReadableDate.d.ts +0 -8
- package/dist/esm/types/helpers/getHumanReadableDate.test.d.ts +0 -5
- package/dist/esm/types/helpers/getLocalTimeInfo.d.ts +0 -19
- package/dist/esm/types/helpers/getLocalTimeInfo.test.d.ts +0 -6
- package/dist/esm/types/helpers/getMonthName.d.ts +0 -14
- package/dist/esm/types/helpers/getMonthName.test.d.ts +0 -5
- package/dist/esm/types/helpers/getOrdinal.d.ts +0 -8
- package/dist/esm/types/helpers/getOrdinal.test.d.ts +0 -5
- package/dist/esm/types/helpers/getPartOfDay.d.ts +0 -7
- package/dist/esm/types/helpers/getPartOfDay.test.d.ts +0 -5
- package/dist/esm/types/helpers/getTimeInfoInET.d.ts +0 -21
- package/dist/esm/types/helpers/getTimeInfoInET.test.d.ts +0 -5
- package/dist/esm/types/helpers/getTimestampFromTimeInfoInET.d.ts +0 -20
- package/dist/esm/types/helpers/getWordCount.d.ts +0 -10
- package/dist/esm/types/helpers/idify.d.ts +0 -9
- package/dist/esm/types/helpers/onlyKeepLetters.d.ts +0 -8
- package/dist/esm/types/helpers/padDecimalZeros.d.ts +0 -10
- package/dist/esm/types/helpers/padZerosLeft.d.ts +0 -9
- package/dist/esm/types/helpers/parallelLimit.d.ts +0 -12
- package/dist/esm/types/helpers/prefixWithAOrAn.d.ts +0 -10
- package/dist/esm/types/helpers/roundToNumDecimals.d.ts +0 -9
- package/dist/esm/types/helpers/shuffleArray.d.ts +0 -8
- package/dist/esm/types/helpers/startMinWait.d.ts +0 -9
- package/dist/esm/types/helpers/stringsToHumanReadableList.d.ts +0 -10
- package/dist/esm/types/helpers/sum.d.ts +0 -8
- package/dist/esm/types/helpers/validators/ChicagoTitleCase.d.ts +0 -9
- package/dist/esm/types/helpers/validators/shared/constants/ERROR_MESSAGES.d.ts +0 -10
- package/dist/esm/types/helpers/validators/shared/helpers/validateRegex.d.ts +0 -19
- package/dist/esm/types/helpers/validators/shared/types/ValidationResult.d.ts +0 -12
- package/dist/esm/types/helpers/validators/validURL.d.ts +0 -8
- package/dist/esm/types/helpers/validators/validateEmail.d.ts +0 -11
- package/dist/esm/types/helpers/validators/validateEmail.test.d.ts +0 -1
- package/dist/esm/types/helpers/validators/validatePhoneNumber.d.ts +0 -11
- package/dist/esm/types/helpers/validators/validatePhoneNumber.test.d.ts +0 -1
- package/dist/esm/types/helpers/validators/validateString.d.ts +0 -22
- package/dist/esm/types/helpers/validators/validateString.test.d.ts +0 -1
- package/dist/esm/types/helpers/waitMs.d.ts +0 -7
- package/dist/esm/types/types/DayOfWeek.d.ts +0 -14
- package/dist/esm/types/types/Log/LogMainInfo.d.ts +0 -39
- package/dist/esm/types/types/Log/LogSourceSpecificInfo.d.ts +0 -13
- package/dist/esm/types/types/Log/LogTypeSpecificInfo.d.ts +0 -17
- package/dist/esm/types/types/Log/index.d.ts +0 -10
- package/dist/esm/types/types/LogAction.d.ts +0 -29
- package/dist/esm/types/types/LogBuiltInMetadata.d.ts +0 -16
- package/dist/esm/types/types/LogFunction.d.ts +0 -24
- package/dist/esm/types/types/LogLevel.d.ts +0 -10
- package/dist/esm/types/types/LogMetadataContextMap.d.ts +0 -11
- package/dist/esm/types/types/LogMetadataTagMap.d.ts +0 -8
- package/dist/esm/types/types/LogMetadataTargetMap.d.ts +0 -8
- package/dist/esm/types/types/LogMetadataType.d.ts +0 -13
- package/dist/esm/types/types/LogReviewerFilterState/ActionErrorFilterState.d.ts +0 -17
- package/dist/esm/types/types/LogReviewerFilterState/AdvancedFilterState.d.ts +0 -21
- package/dist/esm/types/types/LogReviewerFilterState/ContextFilterState.d.ts +0 -10
- package/dist/esm/types/types/LogReviewerFilterState/DateFilterState.d.ts +0 -17
- package/dist/esm/types/types/LogReviewerFilterState/TagFilterState.d.ts +0 -8
- package/dist/esm/types/types/LogReviewerFilterState/index.d.ts +0 -17
- package/dist/esm/types/types/LogSource.d.ts +0 -9
- package/dist/esm/types/types/LogType.d.ts +0 -9
- package/dist/esm/types/types/ParamType.d.ts +0 -17
- package/dist/esm/types/types/ReactKitErrorCode.d.ts +0 -14
- package/src/constants/DAY_IN_MS.ts +0 -7
- package/src/constants/HOUR_IN_MS.ts +0 -7
- package/src/constants/LOG_REVIEW_GET_LOGS_ROUTE.ts +0 -9
- package/src/constants/LOG_REVIEW_ROUTE_PATH_PREFIX.ts +0 -9
- package/src/constants/LOG_REVIEW_STATUS_ROUTE.ts +0 -10
- package/src/constants/LOG_ROUTE_PATH.ts +0 -9
- package/src/constants/MINUTE_IN_MS.ts +0 -7
- package/src/constants/ROUTE_PATH_PREFIX.ts +0 -7
- package/src/constants/SELECT_ADMIN_CHECK_ROUTE.ts +0 -7
- package/src/errors/ErrorWithCode.tsx +0 -15
- package/src/helpers/abbreviate.test.ts +0 -26
- package/src/helpers/abbreviate.ts +0 -25
- package/src/helpers/asyncArrayFunctions/everyAsync.test.ts +0 -114
- package/src/helpers/asyncArrayFunctions/everyAsync.ts +0 -51
- package/src/helpers/asyncArrayFunctions/filterAsync.test.ts +0 -126
- package/src/helpers/asyncArrayFunctions/filterAsync.ts +0 -50
- package/src/helpers/asyncArrayFunctions/forEachAsync.test.ts +0 -136
- package/src/helpers/asyncArrayFunctions/forEachAsync.ts +0 -40
- package/src/helpers/asyncArrayFunctions/mapAsync.test.ts +0 -125
- package/src/helpers/asyncArrayFunctions/mapAsync.ts +0 -46
- package/src/helpers/asyncArrayFunctions/someAsync.test.ts +0 -92
- package/src/helpers/asyncArrayFunctions/someAsync.ts +0 -49
- package/src/helpers/avg.test.ts +0 -24
- package/src/helpers/avg.ts +0 -22
- package/src/helpers/capitalize.ts +0 -20
- package/src/helpers/ceilToNumDecimals.test.ts +0 -39
- package/src/helpers/ceilToNumDecimals.ts +0 -13
- package/src/helpers/cloneDeep.ts +0 -11
- package/src/helpers/compareArraysByProp.test.ts +0 -147
- package/src/helpers/compareArraysByProp.ts +0 -56
- package/src/helpers/extractProp.test.ts +0 -34
- package/src/helpers/extractProp.ts +0 -17
- package/src/helpers/floorToNumDecimals.test.ts +0 -39
- package/src/helpers/floorToNumDecimals.ts +0 -13
- package/src/helpers/forceNumIntoBounds.test.ts +0 -34
- package/src/helpers/forceNumIntoBounds.ts +0 -19
- package/src/helpers/genCSV.test.ts +0 -75
- package/src/helpers/genCSV.ts +0 -87
- package/src/helpers/genCommaList.test.ts +0 -57
- package/src/helpers/genCommaList.ts +0 -21
- package/src/helpers/getHumanReadableDate.test.ts +0 -29
- package/src/helpers/getHumanReadableDate.ts +0 -36
- package/src/helpers/getLocalTimeInfo.test.ts +0 -48
- package/src/helpers/getLocalTimeInfo.ts +0 -58
- package/src/helpers/getMonthName.test.ts +0 -79
- package/src/helpers/getMonthName.ts +0 -29
- package/src/helpers/getOrdinal.test.ts +0 -84
- package/src/helpers/getOrdinal.ts +0 -14
- package/src/helpers/getPartOfDay.test.ts +0 -56
- package/src/helpers/getPartOfDay.ts +0 -20
- package/src/helpers/getTimeInfoInET.test.ts +0 -72
- package/src/helpers/getTimeInfoInET.ts +0 -79
- package/src/helpers/getTimestampFromTimeInfoInET.ts +0 -179
- package/src/helpers/getWordCount.ts +0 -26
- package/src/helpers/idify.ts +0 -24
- package/src/helpers/onlyKeepLetters.ts +0 -11
- package/src/helpers/padDecimalZeros.tsx +0 -32
- package/src/helpers/padZerosLeft.tsx +0 -21
- package/src/helpers/parallelLimit.ts +0 -63
- package/src/helpers/prefixWithAOrAn.ts +0 -29
- package/src/helpers/roundToNumDecimals.tsx +0 -13
- package/src/helpers/shuffleArray.ts +0 -19
- package/src/helpers/startMinWait.ts +0 -33
- package/src/helpers/stringsToHumanReadableList.ts +0 -39
- package/src/helpers/sum.tsx +0 -16
- package/src/helpers/validators/ChicagoTitleCase.test.ts +0 -85
- package/src/helpers/validators/ChicagoTitleCase.ts +0 -32
- package/src/helpers/validators/findURL.test.ts +0 -83
- package/src/helpers/validators/findURL.ts +0 -43
- package/src/helpers/validators/shared/constants/ERROR_MESSAGES.ts +0 -18
- package/src/helpers/validators/shared/helpers/validateRegex.ts +0 -47
- package/src/helpers/validators/shared/types/ValidationResult.ts +0 -20
- package/src/helpers/validators/validURL.test.ts +0 -90
- package/src/helpers/validators/validURL.ts +0 -18
- package/src/helpers/validators/validateEmail.test.ts +0 -110
- package/src/helpers/validators/validateEmail.ts +0 -47
- package/src/helpers/validators/validatePhoneNumber.test.ts +0 -94
- package/src/helpers/validators/validatePhoneNumber.ts +0 -49
- package/src/helpers/validators/validateString.test.ts +0 -173
- package/src/helpers/validators/validateString.ts +0 -171
- package/src/helpers/waitMs.tsx +0 -12
- package/src/types/DayOfWeek.ts +0 -15
- package/src/types/Log/LogMainInfo.ts +0 -69
- package/src/types/Log/LogSourceSpecificInfo.ts +0 -25
- package/src/types/Log/LogTypeSpecificInfo.ts +0 -33
- package/src/types/Log/index.ts +0 -17
- package/src/types/LogAction.ts +0 -52
- package/src/types/LogBuiltInMetadata.ts +0 -19
- package/src/types/LogFunction.ts +0 -46
- package/src/types/LogLevel.ts +0 -11
- package/src/types/LogMetadataContextMap.ts +0 -15
- package/src/types/LogMetadataTagMap.ts +0 -9
- package/src/types/LogMetadataTargetMap.ts +0 -9
- package/src/types/LogMetadataType.ts +0 -16
- package/src/types/LogReviewerFilterState/ActionErrorFilterState.ts +0 -24
- package/src/types/LogReviewerFilterState/AdvancedFilterState.ts +0 -36
- package/src/types/LogReviewerFilterState/ContextFilterState.ts +0 -16
- package/src/types/LogReviewerFilterState/DateFilterState.ts +0 -26
- package/src/types/LogReviewerFilterState/TagFilterState.ts +0 -9
- package/src/types/LogReviewerFilterState/index.ts +0 -24
- package/src/types/LogSource.ts +0 -12
- package/src/types/LogType.ts +0 -12
- package/src/types/ParamType.ts +0 -18
- package/src/types/ReactKitErrorCode.tsx +0 -17
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { LogMetadataType, ParamType, LogFunction } from 'dce-commonkit';
|
|
3
|
+
export { CommonKitErrorCode, DAY_IN_MS, DayOfWeek, ErrorWithCode, HOUR_IN_MS, LOG_REVIEW_GET_LOGS_ROUTE, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_REVIEW_STATUS_ROUTE, LOG_ROUTE_PATH, Log, LogAction, LogBuiltInMetadata, LogFunction, LogLevel, LogMainInfo, LogMetadataType, LogReviewerFilterState, LogSource, LogSourceSpecificInfo, LogType, LogTypeSpecificInfo, MINUTE_IN_MS, ParamType, SELECT_ADMIN_CHECK_ROUTE, abbreviate, avg, capitalize, ceilToNumDecimals, cloneDeep, compareArraysByProp, everyAsync, extractProp, filterAsync, floorToNumDecimals, forEachAsync, forceNumIntoBounds, genCSV, genCommaList, getHumanReadableDate, getLocalTimeInfo, getMonthName, getOrdinal, getPartOfDay, getTimeInfoInET, getTimestampFromTimeInfoInET, getWordCount, idify, mapAsync, onlyKeepLetters, padDecimalZeros, padZerosLeft, parallelLimit, prefixWithAOrAn, roundToNumDecimals, shuffleArray, someAsync, startMinWait, stringsToHumanReadableList, sum, validateEmail, validatePhoneNumber, validateString, waitMs } from 'dce-commonkit';
|
|
2
4
|
import React$1 from 'react';
|
|
3
5
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
4
6
|
|
|
@@ -444,43 +446,6 @@ type Props$a = {
|
|
|
444
446
|
};
|
|
445
447
|
declare const ItemPicker: React$1.FC<Props$a>;
|
|
446
448
|
|
|
447
|
-
/**
|
|
448
|
-
* Type of the context map in a LogMetadata file
|
|
449
|
-
* @author Gabe Abrams
|
|
450
|
-
*/
|
|
451
|
-
type LogMetadataContextMap = {
|
|
452
|
-
[k: string]: (string | {
|
|
453
|
-
_: string;
|
|
454
|
-
[k: string]: string;
|
|
455
|
-
});
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* Type of the tag map inside a LogMetadata file
|
|
460
|
-
* @author Gabe Abrams
|
|
461
|
-
*/
|
|
462
|
-
type LogMetadataTagMap = {
|
|
463
|
-
[k: string]: string;
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* Type of the target map inside a LogMetadata file
|
|
468
|
-
* @author Gabe Abrams
|
|
469
|
-
*/
|
|
470
|
-
type LogMetadataTargetMap = {
|
|
471
|
-
[k: string]: string;
|
|
472
|
-
};
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* Type of a LogMetadata file
|
|
476
|
-
* @author Gabe Abrams
|
|
477
|
-
*/
|
|
478
|
-
type LogMetadataType = {
|
|
479
|
-
Context?: LogMetadataContextMap;
|
|
480
|
-
Tag?: LogMetadataTagMap;
|
|
481
|
-
Target?: LogMetadataTargetMap;
|
|
482
|
-
};
|
|
483
|
-
|
|
484
449
|
/**
|
|
485
450
|
* Log reviewer panel that allows users (must be approved admins) to
|
|
486
451
|
* review logs written by dce-reactkit
|
|
@@ -493,23 +458,6 @@ type Props$9 = {
|
|
|
493
458
|
};
|
|
494
459
|
declare const LogReviewer: React$1.FC<Props$9>;
|
|
495
460
|
|
|
496
|
-
/**
|
|
497
|
-
* Server-side API param types
|
|
498
|
-
* @author Gabe Abrams
|
|
499
|
-
*/
|
|
500
|
-
declare enum ParamType {
|
|
501
|
-
Boolean = "Boolean",
|
|
502
|
-
BooleanOptional = "BooleanOptional",
|
|
503
|
-
Float = "Float",
|
|
504
|
-
FloatOptional = "FloatOptional",
|
|
505
|
-
Int = "Int",
|
|
506
|
-
IntOptional = "IntOptional",
|
|
507
|
-
JSON = "JSON",
|
|
508
|
-
JSONOptional = "JSONOptional",
|
|
509
|
-
String = "String",
|
|
510
|
-
StringOptional = "StringOptional"
|
|
511
|
-
}
|
|
512
|
-
|
|
513
461
|
/**
|
|
514
462
|
* Column description for a column in the IntelliTable
|
|
515
463
|
* @author Gabe Abrams
|
|
@@ -803,64 +751,6 @@ type Props = (({
|
|
|
803
751
|
});
|
|
804
752
|
declare const ProgressBar: React$1.FC<Props>;
|
|
805
753
|
|
|
806
|
-
/**
|
|
807
|
-
* An error with a code
|
|
808
|
-
* @author Gabe Abrams
|
|
809
|
-
*/
|
|
810
|
-
declare class ErrorWithCode extends Error {
|
|
811
|
-
code: string;
|
|
812
|
-
constructor(message: string, code: string);
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
/**
|
|
816
|
-
* One minute in ms
|
|
817
|
-
* @author Gabe Abrams
|
|
818
|
-
*/
|
|
819
|
-
declare const MINUTE_IN_MS = 60000;
|
|
820
|
-
|
|
821
|
-
/**
|
|
822
|
-
* One hour in ms
|
|
823
|
-
* @author Gabe Abrams
|
|
824
|
-
*/
|
|
825
|
-
declare const HOUR_IN_MS = 3600000;
|
|
826
|
-
|
|
827
|
-
/**
|
|
828
|
-
* One day in ms
|
|
829
|
-
* @author Gabe Abrams
|
|
830
|
-
*/
|
|
831
|
-
declare const DAY_IN_MS = 86400000;
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* Path of the route for storing client-side logs
|
|
835
|
-
* @author Gabe Abrams
|
|
836
|
-
*/
|
|
837
|
-
declare const LOG_REVIEW_ROUTE_PATH_PREFIX: string;
|
|
838
|
-
|
|
839
|
-
/**
|
|
840
|
-
* Path of the route for storing client-side logs
|
|
841
|
-
* @author Gabe Abrams
|
|
842
|
-
*/
|
|
843
|
-
declare const LOG_ROUTE_PATH: string;
|
|
844
|
-
|
|
845
|
-
/**
|
|
846
|
-
* Route for checking the status of the current user's
|
|
847
|
-
* access to log review
|
|
848
|
-
* @author Gabe Abrams
|
|
849
|
-
*/
|
|
850
|
-
declare const LOG_REVIEW_STATUS_ROUTE: string;
|
|
851
|
-
|
|
852
|
-
/**
|
|
853
|
-
* Path of the route for getting logs for log review
|
|
854
|
-
* @author Gabe Abrams
|
|
855
|
-
*/
|
|
856
|
-
declare const LOG_REVIEW_GET_LOGS_ROUTE: string;
|
|
857
|
-
|
|
858
|
-
/**
|
|
859
|
-
* Route for checking if the current user is a select admin
|
|
860
|
-
* @author Gabe Abrams
|
|
861
|
-
*/
|
|
862
|
-
declare const SELECT_ADMIN_CHECK_ROUTE = "/api/admin/select/is-select-admin";
|
|
863
|
-
|
|
864
754
|
/**
|
|
865
755
|
* Dynamic words determined by the user's platform
|
|
866
756
|
* @author Gabe Abrams
|
|
@@ -916,95 +806,6 @@ declare const initClient: (opts: ({
|
|
|
916
806
|
sessionExpiredMessage?: undefined;
|
|
917
807
|
})) => void;
|
|
918
808
|
|
|
919
|
-
/**
|
|
920
|
-
* Shorten text so it fits into a certain number of chars
|
|
921
|
-
* @author Gabe Abrams
|
|
922
|
-
* @param text the text to abbreviate
|
|
923
|
-
* @param maxChars the maximum number of chars to include
|
|
924
|
-
* @returns abbreviated text with length no greater than maxChars
|
|
925
|
-
* (including ellipses if applicable)
|
|
926
|
-
*/
|
|
927
|
-
declare const abbreviate: (text: string, maxChars: number) => string;
|
|
928
|
-
|
|
929
|
-
/**
|
|
930
|
-
* Get the average of a set of numbers
|
|
931
|
-
* @author Gabe Abrams
|
|
932
|
-
* @param nums the numbers to average
|
|
933
|
-
* @returns average value or 0 if no numbers
|
|
934
|
-
*/
|
|
935
|
-
declare const avg: (nums: number[]) => number;
|
|
936
|
-
|
|
937
|
-
/**
|
|
938
|
-
* Round a number (ceiling) to a certain number of decimals
|
|
939
|
-
* @author Gabe Abrams
|
|
940
|
-
* @param num the number to round
|
|
941
|
-
* @param numDecimals the number of decimals to round to
|
|
942
|
-
* @returns rounded number
|
|
943
|
-
*/
|
|
944
|
-
declare const ceilToNumDecimals: (num: number, numDecimals: number) => number;
|
|
945
|
-
|
|
946
|
-
/**
|
|
947
|
-
* Round a number (floor) to a certain number of decimals
|
|
948
|
-
* @author Gabe Abrams
|
|
949
|
-
* @param num the number to round
|
|
950
|
-
* @param numDecimals the number of decimals to round to
|
|
951
|
-
* @returns rounded number
|
|
952
|
-
*/
|
|
953
|
-
declare const floorToNumDecimals: (num: number, numDecimals: number) => number;
|
|
954
|
-
|
|
955
|
-
/**
|
|
956
|
-
* Force a number to stay within specific bounds
|
|
957
|
-
* @author Gabe Abrams
|
|
958
|
-
* @param num the number to move into the bounds
|
|
959
|
-
* @param min the minimum number in the bound
|
|
960
|
-
* @param max the maximum number in the bound
|
|
961
|
-
* @returns bounded number
|
|
962
|
-
*/
|
|
963
|
-
declare const forceNumIntoBounds: (num: number, min: number, max: number) => number;
|
|
964
|
-
|
|
965
|
-
/**
|
|
966
|
-
* Pad a number's decimal with zeros on the right
|
|
967
|
-
* (e.g. 5.2 becomes 5.20 with 2 digit padding)
|
|
968
|
-
* @author Gabe Abrams
|
|
969
|
-
* @param num the number to pad
|
|
970
|
-
* @param numDigits the minimum number of digits after the decimal
|
|
971
|
-
* @returns padded number
|
|
972
|
-
*/
|
|
973
|
-
declare const padDecimalZeros: (num: number, numDigits: number) => string;
|
|
974
|
-
|
|
975
|
-
/**
|
|
976
|
-
* Pad a number with zeros on the left (e.g. 5 becomes 05 with 2 digit padding)
|
|
977
|
-
* @author Gabe Abrams
|
|
978
|
-
* @param num the number to pad
|
|
979
|
-
* @param numDigits the minimum number of digits before the decimal
|
|
980
|
-
* @returns padded number
|
|
981
|
-
*/
|
|
982
|
-
declare const padZerosLeft: (num: number, numDigits: number) => string;
|
|
983
|
-
|
|
984
|
-
/**
|
|
985
|
-
* Round a number to a certain number of decimals
|
|
986
|
-
* @author Gabe Abrams
|
|
987
|
-
* @param num the number to round
|
|
988
|
-
* @param numDecimals the number of decimals to round to
|
|
989
|
-
* @returns rounded number
|
|
990
|
-
*/
|
|
991
|
-
declare const roundToNumDecimals: (num: number, numDecimals: number) => number;
|
|
992
|
-
|
|
993
|
-
/**
|
|
994
|
-
* Sum the numbers in an array
|
|
995
|
-
* @author Gabe Abrams
|
|
996
|
-
* @param nums the numbers to sum
|
|
997
|
-
* @returns the sum of the numbers
|
|
998
|
-
*/
|
|
999
|
-
declare const sum: (nums: number[]) => number;
|
|
1000
|
-
|
|
1001
|
-
/**
|
|
1002
|
-
* Wait for a certain number of ms
|
|
1003
|
-
* @author Gabe Abrams
|
|
1004
|
-
* @param ms number of ms to wait
|
|
1005
|
-
*/
|
|
1006
|
-
declare const waitMs: (ms?: number) => Promise<unknown>;
|
|
1007
|
-
|
|
1008
809
|
/**
|
|
1009
810
|
* Visit an endpoint on the server [for client only]
|
|
1010
811
|
* @author Gabe Abrams
|
|
@@ -1022,35 +823,6 @@ declare const visitServerEndpoint: (opts: {
|
|
|
1022
823
|
} | undefined;
|
|
1023
824
|
}) => Promise<any>;
|
|
1024
825
|
|
|
1025
|
-
/**
|
|
1026
|
-
* Get a number's ordinal
|
|
1027
|
-
* @author Gabe Abrams
|
|
1028
|
-
* @param num the number being analyzed
|
|
1029
|
-
* @returns ordinal
|
|
1030
|
-
*/
|
|
1031
|
-
declare const getOrdinal: (num: number) => string;
|
|
1032
|
-
|
|
1033
|
-
/**
|
|
1034
|
-
* Get current time info in US Boston Eastern Time, independent of machine
|
|
1035
|
-
* timezone
|
|
1036
|
-
* @author Gabe Abrams
|
|
1037
|
-
* @param [dateOrTimestamp=now] the date to get info on or a ms since epoch timestamp
|
|
1038
|
-
* @returns object with timestamp (ms since epoch) and numbers
|
|
1039
|
-
* corresponding to ET time values for year, month, day, hour, hour12, minute, second, isPM
|
|
1040
|
-
* where hour is in 24hr time and hour12 is in 12hr time.
|
|
1041
|
-
*/
|
|
1042
|
-
declare const getTimeInfoInET: (dateOrTimestamp?: Date | number) => {
|
|
1043
|
-
timestamp: number;
|
|
1044
|
-
year: number;
|
|
1045
|
-
month: number;
|
|
1046
|
-
day: number;
|
|
1047
|
-
hour: number;
|
|
1048
|
-
hour12: number;
|
|
1049
|
-
minute: number;
|
|
1050
|
-
second: number;
|
|
1051
|
-
isPM: boolean;
|
|
1052
|
-
};
|
|
1053
|
-
|
|
1054
826
|
/**
|
|
1055
827
|
* Stub a server endpoint response
|
|
1056
828
|
* @author Gabe Abrams
|
|
@@ -1069,210 +841,6 @@ declare const stubServerEndpoint: (opts: {
|
|
|
1069
841
|
errorCode?: string | undefined;
|
|
1070
842
|
}) => void;
|
|
1071
843
|
|
|
1072
|
-
/**
|
|
1073
|
-
* Start a dynamic wait, call the function once the operation has completed and
|
|
1074
|
-
* the dynamic wait will continue waiting for the rest of the minimum time
|
|
1075
|
-
* @author Gabe Abrams
|
|
1076
|
-
* @param minWaitMs the minimum number of ms to wait
|
|
1077
|
-
* @returns async function to call to finish the wait
|
|
1078
|
-
*/
|
|
1079
|
-
declare const startMinWait: (minWaitMs: number) => () => Promise<void>;
|
|
1080
|
-
|
|
1081
|
-
/**
|
|
1082
|
-
* Get a human-readable description of a date (all in ET)
|
|
1083
|
-
* @author Gabe Abrams
|
|
1084
|
-
* @param [dateOrTimestamp=today] the date or timestamp for the date to describe
|
|
1085
|
-
* @returns human-readable description of the date
|
|
1086
|
-
*/
|
|
1087
|
-
declare const getHumanReadableDate: (dateOrTimestamp?: Date | number) => string;
|
|
1088
|
-
|
|
1089
|
-
/**
|
|
1090
|
-
* Get the current part of day (morning, evening, etc.)
|
|
1091
|
-
* @author Gabe Abrams
|
|
1092
|
-
* @returns the part of day (morning, evening, etc.)
|
|
1093
|
-
*/
|
|
1094
|
-
declare const getPartOfDay: () => string;
|
|
1095
|
-
|
|
1096
|
-
/**
|
|
1097
|
-
* Create a human readable list from an array of strings.
|
|
1098
|
-
* For example, ['apple', 'orange'] becomes "apple and orange"
|
|
1099
|
-
* and ['apple', 'orange', 'mango'] becomes "apple, orange, and mango"
|
|
1100
|
-
* @author Gabe Abrams
|
|
1101
|
-
* @param items list of items in the list
|
|
1102
|
-
* @returns human-readable list
|
|
1103
|
-
*/
|
|
1104
|
-
declare const stringsToHumanReadableList: (items: string[]) => string;
|
|
1105
|
-
|
|
1106
|
-
/**
|
|
1107
|
-
* Given a string, only keep the letters inside it
|
|
1108
|
-
* @author Gabe Abrams
|
|
1109
|
-
* @param str the string to parse
|
|
1110
|
-
* @returns only the letters inside of the string
|
|
1111
|
-
*/
|
|
1112
|
-
declare const onlyKeepLetters: (str: string) => string;
|
|
1113
|
-
|
|
1114
|
-
/**
|
|
1115
|
-
* Run tasks in parallel with a limit on how many tasks can execute at once.
|
|
1116
|
-
* No guarantees are made about the order of task execution
|
|
1117
|
-
* @author Gabe Abrams
|
|
1118
|
-
* @param taskFunctions functions that start asynchronous tasks and optionally
|
|
1119
|
-
* resolve with values
|
|
1120
|
-
* @param [limit=no limit] maximum number of asynchronous tasks to permit to run at
|
|
1121
|
-
* once
|
|
1122
|
-
* @returns array of resolved values in the same order as the task functions
|
|
1123
|
-
*/
|
|
1124
|
-
declare const parallelLimit: (taskFunctions: (() => Promise<any>)[], limit?: number) => Promise<any[]>;
|
|
1125
|
-
|
|
1126
|
-
/**
|
|
1127
|
-
* Allowed log levels
|
|
1128
|
-
* @author Gabe Abrams
|
|
1129
|
-
*/
|
|
1130
|
-
declare enum LogLevel {
|
|
1131
|
-
Warn = "Warn",
|
|
1132
|
-
Info = "Info",
|
|
1133
|
-
Debug = "Debug"
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
/**
|
|
1137
|
-
* Main information in a log event
|
|
1138
|
-
* @author Gabe Abrams
|
|
1139
|
-
*/
|
|
1140
|
-
type LogMainInfo = {
|
|
1141
|
-
id: string;
|
|
1142
|
-
userFirstName: string;
|
|
1143
|
-
userLastName: string;
|
|
1144
|
-
userEmail: string;
|
|
1145
|
-
userId: number;
|
|
1146
|
-
isLearner: boolean;
|
|
1147
|
-
isAdmin: boolean;
|
|
1148
|
-
isTTM: boolean;
|
|
1149
|
-
courseId: number;
|
|
1150
|
-
courseName: string;
|
|
1151
|
-
browser: {
|
|
1152
|
-
name: string;
|
|
1153
|
-
version: string;
|
|
1154
|
-
};
|
|
1155
|
-
device: {
|
|
1156
|
-
os: string;
|
|
1157
|
-
isMobile: boolean;
|
|
1158
|
-
};
|
|
1159
|
-
year: number;
|
|
1160
|
-
month: number;
|
|
1161
|
-
day: number;
|
|
1162
|
-
hour: number;
|
|
1163
|
-
minute: number;
|
|
1164
|
-
timestamp: number;
|
|
1165
|
-
context: string;
|
|
1166
|
-
subcontext: string;
|
|
1167
|
-
tags: string[];
|
|
1168
|
-
level: LogLevel;
|
|
1169
|
-
metadata?: {
|
|
1170
|
-
[k: string]: any;
|
|
1171
|
-
};
|
|
1172
|
-
};
|
|
1173
|
-
|
|
1174
|
-
/**
|
|
1175
|
-
* Source of a log event
|
|
1176
|
-
* @author Gabe Abrams
|
|
1177
|
-
*/
|
|
1178
|
-
declare enum LogSource {
|
|
1179
|
-
Client = "client",
|
|
1180
|
-
Server = "server"
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
/**
|
|
1184
|
-
* Log info that is specific to the type of source
|
|
1185
|
-
* @author Gabe Abrams
|
|
1186
|
-
*/
|
|
1187
|
-
type LogSourceSpecificInfo = ({
|
|
1188
|
-
source: LogSource.Client;
|
|
1189
|
-
} | {
|
|
1190
|
-
source: LogSource.Server;
|
|
1191
|
-
routePath: string;
|
|
1192
|
-
routeTemplate: string;
|
|
1193
|
-
});
|
|
1194
|
-
|
|
1195
|
-
/**
|
|
1196
|
-
* Types of actions
|
|
1197
|
-
* @author Gabe Abrams
|
|
1198
|
-
*/
|
|
1199
|
-
declare enum LogAction {
|
|
1200
|
-
Open = "Open",
|
|
1201
|
-
Close = "Close",
|
|
1202
|
-
Cancel = "Cancel",
|
|
1203
|
-
Expand = "Expand",
|
|
1204
|
-
Collapse = "Collapse",
|
|
1205
|
-
View = "View",
|
|
1206
|
-
Interrupt = "Interrupt",
|
|
1207
|
-
Create = "Create",
|
|
1208
|
-
Modify = "Modify",
|
|
1209
|
-
Delete = "Delete",
|
|
1210
|
-
Add = "Add",
|
|
1211
|
-
Remove = "Remove",
|
|
1212
|
-
Activate = "Activate",
|
|
1213
|
-
Deactivate = "Deactivate",
|
|
1214
|
-
Peek = "Peek",
|
|
1215
|
-
Halt = "Halt",
|
|
1216
|
-
Resume = "Resume",
|
|
1217
|
-
Jump = "Jump",
|
|
1218
|
-
Post = "Post",
|
|
1219
|
-
Like = "Like",
|
|
1220
|
-
Dislike = "Dislike",
|
|
1221
|
-
Unknown = "Unknown"
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
/**
|
|
1225
|
-
* Type of a log event
|
|
1226
|
-
* @author Gabe Abrams
|
|
1227
|
-
*/
|
|
1228
|
-
declare enum LogType {
|
|
1229
|
-
Action = "action",
|
|
1230
|
-
Error = "error"
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
/**
|
|
1234
|
-
* Log info that is specific to the type of log
|
|
1235
|
-
* @author Gabe Abrams
|
|
1236
|
-
*/
|
|
1237
|
-
type LogTypeSpecificInfo = ({
|
|
1238
|
-
type: LogType.Error;
|
|
1239
|
-
errorMessage: string;
|
|
1240
|
-
errorCode: string;
|
|
1241
|
-
errorStack: string;
|
|
1242
|
-
} | {
|
|
1243
|
-
type: LogType.Action;
|
|
1244
|
-
target: string;
|
|
1245
|
-
action: LogAction;
|
|
1246
|
-
});
|
|
1247
|
-
|
|
1248
|
-
/**
|
|
1249
|
-
* A single log event corresponding to an action performed by a user or an
|
|
1250
|
-
* error encountered by a user
|
|
1251
|
-
* @author Gabe Abrams
|
|
1252
|
-
*/
|
|
1253
|
-
type Log = (LogMainInfo & LogSourceSpecificInfo & LogTypeSpecificInfo);
|
|
1254
|
-
|
|
1255
|
-
/**
|
|
1256
|
-
* Type of a log action function
|
|
1257
|
-
* @author Gabe Abrams
|
|
1258
|
-
*/
|
|
1259
|
-
type LogFunction = (opts: ({
|
|
1260
|
-
context: string | {
|
|
1261
|
-
_: string;
|
|
1262
|
-
};
|
|
1263
|
-
subcontext?: string;
|
|
1264
|
-
tags?: string[];
|
|
1265
|
-
metadata?: {
|
|
1266
|
-
[k: string]: any;
|
|
1267
|
-
};
|
|
1268
|
-
level?: LogLevel;
|
|
1269
|
-
} & ({
|
|
1270
|
-
error: any;
|
|
1271
|
-
} | {
|
|
1272
|
-
action: LogAction;
|
|
1273
|
-
target?: string;
|
|
1274
|
-
}))) => Promise<Log>;
|
|
1275
|
-
|
|
1276
844
|
type MetadataPopulator = () => {
|
|
1277
845
|
[k: string]: any;
|
|
1278
846
|
} | Promise<{
|
|
@@ -1293,38 +861,6 @@ declare const setClientEventMetadataPopulator: (newMetadataPopulator: MetadataPo
|
|
|
1293
861
|
*/
|
|
1294
862
|
declare const logClientEvent: LogFunction;
|
|
1295
863
|
|
|
1296
|
-
/**
|
|
1297
|
-
* Get the name of a month given the month number (1 = January, etc.)
|
|
1298
|
-
* If an invalid number is provided, we will treat it like January
|
|
1299
|
-
* @author Gabe Abrams
|
|
1300
|
-
* @param month the number of the month
|
|
1301
|
-
* @returns object containing multiple month name formats:
|
|
1302
|
-
* { short, full } where short will look like "Jan" and full will look like
|
|
1303
|
-
* "January"
|
|
1304
|
-
*/
|
|
1305
|
-
declare const getMonthName: (month: number) => {
|
|
1306
|
-
short: string;
|
|
1307
|
-
full: string;
|
|
1308
|
-
};
|
|
1309
|
-
|
|
1310
|
-
/**
|
|
1311
|
-
* Generate a CSV file
|
|
1312
|
-
* @author Gabe Abrams
|
|
1313
|
-
* @param data list of row data in the form of json objects
|
|
1314
|
-
* @param columns list of columns to include in the csv where each column is an object with:
|
|
1315
|
-
* - title: the column title
|
|
1316
|
-
* - param: the key in the data object to use for this column
|
|
1317
|
-
* - textIfUndefined: optional text to use if the value is undefined (defaults to empty string)
|
|
1318
|
-
* @returns multiline csv string
|
|
1319
|
-
*/
|
|
1320
|
-
declare const genCSV: (data: {
|
|
1321
|
-
[k: string]: any;
|
|
1322
|
-
}[], columns: {
|
|
1323
|
-
title: string;
|
|
1324
|
-
param: string;
|
|
1325
|
-
textIfUndefined?: string;
|
|
1326
|
-
}[]) => string;
|
|
1327
|
-
|
|
1328
864
|
/**
|
|
1329
865
|
* Check if the current user can review logs
|
|
1330
866
|
* @author Gabe Abrams
|
|
@@ -1339,124 +875,6 @@ declare const canReviewLogs: () => Promise<boolean>;
|
|
|
1339
875
|
*/
|
|
1340
876
|
declare const isMobileOrTablet: () => boolean;
|
|
1341
877
|
|
|
1342
|
-
/**
|
|
1343
|
-
* For every element in an array, extract the value of a prop
|
|
1344
|
-
* (e.g. for all user objects, extract their ages and put that into a new
|
|
1345
|
-
* ages array)
|
|
1346
|
-
* @author Gabe Abrams
|
|
1347
|
-
* @param arr the array of objects to operate on
|
|
1348
|
-
* @param prop the property to extract from each object
|
|
1349
|
-
* @returns new array containing the corresponding values, in order, of each
|
|
1350
|
-
* object in the original array
|
|
1351
|
-
*/
|
|
1352
|
-
declare const extractProp: (arr: any[], prop: string) => any[];
|
|
1353
|
-
|
|
1354
|
-
/**
|
|
1355
|
-
* Compare two arrays of objects by only comparing the values in a specific
|
|
1356
|
-
* property (e.g. compare user arrays by comparing their user.id values)
|
|
1357
|
-
* @author Gabe Abrams
|
|
1358
|
-
* @param a the first array
|
|
1359
|
-
* @param b the second array
|
|
1360
|
-
* @param prop the property to compare with, or an array of props to compare
|
|
1361
|
-
* with (if array, all values associated with those props must match)
|
|
1362
|
-
* @returns true if the arrays contain the same objects as determined by
|
|
1363
|
-
* the values associated with each object's prop
|
|
1364
|
-
*/
|
|
1365
|
-
declare const compareArraysByProp: (a: any[], b: any[], prop: string | string[]) => boolean;
|
|
1366
|
-
|
|
1367
|
-
/**
|
|
1368
|
-
* Get current time info in local time
|
|
1369
|
-
* @author Gabe Abrams
|
|
1370
|
-
* @param [dateOrTimestamp=now] the date to get info on or a ms since epoch timestamp
|
|
1371
|
-
* @returns object with timestamp (ms since epoch) and numbers
|
|
1372
|
-
* corresponding to time values for year, month, day, hour, hour12, minute, isPM
|
|
1373
|
-
* where hour is in 24hr time and hour12 is in 12hr time.
|
|
1374
|
-
*/
|
|
1375
|
-
declare const getLocalTimeInfo: (dateOrTimestamp?: Date | number) => {
|
|
1376
|
-
timestamp: number;
|
|
1377
|
-
year: number;
|
|
1378
|
-
month: number;
|
|
1379
|
-
day: number;
|
|
1380
|
-
hour: number;
|
|
1381
|
-
hour12: number;
|
|
1382
|
-
minute: number;
|
|
1383
|
-
isPM: boolean;
|
|
1384
|
-
};
|
|
1385
|
-
|
|
1386
|
-
/**
|
|
1387
|
-
* Given an array of strings, create a single comma-separated string that includes
|
|
1388
|
-
* 'and' as well as an oxford comma.
|
|
1389
|
-
* Ex: ['apples'] => 'apples'
|
|
1390
|
-
* Ex: ['apples', 'bananas'] => 'apples and bananas'
|
|
1391
|
-
* Ex: ['apples', 'bananas', 'grapes'] => 'apples, bananas, and grapes'
|
|
1392
|
-
* @author Austen Money
|
|
1393
|
-
* @param list an array of elements to be made into a single comma-separated string.
|
|
1394
|
-
* @returns a comma-separated string.
|
|
1395
|
-
*/
|
|
1396
|
-
declare const genCommaList: (list: string[]) => string;
|
|
1397
|
-
|
|
1398
|
-
/**
|
|
1399
|
-
* Result of a validation function.
|
|
1400
|
-
* @author Austen Money
|
|
1401
|
-
*/
|
|
1402
|
-
type ValidationResult<CleanedValueType> = ({
|
|
1403
|
-
isValid: true;
|
|
1404
|
-
cleanedValue: CleanedValueType;
|
|
1405
|
-
} | {
|
|
1406
|
-
isValid: false;
|
|
1407
|
-
errorMessage: string;
|
|
1408
|
-
});
|
|
1409
|
-
|
|
1410
|
-
/**
|
|
1411
|
-
* Determines whether a given email address is valid.
|
|
1412
|
-
* @author Austen Money
|
|
1413
|
-
* @param email email address to validate
|
|
1414
|
-
* @returns whether email fulfills proper formatting requirements, includes a
|
|
1415
|
-
* cleaned version of the address without leading or trailing
|
|
1416
|
-
* whitespace if valid or an error message if invalid.
|
|
1417
|
-
*/
|
|
1418
|
-
declare const validateEmail: (email: string) => ValidationResult<string>;
|
|
1419
|
-
|
|
1420
|
-
/**
|
|
1421
|
-
* Determines whether a given phone number is valid.
|
|
1422
|
-
* @author Austen Money
|
|
1423
|
-
* @param phoneNumber phone number to validate
|
|
1424
|
-
* @returns whether phone number is considered valid - if valid, also returns
|
|
1425
|
-
* a cleaned version of the number without any formatting. If invalid,
|
|
1426
|
-
* returns an error message.
|
|
1427
|
-
*/
|
|
1428
|
-
declare const validatePhoneNumber: (phoneNumber: string) => ValidationResult<string>;
|
|
1429
|
-
|
|
1430
|
-
/**
|
|
1431
|
-
* Determines whether a given input string is considered valid based on
|
|
1432
|
-
* the provided requirements.
|
|
1433
|
-
* @author Austen Money
|
|
1434
|
-
* @param input input string
|
|
1435
|
-
* @param opts options for validation
|
|
1436
|
-
* @returns whether input is considered valid according to reqs - if
|
|
1437
|
-
* valid, returns a cleaned version of input; if invalid, returns
|
|
1438
|
-
* a string containing error messages describing which requirements
|
|
1439
|
-
* were not met.
|
|
1440
|
-
*/
|
|
1441
|
-
declare const validateString: (input: string, opts: {
|
|
1442
|
-
ignoreWhitespace?: boolean;
|
|
1443
|
-
minLen?: number;
|
|
1444
|
-
maxLen?: number;
|
|
1445
|
-
lettersOnly?: boolean;
|
|
1446
|
-
numbersOnly?: boolean;
|
|
1447
|
-
regexTest?: RegExp;
|
|
1448
|
-
regexDescription?: string;
|
|
1449
|
-
}) => ValidationResult<string>;
|
|
1450
|
-
|
|
1451
|
-
/**
|
|
1452
|
-
* Convert a string to hyphenated lowercase format with no space or
|
|
1453
|
-
* non-alphanumeric characters
|
|
1454
|
-
* @author Gabe Abrams
|
|
1455
|
-
* @param str the string to convert
|
|
1456
|
-
* @returns the idified string
|
|
1457
|
-
*/
|
|
1458
|
-
declare const idify: (str: string) => string;
|
|
1459
|
-
|
|
1460
878
|
/**
|
|
1461
879
|
* Given some text, make the links clickable
|
|
1462
880
|
* @author Gabe Abrams
|
|
@@ -1483,16 +901,6 @@ declare const makeLinksClickable: (text: string, opts?: {
|
|
|
1483
901
|
*/
|
|
1484
902
|
declare const combineClassNames: (classNames: (string | undefined | null | false)[]) => string;
|
|
1485
903
|
|
|
1486
|
-
/**
|
|
1487
|
-
* Prefix a word or name with "a" or "an" depending on whether it starts with a
|
|
1488
|
-
* vowel or not
|
|
1489
|
-
* @author Gabe Abrams
|
|
1490
|
-
* @param text the text to prefix
|
|
1491
|
-
* @param capitalize whether to capitalize the "A" or "An"
|
|
1492
|
-
* @returns the text prefixed with "a" or "an"
|
|
1493
|
-
*/
|
|
1494
|
-
declare const prefixWithAOrAn: (text: string, capitalize?: boolean) => string;
|
|
1495
|
-
|
|
1496
904
|
/**
|
|
1497
905
|
* Create a function that forces a render of a component. Use this only when
|
|
1498
906
|
* absolutely necessary
|
|
@@ -1502,119 +910,6 @@ declare const prefixWithAOrAn: (text: string, capitalize?: boolean) => string;
|
|
|
1502
910
|
*/
|
|
1503
911
|
declare const useForceRender: (useReducer: any) => () => void;
|
|
1504
912
|
|
|
1505
|
-
/**
|
|
1506
|
-
* Run the operator function on each item in the array, returning true if
|
|
1507
|
-
* the operator function returns true for every item in the array
|
|
1508
|
-
* @author Gabe Abrams
|
|
1509
|
-
* @param operatorFunction the operator function to apply. If it returns true
|
|
1510
|
-
* for every item, this function will return true
|
|
1511
|
-
* @returns true if the operator function returns true for every item in the array
|
|
1512
|
-
*/
|
|
1513
|
-
declare const everyAsync: <T>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
1514
|
-
breakNow: () => void;
|
|
1515
|
-
array: T[];
|
|
1516
|
-
}) => Promise<any>) => Promise<boolean>;
|
|
1517
|
-
|
|
1518
|
-
/**
|
|
1519
|
-
* Run the operator function on each item in the array, returning a new array
|
|
1520
|
-
* that only contains the items that pass the filter
|
|
1521
|
-
* @author Gabe Abrams
|
|
1522
|
-
* @param operatorFunction the operator function to apply. If it returns true
|
|
1523
|
-
* for an item, the item will be included in the returned array
|
|
1524
|
-
* @returns the filtered array
|
|
1525
|
-
*/
|
|
1526
|
-
declare const filterAsync: <T>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
1527
|
-
breakNow: () => void;
|
|
1528
|
-
array: T[];
|
|
1529
|
-
}) => Promise<any>) => Promise<T[]>;
|
|
1530
|
-
|
|
1531
|
-
/**
|
|
1532
|
-
* Run the operator function on each item in the array
|
|
1533
|
-
* @author Gabe Abrams
|
|
1534
|
-
* @param operatorFunction the operator function to apply
|
|
1535
|
-
*/
|
|
1536
|
-
declare const forEachAsync: <T>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
1537
|
-
breakNow: () => void;
|
|
1538
|
-
array: T[];
|
|
1539
|
-
}) => void) => Promise<void>;
|
|
1540
|
-
|
|
1541
|
-
/**
|
|
1542
|
-
* Run the operator function on each item in the array, collecting all results
|
|
1543
|
-
* @author Gabe Abrams
|
|
1544
|
-
* @param operatorFunction the operator function to apply
|
|
1545
|
-
* @returns the array of results
|
|
1546
|
-
*/
|
|
1547
|
-
declare const mapAsync: <T, U>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
1548
|
-
breakNow: () => void;
|
|
1549
|
-
array: T[];
|
|
1550
|
-
}) => Promise<U>) => Promise<U[]>;
|
|
1551
|
-
|
|
1552
|
-
/**
|
|
1553
|
-
* Run the operator function on each item in the array, returning true if
|
|
1554
|
-
* the operator function returns true for any item in the array
|
|
1555
|
-
* @author Gabe Abrams
|
|
1556
|
-
* @param operatorFunction the operator function to apply. If it returns true
|
|
1557
|
-
* for any item, this function will return true
|
|
1558
|
-
* @returns true if the operator function returns true for any item in the array
|
|
1559
|
-
*/
|
|
1560
|
-
declare const someAsync: <T>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
1561
|
-
breakNow: () => void;
|
|
1562
|
-
array: T[];
|
|
1563
|
-
}) => Promise<any>) => Promise<boolean>;
|
|
1564
|
-
|
|
1565
|
-
/**
|
|
1566
|
-
* Capitalize every word in a string (just the first letter)
|
|
1567
|
-
* @param str string to capitalize
|
|
1568
|
-
* @returns string with every word capitalized
|
|
1569
|
-
*/
|
|
1570
|
-
declare const capitalize: (str: string) => string;
|
|
1571
|
-
|
|
1572
|
-
/**
|
|
1573
|
-
* Shuffle a given array
|
|
1574
|
-
* @author Austen Money
|
|
1575
|
-
* @param arr the array to shuffle
|
|
1576
|
-
* @returns the shuffled array
|
|
1577
|
-
*/
|
|
1578
|
-
declare const shuffleArray: <T>(arr: T[]) => T[];
|
|
1579
|
-
|
|
1580
|
-
/**
|
|
1581
|
-
* Get number of words in string
|
|
1582
|
-
* @author Gardenia Liu
|
|
1583
|
-
* @author Allison Zhang
|
|
1584
|
-
* @author Gabe Abrams
|
|
1585
|
-
* @param text the string to check
|
|
1586
|
-
* @returns number of words in the string
|
|
1587
|
-
*/
|
|
1588
|
-
declare const getWordCount: (text: string) => number;
|
|
1589
|
-
|
|
1590
|
-
/**
|
|
1591
|
-
* Deeply clones an object
|
|
1592
|
-
* @author Yuen Ler Chow
|
|
1593
|
-
* @param obj the object to clone
|
|
1594
|
-
* @returns a deep clone of the object
|
|
1595
|
-
*/
|
|
1596
|
-
declare const cloneDeep: <T>(obj: T) => T;
|
|
1597
|
-
|
|
1598
|
-
/**
|
|
1599
|
-
* Get a timestamp (ms since epoch) from time info (year, month, day, hour, minute, etc.) in Eastern Time (ET)
|
|
1600
|
-
* @author Gardenia Liu
|
|
1601
|
-
* @author Gabe Abrams
|
|
1602
|
-
* @param opts object containing all arguments
|
|
1603
|
-
* @param opts.year Year (e.g. 2023)
|
|
1604
|
-
* @param opts.month Month (1-12)
|
|
1605
|
-
* @param opts.day Day of the month (1-31)
|
|
1606
|
-
* @param opts.hour Hour (0-23)
|
|
1607
|
-
* @param opts.minute Minute (0-59)
|
|
1608
|
-
* @returns Timestamp in milliseconds since epoch
|
|
1609
|
-
*/
|
|
1610
|
-
declare const getTimestampFromTimeInfoInET: (opts: {
|
|
1611
|
-
year: number;
|
|
1612
|
-
month: number;
|
|
1613
|
-
day: number;
|
|
1614
|
-
hour: number;
|
|
1615
|
-
minute: number;
|
|
1616
|
-
}) => number;
|
|
1617
|
-
|
|
1618
913
|
/**
|
|
1619
914
|
* Checks if the current user is a select admin
|
|
1620
915
|
* @author Gardenia Liu
|
|
@@ -1622,131 +917,4 @@ declare const getTimestampFromTimeInfoInET: (opts: {
|
|
|
1622
917
|
*/
|
|
1623
918
|
declare const isSelectAdmin: () => Promise<boolean>;
|
|
1624
919
|
|
|
1625
|
-
|
|
1626
|
-
* Days of the week
|
|
1627
|
-
* @author Gabe Abrams
|
|
1628
|
-
*/
|
|
1629
|
-
declare enum DayOfWeek {
|
|
1630
|
-
Monday = "m",
|
|
1631
|
-
Tuesday = "t",
|
|
1632
|
-
Wednesday = "w",
|
|
1633
|
-
Thursday = "r",
|
|
1634
|
-
Friday = "f",
|
|
1635
|
-
Saturday = "s",
|
|
1636
|
-
Sunday = "u"
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
/**
|
|
1640
|
-
* Built-in metadata for logs
|
|
1641
|
-
* @author Gabe Abrams
|
|
1642
|
-
*/
|
|
1643
|
-
declare const LogBuiltInMetadata: {
|
|
1644
|
-
Context: {
|
|
1645
|
-
Uncategorized: string;
|
|
1646
|
-
ServerRenderedErrorPage: string;
|
|
1647
|
-
ServerEndpointError: string;
|
|
1648
|
-
ClientFatalError: string;
|
|
1649
|
-
};
|
|
1650
|
-
Target: {
|
|
1651
|
-
NoTarget: string;
|
|
1652
|
-
};
|
|
1653
|
-
};
|
|
1654
|
-
|
|
1655
|
-
/**
|
|
1656
|
-
* List of error codes built into the react kit
|
|
1657
|
-
* @author Gabe Abrams
|
|
1658
|
-
*/
|
|
1659
|
-
declare enum ReactKitErrorCode {
|
|
1660
|
-
NoResponse = "DRK1",
|
|
1661
|
-
NoCode = "DRK2",
|
|
1662
|
-
SessionExpired = "DRK3",
|
|
1663
|
-
NoCACCLSendRequestFunction = "DRK7",
|
|
1664
|
-
SimpleDateChooserInvalidDateRange = "DRK35",
|
|
1665
|
-
SimpleDateChooserInvalidNumMonths = "DRK36",
|
|
1666
|
-
ETTimestampInvalid = "DRK37"
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
/**
|
|
1670
|
-
* Date filter state
|
|
1671
|
-
* @author Yuen Ler Chow
|
|
1672
|
-
*/
|
|
1673
|
-
type DateFilterState = {
|
|
1674
|
-
startDate: {
|
|
1675
|
-
year: number;
|
|
1676
|
-
month: number;
|
|
1677
|
-
day: number;
|
|
1678
|
-
};
|
|
1679
|
-
endDate: {
|
|
1680
|
-
year: number;
|
|
1681
|
-
month: number;
|
|
1682
|
-
day: number;
|
|
1683
|
-
};
|
|
1684
|
-
};
|
|
1685
|
-
|
|
1686
|
-
/**
|
|
1687
|
-
* Context filter state
|
|
1688
|
-
* @author Yuen Ler Chow
|
|
1689
|
-
*/
|
|
1690
|
-
type ContextFilterState = {
|
|
1691
|
-
[k: string]: (boolean | {
|
|
1692
|
-
[k: string]: boolean;
|
|
1693
|
-
});
|
|
1694
|
-
};
|
|
1695
|
-
|
|
1696
|
-
/**
|
|
1697
|
-
* Tag filter state
|
|
1698
|
-
* @author Yuen Ler Chow
|
|
1699
|
-
*/
|
|
1700
|
-
type TagFilterState = {
|
|
1701
|
-
[k: string]: boolean;
|
|
1702
|
-
};
|
|
1703
|
-
|
|
1704
|
-
/**
|
|
1705
|
-
* Action filter state (only relevant for action logs)
|
|
1706
|
-
* @author Yuen Ler Chow
|
|
1707
|
-
*/
|
|
1708
|
-
type ActionErrorFilterState = {
|
|
1709
|
-
type: LogType | undefined;
|
|
1710
|
-
errorMessage: string;
|
|
1711
|
-
errorCode: string;
|
|
1712
|
-
target: {
|
|
1713
|
-
[k: string]: boolean;
|
|
1714
|
-
};
|
|
1715
|
-
action: {
|
|
1716
|
-
[k: string]: boolean;
|
|
1717
|
-
};
|
|
1718
|
-
};
|
|
1719
|
-
|
|
1720
|
-
/**
|
|
1721
|
-
* Advanced filter state
|
|
1722
|
-
* @author Yuen Ler Chow
|
|
1723
|
-
*/
|
|
1724
|
-
type AdvancedFilterState = {
|
|
1725
|
-
userFirstName: string;
|
|
1726
|
-
userLastName: string;
|
|
1727
|
-
userEmail: string;
|
|
1728
|
-
userId: string;
|
|
1729
|
-
includeLearners: boolean;
|
|
1730
|
-
includeTTMs: boolean;
|
|
1731
|
-
includeAdmins: boolean;
|
|
1732
|
-
courseId: string;
|
|
1733
|
-
courseName: string;
|
|
1734
|
-
isMobile: (true | false | undefined);
|
|
1735
|
-
source: LogSource | undefined;
|
|
1736
|
-
routePath: string;
|
|
1737
|
-
routeTemplate: string;
|
|
1738
|
-
};
|
|
1739
|
-
|
|
1740
|
-
/**
|
|
1741
|
-
* A bundle of filter state objects for each type of filter
|
|
1742
|
-
* @author Gabe Abrams
|
|
1743
|
-
*/
|
|
1744
|
-
type LogReviewerFilterState = {
|
|
1745
|
-
dateFilterState: DateFilterState;
|
|
1746
|
-
contextFilterState: ContextFilterState;
|
|
1747
|
-
tagFilterState: TagFilterState;
|
|
1748
|
-
actionErrorFilterState: ActionErrorFilterState;
|
|
1749
|
-
advancedFilterState: AdvancedFilterState;
|
|
1750
|
-
};
|
|
1751
|
-
|
|
1752
|
-
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DAY_IN_MS, DBEntry, DBEntryField, DBEntryFieldType, DBEntryManagerPanel, DayOfWeek, Drawer, Dropdown, DropdownItemType, DynamicWord, ErrorBox, ErrorWithCode, HOUR_IN_MS, IntelliTable, IntelliTableColumn, ItemPicker, LOG_REVIEW_GET_LOGS_ROUTE, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_REVIEW_STATUS_ROUTE, LOG_ROUTE_PATH, LoadingSpinner, Log, LogAction, LogBuiltInMetadata, LogFunction, LogLevel, LogMainInfo, LogMetadataType, LogReviewer, LogReviewerFilterState, LogSource, LogSourceSpecificInfo, LogType, LogTypeSpecificInfo, MINUTE_IN_MS, Modal, ModalButtonType, ModalSize, ModalType, MultiSwitch, ParamType, PickableItem, PopFailureMark, PopPendingMark, PopSuccessMark, ProgressBar, ProgressBarSize, RadioButton, ReactKitErrorCode, SELECT_ADMIN_CHECK_ROUTE, SimpleDateChooser, SimpleTimeChooser, TabBox, ToggleSwitch, Tooltip, Variant, abbreviate, addFatalErrorHandler, alert, avg, canReviewLogs, capitalize, ceilToNumDecimals, cloneDeep, combineClassNames, compareArraysByProp, confirm, everyAsync, extractProp, filterAsync, floorToNumDecimals, forEachAsync, forceNumIntoBounds, genCSV, genCommaList, getHumanReadableDate, getLocalTimeInfo, getMonthName, getOrdinal, getPartOfDay, getTimeInfoInET, getTimestampFromTimeInfoInET, getWordCount, idify, initClient, isMobileOrTablet, isSelectAdmin, leaveToURL, logClientEvent, makeLinksClickable, mapAsync, onlyKeepLetters, padDecimalZeros, padZerosLeft, parallelLimit, prefixWithAOrAn, prompt, roundToNumDecimals, setClientEventMetadataPopulator, showFatalError, shuffleArray, someAsync, startMinWait, stringsToHumanReadableList, stubServerEndpoint, sum, useForceRender, validateEmail, validatePhoneNumber, validateString, visitServerEndpoint, waitMs };
|
|
920
|
+
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DBEntry, DBEntryField, DBEntryFieldType, DBEntryManagerPanel, Drawer, Dropdown, DropdownItemType, DynamicWord, ErrorBox, IntelliTable, IntelliTableColumn, ItemPicker, LoadingSpinner, LogReviewer, Modal, ModalButtonType, ModalSize, ModalType, MultiSwitch, PickableItem, PopFailureMark, PopPendingMark, PopSuccessMark, ProgressBar, ProgressBarSize, RadioButton, SimpleDateChooser, SimpleTimeChooser, TabBox, ToggleSwitch, Tooltip, Variant, addFatalErrorHandler, alert, canReviewLogs, combineClassNames, confirm, initClient, isMobileOrTablet, isSelectAdmin, leaveToURL, logClientEvent, makeLinksClickable, prompt, setClientEventMetadataPopulator, showFatalError, stubServerEndpoint, useForceRender, visitServerEndpoint };
|