@dereekb/firebase 13.2.1 → 13.2.2

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/index.esm.js CHANGED
@@ -2,7 +2,7 @@ import { increment, arrayRemove, arrayUnion, onSnapshot, getDoc, deleteDoc, setD
2
2
  import { cachedGetter, mergeModifiers, asArray, filterUndefinedValues, objectHasNoKeys, filterFalsyAndEmptyValues, build, wrapUseAsyncFunction, useAsync, runAsyncTasksForValues, filterMaybeArrayValues, performMakeLoop, makeWithFactory, MAP_IDENTITY, toModelFieldConversions, makeModelMapFunctions, modifyModelMapFunctions, assignValuesToPOJOFunction, KeyValueTypleValueFilter, asObjectCopyFactory, transformStringFunctionConfig, transformStringFunction, passThrough, filterUniqueTransform, unique, transformNumberFunction, sortValuesFunctionOrMapIdentityWithSortRef, toModelMapFunctions, isEqualToValueDecisionFunction, filterFromPOJOFunction, mapObjectMap, copyObject, modelFieldMapFunctions, filterNullAndUndefinedValues, isDate, bitwiseSetDencoder, sortAscendingIndexNumberRefFunction, latLngStringFunction, DEFAULT_LAT_LNG_STRING_VALUE, mapObjectMapFunction, filterEmptyArrayValues, filterUniqueFunction, isMapIdentityFunction, chainMapSameFunctions, unixDateTimeSecondsNumberFromDate, dateFromDateOrTimeSecondsNumber, pushItemOrArrayItemsIntoArray, separateValues, convertToArray, UTF_PRIVATE_USAGE_AREA_START, UTF_8_START_CHARACTER, mergeArraysIntoArray, lastValue, flattenArrayOrValueArray, allowValueOnceFilter, asGetter, getValueFromGetter, mapIdentityFunction, performTasksFromFactoryInParallelFunction, performAsyncTasks, batch, flattenArray, calculateExpirationDate, groupValues, stringContains, forEachInIterable, arrayToObject, takeFront, isOddNumber, objectToMap, ServerErrorResponse, toReadableError, capitalizeFirstLetter, lowercaseFirstLetter, toRelativeSlashPathStartType, mappedUseFunction, iterableToArray, setContainsAllValues, usePromise, slashPathFactory, errorMessageContainsString, bitwiseObjectDencoder, UNSET_INDEX_NUMBER, mergeObjectsFunction, mergeObjects, forEachKeyValue, updateMaybeValue, ModelRelationUtility, filterKeysOnPOJOFunction, areEqualPOJOValuesUsingPojoFilter, filterOnlyUndefinedValues, makeModelMap, isThrottled, MS_IN_HOUR, multiValueMapBuilder, mergeSlashPaths, slashPathDetails, toAbsoluteSlashPathStartType, SLASH_PATH_FILE_TYPE_SEPARATOR, slashPathPathMatcher, decisionFunction, slashPathSubPathMatcher } from '@dereekb/util';
3
3
  import { filterMaybe, lazyFrom, itemAccumulator, ItemPageIterator, mappedPageItemIteration } from '@dereekb/rxjs';
4
4
  import { map, from, combineLatest, of, exhaustMap, Observable, switchMap, timer, skip, shareReplay } from 'rxjs';
5
- import { UNKNOWN_WEBSITE_LINK_TYPE, encodeWebsiteFileLinkToWebsiteLinkEncodedData, decodeWebsiteLinkEncodedDataToWebsiteFileLink, AbstractModelPermissionService, grantedRoleMapReader, noAccessRoleMap, fullAccessRoleMap, clearable, e164PhoneNumberType } from '@dereekb/model';
5
+ import { UNKNOWN_WEBSITE_LINK_TYPE, encodeWebsiteFileLinkToWebsiteLinkEncodedData, decodeWebsiteLinkEncodedDataToWebsiteFileLink, AbstractModelPermissionService, grantedRoleMapReader, noAccessRoleMap, fullAccessRoleMap, clearable, e164PhoneNumberType, ARKTYPE_DATE_DTO_TYPE } from '@dereekb/model';
6
6
  import { toISODateString, formatToISO8601DateString, toJsDate, isSameDate, dateRange, sortByDateFunction, yearWeekCode, UNKNOWN_YEAR_WEEK_CODE } from '@dereekb/date';
7
7
  import { httpsCallable } from 'firebase/functions';
8
8
  import { getMetadata, ref, deleteObject, uploadBytesResumable, getBlob, getBytes, uploadString, uploadBytes, updateMetadata, getDownloadURL, list } from 'firebase/storage';
@@ -6919,7 +6919,7 @@ const createNotificationSummaryParamsType = type({
6919
6919
  });
6920
6920
  const updateNotificationSummaryParamsType = targetModelParamsType.merge({
6921
6921
  'flagAllRead?': clearable('boolean'),
6922
- 'setReadAtTime?': clearable('string.date.parse')
6922
+ 'setReadAtTime?': clearable(ARKTYPE_DATE_DTO_TYPE)
6923
6923
  });
6924
6924
  const createNotificationBoxParamsType = type({
6925
6925
  model: firestoreModelKeyType
@@ -7910,14 +7910,14 @@ const processStorageFileParamsType = targetModelParamsType.merge({
7910
7910
  });
7911
7911
  const processAllQueuedStorageFilesParamsType = type({});
7912
7912
  const updateStorageFileParamsType = targetModelParamsType.merge({
7913
- 'sdat?': clearable('string.date.parse')
7913
+ 'sdat?': clearable(ARKTYPE_DATE_DTO_TYPE)
7914
7914
  });
7915
7915
  const deleteStorageFileParamsType = targetModelParamsType.merge({
7916
7916
  'force?': clearable('boolean')
7917
7917
  });
7918
7918
  const deleteAllQueuedStorageFilesParamsType = type({});
7919
7919
  const downloadStorageFileParamsType = targetModelParamsType.merge({
7920
- 'expiresAt?': clearable('string.date.parse'),
7920
+ 'expiresAt?': clearable(ARKTYPE_DATE_DTO_TYPE),
7921
7921
  'expiresIn?': clearable('number >= 0'),
7922
7922
  'responseDisposition?': clearable('string'),
7923
7923
  'responseContentType?': clearable('string'),