@dereekb/firebase-server 13.43.0 → 14.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/calcom/index.esm.js +57 -96
- package/calcom/package.json +11 -11
- package/discord/index.esm.js +48 -74
- package/discord/package.json +11 -11
- package/index.esm.js +336 -583
- package/mailgun/index.esm.js +20 -32
- package/mailgun/package.json +9 -9
- package/mcp/index.esm.js +131 -185
- package/mcp/package.json +14 -14
- package/model/index.esm.js +726 -711
- package/model/package.json +14 -14
- package/model/src/lib/formspace/formspace.action.server.d.ts +79 -5
- package/model/src/lib/formspace/formspace.error.d.ts +21 -0
- package/model/src/lib/formspace/formspace.task.service.handler.d.ts +3 -2
- package/model/src/lib/storagefile/storagefile.task.service.handler.d.ts +3 -3
- package/oidc/index.esm.js +144 -251
- package/oidc/package.json +14 -14
- package/package.json +24 -24
- package/src/lib/function/type.d.ts +0 -9
- package/src/lib/nest/app.d.ts +0 -4
- package/src/lib/nest/development/development.app.function.d.ts +2 -2
- package/src/lib/nest/model/analytics.handler.d.ts +0 -8
- package/src/lib/nest/model/api.details.d.ts +0 -8
- package/src/lib/nest/nest.provider.d.ts +0 -8
- package/test/index.esm.js +239 -395
- package/test/package.json +17 -17
- package/test/src/lib/firebase/firebase.admin.auth.d.ts +4 -25
- package/test/src/lib/firebase/firebase.admin.nest.d.ts +0 -4
- package/test/src/lib/firebase/firebase.admin.nest.function.d.ts +7 -7
- package/test/src/lib/firebase/firebase.function.d.ts +20 -81
- package/test/src/lib/firebase/firebase.test.d.ts +0 -9
- package/twilio/index.esm.js +11 -14
- package/twilio/package.json +8 -8
- package/zoho/index.esm.js +72 -132
- package/zoho/package.json +12 -12
- package/zoho/src/lib/zoho.accounts.firebase.system.d.ts +0 -10
package/model/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { STORAGE_FILE_MODEL_ALREADY_INITIALIZED_ERROR_CODE, STORAGE_FILE_NOT_FLAGGED_FOR_GROUPS_SYNC_ERROR_CODE, UPLOADED_FILE_DOES_NOT_EXIST_ERROR_CODE, UPLOADED_FILE_NOT_ALLOWED_TO_BE_INITIALIZED_ERROR_CODE, UPLOADED_FILE_INITIALIZATION_FAILED_ERROR_CODE, UPLOADED_FILE_INITIALIZATION_DISCARDED_ERROR_CODE, STORAGE_FILE_PROCESSING_NOT_ALLOWED_FOR_INVALID_STATE_ERROR_CODE, STORAGE_FILE_PROCESSING_NOT_QUEUED_FOR_PROCESSING_ERROR_CODE, STORAGE_FILE_PROCESSING_NOT_AVAILABLE_FOR_TYPE_ERROR_CODE, STORAGE_FILE_ALREADY_PROCESSED_ERROR_CODE, STORAGE_FILE_NOT_FLAGGED_FOR_DELETION_ERROR_CODE, STORAGE_FILE_CANNOT_BE_DELETED_YET_ERROR_CODE, STORAGE_FILE_GROUP_QUEUED_FOR_INITIALIZATION_ERROR_CODE, STORAGE_FILE_GROUP_CREATE_INPUT_ERROR_CODE, createStorageFileParamsType, createStorageFileGroupParamsType, createStorageFileSignedUploadUrlParamsType, deleteAllQueuedStorageFilesParamsType, deleteStorageFileParamsType, downloadMultipleStorageFilesParamsType, downloadStorageFileParamsType, initializeAllStorageFilesFromUploadsParamsType, initializeStorageFileFromUploadParamsType, processAllQueuedStorageFilesParamsType, processStorageFileParamsType, readMultipleStorageFilesMetadataParamsType, readStorageFileMetadataParamsType, regenerateAllFlaggedStorageFileGroupsContentParamsType, regenerateStorageFileGroupContentParamsType, syncAllFlaggedStorageFilesWithGroupsParamsType, syncStorageFileWithGroupsParamsType, updateStorageFileParamsType, updateStorageFileGroupParamsType, UPLOADS_FOLDER_PATH, iterateStorageListFilesByEachFile, StorageFileProcessingState, iterateFirestoreDocumentSnapshotPairs, storageFilesQueuedForProcessingQuery, firestoreDummyKey, STORAGE_FILE_PROCESSING_STUCK_THROTTLE_CHECK_MS, StorageFileState, createNotificationDocument, storageFileProcessingNotificationTaskTemplate, storageFilesQueuedForDeleteQuery, storageFileDisplayFileName, loadStorageFileGroupDocumentForReferencePair, inferKeyFromTwoWayFlatFirestoreModelKey, calculateStorageFileGroupEmbeddedFileUpdate, loadDocumentsForIds, getDocumentSnapshotDataPairs, iterateFirestoreDocumentSnapshotPairBatches, storageFileFlaggedForSyncWithGroupsQuery, createStorageFileDocumentPairFactory, StorageFileCreationType, storageFileGroupZipFileStoragePath, STORAGE_FILE_GROUP_ZIP_STORAGE_FILE_PURPOSE, calculateStorageFileGroupRegeneration, getDocumentSnapshotDataPair, storageFileGroupsFlaggedForContentRegenerationQuery, DEFAULT_CREATE_STORAGE_FILE_SIGNED_UPLOAD_URL_EXPIRES_IN_MS, CREATE_STORAGE_FILE_SIGNED_UPLOAD_URL_MIN_EXPIRES_IN_MS, CREATE_STORAGE_FILE_SIGNED_UPLOAD_URL_MAX_EXPIRES_IN_MS, CREATE_STORAGE_FILE_SIGNED_UPLOAD_URL_MAX_FILENAME_LENGTH, CALENDAR_ICS_DOMAIN_NOT_CONFIGURED_ERROR_CODE, CALENDAR_ICS_ROTATE_THROTTLED_ERROR_CODE, CALENDAR_ICS_STORAGE_FILE_UNAVAILABLE_ERROR_CODE, flagStaleCalendarsForSyncParamsType, rotateCalendarIcsParamsType, syncAllFlaggedCalendarsParamsType, syncCalendarParamsType, CALENDAR_ICS_STORAGE_FILE_PURPOSE, calendarIcsFileStoragePath, pruneCalendarEvents, calendarNextIcsRotateAt, isCalendarIcsRotateThrottled, calendarsFlaggedForSyncQuery, DEFAULT_CALENDAR_RESYNC_INTERVAL, calendarsDueForResyncQuery, AppCalendarTypeConfigService, appCalendarTypeConfigService, calendarTypeConfigRecord, CALENDAR_ICS_STORAGE_FILE_PURPOSE_GENERATE_ICS_SUBTASK, notificationSubtaskComplete, calendarToIcsString, calendarTypeConfigIcsExpansionRange, calendarTypeConfigIcsConfig, notificationTaskComplete, _createNotificationDocumentFromPair, createNotificationDocumentPair, FORM_SPACE_ALREADY_EXISTS_ERROR_CODE, FORM_SPACE_FILE_ACCESS_DENIED_ERROR_CODE, FORM_SPACE_FILE_NOT_FOUND_ERROR_CODE, FORM_SPACE_HAS_INVALID_FILES_ERROR_CODE, FORM_SPACE_NOT_EDITABLE_ERROR_CODE, FORM_SPACE_NOT_FOUND_ERROR_CODE, FORM_SPACE_REQUIRED_SLOT_MISSING_ERROR_CODE, FORM_SPACE_TYPE_MISMATCH_ERROR_CODE, FORM_SPACE_TYPE_NOT_REGISTERED_ERROR_CODE, FORM_SPACE_UPLOAD_NOT_ALLOWED_ERROR_CODE, FORM_SPACE_UPLOAD_USER_MISMATCH_ERROR_CODE, FORM_SPACE_VALIDATION_PENDING_ERROR_CODE, createFormSpaceParamsType, deleteFormSpaceParamsType, expireAllExpiredFormSpacesParamsType, processAllQueuedFormSpacesParamsType, removeFormSpaceFileParamsType, submitFormSpaceParamsType, updateFormSpaceParamsType, formSpaceTemplate, resolveFormSpaceExpiresAt, isFormSpaceEditable, formSpaceSubmitBlockers, submitFormSpaceTemplate, formSpaceFilesInSlot, isFormSpaceFileAccessibleByUser, FormSpaceProcessingState, formSpaceSubmissionNotificationTaskTemplate, storageFilesForFormSpaceQuery, formSpacesQueuedForProcessingQuery, expireFormSpaceTemplate, formSpacesDueForExpirationQuery, AppFormSpaceTypeConfigService, appFormSpaceTypeConfigService, formSpaceTypeConfigRecord, NOTIFICATION_TASK_SUBTASK_CHECKPOINT_PROCESSING, NOTIFICATION_TASK_SUBTASK_CHECKPOINT_CLEANUP, completeSubtaskProcessingAndScheduleCleanupTaskResult, delayCompletion, notificationTaskDelayRetry, DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_DELAY, DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_ATTEMPTS, FORM_SPACE_SUBMISSION_NOTIFICATION_TASK_TYPE, FormSpaceState, getDocumentSnapshotData, storedFileReaderFactory, limitUploadFileTypeDeterminer, combineUploadFileTypeDeterminers, STORAGEFILE_RELATED_FILE_METADATA_KEY, copyStoragePath, storageFilePurposeAndUserQuery, determineUserByUserUploadsFolderWrapperFunction, determineByFilePath, FORM_SPACE_UPLOADED_FILE_TYPE_IDENTIFIER, FORM_SPACE_UPLOADS_FOLDER_NAME, ALL_USER_UPLOADS_FOLDER_PATH, FormSpaceFileValidationState, formSpaceFileSlotConfig, formSpaceSlotMaxFiles, FORM_SPACE_PURPOSE, formSpaceStorageFileGroupId, formSpaceFileStoragePath, formSpaceUploadFileNameDetails, parseFormSpaceUploadPath, assertFormSpaceUploadAllowed, FORM_SPACE_PURPOSE_REGISTER_SUBTASK, FORM_SPACE_PURPOSE_VALIDATE_SUBTASK, inferStorageFileGroupRelatedModelKey, notificationHealthCheckIssue, KnownNotificationHealthCheckIssueCode, NotificationHealthCheckStatus, MailgunNotificationHealthCheckIssueCode, untrackableNotificationHealthCheckProbe, DEFAULT_NOTIFICATION_MESSAGE_CALENDAR_ATTACHMENT_FILENAME, CREATE_NOTIFICATION_ID_REQUIRED_ERROR_CODE, NOTIFICATION_BOX_DOES_NOT_EXIST_ERROR_CODE, NOTIFICATION_BOX_EXCLUSION_TARGET_INVALID_ERROR_CODE, NOTIFICATION_BOX_EXISTS_FOR_MODEL_ERROR_CODE, NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE, NOTIFICATION_MODEL_ALREADY_INITIALIZED_ERROR_CODE, NOTIFICATION_USER_BLOCKED_FROM_BEING_ADD_TO_RECIPIENTS_ERROR_CODE, NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLED_ERROR_CODE, NOTIFICATION_USER_HEALTH_CHECK_THROTTLED_ERROR_CODE, NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLED_ERROR_CODE, NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE, NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE, notificationUserHealthCheckParamsType, rollupNotificationHealthCheckResultStatus, rollupNotificationDeliveryHealthCheckResultStatus, isPendingNotificationHealthCheckProbe, notificationUserHealthCheckNextProbeAt, notificationUserHealthCheckNextVerifyAt, notificationUserHealthCheckNextRunAt, DEFAULT_NOTIFICATION_TEMPLATE_TYPE, NotificationDeliveryMethod, NotificationBoxRecipientFlag, effectiveNotificationBoxRecipientTemplateConfig, mergeNotificationBoxRecipients, mergeNotificationUserNotificationBoxRecipientConfigs, applyExclusionsToNotificationUserNotificationBoxRecipientConfigs, mergeNotificationBoxRecipientTemplateConfigs, notificationSendExclusionCanSendFunction, mergeNotificationUserDefaultNotificationBoxRecipientConfig, NotificationRecipientSendFlag, allowedNotificationRecipients, getDocumentSnapshotDataPairsWithData, cleanupOldNotificationLoggedEventDaysParamsType, cleanupSentNotificationsParamsType, createNotificationBoxParamsType, createNotificationSummaryParamsType, createNotificationUserParamsType, resyncNotificationUserParamsType, sendNotificationParamsType, sendQueuedNotificationsParamsType, updateNotificationBoxParamsType, updateNotificationBoxRecipientParamsType, updateNotificationSummaryParamsType, updateNotificationUserParamsType, updateNotificationUserDefaultNotificationBoxRecipientConfig, effectiveNotificationBoxRecipientConfig, updateNotificationUserNotificationBoxRecipientConfigs, calculateNsForNotificationUserNotificationBoxRecipientConfigs, notificationUsersFlaggedForNeedsSyncQuery, notificationSummaryIdForModel, loadNotificationBoxDocumentForReferencePair, updateNotificationUserNotificationSendExclusions, notificationBoxRecipientTemplateConfigArrayToRecord, updateNotificationRecipient, setIdAndKeyFromKeyIdRefOnDocumentData, NotificationSendType, notificationSendFlagsImplyIsComplete, NotificationSendState, mergeNotificationSendMessagesResult, notificationsPastSendAtTimeQuery, loadDocumentsForDocumentReferencesFromValues, notificationLoggedEventDayId, shouldSaveNotificationToNotificationWeek, notificationsReadyForCleanupQuery, notificationLoggedEventDaysOlderThanQuery, initializeAllApplicableNotificationBoxesParamsType, initializeAllApplicableNotificationSummariesParamsType, initializeNotificationModelParamsType, firestoreModelKeyCollectionName, notificationBoxesFlaggedForNeedsInitializationQuery, notificationSummariesFlaggedForNeedsInitializationQuery, noContentNotificationMessageFunctionFactory, NOTIFICATION_SUMMARY_EMBEDDED_NOTIFICATION_ITEM_SUBJECT_MAX_LENGTH, NOTIFICATION_SUMMARY_EMBEDDED_NOTIFICATION_ITEM_MESSAGE_MAX_LENGTH, sortNotificationItemsFunction, NOTIFICATION_SUMMARY_ITEM_LIMIT, initializeAllApplicableStorageFileGroupsParamsType, initializeStorageFileModelParamsType, storageFileGroupsFlaggedForNeedsInitializationQuery, STORAGE_FILE_GROUP_ZIP_STORAGE_FILE_PURPOSE_CREATE_ZIP_SUBTASK, STORAGE_FILE_PROCESSING_NOTIFICATION_TASK_TYPE, STORAGE_FILE_GROUP_ZIP_INFO_JSON_FILE_NAME, firestoreModelIdentity, systemStateConverter, systemStateStoredDataConverterFactory, AbstractFirestoreDocument, schedulerSystemStateRead, loadSchedulerSystemState, SCHEDULER_SYSTEM_STATE_TYPE, copyUserRelatedDataAccessorFactoryFunction, snapshotConverterFunctions, firestoreDate, firestoreUID, emptyUserExternalConnection, userExternalConnectionEntryForOutcome, applyUserExternalConnectionEntry } from '@dereekb/firebase';
|
|
1
|
+
import { STORAGE_FILE_MODEL_ALREADY_INITIALIZED_ERROR_CODE, STORAGE_FILE_NOT_FLAGGED_FOR_GROUPS_SYNC_ERROR_CODE, UPLOADED_FILE_DOES_NOT_EXIST_ERROR_CODE, UPLOADED_FILE_NOT_ALLOWED_TO_BE_INITIALIZED_ERROR_CODE, UPLOADED_FILE_INITIALIZATION_FAILED_ERROR_CODE, UPLOADED_FILE_INITIALIZATION_DISCARDED_ERROR_CODE, STORAGE_FILE_PROCESSING_NOT_ALLOWED_FOR_INVALID_STATE_ERROR_CODE, STORAGE_FILE_PROCESSING_NOT_QUEUED_FOR_PROCESSING_ERROR_CODE, STORAGE_FILE_PROCESSING_NOT_AVAILABLE_FOR_TYPE_ERROR_CODE, STORAGE_FILE_ALREADY_PROCESSED_ERROR_CODE, STORAGE_FILE_NOT_FLAGGED_FOR_DELETION_ERROR_CODE, STORAGE_FILE_CANNOT_BE_DELETED_YET_ERROR_CODE, STORAGE_FILE_GROUP_QUEUED_FOR_INITIALIZATION_ERROR_CODE, STORAGE_FILE_GROUP_CREATE_INPUT_ERROR_CODE, createStorageFileParamsType, createStorageFileGroupParamsType, createStorageFileSignedUploadUrlParamsType, deleteAllQueuedStorageFilesParamsType, deleteStorageFileParamsType, downloadMultipleStorageFilesParamsType, downloadStorageFileParamsType, initializeAllStorageFilesFromUploadsParamsType, initializeStorageFileFromUploadParamsType, processAllQueuedStorageFilesParamsType, processStorageFileParamsType, readMultipleStorageFilesMetadataParamsType, readStorageFileMetadataParamsType, regenerateAllFlaggedStorageFileGroupsContentParamsType, regenerateStorageFileGroupContentParamsType, syncAllFlaggedStorageFilesWithGroupsParamsType, syncStorageFileWithGroupsParamsType, updateStorageFileParamsType, updateStorageFileGroupParamsType, UPLOADS_FOLDER_PATH, iterateStorageListFilesByEachFile, StorageFileProcessingState, iterateFirestoreDocumentSnapshotPairs, storageFilesQueuedForProcessingQuery, firestoreDummyKey, STORAGE_FILE_PROCESSING_STUCK_THROTTLE_CHECK_MS, StorageFileState, createNotificationDocument, storageFileProcessingNotificationTaskTemplate, storageFilesQueuedForDeleteQuery, storageFileDisplayFileName, loadStorageFileGroupDocumentForReferencePair, inferKeyFromTwoWayFlatFirestoreModelKey, calculateStorageFileGroupEmbeddedFileUpdate, loadDocumentsForIds, getDocumentSnapshotDataPairs, iterateFirestoreDocumentSnapshotPairBatches, storageFileFlaggedForSyncWithGroupsQuery, createStorageFileDocumentPairFactory, StorageFileCreationType, storageFileGroupZipFileStoragePath, STORAGE_FILE_GROUP_ZIP_STORAGE_FILE_PURPOSE, calculateStorageFileGroupRegeneration, getDocumentSnapshotDataPair, storageFileGroupsFlaggedForContentRegenerationQuery, DEFAULT_CREATE_STORAGE_FILE_SIGNED_UPLOAD_URL_EXPIRES_IN_MS, CREATE_STORAGE_FILE_SIGNED_UPLOAD_URL_MIN_EXPIRES_IN_MS, CREATE_STORAGE_FILE_SIGNED_UPLOAD_URL_MAX_EXPIRES_IN_MS, CREATE_STORAGE_FILE_SIGNED_UPLOAD_URL_MAX_FILENAME_LENGTH, CALENDAR_ICS_DOMAIN_NOT_CONFIGURED_ERROR_CODE, CALENDAR_ICS_ROTATE_THROTTLED_ERROR_CODE, CALENDAR_ICS_STORAGE_FILE_UNAVAILABLE_ERROR_CODE, flagStaleCalendarsForSyncParamsType, rotateCalendarIcsParamsType, syncAllFlaggedCalendarsParamsType, syncCalendarParamsType, CALENDAR_ICS_STORAGE_FILE_PURPOSE, calendarIcsFileStoragePath, pruneCalendarEvents, calendarNextIcsRotateAt, isCalendarIcsRotateThrottled, calendarsFlaggedForSyncQuery, DEFAULT_CALENDAR_RESYNC_INTERVAL, calendarsDueForResyncQuery, AppCalendarTypeConfigService, appCalendarTypeConfigService, calendarTypeConfigRecord, CALENDAR_ICS_STORAGE_FILE_PURPOSE_GENERATE_ICS_SUBTASK, notificationSubtaskComplete, calendarToIcsString, calendarTypeConfigIcsExpansionRange, calendarTypeConfigIcsConfig, notificationTaskComplete, _createNotificationDocumentFromPair, createNotificationDocumentPair, FORM_SPACE_ALREADY_EXISTS_ERROR_CODE, FORM_SPACE_FILE_ACCESS_DENIED_ERROR_CODE, FORM_SPACE_FILE_NOT_FOUND_ERROR_CODE, FORM_SPACE_HAS_INVALID_FILES_ERROR_CODE, FORM_SPACE_NOT_EDITABLE_ERROR_CODE, FORM_SPACE_NOT_FOUND_ERROR_CODE, FORM_SPACE_NOT_REOPENABLE_ERROR_CODE, FORM_SPACE_NOT_SUBMITTED_ERROR_CODE, FORM_SPACE_PROCESSING_IN_PROGRESS_ERROR_CODE, FORM_SPACE_REQUIRED_SLOT_MISSING_ERROR_CODE, FORM_SPACE_TYPE_MISMATCH_ERROR_CODE, FORM_SPACE_TYPE_NOT_REGISTERED_ERROR_CODE, FORM_SPACE_UPLOAD_NOT_ALLOWED_ERROR_CODE, FORM_SPACE_UPLOAD_USER_MISMATCH_ERROR_CODE, FORM_SPACE_VALIDATION_PENDING_ERROR_CODE, createFormSpaceParamsType, deleteFormSpaceParamsType, expireAllExpiredFormSpacesParamsType, lockFormSpaceParamsType, processAllQueuedFormSpacesParamsType, removeFormSpaceFileParamsType, reopenFormSpaceParamsType, submitFormSpaceParamsType, updateFormSpaceParamsType, formSpaceTemplate, resolveFormSpaceExpiresAt, isFormSpaceEditable, formSpaceSubmitBlockers, submitFormSpaceTemplate, isFormSpaceReopenable, FormSpaceProcessingState, reopenFormSpaceTemplate, lockFormSpaceTemplate, formSpaceFilesInSlot, isFormSpaceFileAccessibleByUser, formSpaceSubmissionNotificationTaskTemplate, storageFilesForFormSpaceQuery, formSpacesQueuedForProcessingQuery, expireFormSpaceTemplate, formSpacesDueForExpirationQuery, AppFormSpaceTypeConfigService, appFormSpaceTypeConfigService, formSpaceTypeConfigRecord, NOTIFICATION_TASK_SUBTASK_CHECKPOINT_PROCESSING, NOTIFICATION_TASK_SUBTASK_CHECKPOINT_CLEANUP, completeSubtaskProcessingAndScheduleCleanupTaskResult, delayCompletion, notificationTaskDelayRetry, DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_DELAY, DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_ATTEMPTS, FORM_SPACE_SUBMISSION_NOTIFICATION_TASK_TYPE, FormSpaceState, getDocumentSnapshotData, storedFileReaderFactory, limitUploadFileTypeDeterminer, combineUploadFileTypeDeterminers, STORAGEFILE_RELATED_FILE_METADATA_KEY, copyStoragePath, storageFilePurposeAndUserQuery, determineUserByUserUploadsFolderWrapperFunction, determineByFilePath, FORM_SPACE_UPLOADED_FILE_TYPE_IDENTIFIER, FORM_SPACE_UPLOADS_FOLDER_NAME, ALL_USER_UPLOADS_FOLDER_PATH, FormSpaceFileValidationState, formSpaceFileSlotConfig, formSpaceSlotMaxFiles, FORM_SPACE_PURPOSE, formSpaceStorageFileGroupId, formSpaceFileStoragePath, formSpaceUploadFileNameDetails, parseFormSpaceUploadPath, assertFormSpaceUploadAllowed, FORM_SPACE_PURPOSE_REGISTER_SUBTASK, FORM_SPACE_PURPOSE_VALIDATE_SUBTASK, inferStorageFileGroupRelatedModelKey, notificationHealthCheckIssue, KnownNotificationHealthCheckIssueCode, NotificationHealthCheckStatus, MailgunNotificationHealthCheckIssueCode, untrackableNotificationHealthCheckProbe, DEFAULT_NOTIFICATION_MESSAGE_CALENDAR_ATTACHMENT_FILENAME, CREATE_NOTIFICATION_ID_REQUIRED_ERROR_CODE, NOTIFICATION_BOX_DOES_NOT_EXIST_ERROR_CODE, NOTIFICATION_BOX_EXCLUSION_TARGET_INVALID_ERROR_CODE, NOTIFICATION_BOX_EXISTS_FOR_MODEL_ERROR_CODE, NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE, NOTIFICATION_MODEL_ALREADY_INITIALIZED_ERROR_CODE, NOTIFICATION_USER_BLOCKED_FROM_BEING_ADD_TO_RECIPIENTS_ERROR_CODE, NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLED_ERROR_CODE, NOTIFICATION_USER_HEALTH_CHECK_THROTTLED_ERROR_CODE, NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLED_ERROR_CODE, NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE, NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE, notificationUserHealthCheckParamsType, rollupNotificationHealthCheckResultStatus, rollupNotificationDeliveryHealthCheckResultStatus, isPendingNotificationHealthCheckProbe, notificationUserHealthCheckNextProbeAt, notificationUserHealthCheckNextVerifyAt, notificationUserHealthCheckNextRunAt, DEFAULT_NOTIFICATION_TEMPLATE_TYPE, NotificationDeliveryMethod, NotificationBoxRecipientFlag, effectiveNotificationBoxRecipientTemplateConfig, mergeNotificationBoxRecipients, mergeNotificationUserNotificationBoxRecipientConfigs, applyExclusionsToNotificationUserNotificationBoxRecipientConfigs, mergeNotificationBoxRecipientTemplateConfigs, notificationSendExclusionCanSendFunction, mergeNotificationUserDefaultNotificationBoxRecipientConfig, NotificationRecipientSendFlag, allowedNotificationRecipients, getDocumentSnapshotDataPairsWithData, cleanupOldNotificationLoggedEventDaysParamsType, cleanupSentNotificationsParamsType, createNotificationBoxParamsType, createNotificationSummaryParamsType, createNotificationUserParamsType, resyncNotificationUserParamsType, sendNotificationParamsType, sendQueuedNotificationsParamsType, updateNotificationBoxParamsType, updateNotificationBoxRecipientParamsType, updateNotificationSummaryParamsType, updateNotificationUserParamsType, updateNotificationUserDefaultNotificationBoxRecipientConfig, effectiveNotificationBoxRecipientConfig, updateNotificationUserNotificationBoxRecipientConfigs, calculateNsForNotificationUserNotificationBoxRecipientConfigs, notificationUsersFlaggedForNeedsSyncQuery, notificationSummaryIdForModel, loadNotificationBoxDocumentForReferencePair, updateNotificationUserNotificationSendExclusions, notificationBoxRecipientTemplateConfigArrayToRecord, updateNotificationRecipient, setIdAndKeyFromKeyIdRefOnDocumentData, NotificationSendType, notificationSendFlagsImplyIsComplete, NotificationSendState, mergeNotificationSendMessagesResult, notificationsPastSendAtTimeQuery, loadDocumentsForDocumentReferencesFromValues, notificationLoggedEventDayId, shouldSaveNotificationToNotificationWeek, notificationsReadyForCleanupQuery, notificationLoggedEventDaysOlderThanQuery, initializeAllApplicableNotificationBoxesParamsType, initializeAllApplicableNotificationSummariesParamsType, initializeNotificationModelParamsType, firestoreModelKeyCollectionName, notificationBoxesFlaggedForNeedsInitializationQuery, notificationSummariesFlaggedForNeedsInitializationQuery, noContentNotificationMessageFunctionFactory, NOTIFICATION_SUMMARY_EMBEDDED_NOTIFICATION_ITEM_SUBJECT_MAX_LENGTH, NOTIFICATION_SUMMARY_EMBEDDED_NOTIFICATION_ITEM_MESSAGE_MAX_LENGTH, sortNotificationItemsFunction, NOTIFICATION_SUMMARY_ITEM_LIMIT, initializeAllApplicableStorageFileGroupsParamsType, initializeStorageFileModelParamsType, storageFileGroupsFlaggedForNeedsInitializationQuery, STORAGE_FILE_GROUP_ZIP_STORAGE_FILE_PURPOSE_CREATE_ZIP_SUBTASK, STORAGE_FILE_PROCESSING_NOTIFICATION_TASK_TYPE, STORAGE_FILE_GROUP_ZIP_INFO_JSON_FILE_NAME, firestoreModelIdentity, systemStateConverter, systemStateStoredDataConverterFactory, AbstractFirestoreDocument, schedulerSystemStateRead, loadSchedulerSystemState, SCHEDULER_SYSTEM_STATE_TYPE, copyUserRelatedDataAccessorFactoryFunction, snapshotConverterFunctions, firestoreDate, firestoreUID, emptyUserExternalConnection, userExternalConnectionEntryForOutcome, applyUserExternalConnectionEntry } from '@dereekb/firebase';
|
|
2
2
|
import { preconditionConflictError, internalServerError, assertSnapshotData, badRequestError, unavailableError, FIREBASE_FIRESTORE_CONTEXT_TOKEN, FirebaseServerFirestoreContextModule, firestoreEncryptedField, FirebaseServerEnvService } from '@dereekb/firebase-server';
|
|
3
3
|
import { addDays, subMilliseconds, isAfter, hoursToMilliseconds, addHours, isFuture, addMinutes, addSeconds } from 'date-fns';
|
|
4
4
|
import { addMilliseconds, mergeSlashPaths, ModelRelationUtility, isThrottled, isPast, performAsyncTasks, unixDateTimeSecondsNumberFromDate, MS_IN_MINUTE, expirationDetails, runAsyncTasksForValues, dateFromDateOrTimeMillisecondsNumber, asArray, TEXT_CALENDAR_UTF8_CONTENT_TYPE, separateValues, unique, cachedGetter, pushItemOrArrayItemsIntoArray, asDecisionFunction, filterUndefinedValues, mapObjectKeysToLowercase, multiValueMapBuilder, batch, pushArrayItemsIntoArray, filterMaybeArrayValues, takeFront, UNSET_INDEX_NUMBER, areEqualPOJOValues, removeValuesAtIndexesFromArrayCopy, makeModelMap, computeNextFreeIndexOnSortedValuesFunction, readIndexNumber, asPromise, dateOrMillisecondsToDate, filterOnlyUndefinedValues, iterablesAreSetEquivalent, mapIdentityFunction, makeValuesGroupMap, cutStringFunction, takeLast, MS_IN_HOUR, documentFileExtensionForMimeType, useCallback, slashPathDetails, ZIP_FILE_MIME_TYPE, MAP_IDENTITY, isDate } from '@dereekb/util';
|
|
@@ -10,7 +10,7 @@ import { Optional, Inject, Injectable, Module, Global, Get, Req, Res, Query, Log
|
|
|
10
10
|
import sharp from 'sharp';
|
|
11
11
|
import { inflateSync } from 'node:zlib';
|
|
12
12
|
import { PDFName, PDFDocument, PDFRawStream, PDFArray, PDFNumber, PDFStream, PDFDict, PDFRef } from '@cantoo/pdf-lib';
|
|
13
|
-
import
|
|
13
|
+
import { ZipArchive } from 'archiver';
|
|
14
14
|
import { createAES256GCMEncryption, isValidAES256GCMEncryptionSecret } from '@dereekb/nestjs';
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -174,11 +174,8 @@ function asyncGeneratorStep$x(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
174
174
|
reject(error);
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
|
-
if (info.done)
|
|
178
|
-
|
|
179
|
-
} else {
|
|
180
|
-
Promise.resolve(value).then(_next, _throw);
|
|
181
|
-
}
|
|
177
|
+
if (info.done) resolve(value);
|
|
178
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
182
179
|
}
|
|
183
180
|
function _async_to_generator$x(fn) {
|
|
184
181
|
return function() {
|
|
@@ -196,9 +193,7 @@ function _async_to_generator$x(fn) {
|
|
|
196
193
|
};
|
|
197
194
|
}
|
|
198
195
|
function _class_call_check$p(instance, Constructor) {
|
|
199
|
-
if (!(instance instanceof Constructor))
|
|
200
|
-
throw new TypeError("Cannot call a class as a function");
|
|
201
|
-
}
|
|
196
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
202
197
|
}
|
|
203
198
|
function _define_property$s(obj, key, value) {
|
|
204
199
|
if (key in obj) {
|
|
@@ -208,18 +203,14 @@ function _define_property$s(obj, key, value) {
|
|
|
208
203
|
configurable: true,
|
|
209
204
|
writable: true
|
|
210
205
|
});
|
|
211
|
-
} else
|
|
212
|
-
obj[key] = value;
|
|
213
|
-
}
|
|
206
|
+
} else obj[key] = value;
|
|
214
207
|
return obj;
|
|
215
208
|
}
|
|
216
209
|
function _instanceof$2(left, right) {
|
|
217
210
|
"@swc/helpers - instanceof";
|
|
218
211
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
219
212
|
return !!right[Symbol.hasInstance](left);
|
|
220
|
-
} else
|
|
221
|
-
return left instanceof right;
|
|
222
|
-
}
|
|
213
|
+
} else return left instanceof right;
|
|
223
214
|
}
|
|
224
215
|
function _iterable_to_array_limit$7(arr, i) {
|
|
225
216
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -246,7 +237,7 @@ function _iterable_to_array_limit$7(arr, i) {
|
|
|
246
237
|
return _arr;
|
|
247
238
|
}
|
|
248
239
|
function _non_iterable_rest$7() {
|
|
249
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
240
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
250
241
|
}
|
|
251
242
|
function _object_spread$q(target) {
|
|
252
243
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -273,9 +264,8 @@ function ownKeys$o(object, enumerableOnly) {
|
|
|
273
264
|
}
|
|
274
265
|
function _object_spread_props$o(target, source) {
|
|
275
266
|
source = source != null ? source : {};
|
|
276
|
-
if (Object.getOwnPropertyDescriptors)
|
|
277
|
-
|
|
278
|
-
} else {
|
|
267
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
268
|
+
else {
|
|
279
269
|
ownKeys$o(Object(source)).forEach(function(key) {
|
|
280
270
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
281
271
|
});
|
|
@@ -285,14 +275,6 @@ function _object_spread_props$o(target, source) {
|
|
|
285
275
|
function _sliced_to_array$7(arr, i) {
|
|
286
276
|
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$j(arr, i) || _non_iterable_rest$7();
|
|
287
277
|
}
|
|
288
|
-
function _unsupported_iterable_to_array$j(o, minLen) {
|
|
289
|
-
if (!o) return;
|
|
290
|
-
if (typeof o === "string") return _array_like_to_array$j(o, minLen);
|
|
291
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
292
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
293
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
294
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$j(o, minLen);
|
|
295
|
-
}
|
|
296
278
|
function _ts_generator$x(thisArg, body) {
|
|
297
279
|
var f, y, t, _ = {
|
|
298
280
|
label: 0,
|
|
@@ -392,6 +374,14 @@ function _ts_generator$x(thisArg, body) {
|
|
|
392
374
|
};
|
|
393
375
|
}
|
|
394
376
|
}
|
|
377
|
+
function _unsupported_iterable_to_array$j(o, minLen) {
|
|
378
|
+
if (!o) return;
|
|
379
|
+
if (typeof o === "string") return _array_like_to_array$j(o, minLen);
|
|
380
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
381
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
382
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
383
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$j(o, minLen);
|
|
384
|
+
}
|
|
395
385
|
/**
|
|
396
386
|
* NestJS injection token for the {@link BaseStorageFileServerActionsContext}, providing
|
|
397
387
|
* Firebase infrastructure, storage service, notification collections, and Firestore collections
|
|
@@ -2787,7 +2777,7 @@ function _resolveSignedUploadUrlFilenameOrThrow(policy, filename) {
|
|
|
2787
2777
|
2,
|
|
2788
2778
|
firestoreContext.runTransaction(function(transaction) {
|
|
2789
2779
|
return _async_to_generator$x(function() {
|
|
2790
|
-
var storageFileGroupDocumentInTransaction, storageFileGroup, storageFileDocumentAccessor, o, zsf, s, existingZipStorageFileDocument,
|
|
2780
|
+
var storageFileGroupDocumentInTransaction, storageFileGroup, storageFileDocumentAccessor, o, zsf, s, existingZipStorageFileDocument, existingZipStorageFilePair, _tmp, contentStorageFilesFlaggedForProcessing, updateTemplate, regenerateZip, zipStorageFile, storageFileDocument, result;
|
|
2791
2781
|
return _ts_generator$x(this, function(_state) {
|
|
2792
2782
|
switch(_state.label){
|
|
2793
2783
|
case 0:
|
|
@@ -2805,17 +2795,25 @@ function _resolveSignedUploadUrlFilenameOrThrow(policy, filename) {
|
|
|
2805
2795
|
throw storageFileGroupQueuedForInitializationError();
|
|
2806
2796
|
}
|
|
2807
2797
|
existingZipStorageFileDocument = zsf ? storageFileDocumentAccessor.loadDocumentForId(zsf) : undefined;
|
|
2798
|
+
if (!existingZipStorageFileDocument) return [
|
|
2799
|
+
3,
|
|
2800
|
+
3
|
|
2801
|
+
];
|
|
2808
2802
|
return [
|
|
2809
2803
|
4,
|
|
2810
|
-
|
|
2811
|
-
existingZipStorageFileDocument ? getDocumentSnapshotDataPair(existingZipStorageFileDocument) : undefined
|
|
2812
|
-
])
|
|
2804
|
+
getDocumentSnapshotDataPair(existingZipStorageFileDocument)
|
|
2813
2805
|
];
|
|
2814
2806
|
case 2:
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2807
|
+
_tmp = _state.sent();
|
|
2808
|
+
return [
|
|
2809
|
+
3,
|
|
2810
|
+
4
|
|
2811
|
+
];
|
|
2812
|
+
case 3:
|
|
2813
|
+
_tmp = undefined;
|
|
2814
|
+
_state.label = 4;
|
|
2815
|
+
case 4:
|
|
2816
|
+
existingZipStorageFilePair = _tmp;
|
|
2819
2817
|
contentStorageFilesFlaggedForProcessing = 0;
|
|
2820
2818
|
updateTemplate = {
|
|
2821
2819
|
re: false // clear the regeneration flag
|
|
@@ -2827,11 +2825,11 @@ function _resolveSignedUploadUrlFilenameOrThrow(policy, filename) {
|
|
|
2827
2825
|
}).regenerateZip;
|
|
2828
2826
|
if (!regenerateZip) return [
|
|
2829
2827
|
3,
|
|
2830
|
-
|
|
2828
|
+
9
|
|
2831
2829
|
];
|
|
2832
2830
|
if (!(existingZipStorageFilePair === null || existingZipStorageFilePair === void 0 ? void 0 : existingZipStorageFilePair.data)) return [
|
|
2833
2831
|
3,
|
|
2834
|
-
|
|
2832
|
+
6
|
|
2835
2833
|
];
|
|
2836
2834
|
// flag it for processing again
|
|
2837
2835
|
return [
|
|
@@ -2844,13 +2842,13 @@ function _resolveSignedUploadUrlFilenameOrThrow(policy, filename) {
|
|
|
2844
2842
|
storageFile: existingZipStorageFilePair.data
|
|
2845
2843
|
}, transaction)
|
|
2846
2844
|
];
|
|
2847
|
-
case
|
|
2845
|
+
case 5:
|
|
2848
2846
|
_state.sent();
|
|
2849
2847
|
return [
|
|
2850
2848
|
3,
|
|
2851
|
-
|
|
2849
|
+
8
|
|
2852
2850
|
];
|
|
2853
|
-
case
|
|
2851
|
+
case 6:
|
|
2854
2852
|
zipStorageFile = storageService.file(storageFileGroupZipFileStoragePath(storageFileGroupDocument.id));
|
|
2855
2853
|
return [
|
|
2856
2854
|
4,
|
|
@@ -2866,20 +2864,20 @@ function _resolveSignedUploadUrlFilenameOrThrow(policy, filename) {
|
|
|
2866
2864
|
}
|
|
2867
2865
|
})
|
|
2868
2866
|
];
|
|
2869
|
-
case
|
|
2867
|
+
case 7:
|
|
2870
2868
|
storageFileDocument = _state.sent().storageFileDocument;
|
|
2871
2869
|
updateTemplate.zsf = storageFileDocument.id;
|
|
2872
|
-
_state.label =
|
|
2873
|
-
case
|
|
2870
|
+
_state.label = 8;
|
|
2871
|
+
case 8:
|
|
2874
2872
|
contentStorageFilesFlaggedForProcessing += 1;
|
|
2875
|
-
_state.label =
|
|
2876
|
-
case
|
|
2873
|
+
_state.label = 9;
|
|
2874
|
+
case 9:
|
|
2877
2875
|
// update the StorageFileGroup
|
|
2878
2876
|
return [
|
|
2879
2877
|
4,
|
|
2880
2878
|
storageFileGroupDocumentInTransaction.update(updateTemplate)
|
|
2881
2879
|
];
|
|
2882
|
-
case
|
|
2880
|
+
case 10:
|
|
2883
2881
|
_state.sent();
|
|
2884
2882
|
result = {
|
|
2885
2883
|
contentStorageFilesFlaggedForProcessing: contentStorageFilesFlaggedForProcessing
|
|
@@ -3004,11 +3002,8 @@ function asyncGeneratorStep$w(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
3004
3002
|
reject(error);
|
|
3005
3003
|
return;
|
|
3006
3004
|
}
|
|
3007
|
-
if (info.done)
|
|
3008
|
-
|
|
3009
|
-
} else {
|
|
3010
|
-
Promise.resolve(value).then(_next, _throw);
|
|
3011
|
-
}
|
|
3005
|
+
if (info.done) resolve(value);
|
|
3006
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
3012
3007
|
}
|
|
3013
3008
|
function _async_to_generator$w(fn) {
|
|
3014
3009
|
return function() {
|
|
@@ -3255,11 +3250,8 @@ function asyncGeneratorStep$v(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
3255
3250
|
reject(error);
|
|
3256
3251
|
return;
|
|
3257
3252
|
}
|
|
3258
|
-
if (info.done)
|
|
3259
|
-
|
|
3260
|
-
} else {
|
|
3261
|
-
Promise.resolve(value).then(_next, _throw);
|
|
3262
|
-
}
|
|
3253
|
+
if (info.done) resolve(value);
|
|
3254
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
3263
3255
|
}
|
|
3264
3256
|
function _async_to_generator$v(fn) {
|
|
3265
3257
|
return function() {
|
|
@@ -3277,9 +3269,7 @@ function _async_to_generator$v(fn) {
|
|
|
3277
3269
|
};
|
|
3278
3270
|
}
|
|
3279
3271
|
function _class_call_check$o(instance, Constructor) {
|
|
3280
|
-
if (!(instance instanceof Constructor))
|
|
3281
|
-
throw new TypeError("Cannot call a class as a function");
|
|
3282
|
-
}
|
|
3272
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
3283
3273
|
}
|
|
3284
3274
|
function _ts_generator$v(thisArg, body) {
|
|
3285
3275
|
var f, y, t, _ = {
|
|
@@ -3382,16 +3372,22 @@ function _ts_generator$v(thisArg, body) {
|
|
|
3382
3372
|
}
|
|
3383
3373
|
function _ts_values(o) {
|
|
3384
3374
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
3385
|
-
if (m)
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3375
|
+
if (m) {
|
|
3376
|
+
return m.call(o);
|
|
3377
|
+
}
|
|
3378
|
+
if (o && typeof o.length === "number") {
|
|
3379
|
+
return {
|
|
3380
|
+
next: function() {
|
|
3381
|
+
if (o && i >= o.length) {
|
|
3382
|
+
o = void 0;
|
|
3383
|
+
}
|
|
3384
|
+
return {
|
|
3385
|
+
value: o && o[i++],
|
|
3386
|
+
done: !o
|
|
3387
|
+
};
|
|
3388
|
+
}
|
|
3389
|
+
};
|
|
3390
|
+
}
|
|
3395
3391
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3396
3392
|
}
|
|
3397
3393
|
/**
|
|
@@ -4116,16 +4112,16 @@ function _define_property$r(obj, key, value) {
|
|
|
4116
4112
|
configurable: true,
|
|
4117
4113
|
writable: true
|
|
4118
4114
|
});
|
|
4119
|
-
} else
|
|
4120
|
-
obj[key] = value;
|
|
4121
|
-
}
|
|
4115
|
+
} else obj[key] = value;
|
|
4122
4116
|
return obj;
|
|
4123
4117
|
}
|
|
4124
4118
|
function _iterable_to_array$f(iter) {
|
|
4125
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
4119
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
4120
|
+
return Array.from(iter);
|
|
4121
|
+
}
|
|
4126
4122
|
}
|
|
4127
4123
|
function _non_iterable_spread$f() {
|
|
4128
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
4124
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4129
4125
|
}
|
|
4130
4126
|
function _object_spread$p(target) {
|
|
4131
4127
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -4152,9 +4148,8 @@ function ownKeys$n(object, enumerableOnly) {
|
|
|
4152
4148
|
}
|
|
4153
4149
|
function _object_spread_props$n(target, source) {
|
|
4154
4150
|
source = source != null ? source : {};
|
|
4155
|
-
if (Object.getOwnPropertyDescriptors)
|
|
4156
|
-
|
|
4157
|
-
} else {
|
|
4151
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
4152
|
+
else {
|
|
4158
4153
|
ownKeys$n(Object(source)).forEach(function(key) {
|
|
4159
4154
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
4160
4155
|
});
|
|
@@ -4277,11 +4272,8 @@ function asyncGeneratorStep$u(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
4277
4272
|
reject(error);
|
|
4278
4273
|
return;
|
|
4279
4274
|
}
|
|
4280
|
-
if (info.done)
|
|
4281
|
-
|
|
4282
|
-
} else {
|
|
4283
|
-
Promise.resolve(value).then(_next, _throw);
|
|
4284
|
-
}
|
|
4275
|
+
if (info.done) resolve(value);
|
|
4276
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
4285
4277
|
}
|
|
4286
4278
|
function _async_to_generator$u(fn) {
|
|
4287
4279
|
return function() {
|
|
@@ -4306,9 +4298,7 @@ function _define_property$q(obj, key, value) {
|
|
|
4306
4298
|
configurable: true,
|
|
4307
4299
|
writable: true
|
|
4308
4300
|
});
|
|
4309
|
-
} else
|
|
4310
|
-
obj[key] = value;
|
|
4311
|
-
}
|
|
4301
|
+
} else obj[key] = value;
|
|
4312
4302
|
return obj;
|
|
4313
4303
|
}
|
|
4314
4304
|
function _object_spread$o(target) {
|
|
@@ -4336,9 +4326,8 @@ function ownKeys$m(object, enumerableOnly) {
|
|
|
4336
4326
|
}
|
|
4337
4327
|
function _object_spread_props$m(target, source) {
|
|
4338
4328
|
source = source != null ? source : {};
|
|
4339
|
-
if (Object.getOwnPropertyDescriptors)
|
|
4340
|
-
|
|
4341
|
-
} else {
|
|
4329
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
4330
|
+
else {
|
|
4342
4331
|
ownKeys$m(Object(source)).forEach(function(key) {
|
|
4343
4332
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
4344
4333
|
});
|
|
@@ -4679,11 +4668,8 @@ function asyncGeneratorStep$t(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
4679
4668
|
reject(error);
|
|
4680
4669
|
return;
|
|
4681
4670
|
}
|
|
4682
|
-
if (info.done)
|
|
4683
|
-
|
|
4684
|
-
} else {
|
|
4685
|
-
Promise.resolve(value).then(_next, _throw);
|
|
4686
|
-
}
|
|
4671
|
+
if (info.done) resolve(value);
|
|
4672
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
4687
4673
|
}
|
|
4688
4674
|
function _async_to_generator$t(fn) {
|
|
4689
4675
|
return function() {
|
|
@@ -4708,9 +4694,7 @@ function _define_property$p(obj, key, value) {
|
|
|
4708
4694
|
configurable: true,
|
|
4709
4695
|
writable: true
|
|
4710
4696
|
});
|
|
4711
|
-
} else
|
|
4712
|
-
obj[key] = value;
|
|
4713
|
-
}
|
|
4697
|
+
} else obj[key] = value;
|
|
4714
4698
|
return obj;
|
|
4715
4699
|
}
|
|
4716
4700
|
function _object_spread$n(target) {
|
|
@@ -4738,9 +4722,8 @@ function ownKeys$l(object, enumerableOnly) {
|
|
|
4738
4722
|
}
|
|
4739
4723
|
function _object_spread_props$l(target, source) {
|
|
4740
4724
|
source = source != null ? source : {};
|
|
4741
|
-
if (Object.getOwnPropertyDescriptors)
|
|
4742
|
-
|
|
4743
|
-
} else {
|
|
4725
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
4726
|
+
else {
|
|
4744
4727
|
ownKeys$l(Object(source)).forEach(function(key) {
|
|
4745
4728
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
4746
4729
|
});
|
|
@@ -5020,6 +5003,39 @@ function _ts_generator$t(thisArg, body) {
|
|
|
5020
5003
|
code: FORM_SPACE_NOT_EDITABLE_ERROR_CODE
|
|
5021
5004
|
});
|
|
5022
5005
|
}
|
|
5006
|
+
/**
|
|
5007
|
+
* Creates an error indicating the FormSpace has never been submitted, so there is no submission to lock.
|
|
5008
|
+
*
|
|
5009
|
+
* @returns A precondition-conflict HttpsError with the FORM_SPACE_NOT_SUBMITTED error code.
|
|
5010
|
+
*/ function formSpaceNotSubmittedError() {
|
|
5011
|
+
return preconditionConflictError({
|
|
5012
|
+
message: "This FormSpace has not been submitted, so its submission cannot be locked.",
|
|
5013
|
+
code: FORM_SPACE_NOT_SUBMITTED_ERROR_CODE
|
|
5014
|
+
});
|
|
5015
|
+
}
|
|
5016
|
+
/**
|
|
5017
|
+
* Creates an error indicating the FormSpace's submission is final, so it cannot be reopened.
|
|
5018
|
+
*
|
|
5019
|
+
* @returns A precondition-conflict HttpsError with the FORM_SPACE_NOT_REOPENABLE error code.
|
|
5020
|
+
*/ function formSpaceNotReopenableError() {
|
|
5021
|
+
return preconditionConflictError({
|
|
5022
|
+
message: "This FormSpace's submission is final and can no longer be reopened.",
|
|
5023
|
+
code: FORM_SPACE_NOT_REOPENABLE_ERROR_CODE
|
|
5024
|
+
});
|
|
5025
|
+
}
|
|
5026
|
+
/**
|
|
5027
|
+
* Creates an error indicating the FormSpace's submission is being processed right now.
|
|
5028
|
+
*
|
|
5029
|
+
* Deliberately separate from {@link formSpaceNotReopenableError}: this one clears on its own, and telling
|
|
5030
|
+
* a caller their submission is final when the processor is simply mid-run would be wrong.
|
|
5031
|
+
*
|
|
5032
|
+
* @returns A precondition-conflict HttpsError with the FORM_SPACE_PROCESSING_IN_PROGRESS error code.
|
|
5033
|
+
*/ function formSpaceProcessingInProgressError() {
|
|
5034
|
+
return preconditionConflictError({
|
|
5035
|
+
message: "This FormSpace's submission is currently being processed. Try again once it finishes.",
|
|
5036
|
+
code: FORM_SPACE_PROCESSING_IN_PROGRESS_ERROR_CODE
|
|
5037
|
+
});
|
|
5038
|
+
}
|
|
5023
5039
|
/**
|
|
5024
5040
|
* Creates an error indicating a required upload slot is still empty at submission time.
|
|
5025
5041
|
*
|
|
@@ -5187,11 +5203,8 @@ function asyncGeneratorStep$s(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5187
5203
|
reject(error);
|
|
5188
5204
|
return;
|
|
5189
5205
|
}
|
|
5190
|
-
if (info.done)
|
|
5191
|
-
|
|
5192
|
-
} else {
|
|
5193
|
-
Promise.resolve(value).then(_next, _throw);
|
|
5194
|
-
}
|
|
5206
|
+
if (info.done) resolve(value);
|
|
5207
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
5195
5208
|
}
|
|
5196
5209
|
function _async_to_generator$s(fn) {
|
|
5197
5210
|
return function() {
|
|
@@ -5209,9 +5222,7 @@ function _async_to_generator$s(fn) {
|
|
|
5209
5222
|
};
|
|
5210
5223
|
}
|
|
5211
5224
|
function _class_call_check$n(instance, Constructor) {
|
|
5212
|
-
if (!(instance instanceof Constructor))
|
|
5213
|
-
throw new TypeError("Cannot call a class as a function");
|
|
5214
|
-
}
|
|
5225
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
5215
5226
|
}
|
|
5216
5227
|
function _ts_generator$s(thisArg, body) {
|
|
5217
5228
|
var f, y, t, _ = {
|
|
@@ -5341,6 +5352,8 @@ function _ts_generator$s(thisArg, body) {
|
|
|
5341
5352
|
createFormSpace: createFormSpaceFactory(context),
|
|
5342
5353
|
updateFormSpace: updateFormSpaceFactory(context),
|
|
5343
5354
|
submitFormSpace: submitFormSpaceFactory(context),
|
|
5355
|
+
reopenFormSpace: reopenFormSpaceFactory(context),
|
|
5356
|
+
lockFormSpace: lockFormSpaceFactory(context),
|
|
5344
5357
|
removeFormSpaceFile: removeFormSpaceFileFactory(context),
|
|
5345
5358
|
deleteFormSpace: deleteFormSpaceFactory(context),
|
|
5346
5359
|
processAllQueuedFormSpaces: processAllQueuedFormSpacesFactory(context),
|
|
@@ -5563,6 +5576,11 @@ function _ts_generator$s(thisArg, body) {
|
|
|
5563
5576
|
* would hold the lock across the whole handler. A crash in between leaves the space in
|
|
5564
5577
|
* QUEUED_FOR_PROCESSING with no task, which {@link processAllQueuedFormSpacesFactory} is the backstop for.
|
|
5565
5578
|
*
|
|
5579
|
+
* Also serves a RESUBMISSION after a reopen, unchanged: the space is a draft again, so the same editable
|
|
5580
|
+
* check and the same submit blockers apply. The only difference is that the task is keyed by the space's
|
|
5581
|
+
* reopen count, so it gets a document and a checkpoint flow of its own instead of colliding with the
|
|
5582
|
+
* finished task of the attempt before it.
|
|
5583
|
+
*
|
|
5566
5584
|
* @param context - The FormSpace server actions context.
|
|
5567
5585
|
* @returns An async transform-and-validate function that submits a FormSpace.
|
|
5568
5586
|
*/ function submitFormSpaceFactory(context) {
|
|
@@ -5577,9 +5595,13 @@ function _ts_generator$s(thisArg, body) {
|
|
|
5577
5595
|
2,
|
|
5578
5596
|
function(formSpaceDocument) {
|
|
5579
5597
|
return _async_to_generator$s(function() {
|
|
5598
|
+
var reopenCount;
|
|
5580
5599
|
return _ts_generator$s(this, function(_state) {
|
|
5581
5600
|
switch(_state.label){
|
|
5582
5601
|
case 0:
|
|
5602
|
+
// read under the lock and carried out, so the task is keyed to the attempt this submission IS rather
|
|
5603
|
+
// than to whatever the count happens to be by the time the task is created outside the transaction
|
|
5604
|
+
reopenCount = 0;
|
|
5583
5605
|
return [
|
|
5584
5606
|
4,
|
|
5585
5607
|
firestoreContext.runTransaction(function(transaction) {
|
|
@@ -5629,10 +5651,195 @@ function _ts_generator$s(thisArg, body) {
|
|
|
5629
5651
|
}
|
|
5630
5652
|
return [
|
|
5631
5653
|
4,
|
|
5632
|
-
documentInTransaction.update(submitFormSpaceTemplate(
|
|
5654
|
+
documentInTransaction.update(submitFormSpaceTemplate({
|
|
5655
|
+
formSpace: current,
|
|
5656
|
+
config: config
|
|
5657
|
+
}))
|
|
5658
|
+
];
|
|
5659
|
+
case 2:
|
|
5660
|
+
_state.sent();
|
|
5661
|
+
reopenCount = current.rc;
|
|
5662
|
+
return [
|
|
5663
|
+
2
|
|
5664
|
+
];
|
|
5665
|
+
}
|
|
5666
|
+
});
|
|
5667
|
+
})();
|
|
5668
|
+
})
|
|
5669
|
+
];
|
|
5670
|
+
case 1:
|
|
5671
|
+
_state.sent();
|
|
5672
|
+
return [
|
|
5673
|
+
2,
|
|
5674
|
+
queueFormSpaceForProcessing({
|
|
5675
|
+
formSpaceDocument: formSpaceDocument,
|
|
5676
|
+
reopenCount: reopenCount,
|
|
5677
|
+
runImmediately: runImmediately
|
|
5678
|
+
})
|
|
5679
|
+
];
|
|
5680
|
+
}
|
|
5681
|
+
});
|
|
5682
|
+
})();
|
|
5683
|
+
}
|
|
5684
|
+
];
|
|
5685
|
+
});
|
|
5686
|
+
})();
|
|
5687
|
+
});
|
|
5688
|
+
}
|
|
5689
|
+
/**
|
|
5690
|
+
* Factory for the `reopenFormSpace` action.
|
|
5691
|
+
*
|
|
5692
|
+
* The inverse of `submitFormSpace`, and deliberately NOT a widening of `isFormSpaceEditable`: it restores
|
|
5693
|
+
* every condition that predicate tests instead, so update, upload, `removeFile` and a resubmit all come
|
|
5694
|
+
* back with no further change anywhere.
|
|
5695
|
+
*
|
|
5696
|
+
* The reopen task story is handled by KEYING rather than cleanup. The superseded attempt's task document is
|
|
5697
|
+
* left where it is: it is either already done and waiting for the notification cleanup sweep, or still
|
|
5698
|
+
* pending and about to be fenced off by its own handler, which compares the count it was created with
|
|
5699
|
+
* against the space's. Deleting it here would mean reaching into a Notification subcollection whose parent
|
|
5700
|
+
* this action cannot reconstruct once the task's own cleanup has nulled `pn` — for no gain, since the
|
|
5701
|
+
* resubmission keys a document of its own either way.
|
|
5702
|
+
*
|
|
5703
|
+
* @param context - The FormSpace server actions context.
|
|
5704
|
+
* @returns An async transform-and-validate function that reopens a submitted FormSpace.
|
|
5705
|
+
*/ function reopenFormSpaceFactory(context) {
|
|
5706
|
+
var firestoreContext = context.firestoreContext, formSpaceCollection = context.formSpaceCollection, appFormSpaceTypeConfigService = context.appFormSpaceTypeConfigService, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
|
|
5707
|
+
return firebaseServerActionTransformFunctionFactory(reopenFormSpaceParamsType, function(_params) {
|
|
5708
|
+
return _async_to_generator$s(function() {
|
|
5709
|
+
return _ts_generator$s(this, function(_state) {
|
|
5710
|
+
return [
|
|
5711
|
+
2,
|
|
5712
|
+
function(formSpaceDocument, input) {
|
|
5713
|
+
return _async_to_generator$s(function() {
|
|
5714
|
+
var uid;
|
|
5715
|
+
return _ts_generator$s(this, function(_state) {
|
|
5716
|
+
switch(_state.label){
|
|
5717
|
+
case 0:
|
|
5718
|
+
uid = input.uid;
|
|
5719
|
+
return [
|
|
5720
|
+
4,
|
|
5721
|
+
firestoreContext.runTransaction(function(transaction) {
|
|
5722
|
+
return _async_to_generator$s(function() {
|
|
5723
|
+
var documentInTransaction, current, config;
|
|
5724
|
+
return _ts_generator$s(this, function(_state) {
|
|
5725
|
+
switch(_state.label){
|
|
5726
|
+
case 0:
|
|
5727
|
+
documentInTransaction = formSpaceCollection.documentAccessorForTransaction(transaction).loadDocumentFrom(formSpaceDocument);
|
|
5728
|
+
return [
|
|
5729
|
+
4,
|
|
5730
|
+
assertSnapshotData(documentInTransaction)
|
|
5731
|
+
];
|
|
5732
|
+
case 1:
|
|
5733
|
+
current = _state.sent();
|
|
5734
|
+
config = appFormSpaceTypeConfigService.configForFormSpaceType(current.t);
|
|
5735
|
+
// re-asserted under the lock, so a concurrent double-reopen resolves to one winner and `rc` — which
|
|
5736
|
+
// the next submission's task is keyed by — advances exactly once
|
|
5737
|
+
if (!isFormSpaceReopenable({
|
|
5738
|
+
formSpace: current,
|
|
5739
|
+
config: config
|
|
5740
|
+
})) {
|
|
5741
|
+
throw formSpaceNotReopenableError();
|
|
5742
|
+
}
|
|
5743
|
+
// Checked AFTER the policy on purpose. Both refusals are true of a space whose window closed while
|
|
5744
|
+
// a processor was running, and "this submission is final" is the answer the caller can act on;
|
|
5745
|
+
// "try again shortly" would be a lie they would act on twice.
|
|
5746
|
+
if (current.ps === FormSpaceProcessingState.PROCESSING) {
|
|
5747
|
+
throw formSpaceProcessingInProgressError();
|
|
5748
|
+
}
|
|
5749
|
+
return [
|
|
5750
|
+
4,
|
|
5751
|
+
documentInTransaction.update(reopenFormSpaceTemplate({
|
|
5752
|
+
formSpace: current,
|
|
5753
|
+
config: config,
|
|
5754
|
+
uid: uid
|
|
5755
|
+
}))
|
|
5756
|
+
];
|
|
5757
|
+
case 2:
|
|
5758
|
+
_state.sent();
|
|
5759
|
+
return [
|
|
5760
|
+
2
|
|
5761
|
+
];
|
|
5762
|
+
}
|
|
5763
|
+
});
|
|
5764
|
+
})();
|
|
5765
|
+
})
|
|
5766
|
+
];
|
|
5767
|
+
case 1:
|
|
5768
|
+
_state.sent();
|
|
5769
|
+
return [
|
|
5770
|
+
2,
|
|
5771
|
+
formSpaceDocument
|
|
5772
|
+
];
|
|
5773
|
+
}
|
|
5774
|
+
});
|
|
5775
|
+
})();
|
|
5776
|
+
}
|
|
5777
|
+
];
|
|
5778
|
+
});
|
|
5779
|
+
})();
|
|
5780
|
+
});
|
|
5781
|
+
}
|
|
5782
|
+
/**
|
|
5783
|
+
* Factory for the `lockFormSpace` action.
|
|
5784
|
+
*
|
|
5785
|
+
* Not a state transition. The space stays exactly where it is and its processing is untouched; the only
|
|
5786
|
+
* thing that moves is `lat`, brought forward to now so every reopen predicate answers false from here on.
|
|
5787
|
+
*
|
|
5788
|
+
* Accepts a reopened DRAFT as well as a SUBMITTED space — locking a draft that has been submitted before is
|
|
5789
|
+
* how a reviewer says "the next submission is the last one", and it survives the resubmit because
|
|
5790
|
+
* {@link submitFormSpaceTemplate} only writes `lat` for a space that has never been submitted. A space with
|
|
5791
|
+
* no submission at all is the one case refused.
|
|
5792
|
+
*
|
|
5793
|
+
* @param context - The FormSpace server actions context.
|
|
5794
|
+
* @returns An async transform-and-validate function that locks a FormSpace's submission.
|
|
5795
|
+
*/ function lockFormSpaceFactory(context) {
|
|
5796
|
+
var firestoreContext = context.firestoreContext, formSpaceCollection = context.formSpaceCollection, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
|
|
5797
|
+
return firebaseServerActionTransformFunctionFactory(lockFormSpaceParamsType, function(_params) {
|
|
5798
|
+
return _async_to_generator$s(function() {
|
|
5799
|
+
return _ts_generator$s(this, function(_state) {
|
|
5800
|
+
return [
|
|
5801
|
+
2,
|
|
5802
|
+
function(formSpaceDocument, input) {
|
|
5803
|
+
return _async_to_generator$s(function() {
|
|
5804
|
+
var uid;
|
|
5805
|
+
return _ts_generator$s(this, function(_state) {
|
|
5806
|
+
switch(_state.label){
|
|
5807
|
+
case 0:
|
|
5808
|
+
uid = input.uid;
|
|
5809
|
+
return [
|
|
5810
|
+
4,
|
|
5811
|
+
firestoreContext.runTransaction(function(transaction) {
|
|
5812
|
+
return _async_to_generator$s(function() {
|
|
5813
|
+
var documentInTransaction, current, now;
|
|
5814
|
+
return _ts_generator$s(this, function(_state) {
|
|
5815
|
+
switch(_state.label){
|
|
5816
|
+
case 0:
|
|
5817
|
+
documentInTransaction = formSpaceCollection.documentAccessorForTransaction(transaction).loadDocumentFrom(formSpaceDocument);
|
|
5818
|
+
return [
|
|
5819
|
+
4,
|
|
5820
|
+
assertSnapshotData(documentInTransaction)
|
|
5821
|
+
];
|
|
5822
|
+
case 1:
|
|
5823
|
+
current = _state.sent();
|
|
5824
|
+
now = new Date();
|
|
5825
|
+
if (current.fsat == null) {
|
|
5826
|
+
throw formSpaceNotSubmittedError();
|
|
5827
|
+
}
|
|
5828
|
+
if (!(current.lat == null || current.lat.getTime() > now.getTime())) return [
|
|
5829
|
+
3,
|
|
5830
|
+
3
|
|
5831
|
+
];
|
|
5832
|
+
return [
|
|
5833
|
+
4,
|
|
5834
|
+
documentInTransaction.update(lockFormSpaceTemplate({
|
|
5835
|
+
uid: uid,
|
|
5836
|
+
now: now
|
|
5837
|
+
}))
|
|
5633
5838
|
];
|
|
5634
5839
|
case 2:
|
|
5635
5840
|
_state.sent();
|
|
5841
|
+
_state.label = 3;
|
|
5842
|
+
case 3:
|
|
5636
5843
|
return [
|
|
5637
5844
|
2
|
|
5638
5845
|
];
|
|
@@ -5645,7 +5852,7 @@ function _ts_generator$s(thisArg, body) {
|
|
|
5645
5852
|
_state.sent();
|
|
5646
5853
|
return [
|
|
5647
5854
|
2,
|
|
5648
|
-
|
|
5855
|
+
formSpaceDocument
|
|
5649
5856
|
];
|
|
5650
5857
|
}
|
|
5651
5858
|
});
|
|
@@ -5770,22 +5977,23 @@ function _ts_generator$s(thisArg, body) {
|
|
|
5770
5977
|
});
|
|
5771
5978
|
}
|
|
5772
5979
|
/**
|
|
5773
|
-
* Creates (or re-runs) the unique submission task for a FormSpace and records its key on `pn`.
|
|
5980
|
+
* Creates (or re-runs) the unique submission task for one ATTEMPT of a FormSpace and records its key on `pn`.
|
|
5774
5981
|
*
|
|
5775
5982
|
* Shared by `submitFormSpace` and the queued backstop sweep, which is what makes the backstop safe to run
|
|
5776
|
-
* against a space whose task already exists: the task is unique per
|
|
5777
|
-
* the same document rather than racing a second processor.
|
|
5983
|
+
* against a space whose task already exists: the task is unique per attempt, so a second call for the same
|
|
5984
|
+
* attempt resolves to the same document rather than racing a second processor.
|
|
5778
5985
|
*
|
|
5779
5986
|
* @param context - The FormSpace server actions context.
|
|
5780
5987
|
* @returns Queues one FormSpace, reporting the task key and whether this call created it.
|
|
5781
5988
|
*/ function _queueFormSpaceForProcessingFactory(context) {
|
|
5782
5989
|
var notificationExpediteService = context.notificationExpediteService;
|
|
5783
|
-
return function(
|
|
5990
|
+
return function(input) {
|
|
5784
5991
|
return _async_to_generator$s(function() {
|
|
5785
|
-
var expediteInstance, createResult, processingNotificationKey;
|
|
5992
|
+
var formSpaceDocument, reopenCount, runImmediately, expediteInstance, createResult, processingNotificationKey;
|
|
5786
5993
|
return _ts_generator$s(this, function(_state) {
|
|
5787
5994
|
switch(_state.label){
|
|
5788
5995
|
case 0:
|
|
5996
|
+
formSpaceDocument = input.formSpaceDocument, reopenCount = input.reopenCount, runImmediately = input.runImmediately;
|
|
5789
5997
|
expediteInstance = runImmediately ? notificationExpediteService.expediteInstance() : undefined;
|
|
5790
5998
|
expediteInstance === null || expediteInstance === void 0 ? void 0 : expediteInstance.initialize();
|
|
5791
5999
|
return [
|
|
@@ -5793,7 +6001,8 @@ function _ts_generator$s(thisArg, body) {
|
|
|
5793
6001
|
createOrRunUniqueNotificationDocument({
|
|
5794
6002
|
context: context,
|
|
5795
6003
|
template: formSpaceSubmissionNotificationTaskTemplate({
|
|
5796
|
-
formSpaceDocument: formSpaceDocument
|
|
6004
|
+
formSpaceDocument: formSpaceDocument,
|
|
6005
|
+
reopenCount: reopenCount
|
|
5797
6006
|
}),
|
|
5798
6007
|
runImmediatelyIfCreated: runImmediately !== null && runImmediately !== void 0 ? runImmediately : false,
|
|
5799
6008
|
expediteInstance: expediteInstance
|
|
@@ -5915,14 +6124,17 @@ function _ts_generator$s(thisArg, body) {
|
|
|
5915
6124
|
documentAccessor: formSpaceCollection.documentAccessor(),
|
|
5916
6125
|
iterateSnapshotPair: function iterateSnapshotPair(snapshotPair) {
|
|
5917
6126
|
return _async_to_generator$s(function() {
|
|
5918
|
-
var queued;
|
|
6127
|
+
var _snapshotPair_data, queued;
|
|
5919
6128
|
return _ts_generator$s(this, function(_state) {
|
|
5920
6129
|
switch(_state.label){
|
|
5921
6130
|
case 0:
|
|
5922
6131
|
formSpacesVisited++;
|
|
5923
6132
|
return [
|
|
5924
6133
|
4,
|
|
5925
|
-
queueFormSpaceForProcessing(
|
|
6134
|
+
queueFormSpaceForProcessing({
|
|
6135
|
+
formSpaceDocument: snapshotPair.document,
|
|
6136
|
+
reopenCount: (_snapshotPair_data = snapshotPair.data) === null || _snapshotPair_data === void 0 ? void 0 : _snapshotPair_data.rc
|
|
6137
|
+
}).catch(function() {
|
|
5926
6138
|
return null;
|
|
5927
6139
|
})
|
|
5928
6140
|
];
|
|
@@ -6155,16 +6367,16 @@ function _define_property$o(obj, key, value) {
|
|
|
6155
6367
|
configurable: true,
|
|
6156
6368
|
writable: true
|
|
6157
6369
|
});
|
|
6158
|
-
} else
|
|
6159
|
-
obj[key] = value;
|
|
6160
|
-
}
|
|
6370
|
+
} else obj[key] = value;
|
|
6161
6371
|
return obj;
|
|
6162
6372
|
}
|
|
6163
6373
|
function _iterable_to_array$e(iter) {
|
|
6164
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
6374
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
6375
|
+
return Array.from(iter);
|
|
6376
|
+
}
|
|
6165
6377
|
}
|
|
6166
6378
|
function _non_iterable_spread$e() {
|
|
6167
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
6379
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6168
6380
|
}
|
|
6169
6381
|
function _object_spread$m(target) {
|
|
6170
6382
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -6191,9 +6403,8 @@ function ownKeys$k(object, enumerableOnly) {
|
|
|
6191
6403
|
}
|
|
6192
6404
|
function _object_spread_props$k(target, source) {
|
|
6193
6405
|
source = source != null ? source : {};
|
|
6194
|
-
if (Object.getOwnPropertyDescriptors)
|
|
6195
|
-
|
|
6196
|
-
} else {
|
|
6406
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6407
|
+
else {
|
|
6197
6408
|
ownKeys$k(Object(source)).forEach(function(key) {
|
|
6198
6409
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6199
6410
|
});
|
|
@@ -6343,9 +6554,7 @@ function _array_without_holes$d(arr) {
|
|
|
6343
6554
|
if (Array.isArray(arr)) return _array_like_to_array$g(arr);
|
|
6344
6555
|
}
|
|
6345
6556
|
function _assert_this_initialized$2(self) {
|
|
6346
|
-
if (self === void 0)
|
|
6347
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6348
|
-
}
|
|
6557
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6349
6558
|
return self;
|
|
6350
6559
|
}
|
|
6351
6560
|
function asyncGeneratorStep$r(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -6356,11 +6565,8 @@ function asyncGeneratorStep$r(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6356
6565
|
reject(error);
|
|
6357
6566
|
return;
|
|
6358
6567
|
}
|
|
6359
|
-
if (info.done)
|
|
6360
|
-
|
|
6361
|
-
} else {
|
|
6362
|
-
Promise.resolve(value).then(_next, _throw);
|
|
6363
|
-
}
|
|
6568
|
+
if (info.done) resolve(value);
|
|
6569
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
6364
6570
|
}
|
|
6365
6571
|
function _async_to_generator$r(fn) {
|
|
6366
6572
|
return function() {
|
|
@@ -6382,9 +6588,7 @@ function _call_super$2(_this, derived, args) {
|
|
|
6382
6588
|
return _possible_constructor_return$2(_this, _is_native_reflect_construct$2() ? Reflect.construct(derived, args || [], _get_prototype_of$2(_this).constructor) : derived.apply(_this, args));
|
|
6383
6589
|
}
|
|
6384
6590
|
function _class_call_check$m(instance, Constructor) {
|
|
6385
|
-
if (!(instance instanceof Constructor))
|
|
6386
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6387
|
-
}
|
|
6591
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
6388
6592
|
}
|
|
6389
6593
|
function _define_property$n(obj, key, value) {
|
|
6390
6594
|
if (key in obj) {
|
|
@@ -6394,9 +6598,7 @@ function _define_property$n(obj, key, value) {
|
|
|
6394
6598
|
configurable: true,
|
|
6395
6599
|
writable: true
|
|
6396
6600
|
});
|
|
6397
|
-
} else
|
|
6398
|
-
obj[key] = value;
|
|
6399
|
-
}
|
|
6601
|
+
} else obj[key] = value;
|
|
6400
6602
|
return obj;
|
|
6401
6603
|
}
|
|
6402
6604
|
function _get_prototype_of$2(o) {
|
|
@@ -6422,15 +6624,23 @@ function _instanceof$1(left, right) {
|
|
|
6422
6624
|
"@swc/helpers - instanceof";
|
|
6423
6625
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
6424
6626
|
return !!right[Symbol.hasInstance](left);
|
|
6425
|
-
} else
|
|
6426
|
-
|
|
6427
|
-
|
|
6627
|
+
} else return left instanceof right;
|
|
6628
|
+
}
|
|
6629
|
+
function _is_native_reflect_construct$2() {
|
|
6630
|
+
try {
|
|
6631
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
6632
|
+
} catch (_) {}
|
|
6633
|
+
return (_is_native_reflect_construct$2 = function() {
|
|
6634
|
+
return !!result;
|
|
6635
|
+
})();
|
|
6428
6636
|
}
|
|
6429
6637
|
function _iterable_to_array$d(iter) {
|
|
6430
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
6638
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
6639
|
+
return Array.from(iter);
|
|
6640
|
+
}
|
|
6431
6641
|
}
|
|
6432
6642
|
function _non_iterable_spread$d() {
|
|
6433
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
6643
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6434
6644
|
}
|
|
6435
6645
|
function _object_spread$l(target) {
|
|
6436
6646
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -6457,9 +6667,8 @@ function ownKeys$j(object, enumerableOnly) {
|
|
|
6457
6667
|
}
|
|
6458
6668
|
function _object_spread_props$j(target, source) {
|
|
6459
6669
|
source = source != null ? source : {};
|
|
6460
|
-
if (Object.getOwnPropertyDescriptors)
|
|
6461
|
-
|
|
6462
|
-
} else {
|
|
6670
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6671
|
+
else {
|
|
6463
6672
|
ownKeys$j(Object(source)).forEach(function(key) {
|
|
6464
6673
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6465
6674
|
});
|
|
@@ -6467,9 +6676,7 @@ function _object_spread_props$j(target, source) {
|
|
|
6467
6676
|
return target;
|
|
6468
6677
|
}
|
|
6469
6678
|
function _possible_constructor_return$2(self, call) {
|
|
6470
|
-
if (call && (_type_of$5(call) === "object" || typeof call === "function"))
|
|
6471
|
-
return call;
|
|
6472
|
-
}
|
|
6679
|
+
if (call && (_type_of$5(call) === "object" || typeof call === "function")) return call;
|
|
6473
6680
|
return _assert_this_initialized$2(self);
|
|
6474
6681
|
}
|
|
6475
6682
|
function _set_prototype_of$2(o, p) {
|
|
@@ -6482,26 +6689,6 @@ function _set_prototype_of$2(o, p) {
|
|
|
6482
6689
|
function _to_consumable_array$d(arr) {
|
|
6483
6690
|
return _array_without_holes$d(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$g(arr) || _non_iterable_spread$d();
|
|
6484
6691
|
}
|
|
6485
|
-
function _type_of$5(obj) {
|
|
6486
|
-
"@swc/helpers - typeof";
|
|
6487
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
6488
|
-
}
|
|
6489
|
-
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
6490
|
-
if (!o) return;
|
|
6491
|
-
if (typeof o === "string") return _array_like_to_array$g(o, minLen);
|
|
6492
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6493
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6494
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6495
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
|
|
6496
|
-
}
|
|
6497
|
-
function _is_native_reflect_construct$2() {
|
|
6498
|
-
try {
|
|
6499
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
6500
|
-
} catch (_) {}
|
|
6501
|
-
return (_is_native_reflect_construct$2 = function() {
|
|
6502
|
-
return !!result;
|
|
6503
|
-
})();
|
|
6504
|
-
}
|
|
6505
6692
|
function _ts_generator$r(thisArg, body) {
|
|
6506
6693
|
var f, y, t, _ = {
|
|
6507
6694
|
label: 0,
|
|
@@ -6601,6 +6788,18 @@ function _ts_generator$r(thisArg, body) {
|
|
|
6601
6788
|
};
|
|
6602
6789
|
}
|
|
6603
6790
|
}
|
|
6791
|
+
function _type_of$5(obj) {
|
|
6792
|
+
"@swc/helpers - typeof";
|
|
6793
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
6794
|
+
}
|
|
6795
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
6796
|
+
if (!o) return;
|
|
6797
|
+
if (typeof o === "string") return _array_like_to_array$g(o, minLen);
|
|
6798
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6799
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6800
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6801
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
|
|
6802
|
+
}
|
|
6604
6803
|
/**
|
|
6605
6804
|
* Creates a reusable factory for building {@link NotificationTaskServiceTaskHandlerConfig} entries
|
|
6606
6805
|
* that implement the subtask processing pattern.
|
|
@@ -6637,7 +6836,18 @@ function _ts_generator$r(thisArg, body) {
|
|
|
6637
6836
|
*/ function notificationTaskSubtaskNotificationTaskHandlerFactory(factoryConfig) {
|
|
6638
6837
|
var taskType = factoryConfig.taskType, subtaskHandlerName = factoryConfig.subtaskHandlerFunctionName, inputFunction = factoryConfig.inputFunction, defaultCleanup = factoryConfig.defaultCleanup, cleanupFunction = factoryConfig.cleanupFunction, inputBuildUpdateMetadata = factoryConfig.buildUpdateMetadata;
|
|
6639
6838
|
return function(subtaskHandlerConfig) {
|
|
6640
|
-
var
|
|
6839
|
+
var inputProcessors = subtaskHandlerConfig.processors, inputMaxCleanupRetryAttempts = subtaskHandlerConfig.maxCleanupRetryAttempts, inputCleanupRetryDelay = subtaskHandlerConfig.cleanupRetryDelay, defaultAllowRunMultipleParts = subtaskHandlerConfig.defaultAllowRunMultipleParts;
|
|
6840
|
+
var maxCleanupRetryAttempts = inputMaxCleanupRetryAttempts !== null && inputMaxCleanupRetryAttempts !== void 0 ? inputMaxCleanupRetryAttempts : DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_ATTEMPTS;
|
|
6841
|
+
var cleanupRetryDelay = inputCleanupRetryDelay !== null && inputCleanupRetryDelay !== void 0 ? inputCleanupRetryDelay : DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_DELAY;
|
|
6842
|
+
var buildUpdateMetadata = inputBuildUpdateMetadata !== null && inputBuildUpdateMetadata !== void 0 ? inputBuildUpdateMetadata : function() {
|
|
6843
|
+
return undefined;
|
|
6844
|
+
};
|
|
6845
|
+
var processors = {};
|
|
6846
|
+
inputProcessors.forEach(function(processorConfig) {
|
|
6847
|
+
var target = processorConfig.target;
|
|
6848
|
+
processors[target] = processorFunctionForConfig(processorConfig);
|
|
6849
|
+
});
|
|
6850
|
+
/**
|
|
6641
6851
|
* Structure is similar to notificationTaskService(), but contained to handle the subtasks.
|
|
6642
6852
|
*
|
|
6643
6853
|
* @param processorConfig - The processor configuration with target, flow, and cleanup.
|
|
@@ -6766,8 +6976,8 @@ function _ts_generator$r(thisArg, body) {
|
|
|
6766
6976
|
},
|
|
6767
6977
|
cleanup: cleanup
|
|
6768
6978
|
};
|
|
6769
|
-
}
|
|
6770
|
-
|
|
6979
|
+
}
|
|
6980
|
+
function useInputDataFactory(fn) {
|
|
6771
6981
|
return function(notificationTask) {
|
|
6772
6982
|
return _async_to_generator$r(function() {
|
|
6773
6983
|
var data, result, inputFunctionResult, e;
|
|
@@ -6834,18 +7044,7 @@ function _ts_generator$r(thisArg, body) {
|
|
|
6834
7044
|
});
|
|
6835
7045
|
})();
|
|
6836
7046
|
};
|
|
6837
|
-
}
|
|
6838
|
-
var inputProcessors = subtaskHandlerConfig.processors, inputMaxCleanupRetryAttempts = subtaskHandlerConfig.maxCleanupRetryAttempts, inputCleanupRetryDelay = subtaskHandlerConfig.cleanupRetryDelay, defaultAllowRunMultipleParts = subtaskHandlerConfig.defaultAllowRunMultipleParts;
|
|
6839
|
-
var maxCleanupRetryAttempts = inputMaxCleanupRetryAttempts !== null && inputMaxCleanupRetryAttempts !== void 0 ? inputMaxCleanupRetryAttempts : DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_ATTEMPTS;
|
|
6840
|
-
var cleanupRetryDelay = inputCleanupRetryDelay !== null && inputCleanupRetryDelay !== void 0 ? inputCleanupRetryDelay : DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_DELAY;
|
|
6841
|
-
var buildUpdateMetadata = inputBuildUpdateMetadata !== null && inputBuildUpdateMetadata !== void 0 ? inputBuildUpdateMetadata : function() {
|
|
6842
|
-
return undefined;
|
|
6843
|
-
};
|
|
6844
|
-
var processors = {};
|
|
6845
|
-
inputProcessors.forEach(function(processorConfig) {
|
|
6846
|
-
var target = processorConfig.target;
|
|
6847
|
-
processors[target] = processorFunctionForConfig(processorConfig);
|
|
6848
|
-
});
|
|
7047
|
+
}
|
|
6849
7048
|
var result = {
|
|
6850
7049
|
type: taskType,
|
|
6851
7050
|
flow: [
|
|
@@ -7053,11 +7252,8 @@ function asyncGeneratorStep$q(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
7053
7252
|
reject(error);
|
|
7054
7253
|
return;
|
|
7055
7254
|
}
|
|
7056
|
-
if (info.done)
|
|
7057
|
-
|
|
7058
|
-
} else {
|
|
7059
|
-
Promise.resolve(value).then(_next, _throw);
|
|
7060
|
-
}
|
|
7255
|
+
if (info.done) resolve(value);
|
|
7256
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
7061
7257
|
}
|
|
7062
7258
|
function _async_to_generator$q(fn) {
|
|
7063
7259
|
return function() {
|
|
@@ -7082,9 +7278,7 @@ function _define_property$m(obj, key, value) {
|
|
|
7082
7278
|
configurable: true,
|
|
7083
7279
|
writable: true
|
|
7084
7280
|
});
|
|
7085
|
-
} else
|
|
7086
|
-
obj[key] = value;
|
|
7087
|
-
}
|
|
7281
|
+
} else obj[key] = value;
|
|
7088
7282
|
return obj;
|
|
7089
7283
|
}
|
|
7090
7284
|
function _object_spread$k(target) {
|
|
@@ -7112,9 +7306,8 @@ function ownKeys$i(object, enumerableOnly) {
|
|
|
7112
7306
|
}
|
|
7113
7307
|
function _object_spread_props$i(target, source) {
|
|
7114
7308
|
source = source != null ? source : {};
|
|
7115
|
-
if (Object.getOwnPropertyDescriptors)
|
|
7116
|
-
|
|
7117
|
-
} else {
|
|
7309
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7310
|
+
else {
|
|
7118
7311
|
ownKeys$i(Object(source)).forEach(function(key) {
|
|
7119
7312
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7120
7313
|
});
|
|
@@ -7253,56 +7446,46 @@ function _ts_generator$q(thisArg, body) {
|
|
|
7253
7446
|
subtaskHandlerFunctionName: 'formSpaceSubmissionNotificationTaskHandler',
|
|
7254
7447
|
inputFunction: function inputFunction(data) {
|
|
7255
7448
|
return _async_to_generator$q(function() {
|
|
7256
|
-
var _data_t, formSpaceDocument, loadFormSpace, target
|
|
7449
|
+
var _data_t, formSpaceDocument, formSpace, loadFormSpace, target;
|
|
7257
7450
|
return _ts_generator$q(this, function(_state) {
|
|
7258
7451
|
switch(_state.label){
|
|
7259
7452
|
case 0:
|
|
7260
7453
|
formSpaceDocument = formSpaceDocumentAccessor.loadDocumentForId(data.formSpace);
|
|
7454
|
+
return [
|
|
7455
|
+
4,
|
|
7456
|
+
getDocumentSnapshotData(formSpaceDocument, true)
|
|
7457
|
+
];
|
|
7458
|
+
case 1:
|
|
7459
|
+
formSpace = _state.sent();
|
|
7460
|
+
if (!formSpace) {
|
|
7461
|
+
// the space was deleted out from under the task; terminate rather than retry forever
|
|
7462
|
+
throw notificationTaskSubTaskMissingRequiredDataTermination();
|
|
7463
|
+
}
|
|
7464
|
+
// THE ATTEMPT FENCE. A reopen advances `rc`, and the resubmission that follows keys a task document
|
|
7465
|
+
// of its own — which leaves THIS one, created for the superseded attempt, still queued. Allowed to
|
|
7466
|
+
// run it would process the reopened space's new content and its cleanup would write `ps` / `cpat` /
|
|
7467
|
+
// `pn` over the attempt actually in force. Terminating is the honest outcome: there is nothing left
|
|
7468
|
+
// for this task to be about, which is exactly what the missing-required-data termination means.
|
|
7469
|
+
//
|
|
7470
|
+
// Fenced on `rc` alone, never on `s`: a processor is allowed to move the space to ARCHIVED during
|
|
7471
|
+
// its own cleanup checkpoint, so a state check here would abort the very run that archived it. A
|
|
7472
|
+
// task created before attempt-keying existed carries no `rc` and is not fenced, so a task in flight
|
|
7473
|
+
// across the upgrade still completes.
|
|
7474
|
+
if (data.rc != null && data.rc !== formSpace.rc) {
|
|
7475
|
+
throw notificationTaskSubTaskMissingRequiredDataTermination();
|
|
7476
|
+
}
|
|
7261
7477
|
loadFormSpace = cachedGetter(function() {
|
|
7262
7478
|
return _async_to_generator$q(function() {
|
|
7263
|
-
var formSpace;
|
|
7264
7479
|
return _ts_generator$q(this, function(_state) {
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
getDocumentSnapshotData(formSpaceDocument, true)
|
|
7270
|
-
];
|
|
7271
|
-
case 1:
|
|
7272
|
-
formSpace = _state.sent();
|
|
7273
|
-
if (!formSpace) {
|
|
7274
|
-
// the space was deleted out from under the task; terminate rather than retry forever
|
|
7275
|
-
throw notificationTaskSubTaskMissingRequiredDataTermination();
|
|
7276
|
-
}
|
|
7277
|
-
return [
|
|
7278
|
-
2,
|
|
7279
|
-
formSpace
|
|
7280
|
-
];
|
|
7281
|
-
}
|
|
7480
|
+
return [
|
|
7481
|
+
2,
|
|
7482
|
+
formSpace
|
|
7483
|
+
];
|
|
7282
7484
|
});
|
|
7283
7485
|
})();
|
|
7284
7486
|
});
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
1
|
|
7288
|
-
];
|
|
7289
|
-
_tmp = _data_t;
|
|
7290
|
-
return [
|
|
7291
|
-
3,
|
|
7292
|
-
3
|
|
7293
|
-
];
|
|
7294
|
-
case 1:
|
|
7295
|
-
return [
|
|
7296
|
-
4,
|
|
7297
|
-
loadFormSpace().then(function(x) {
|
|
7298
|
-
return x.t;
|
|
7299
|
-
})
|
|
7300
|
-
];
|
|
7301
|
-
case 2:
|
|
7302
|
-
_tmp = _state.sent();
|
|
7303
|
-
_state.label = 3;
|
|
7304
|
-
case 3:
|
|
7305
|
-
target = _tmp;
|
|
7487
|
+
// the type is the subtask target, and is re-copied onto the metadata by buildUpdateMetadata
|
|
7488
|
+
target = (_data_t = data.t) !== null && _data_t !== void 0 ? _data_t : formSpace.t;
|
|
7306
7489
|
return [
|
|
7307
7490
|
2,
|
|
7308
7491
|
{
|
|
@@ -7362,11 +7545,8 @@ function asyncGeneratorStep$p(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
7362
7545
|
reject(error);
|
|
7363
7546
|
return;
|
|
7364
7547
|
}
|
|
7365
|
-
if (info.done)
|
|
7366
|
-
|
|
7367
|
-
} else {
|
|
7368
|
-
Promise.resolve(value).then(_next, _throw);
|
|
7369
|
-
}
|
|
7548
|
+
if (info.done) resolve(value);
|
|
7549
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
7370
7550
|
}
|
|
7371
7551
|
function _async_to_generator$p(fn) {
|
|
7372
7552
|
return function() {
|
|
@@ -7391,9 +7571,7 @@ function _define_property$l(obj, key, value) {
|
|
|
7391
7571
|
configurable: true,
|
|
7392
7572
|
writable: true
|
|
7393
7573
|
});
|
|
7394
|
-
} else
|
|
7395
|
-
obj[key] = value;
|
|
7396
|
-
}
|
|
7574
|
+
} else obj[key] = value;
|
|
7397
7575
|
return obj;
|
|
7398
7576
|
}
|
|
7399
7577
|
function _object_spread$j(target) {
|
|
@@ -7421,19 +7599,14 @@ function ownKeys$h(object, enumerableOnly) {
|
|
|
7421
7599
|
}
|
|
7422
7600
|
function _object_spread_props$h(target, source) {
|
|
7423
7601
|
source = source != null ? source : {};
|
|
7424
|
-
if (Object.getOwnPropertyDescriptors)
|
|
7425
|
-
|
|
7426
|
-
} else {
|
|
7602
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7603
|
+
else {
|
|
7427
7604
|
ownKeys$h(Object(source)).forEach(function(key) {
|
|
7428
7605
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7429
7606
|
});
|
|
7430
7607
|
}
|
|
7431
7608
|
return target;
|
|
7432
7609
|
}
|
|
7433
|
-
function _type_of$4(obj) {
|
|
7434
|
-
"@swc/helpers - typeof";
|
|
7435
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7436
|
-
}
|
|
7437
7610
|
function _ts_generator$p(thisArg, body) {
|
|
7438
7611
|
var f, y, t, _ = {
|
|
7439
7612
|
label: 0,
|
|
@@ -7533,6 +7706,10 @@ function _ts_generator$p(thisArg, body) {
|
|
|
7533
7706
|
};
|
|
7534
7707
|
}
|
|
7535
7708
|
}
|
|
7709
|
+
function _type_of$4(obj) {
|
|
7710
|
+
"@swc/helpers - typeof";
|
|
7711
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7712
|
+
}
|
|
7536
7713
|
/**
|
|
7537
7714
|
* Convenience factory for creating a permanent failure result, indicating the file
|
|
7538
7715
|
* should be discarded and any created intermediate files cleaned up.
|
|
@@ -7875,11 +8052,8 @@ function asyncGeneratorStep$o(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
7875
8052
|
reject(error);
|
|
7876
8053
|
return;
|
|
7877
8054
|
}
|
|
7878
|
-
if (info.done)
|
|
7879
|
-
|
|
7880
|
-
} else {
|
|
7881
|
-
Promise.resolve(value).then(_next, _throw);
|
|
7882
|
-
}
|
|
8055
|
+
if (info.done) resolve(value);
|
|
8056
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
7883
8057
|
}
|
|
7884
8058
|
function _async_to_generator$o(fn) {
|
|
7885
8059
|
return function() {
|
|
@@ -7897,22 +8071,16 @@ function _async_to_generator$o(fn) {
|
|
|
7897
8071
|
};
|
|
7898
8072
|
}
|
|
7899
8073
|
function _iterable_to_array$c(iter) {
|
|
7900
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
8074
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
8075
|
+
return Array.from(iter);
|
|
8076
|
+
}
|
|
7901
8077
|
}
|
|
7902
8078
|
function _non_iterable_spread$c() {
|
|
7903
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
8079
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7904
8080
|
}
|
|
7905
8081
|
function _to_consumable_array$c(arr) {
|
|
7906
8082
|
return _array_without_holes$c(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$c();
|
|
7907
8083
|
}
|
|
7908
|
-
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
7909
|
-
if (!o) return;
|
|
7910
|
-
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
7911
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7912
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7913
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7914
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
7915
|
-
}
|
|
7916
8084
|
function _ts_generator$o(thisArg, body) {
|
|
7917
8085
|
var f, y, t, _ = {
|
|
7918
8086
|
label: 0,
|
|
@@ -8012,6 +8180,14 @@ function _ts_generator$o(thisArg, body) {
|
|
|
8012
8180
|
};
|
|
8013
8181
|
}
|
|
8014
8182
|
}
|
|
8183
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
8184
|
+
if (!o) return;
|
|
8185
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
8186
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8187
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8188
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8189
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
8190
|
+
}
|
|
8015
8191
|
/**
|
|
8016
8192
|
* Creates the {@link StorageFileInitializeFromUploadServiceInitializer} entries for FormSpace uploads.
|
|
8017
8193
|
*
|
|
@@ -8410,11 +8586,8 @@ function asyncGeneratorStep$n(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
8410
8586
|
reject(error);
|
|
8411
8587
|
return;
|
|
8412
8588
|
}
|
|
8413
|
-
if (info.done)
|
|
8414
|
-
|
|
8415
|
-
} else {
|
|
8416
|
-
Promise.resolve(value).then(_next, _throw);
|
|
8417
|
-
}
|
|
8589
|
+
if (info.done) resolve(value);
|
|
8590
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
8418
8591
|
}
|
|
8419
8592
|
function _async_to_generator$n(fn) {
|
|
8420
8593
|
return function() {
|
|
@@ -8439,16 +8612,16 @@ function _define_property$k(obj, key, value) {
|
|
|
8439
8612
|
configurable: true,
|
|
8440
8613
|
writable: true
|
|
8441
8614
|
});
|
|
8442
|
-
} else
|
|
8443
|
-
obj[key] = value;
|
|
8444
|
-
}
|
|
8615
|
+
} else obj[key] = value;
|
|
8445
8616
|
return obj;
|
|
8446
8617
|
}
|
|
8447
8618
|
function _iterable_to_array$b(iter) {
|
|
8448
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
8619
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
8620
|
+
return Array.from(iter);
|
|
8621
|
+
}
|
|
8449
8622
|
}
|
|
8450
8623
|
function _non_iterable_spread$b() {
|
|
8451
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
8624
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8452
8625
|
}
|
|
8453
8626
|
function _object_spread$i(target) {
|
|
8454
8627
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -8475,9 +8648,8 @@ function ownKeys$g(object, enumerableOnly) {
|
|
|
8475
8648
|
}
|
|
8476
8649
|
function _object_spread_props$g(target, source) {
|
|
8477
8650
|
source = source != null ? source : {};
|
|
8478
|
-
if (Object.getOwnPropertyDescriptors)
|
|
8479
|
-
|
|
8480
|
-
} else {
|
|
8651
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8652
|
+
else {
|
|
8481
8653
|
ownKeys$g(Object(source)).forEach(function(key) {
|
|
8482
8654
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8483
8655
|
});
|
|
@@ -8487,14 +8659,6 @@ function _object_spread_props$g(target, source) {
|
|
|
8487
8659
|
function _to_consumable_array$b(arr) {
|
|
8488
8660
|
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$e(arr) || _non_iterable_spread$b();
|
|
8489
8661
|
}
|
|
8490
|
-
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
8491
|
-
if (!o) return;
|
|
8492
|
-
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
8493
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8494
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8495
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8496
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
8497
|
-
}
|
|
8498
8662
|
function _ts_generator$n(thisArg, body) {
|
|
8499
8663
|
var f, y, t, _ = {
|
|
8500
8664
|
label: 0,
|
|
@@ -8594,6 +8758,14 @@ function _ts_generator$n(thisArg, body) {
|
|
|
8594
8758
|
};
|
|
8595
8759
|
}
|
|
8596
8760
|
}
|
|
8761
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
8762
|
+
if (!o) return;
|
|
8763
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
8764
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8765
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8766
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8767
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
8768
|
+
}
|
|
8597
8769
|
/**
|
|
8598
8770
|
* @module formspace.validation
|
|
8599
8771
|
*
|
|
@@ -9206,11 +9378,8 @@ function asyncGeneratorStep$m(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
9206
9378
|
reject(error);
|
|
9207
9379
|
return;
|
|
9208
9380
|
}
|
|
9209
|
-
if (info.done)
|
|
9210
|
-
|
|
9211
|
-
} else {
|
|
9212
|
-
Promise.resolve(value).then(_next, _throw);
|
|
9213
|
-
}
|
|
9381
|
+
if (info.done) resolve(value);
|
|
9382
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
9214
9383
|
}
|
|
9215
9384
|
function _async_to_generator$m(fn) {
|
|
9216
9385
|
return function() {
|
|
@@ -9235,13 +9404,13 @@ function _define_property$j(obj, key, value) {
|
|
|
9235
9404
|
configurable: true,
|
|
9236
9405
|
writable: true
|
|
9237
9406
|
});
|
|
9238
|
-
} else
|
|
9239
|
-
obj[key] = value;
|
|
9240
|
-
}
|
|
9407
|
+
} else obj[key] = value;
|
|
9241
9408
|
return obj;
|
|
9242
9409
|
}
|
|
9243
9410
|
function _iterable_to_array$a(iter) {
|
|
9244
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
9411
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
9412
|
+
return Array.from(iter);
|
|
9413
|
+
}
|
|
9245
9414
|
}
|
|
9246
9415
|
function _iterable_to_array_limit$6(arr, i) {
|
|
9247
9416
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -9268,10 +9437,10 @@ function _iterable_to_array_limit$6(arr, i) {
|
|
|
9268
9437
|
return _arr;
|
|
9269
9438
|
}
|
|
9270
9439
|
function _non_iterable_rest$6() {
|
|
9271
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
9440
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9272
9441
|
}
|
|
9273
9442
|
function _non_iterable_spread$a() {
|
|
9274
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
9443
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9275
9444
|
}
|
|
9276
9445
|
function _object_spread$h(target) {
|
|
9277
9446
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -9298,9 +9467,8 @@ function ownKeys$f(object, enumerableOnly) {
|
|
|
9298
9467
|
}
|
|
9299
9468
|
function _object_spread_props$f(target, source) {
|
|
9300
9469
|
source = source != null ? source : {};
|
|
9301
|
-
if (Object.getOwnPropertyDescriptors)
|
|
9302
|
-
|
|
9303
|
-
} else {
|
|
9470
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9471
|
+
else {
|
|
9304
9472
|
ownKeys$f(Object(source)).forEach(function(key) {
|
|
9305
9473
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9306
9474
|
});
|
|
@@ -9313,14 +9481,6 @@ function _sliced_to_array$6(arr, i) {
|
|
|
9313
9481
|
function _to_consumable_array$a(arr) {
|
|
9314
9482
|
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$a();
|
|
9315
9483
|
}
|
|
9316
|
-
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
9317
|
-
if (!o) return;
|
|
9318
|
-
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
9319
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9320
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9321
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9322
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
9323
|
-
}
|
|
9324
9484
|
function _ts_generator$m(thisArg, body) {
|
|
9325
9485
|
var f, y, t, _ = {
|
|
9326
9486
|
label: 0,
|
|
@@ -9420,6 +9580,14 @@ function _ts_generator$m(thisArg, body) {
|
|
|
9420
9580
|
};
|
|
9421
9581
|
}
|
|
9422
9582
|
}
|
|
9583
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
9584
|
+
if (!o) return;
|
|
9585
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
9586
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9587
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9588
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9589
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
9590
|
+
}
|
|
9423
9591
|
/**
|
|
9424
9592
|
* How long a dispatched probe may stay unresolved before it is reported as failed.
|
|
9425
9593
|
*
|
|
@@ -10008,11 +10176,8 @@ function asyncGeneratorStep$l(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
10008
10176
|
reject(error);
|
|
10009
10177
|
return;
|
|
10010
10178
|
}
|
|
10011
|
-
if (info.done)
|
|
10012
|
-
|
|
10013
|
-
} else {
|
|
10014
|
-
Promise.resolve(value).then(_next, _throw);
|
|
10015
|
-
}
|
|
10179
|
+
if (info.done) resolve(value);
|
|
10180
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
10016
10181
|
}
|
|
10017
10182
|
function _async_to_generator$l(fn) {
|
|
10018
10183
|
return function() {
|
|
@@ -10054,19 +10219,11 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
10054
10219
|
return _arr;
|
|
10055
10220
|
}
|
|
10056
10221
|
function _non_iterable_rest$5() {
|
|
10057
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
10222
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10058
10223
|
}
|
|
10059
10224
|
function _sliced_to_array$5(arr, i) {
|
|
10060
10225
|
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$5();
|
|
10061
10226
|
}
|
|
10062
|
-
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
10063
|
-
if (!o) return;
|
|
10064
|
-
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
10065
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10066
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10067
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10068
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
10069
|
-
}
|
|
10070
10227
|
function _ts_generator$l(thisArg, body) {
|
|
10071
10228
|
var f, y, t, _ = {
|
|
10072
10229
|
label: 0,
|
|
@@ -10166,6 +10323,14 @@ function _ts_generator$l(thisArg, body) {
|
|
|
10166
10323
|
};
|
|
10167
10324
|
}
|
|
10168
10325
|
}
|
|
10326
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
10327
|
+
if (!o) return;
|
|
10328
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
10329
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10330
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10331
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10332
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
10333
|
+
}
|
|
10169
10334
|
var DEFAULT_MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_MAX_BATCH_SIZE_PER_REQUEST = 50;
|
|
10170
10335
|
/**
|
|
10171
10336
|
* Creates a {@link NotificationEmailSendService} that sends notification emails via Mailgun.
|
|
@@ -10311,11 +10476,8 @@ function asyncGeneratorStep$k(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
10311
10476
|
reject(error);
|
|
10312
10477
|
return;
|
|
10313
10478
|
}
|
|
10314
|
-
if (info.done)
|
|
10315
|
-
|
|
10316
|
-
} else {
|
|
10317
|
-
Promise.resolve(value).then(_next, _throw);
|
|
10318
|
-
}
|
|
10479
|
+
if (info.done) resolve(value);
|
|
10480
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
10319
10481
|
}
|
|
10320
10482
|
function _async_to_generator$k(fn) {
|
|
10321
10483
|
return function() {
|
|
@@ -10723,11 +10885,8 @@ function asyncGeneratorStep$j(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
10723
10885
|
reject(error);
|
|
10724
10886
|
return;
|
|
10725
10887
|
}
|
|
10726
|
-
if (info.done)
|
|
10727
|
-
|
|
10728
|
-
} else {
|
|
10729
|
-
Promise.resolve(value).then(_next, _throw);
|
|
10730
|
-
}
|
|
10888
|
+
if (info.done) resolve(value);
|
|
10889
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
10731
10890
|
}
|
|
10732
10891
|
function _async_to_generator$j(fn) {
|
|
10733
10892
|
return function() {
|
|
@@ -10752,13 +10911,13 @@ function _define_property$i(obj, key, value) {
|
|
|
10752
10911
|
configurable: true,
|
|
10753
10912
|
writable: true
|
|
10754
10913
|
});
|
|
10755
|
-
} else
|
|
10756
|
-
obj[key] = value;
|
|
10757
|
-
}
|
|
10914
|
+
} else obj[key] = value;
|
|
10758
10915
|
return obj;
|
|
10759
10916
|
}
|
|
10760
10917
|
function _iterable_to_array$9(iter) {
|
|
10761
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
10918
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
10919
|
+
return Array.from(iter);
|
|
10920
|
+
}
|
|
10762
10921
|
}
|
|
10763
10922
|
function _iterable_to_array_limit$4(arr, i) {
|
|
10764
10923
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -10785,10 +10944,10 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
10785
10944
|
return _arr;
|
|
10786
10945
|
}
|
|
10787
10946
|
function _non_iterable_rest$4() {
|
|
10788
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
10947
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10789
10948
|
}
|
|
10790
10949
|
function _non_iterable_spread$9() {
|
|
10791
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
10950
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10792
10951
|
}
|
|
10793
10952
|
function _object_spread$g(target) {
|
|
10794
10953
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -10815,9 +10974,8 @@ function ownKeys$e(object, enumerableOnly) {
|
|
|
10815
10974
|
}
|
|
10816
10975
|
function _object_spread_props$e(target, source) {
|
|
10817
10976
|
source = source != null ? source : {};
|
|
10818
|
-
if (Object.getOwnPropertyDescriptors)
|
|
10819
|
-
|
|
10820
|
-
} else {
|
|
10977
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10978
|
+
else {
|
|
10821
10979
|
ownKeys$e(Object(source)).forEach(function(key) {
|
|
10822
10980
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10823
10981
|
});
|
|
@@ -10830,14 +10988,6 @@ function _sliced_to_array$4(arr, i) {
|
|
|
10830
10988
|
function _to_consumable_array$9(arr) {
|
|
10831
10989
|
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$9();
|
|
10832
10990
|
}
|
|
10833
|
-
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
10834
|
-
if (!o) return;
|
|
10835
|
-
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
10836
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10837
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10838
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10839
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
10840
|
-
}
|
|
10841
10991
|
function _ts_generator$j(thisArg, body) {
|
|
10842
10992
|
var f, y, t, _ = {
|
|
10843
10993
|
label: 0,
|
|
@@ -10937,6 +11087,14 @@ function _ts_generator$j(thisArg, body) {
|
|
|
10937
11087
|
};
|
|
10938
11088
|
}
|
|
10939
11089
|
}
|
|
11090
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
11091
|
+
if (!o) return;
|
|
11092
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
11093
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11094
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11095
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
11096
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
11097
|
+
}
|
|
10940
11098
|
/**
|
|
10941
11099
|
* The maximum number of the user's notification boxes to inspect in a single health check.
|
|
10942
11100
|
*
|
|
@@ -11725,11 +11883,8 @@ function asyncGeneratorStep$i(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
11725
11883
|
reject(error);
|
|
11726
11884
|
return;
|
|
11727
11885
|
}
|
|
11728
|
-
if (info.done)
|
|
11729
|
-
|
|
11730
|
-
} else {
|
|
11731
|
-
Promise.resolve(value).then(_next, _throw);
|
|
11732
|
-
}
|
|
11886
|
+
if (info.done) resolve(value);
|
|
11887
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
11733
11888
|
}
|
|
11734
11889
|
function _async_to_generator$i(fn) {
|
|
11735
11890
|
return function() {
|
|
@@ -11754,16 +11909,16 @@ function _define_property$h(obj, key, value) {
|
|
|
11754
11909
|
configurable: true,
|
|
11755
11910
|
writable: true
|
|
11756
11911
|
});
|
|
11757
|
-
} else
|
|
11758
|
-
obj[key] = value;
|
|
11759
|
-
}
|
|
11912
|
+
} else obj[key] = value;
|
|
11760
11913
|
return obj;
|
|
11761
11914
|
}
|
|
11762
11915
|
function _iterable_to_array$8(iter) {
|
|
11763
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
11916
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
11917
|
+
return Array.from(iter);
|
|
11918
|
+
}
|
|
11764
11919
|
}
|
|
11765
11920
|
function _non_iterable_spread$8() {
|
|
11766
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
11921
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11767
11922
|
}
|
|
11768
11923
|
function _object_spread$f(target) {
|
|
11769
11924
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -11790,9 +11945,8 @@ function ownKeys$d(object, enumerableOnly) {
|
|
|
11790
11945
|
}
|
|
11791
11946
|
function _object_spread_props$d(target, source) {
|
|
11792
11947
|
source = source != null ? source : {};
|
|
11793
|
-
if (Object.getOwnPropertyDescriptors)
|
|
11794
|
-
|
|
11795
|
-
} else {
|
|
11948
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11949
|
+
else {
|
|
11796
11950
|
ownKeys$d(Object(source)).forEach(function(key) {
|
|
11797
11951
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11798
11952
|
});
|
|
@@ -11802,14 +11956,6 @@ function _object_spread_props$d(target, source) {
|
|
|
11802
11956
|
function _to_consumable_array$8(arr) {
|
|
11803
11957
|
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$8();
|
|
11804
11958
|
}
|
|
11805
|
-
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
11806
|
-
if (!o) return;
|
|
11807
|
-
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
11808
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11809
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11810
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
11811
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
11812
|
-
}
|
|
11813
11959
|
function _ts_generator$i(thisArg, body) {
|
|
11814
11960
|
var f, y, t, _ = {
|
|
11815
11961
|
label: 0,
|
|
@@ -11909,6 +12055,14 @@ function _ts_generator$i(thisArg, body) {
|
|
|
11909
12055
|
};
|
|
11910
12056
|
}
|
|
11911
12057
|
}
|
|
12058
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
12059
|
+
if (!o) return;
|
|
12060
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
12061
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12062
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12063
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12064
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
12065
|
+
}
|
|
11912
12066
|
// MARK: Create NotificationSummary
|
|
11913
12067
|
/**
|
|
11914
12068
|
* Creates a blank {@link NotificationSummary} template for a newly initialized model.
|
|
@@ -12452,11 +12606,8 @@ function asyncGeneratorStep$h(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
12452
12606
|
reject(error);
|
|
12453
12607
|
return;
|
|
12454
12608
|
}
|
|
12455
|
-
if (info.done)
|
|
12456
|
-
|
|
12457
|
-
} else {
|
|
12458
|
-
Promise.resolve(value).then(_next, _throw);
|
|
12459
|
-
}
|
|
12609
|
+
if (info.done) resolve(value);
|
|
12610
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
12460
12611
|
}
|
|
12461
12612
|
function _async_to_generator$h(fn) {
|
|
12462
12613
|
return function() {
|
|
@@ -12474,9 +12625,7 @@ function _async_to_generator$h(fn) {
|
|
|
12474
12625
|
};
|
|
12475
12626
|
}
|
|
12476
12627
|
function _class_call_check$l(instance, Constructor) {
|
|
12477
|
-
if (!(instance instanceof Constructor))
|
|
12478
|
-
throw new TypeError("Cannot call a class as a function");
|
|
12479
|
-
}
|
|
12628
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
12480
12629
|
}
|
|
12481
12630
|
function _define_property$g(obj, key, value) {
|
|
12482
12631
|
if (key in obj) {
|
|
@@ -12486,13 +12635,13 @@ function _define_property$g(obj, key, value) {
|
|
|
12486
12635
|
configurable: true,
|
|
12487
12636
|
writable: true
|
|
12488
12637
|
});
|
|
12489
|
-
} else
|
|
12490
|
-
obj[key] = value;
|
|
12491
|
-
}
|
|
12638
|
+
} else obj[key] = value;
|
|
12492
12639
|
return obj;
|
|
12493
12640
|
}
|
|
12494
12641
|
function _iterable_to_array$7(iter) {
|
|
12495
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
12642
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
12643
|
+
return Array.from(iter);
|
|
12644
|
+
}
|
|
12496
12645
|
}
|
|
12497
12646
|
function _iterable_to_array_limit$3(arr, i) {
|
|
12498
12647
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -12519,10 +12668,10 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
12519
12668
|
return _arr;
|
|
12520
12669
|
}
|
|
12521
12670
|
function _non_iterable_rest$3() {
|
|
12522
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
12671
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12523
12672
|
}
|
|
12524
12673
|
function _non_iterable_spread$7() {
|
|
12525
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
12674
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12526
12675
|
}
|
|
12527
12676
|
function _object_spread$e(target) {
|
|
12528
12677
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -12549,9 +12698,8 @@ function ownKeys$c(object, enumerableOnly) {
|
|
|
12549
12698
|
}
|
|
12550
12699
|
function _object_spread_props$c(target, source) {
|
|
12551
12700
|
source = source != null ? source : {};
|
|
12552
|
-
if (Object.getOwnPropertyDescriptors)
|
|
12553
|
-
|
|
12554
|
-
} else {
|
|
12701
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12702
|
+
else {
|
|
12555
12703
|
ownKeys$c(Object(source)).forEach(function(key) {
|
|
12556
12704
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12557
12705
|
});
|
|
@@ -12564,14 +12712,6 @@ function _sliced_to_array$3(arr, i) {
|
|
|
12564
12712
|
function _to_consumable_array$7(arr) {
|
|
12565
12713
|
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$7();
|
|
12566
12714
|
}
|
|
12567
|
-
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
12568
|
-
if (!o) return;
|
|
12569
|
-
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
12570
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12571
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12572
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12573
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
12574
|
-
}
|
|
12575
12715
|
function _ts_generator$h(thisArg, body) {
|
|
12576
12716
|
var f, y, t, _ = {
|
|
12577
12717
|
label: 0,
|
|
@@ -12671,6 +12811,14 @@ function _ts_generator$h(thisArg, body) {
|
|
|
12671
12811
|
};
|
|
12672
12812
|
}
|
|
12673
12813
|
}
|
|
12814
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
12815
|
+
if (!o) return;
|
|
12816
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
12817
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12818
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12819
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12820
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
12821
|
+
}
|
|
12674
12822
|
/**
|
|
12675
12823
|
* NestJS injection token for the {@link BaseNotificationServerActionsContext}, which provides
|
|
12676
12824
|
* the foundational Firebase context, Firestore collections, and auth service needed by notification actions.
|
|
@@ -15833,11 +15981,8 @@ function asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
15833
15981
|
reject(error);
|
|
15834
15982
|
return;
|
|
15835
15983
|
}
|
|
15836
|
-
if (info.done)
|
|
15837
|
-
|
|
15838
|
-
} else {
|
|
15839
|
-
Promise.resolve(value).then(_next, _throw);
|
|
15840
|
-
}
|
|
15984
|
+
if (info.done) resolve(value);
|
|
15985
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
15841
15986
|
}
|
|
15842
15987
|
function _async_to_generator$g(fn) {
|
|
15843
15988
|
return function() {
|
|
@@ -15855,9 +16000,7 @@ function _async_to_generator$g(fn) {
|
|
|
15855
16000
|
};
|
|
15856
16001
|
}
|
|
15857
16002
|
function _class_call_check$k(instance, Constructor) {
|
|
15858
|
-
if (!(instance instanceof Constructor))
|
|
15859
|
-
throw new TypeError("Cannot call a class as a function");
|
|
15860
|
-
}
|
|
16003
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15861
16004
|
}
|
|
15862
16005
|
function _define_property$f(obj, key, value) {
|
|
15863
16006
|
if (key in obj) {
|
|
@@ -15867,9 +16010,7 @@ function _define_property$f(obj, key, value) {
|
|
|
15867
16010
|
configurable: true,
|
|
15868
16011
|
writable: true
|
|
15869
16012
|
});
|
|
15870
|
-
} else
|
|
15871
|
-
obj[key] = value;
|
|
15872
|
-
}
|
|
16013
|
+
} else obj[key] = value;
|
|
15873
16014
|
return obj;
|
|
15874
16015
|
}
|
|
15875
16016
|
function _object_spread$d(target) {
|
|
@@ -15897,9 +16038,8 @@ function ownKeys$b(object, enumerableOnly) {
|
|
|
15897
16038
|
}
|
|
15898
16039
|
function _object_spread_props$b(target, source) {
|
|
15899
16040
|
source = source != null ? source : {};
|
|
15900
|
-
if (Object.getOwnPropertyDescriptors)
|
|
15901
|
-
|
|
15902
|
-
} else {
|
|
16041
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
16042
|
+
else {
|
|
15903
16043
|
ownKeys$b(Object(source)).forEach(function(key) {
|
|
15904
16044
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
15905
16045
|
});
|
|
@@ -16590,11 +16730,8 @@ function asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
16590
16730
|
reject(error);
|
|
16591
16731
|
return;
|
|
16592
16732
|
}
|
|
16593
|
-
if (info.done)
|
|
16594
|
-
|
|
16595
|
-
} else {
|
|
16596
|
-
Promise.resolve(value).then(_next, _throw);
|
|
16597
|
-
}
|
|
16733
|
+
if (info.done) resolve(value);
|
|
16734
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
16598
16735
|
}
|
|
16599
16736
|
function _async_to_generator$f(fn) {
|
|
16600
16737
|
return function() {
|
|
@@ -16612,9 +16749,7 @@ function _async_to_generator$f(fn) {
|
|
|
16612
16749
|
};
|
|
16613
16750
|
}
|
|
16614
16751
|
function _class_call_check$j(instance, Constructor) {
|
|
16615
|
-
if (!(instance instanceof Constructor))
|
|
16616
|
-
throw new TypeError("Cannot call a class as a function");
|
|
16617
|
-
}
|
|
16752
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
16618
16753
|
}
|
|
16619
16754
|
function _defineProperties$6(target, props) {
|
|
16620
16755
|
for(var i = 0; i < props.length; i++){
|
|
@@ -16637,9 +16772,7 @@ function _define_property$e(obj, key, value) {
|
|
|
16637
16772
|
configurable: true,
|
|
16638
16773
|
writable: true
|
|
16639
16774
|
});
|
|
16640
|
-
} else
|
|
16641
|
-
obj[key] = value;
|
|
16642
|
-
}
|
|
16775
|
+
} else obj[key] = value;
|
|
16643
16776
|
return obj;
|
|
16644
16777
|
}
|
|
16645
16778
|
function _ts_generator$f(thisArg, body) {
|
|
@@ -16844,9 +16977,7 @@ NotificationTemplateService = __decorate([
|
|
|
16844
16977
|
}
|
|
16845
16978
|
|
|
16846
16979
|
function _class_call_check$i(instance, Constructor) {
|
|
16847
|
-
if (!(instance instanceof Constructor))
|
|
16848
|
-
throw new TypeError("Cannot call a class as a function");
|
|
16849
|
-
}
|
|
16980
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
16850
16981
|
}
|
|
16851
16982
|
/**
|
|
16852
16983
|
* Abstract service that orchestrates notification delivery across multiple channels (email, SMS, notification summaries).
|
|
@@ -16862,9 +16993,7 @@ function _class_call_check$i(instance, Constructor) {
|
|
|
16862
16993
|
;
|
|
16863
16994
|
|
|
16864
16995
|
function _class_call_check$h(instance, Constructor) {
|
|
16865
|
-
if (!(instance instanceof Constructor))
|
|
16866
|
-
throw new TypeError("Cannot call a class as a function");
|
|
16867
|
-
}
|
|
16996
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
16868
16997
|
}
|
|
16869
16998
|
/**
|
|
16870
16999
|
* Abstract service that dispatches {@link NotificationTask} instances to the appropriate
|
|
@@ -16887,11 +17016,8 @@ function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
16887
17016
|
reject(error);
|
|
16888
17017
|
return;
|
|
16889
17018
|
}
|
|
16890
|
-
if (info.done)
|
|
16891
|
-
|
|
16892
|
-
} else {
|
|
16893
|
-
Promise.resolve(value).then(_next, _throw);
|
|
16894
|
-
}
|
|
17019
|
+
if (info.done) resolve(value);
|
|
17020
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
16895
17021
|
}
|
|
16896
17022
|
function _async_to_generator$e(fn) {
|
|
16897
17023
|
return function() {
|
|
@@ -16909,9 +17035,7 @@ function _async_to_generator$e(fn) {
|
|
|
16909
17035
|
};
|
|
16910
17036
|
}
|
|
16911
17037
|
function _class_call_check$g(instance, Constructor) {
|
|
16912
|
-
if (!(instance instanceof Constructor))
|
|
16913
|
-
throw new TypeError("Cannot call a class as a function");
|
|
16914
|
-
}
|
|
17038
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
16915
17039
|
}
|
|
16916
17040
|
function _defineProperties$5(target, props) {
|
|
16917
17041
|
for(var i = 0; i < props.length; i++){
|
|
@@ -16934,9 +17058,7 @@ function _define_property$d(obj, key, value) {
|
|
|
16934
17058
|
configurable: true,
|
|
16935
17059
|
writable: true
|
|
16936
17060
|
});
|
|
16937
|
-
} else
|
|
16938
|
-
obj[key] = value;
|
|
16939
|
-
}
|
|
17061
|
+
} else obj[key] = value;
|
|
16940
17062
|
return obj;
|
|
16941
17063
|
}
|
|
16942
17064
|
function _object_spread$c(target) {
|
|
@@ -17214,9 +17336,7 @@ function _array_without_holes$6(arr) {
|
|
|
17214
17336
|
if (Array.isArray(arr)) return _array_like_to_array$8(arr);
|
|
17215
17337
|
}
|
|
17216
17338
|
function _class_call_check$f(instance, Constructor) {
|
|
17217
|
-
if (!(instance instanceof Constructor))
|
|
17218
|
-
throw new TypeError("Cannot call a class as a function");
|
|
17219
|
-
}
|
|
17339
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
17220
17340
|
}
|
|
17221
17341
|
function _define_property$c(obj, key, value) {
|
|
17222
17342
|
if (key in obj) {
|
|
@@ -17226,16 +17346,16 @@ function _define_property$c(obj, key, value) {
|
|
|
17226
17346
|
configurable: true,
|
|
17227
17347
|
writable: true
|
|
17228
17348
|
});
|
|
17229
|
-
} else
|
|
17230
|
-
obj[key] = value;
|
|
17231
|
-
}
|
|
17349
|
+
} else obj[key] = value;
|
|
17232
17350
|
return obj;
|
|
17233
17351
|
}
|
|
17234
17352
|
function _iterable_to_array$6(iter) {
|
|
17235
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
17353
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
17354
|
+
return Array.from(iter);
|
|
17355
|
+
}
|
|
17236
17356
|
}
|
|
17237
17357
|
function _non_iterable_spread$6() {
|
|
17238
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
17358
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17239
17359
|
}
|
|
17240
17360
|
function _object_spread$b(target) {
|
|
17241
17361
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -17262,9 +17382,8 @@ function ownKeys$a(object, enumerableOnly) {
|
|
|
17262
17382
|
}
|
|
17263
17383
|
function _object_spread_props$a(target, source) {
|
|
17264
17384
|
source = source != null ? source : {};
|
|
17265
|
-
if (Object.getOwnPropertyDescriptors)
|
|
17266
|
-
|
|
17267
|
-
} else {
|
|
17385
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17386
|
+
else {
|
|
17268
17387
|
ownKeys$a(Object(source)).forEach(function(key) {
|
|
17269
17388
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17270
17389
|
});
|
|
@@ -17431,11 +17550,8 @@ function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
17431
17550
|
reject(error);
|
|
17432
17551
|
return;
|
|
17433
17552
|
}
|
|
17434
|
-
if (info.done)
|
|
17435
|
-
|
|
17436
|
-
} else {
|
|
17437
|
-
Promise.resolve(value).then(_next, _throw);
|
|
17438
|
-
}
|
|
17553
|
+
if (info.done) resolve(value);
|
|
17554
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
17439
17555
|
}
|
|
17440
17556
|
function _async_to_generator$d(fn) {
|
|
17441
17557
|
return function() {
|
|
@@ -17460,13 +17576,13 @@ function _define_property$b(obj, key, value) {
|
|
|
17460
17576
|
configurable: true,
|
|
17461
17577
|
writable: true
|
|
17462
17578
|
});
|
|
17463
|
-
} else
|
|
17464
|
-
obj[key] = value;
|
|
17465
|
-
}
|
|
17579
|
+
} else obj[key] = value;
|
|
17466
17580
|
return obj;
|
|
17467
17581
|
}
|
|
17468
17582
|
function _iterable_to_array$5(iter) {
|
|
17469
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
17583
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
17584
|
+
return Array.from(iter);
|
|
17585
|
+
}
|
|
17470
17586
|
}
|
|
17471
17587
|
function _iterable_to_array_limit$2(arr, i) {
|
|
17472
17588
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -17493,10 +17609,10 @@ function _iterable_to_array_limit$2(arr, i) {
|
|
|
17493
17609
|
return _arr;
|
|
17494
17610
|
}
|
|
17495
17611
|
function _non_iterable_rest$2() {
|
|
17496
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
17612
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17497
17613
|
}
|
|
17498
17614
|
function _non_iterable_spread$5() {
|
|
17499
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
17615
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17500
17616
|
}
|
|
17501
17617
|
function _object_spread$a(target) {
|
|
17502
17618
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -17523,9 +17639,8 @@ function ownKeys$9(object, enumerableOnly) {
|
|
|
17523
17639
|
}
|
|
17524
17640
|
function _object_spread_props$9(target, source) {
|
|
17525
17641
|
source = source != null ? source : {};
|
|
17526
|
-
if (Object.getOwnPropertyDescriptors)
|
|
17527
|
-
|
|
17528
|
-
} else {
|
|
17642
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17643
|
+
else {
|
|
17529
17644
|
ownKeys$9(Object(source)).forEach(function(key) {
|
|
17530
17645
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17531
17646
|
});
|
|
@@ -17538,14 +17653,6 @@ function _sliced_to_array$2(arr, i) {
|
|
|
17538
17653
|
function _to_consumable_array$5(arr) {
|
|
17539
17654
|
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$5();
|
|
17540
17655
|
}
|
|
17541
|
-
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
17542
|
-
if (!o) return;
|
|
17543
|
-
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
17544
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
17545
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
17546
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
17547
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
17548
|
-
}
|
|
17549
17656
|
function _ts_generator$d(thisArg, body) {
|
|
17550
17657
|
var f, y, t, _ = {
|
|
17551
17658
|
label: 0,
|
|
@@ -17645,6 +17752,14 @@ function _ts_generator$d(thisArg, body) {
|
|
|
17645
17752
|
};
|
|
17646
17753
|
}
|
|
17647
17754
|
}
|
|
17755
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
17756
|
+
if (!o) return;
|
|
17757
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
17758
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
17759
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
17760
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
17761
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
17762
|
+
}
|
|
17648
17763
|
/**
|
|
17649
17764
|
* Creates a {@link NotificationSummarySendService} that writes notification items to Firestore
|
|
17650
17765
|
* {@link NotificationSummary} documents.
|
|
@@ -17850,11 +17965,8 @@ function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
17850
17965
|
reject(error);
|
|
17851
17966
|
return;
|
|
17852
17967
|
}
|
|
17853
|
-
if (info.done)
|
|
17854
|
-
|
|
17855
|
-
} else {
|
|
17856
|
-
Promise.resolve(value).then(_next, _throw);
|
|
17857
|
-
}
|
|
17968
|
+
if (info.done) resolve(value);
|
|
17969
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
17858
17970
|
}
|
|
17859
17971
|
function _async_to_generator$c(fn) {
|
|
17860
17972
|
return function() {
|
|
@@ -18030,11 +18142,8 @@ function asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
18030
18142
|
reject(error);
|
|
18031
18143
|
return;
|
|
18032
18144
|
}
|
|
18033
|
-
if (info.done)
|
|
18034
|
-
|
|
18035
|
-
} else {
|
|
18036
|
-
Promise.resolve(value).then(_next, _throw);
|
|
18037
|
-
}
|
|
18145
|
+
if (info.done) resolve(value);
|
|
18146
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
18038
18147
|
}
|
|
18039
18148
|
function _async_to_generator$b(fn) {
|
|
18040
18149
|
return function() {
|
|
@@ -18267,11 +18376,8 @@ function asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
18267
18376
|
reject(error);
|
|
18268
18377
|
return;
|
|
18269
18378
|
}
|
|
18270
|
-
if (info.done)
|
|
18271
|
-
|
|
18272
|
-
} else {
|
|
18273
|
-
Promise.resolve(value).then(_next, _throw);
|
|
18274
|
-
}
|
|
18379
|
+
if (info.done) resolve(value);
|
|
18380
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
18275
18381
|
}
|
|
18276
18382
|
function _async_to_generator$a(fn) {
|
|
18277
18383
|
return function() {
|
|
@@ -18708,11 +18814,8 @@ function asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
18708
18814
|
reject(error);
|
|
18709
18815
|
return;
|
|
18710
18816
|
}
|
|
18711
|
-
if (info.done)
|
|
18712
|
-
|
|
18713
|
-
} else {
|
|
18714
|
-
Promise.resolve(value).then(_next, _throw);
|
|
18715
|
-
}
|
|
18817
|
+
if (info.done) resolve(value);
|
|
18818
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
18716
18819
|
}
|
|
18717
18820
|
function _async_to_generator$9(fn) {
|
|
18718
18821
|
return function() {
|
|
@@ -18733,9 +18836,7 @@ function _instanceof(left, right) {
|
|
|
18733
18836
|
"@swc/helpers - instanceof";
|
|
18734
18837
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
18735
18838
|
return !!right[Symbol.hasInstance](left);
|
|
18736
|
-
} else
|
|
18737
|
-
return left instanceof right;
|
|
18738
|
-
}
|
|
18839
|
+
} else return left instanceof right;
|
|
18739
18840
|
}
|
|
18740
18841
|
function _iterable_to_array_limit$1(arr, i) {
|
|
18741
18842
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -18762,19 +18863,11 @@ function _iterable_to_array_limit$1(arr, i) {
|
|
|
18762
18863
|
return _arr;
|
|
18763
18864
|
}
|
|
18764
18865
|
function _non_iterable_rest$1() {
|
|
18765
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
18866
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18766
18867
|
}
|
|
18767
18868
|
function _sliced_to_array$1(arr, i) {
|
|
18768
18869
|
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$1();
|
|
18769
18870
|
}
|
|
18770
|
-
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
18771
|
-
if (!o) return;
|
|
18772
|
-
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
18773
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
18774
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
18775
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
18776
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
18777
|
-
}
|
|
18778
18871
|
function _ts_generator$9(thisArg, body) {
|
|
18779
18872
|
var f, y, t, _ = {
|
|
18780
18873
|
label: 0,
|
|
@@ -18874,6 +18967,14 @@ function _ts_generator$9(thisArg, body) {
|
|
|
18874
18967
|
};
|
|
18875
18968
|
}
|
|
18876
18969
|
}
|
|
18970
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
18971
|
+
if (!o) return;
|
|
18972
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
18973
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
18974
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
18975
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
18976
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
18977
|
+
}
|
|
18877
18978
|
var DEFAULT_COMPRESS_PDF_IMAGE_MAX_DIMENSION = 2048;
|
|
18878
18979
|
var DEFAULT_COMPRESS_PDF_IMAGE_QUALITY = 75;
|
|
18879
18980
|
var DEFAULT_COMPRESS_PDF_IMAGE_SIZE_THRESHOLD_BYTES = 100 * 1024;
|
|
@@ -19468,11 +19569,8 @@ function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
19468
19569
|
reject(error);
|
|
19469
19570
|
return;
|
|
19470
19571
|
}
|
|
19471
|
-
if (info.done)
|
|
19472
|
-
|
|
19473
|
-
} else {
|
|
19474
|
-
Promise.resolve(value).then(_next, _throw);
|
|
19475
|
-
}
|
|
19572
|
+
if (info.done) resolve(value);
|
|
19573
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
19476
19574
|
}
|
|
19477
19575
|
function _async_to_generator$8(fn) {
|
|
19478
19576
|
return function() {
|
|
@@ -19490,9 +19588,7 @@ function _async_to_generator$8(fn) {
|
|
|
19490
19588
|
};
|
|
19491
19589
|
}
|
|
19492
19590
|
function _class_call_check$e(instance, Constructor) {
|
|
19493
|
-
if (!(instance instanceof Constructor))
|
|
19494
|
-
throw new TypeError("Cannot call a class as a function");
|
|
19495
|
-
}
|
|
19591
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
19496
19592
|
}
|
|
19497
19593
|
function _define_property$a(obj, key, value) {
|
|
19498
19594
|
if (key in obj) {
|
|
@@ -19502,9 +19598,7 @@ function _define_property$a(obj, key, value) {
|
|
|
19502
19598
|
configurable: true,
|
|
19503
19599
|
writable: true
|
|
19504
19600
|
});
|
|
19505
|
-
} else
|
|
19506
|
-
obj[key] = value;
|
|
19507
|
-
}
|
|
19601
|
+
} else obj[key] = value;
|
|
19508
19602
|
return obj;
|
|
19509
19603
|
}
|
|
19510
19604
|
function _object_spread$9(target) {
|
|
@@ -19532,9 +19626,8 @@ function ownKeys$8(object, enumerableOnly) {
|
|
|
19532
19626
|
}
|
|
19533
19627
|
function _object_spread_props$8(target, source) {
|
|
19534
19628
|
source = source != null ? source : {};
|
|
19535
|
-
if (Object.getOwnPropertyDescriptors)
|
|
19536
|
-
|
|
19537
|
-
} else {
|
|
19629
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
19630
|
+
else {
|
|
19538
19631
|
ownKeys$8(Object(source)).forEach(function(key) {
|
|
19539
19632
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
19540
19633
|
});
|
|
@@ -20011,16 +20104,16 @@ function _define_property$9(obj, key, value) {
|
|
|
20011
20104
|
configurable: true,
|
|
20012
20105
|
writable: true
|
|
20013
20106
|
});
|
|
20014
|
-
} else
|
|
20015
|
-
obj[key] = value;
|
|
20016
|
-
}
|
|
20107
|
+
} else obj[key] = value;
|
|
20017
20108
|
return obj;
|
|
20018
20109
|
}
|
|
20019
20110
|
function _iterable_to_array$4(iter) {
|
|
20020
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
20111
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
20112
|
+
return Array.from(iter);
|
|
20113
|
+
}
|
|
20021
20114
|
}
|
|
20022
20115
|
function _non_iterable_spread$4() {
|
|
20023
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
20116
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
20024
20117
|
}
|
|
20025
20118
|
function _object_spread$8(target) {
|
|
20026
20119
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -20047,9 +20140,8 @@ function ownKeys$7(object, enumerableOnly) {
|
|
|
20047
20140
|
}
|
|
20048
20141
|
function _object_spread_props$7(target, source) {
|
|
20049
20142
|
source = source != null ? source : {};
|
|
20050
|
-
if (Object.getOwnPropertyDescriptors)
|
|
20051
|
-
|
|
20052
|
-
} else {
|
|
20143
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
20144
|
+
else {
|
|
20053
20145
|
ownKeys$7(Object(source)).forEach(function(key) {
|
|
20054
20146
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
20055
20147
|
});
|
|
@@ -20189,9 +20281,7 @@ function buildProcessStorageFileDescription(additionalGuidance) {
|
|
|
20189
20281
|
}
|
|
20190
20282
|
|
|
20191
20283
|
function _class_call_check$d(instance, Constructor) {
|
|
20192
|
-
if (!(instance instanceof Constructor))
|
|
20193
|
-
throw new TypeError("Cannot call a class as a function");
|
|
20194
|
-
}
|
|
20284
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
20195
20285
|
}
|
|
20196
20286
|
/**
|
|
20197
20287
|
* Abstract service responsible for the upload-to-StorageFile initialization pipeline.
|
|
@@ -20221,16 +20311,16 @@ function _define_property$8(obj, key, value) {
|
|
|
20221
20311
|
configurable: true,
|
|
20222
20312
|
writable: true
|
|
20223
20313
|
});
|
|
20224
|
-
} else
|
|
20225
|
-
obj[key] = value;
|
|
20226
|
-
}
|
|
20314
|
+
} else obj[key] = value;
|
|
20227
20315
|
return obj;
|
|
20228
20316
|
}
|
|
20229
20317
|
function _iterable_to_array$3(iter) {
|
|
20230
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
20318
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
20319
|
+
return Array.from(iter);
|
|
20320
|
+
}
|
|
20231
20321
|
}
|
|
20232
20322
|
function _non_iterable_spread$3() {
|
|
20233
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
20323
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
20234
20324
|
}
|
|
20235
20325
|
function _object_spread$7(target) {
|
|
20236
20326
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -20257,9 +20347,8 @@ function ownKeys$6(object, enumerableOnly) {
|
|
|
20257
20347
|
}
|
|
20258
20348
|
function _object_spread_props$6(target, source) {
|
|
20259
20349
|
source = source != null ? source : {};
|
|
20260
|
-
if (Object.getOwnPropertyDescriptors)
|
|
20261
|
-
|
|
20262
|
-
} else {
|
|
20350
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
20351
|
+
else {
|
|
20263
20352
|
ownKeys$6(Object(source)).forEach(function(key) {
|
|
20264
20353
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
20265
20354
|
});
|
|
@@ -20392,11 +20481,8 @@ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
20392
20481
|
reject(error);
|
|
20393
20482
|
return;
|
|
20394
20483
|
}
|
|
20395
|
-
if (info.done)
|
|
20396
|
-
|
|
20397
|
-
} else {
|
|
20398
|
-
Promise.resolve(value).then(_next, _throw);
|
|
20399
|
-
}
|
|
20484
|
+
if (info.done) resolve(value);
|
|
20485
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
20400
20486
|
}
|
|
20401
20487
|
function _async_to_generator$7(fn) {
|
|
20402
20488
|
return function() {
|
|
@@ -20421,16 +20507,16 @@ function _define_property$7(obj, key, value) {
|
|
|
20421
20507
|
configurable: true,
|
|
20422
20508
|
writable: true
|
|
20423
20509
|
});
|
|
20424
|
-
} else
|
|
20425
|
-
obj[key] = value;
|
|
20426
|
-
}
|
|
20510
|
+
} else obj[key] = value;
|
|
20427
20511
|
return obj;
|
|
20428
20512
|
}
|
|
20429
20513
|
function _iterable_to_array$2(iter) {
|
|
20430
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
20514
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
20515
|
+
return Array.from(iter);
|
|
20516
|
+
}
|
|
20431
20517
|
}
|
|
20432
20518
|
function _non_iterable_spread$2() {
|
|
20433
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
20519
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
20434
20520
|
}
|
|
20435
20521
|
function _object_spread$6(target) {
|
|
20436
20522
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -20457,9 +20543,8 @@ function ownKeys$5(object, enumerableOnly) {
|
|
|
20457
20543
|
}
|
|
20458
20544
|
function _object_spread_props$5(target, source) {
|
|
20459
20545
|
source = source != null ? source : {};
|
|
20460
|
-
if (Object.getOwnPropertyDescriptors)
|
|
20461
|
-
|
|
20462
|
-
} else {
|
|
20546
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
20547
|
+
else {
|
|
20463
20548
|
ownKeys$5(Object(source)).forEach(function(key) {
|
|
20464
20549
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
20465
20550
|
});
|
|
@@ -20469,14 +20554,6 @@ function _object_spread_props$5(target, source) {
|
|
|
20469
20554
|
function _to_consumable_array$2(arr) {
|
|
20470
20555
|
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$3(arr) || _non_iterable_spread$2();
|
|
20471
20556
|
}
|
|
20472
|
-
function _unsupported_iterable_to_array$3(o, minLen) {
|
|
20473
|
-
if (!o) return;
|
|
20474
|
-
if (typeof o === "string") return _array_like_to_array$3(o, minLen);
|
|
20475
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
20476
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
20477
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
20478
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
|
|
20479
|
-
}
|
|
20480
20557
|
function _ts_generator$7(thisArg, body) {
|
|
20481
20558
|
var f, y, t, _ = {
|
|
20482
20559
|
label: 0,
|
|
@@ -20576,6 +20653,14 @@ function _ts_generator$7(thisArg, body) {
|
|
|
20576
20653
|
};
|
|
20577
20654
|
}
|
|
20578
20655
|
}
|
|
20656
|
+
function _unsupported_iterable_to_array$3(o, minLen) {
|
|
20657
|
+
if (!o) return;
|
|
20658
|
+
if (typeof o === "string") return _array_like_to_array$3(o, minLen);
|
|
20659
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
20660
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
20661
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
20662
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
|
|
20663
|
+
}
|
|
20579
20664
|
var storageFileProcessingNotificationTaskHandlerDefaultCleanup = function storageFileProcessingNotificationTaskHandlerDefaultCleanup() {
|
|
20580
20665
|
return {
|
|
20581
20666
|
cleanupSuccess: true,
|
|
@@ -20885,7 +20970,7 @@ var storageFileProcessingNotificationTaskHandlerDefaultCleanup = function storag
|
|
|
20885
20970
|
];
|
|
20886
20971
|
case 5:
|
|
20887
20972
|
archiverOptions = _state.sent();
|
|
20888
|
-
newArchive =
|
|
20973
|
+
newArchive = new ZipArchive(archiverOptions);
|
|
20889
20974
|
// pipe the archive to the upload stream
|
|
20890
20975
|
newArchive.pipe(uploadStream, {
|
|
20891
20976
|
end: true
|
|
@@ -21119,9 +21204,7 @@ var storageFileProcessingNotificationTaskHandlerDefaultCleanup = function storag
|
|
|
21119
21204
|
}
|
|
21120
21205
|
|
|
21121
21206
|
function _assert_this_initialized$1(self) {
|
|
21122
|
-
if (self === void 0)
|
|
21123
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
21124
|
-
}
|
|
21207
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
21125
21208
|
return self;
|
|
21126
21209
|
}
|
|
21127
21210
|
function _call_super$1(_this, derived, args) {
|
|
@@ -21129,9 +21212,7 @@ function _call_super$1(_this, derived, args) {
|
|
|
21129
21212
|
return _possible_constructor_return$1(_this, _is_native_reflect_construct$1() ? Reflect.construct(derived, args || [], _get_prototype_of$1(_this).constructor) : derived.apply(_this, args));
|
|
21130
21213
|
}
|
|
21131
21214
|
function _class_call_check$c(instance, Constructor) {
|
|
21132
|
-
if (!(instance instanceof Constructor))
|
|
21133
|
-
throw new TypeError("Cannot call a class as a function");
|
|
21134
|
-
}
|
|
21215
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
21135
21216
|
}
|
|
21136
21217
|
function _defineProperties$4(target, props) {
|
|
21137
21218
|
for(var i = 0; i < props.length; i++){
|
|
@@ -21165,10 +21246,16 @@ function _inherits$1(subClass, superClass) {
|
|
|
21165
21246
|
});
|
|
21166
21247
|
if (superClass) _set_prototype_of$1(subClass, superClass);
|
|
21167
21248
|
}
|
|
21249
|
+
function _is_native_reflect_construct$1() {
|
|
21250
|
+
try {
|
|
21251
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
21252
|
+
} catch (_) {}
|
|
21253
|
+
return (_is_native_reflect_construct$1 = function() {
|
|
21254
|
+
return !!result;
|
|
21255
|
+
})();
|
|
21256
|
+
}
|
|
21168
21257
|
function _possible_constructor_return$1(self, call) {
|
|
21169
|
-
if (call && (_type_of$1(call) === "object" || typeof call === "function"))
|
|
21170
|
-
return call;
|
|
21171
|
-
}
|
|
21258
|
+
if (call && (_type_of$1(call) === "object" || typeof call === "function")) return call;
|
|
21172
21259
|
return _assert_this_initialized$1(self);
|
|
21173
21260
|
}
|
|
21174
21261
|
function _set_prototype_of$1(o, p) {
|
|
@@ -21182,14 +21269,6 @@ function _type_of$1(obj) {
|
|
|
21182
21269
|
"@swc/helpers - typeof";
|
|
21183
21270
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
21184
21271
|
}
|
|
21185
|
-
function _is_native_reflect_construct$1() {
|
|
21186
|
-
try {
|
|
21187
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
21188
|
-
} catch (_) {}
|
|
21189
|
-
return (_is_native_reflect_construct$1 = function() {
|
|
21190
|
-
return !!result;
|
|
21191
|
-
})();
|
|
21192
|
-
}
|
|
21193
21272
|
// MARK: Collections
|
|
21194
21273
|
/**
|
|
21195
21274
|
* Provides access to the {@link SystemStatePrivate} collection.
|
|
@@ -21272,15 +21351,15 @@ function _array_without_holes$1(arr) {
|
|
|
21272
21351
|
if (Array.isArray(arr)) return _array_like_to_array$2(arr);
|
|
21273
21352
|
}
|
|
21274
21353
|
function _class_call_check$b(instance, Constructor) {
|
|
21275
|
-
if (!(instance instanceof Constructor))
|
|
21276
|
-
throw new TypeError("Cannot call a class as a function");
|
|
21277
|
-
}
|
|
21354
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
21278
21355
|
}
|
|
21279
21356
|
function _iterable_to_array$1(iter) {
|
|
21280
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
21357
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
21358
|
+
return Array.from(iter);
|
|
21359
|
+
}
|
|
21281
21360
|
}
|
|
21282
21361
|
function _non_iterable_spread$1() {
|
|
21283
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
21362
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
21284
21363
|
}
|
|
21285
21364
|
function _to_consumable_array$1(arr) {
|
|
21286
21365
|
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$2(arr) || _non_iterable_spread$1();
|
|
@@ -21375,11 +21454,8 @@ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
21375
21454
|
reject(error);
|
|
21376
21455
|
return;
|
|
21377
21456
|
}
|
|
21378
|
-
if (info.done)
|
|
21379
|
-
|
|
21380
|
-
} else {
|
|
21381
|
-
Promise.resolve(value).then(_next, _throw);
|
|
21382
|
-
}
|
|
21457
|
+
if (info.done) resolve(value);
|
|
21458
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
21383
21459
|
}
|
|
21384
21460
|
function _async_to_generator$6(fn) {
|
|
21385
21461
|
return function() {
|
|
@@ -21404,9 +21480,7 @@ function _define_property$6(obj, key, value) {
|
|
|
21404
21480
|
configurable: true,
|
|
21405
21481
|
writable: true
|
|
21406
21482
|
});
|
|
21407
|
-
} else
|
|
21408
|
-
obj[key] = value;
|
|
21409
|
-
}
|
|
21483
|
+
} else obj[key] = value;
|
|
21410
21484
|
return obj;
|
|
21411
21485
|
}
|
|
21412
21486
|
function _object_spread$5(target) {
|
|
@@ -21434,9 +21508,8 @@ function ownKeys$4(object, enumerableOnly) {
|
|
|
21434
21508
|
}
|
|
21435
21509
|
function _object_spread_props$4(target, source) {
|
|
21436
21510
|
source = source != null ? source : {};
|
|
21437
|
-
if (Object.getOwnPropertyDescriptors)
|
|
21438
|
-
|
|
21439
|
-
} else {
|
|
21511
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
21512
|
+
else {
|
|
21440
21513
|
ownKeys$4(Object(source)).forEach(function(key) {
|
|
21441
21514
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
21442
21515
|
});
|
|
@@ -21708,9 +21781,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
21708
21781
|
}
|
|
21709
21782
|
|
|
21710
21783
|
function _class_call_check$a(instance, Constructor) {
|
|
21711
|
-
if (!(instance instanceof Constructor))
|
|
21712
|
-
throw new TypeError("Cannot call a class as a function");
|
|
21713
|
-
}
|
|
21784
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
21714
21785
|
}
|
|
21715
21786
|
function _defineProperties$3(target, props) {
|
|
21716
21787
|
for(var i = 0; i < props.length; i++){
|
|
@@ -21733,9 +21804,7 @@ function _define_property$5(obj, key, value) {
|
|
|
21733
21804
|
configurable: true,
|
|
21734
21805
|
writable: true
|
|
21735
21806
|
});
|
|
21736
|
-
} else
|
|
21737
|
-
obj[key] = value;
|
|
21738
|
-
}
|
|
21807
|
+
} else obj[key] = value;
|
|
21739
21808
|
return obj;
|
|
21740
21809
|
}
|
|
21741
21810
|
// MARK: Paths
|
|
@@ -21868,11 +21937,8 @@ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
21868
21937
|
reject(error);
|
|
21869
21938
|
return;
|
|
21870
21939
|
}
|
|
21871
|
-
if (info.done)
|
|
21872
|
-
|
|
21873
|
-
} else {
|
|
21874
|
-
Promise.resolve(value).then(_next, _throw);
|
|
21875
|
-
}
|
|
21940
|
+
if (info.done) resolve(value);
|
|
21941
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
21876
21942
|
}
|
|
21877
21943
|
function _async_to_generator$5(fn) {
|
|
21878
21944
|
return function() {
|
|
@@ -21890,9 +21956,7 @@ function _async_to_generator$5(fn) {
|
|
|
21890
21956
|
};
|
|
21891
21957
|
}
|
|
21892
21958
|
function _class_call_check$9(instance, Constructor) {
|
|
21893
|
-
if (!(instance instanceof Constructor))
|
|
21894
|
-
throw new TypeError("Cannot call a class as a function");
|
|
21895
|
-
}
|
|
21959
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
21896
21960
|
}
|
|
21897
21961
|
function _defineProperties$2(target, props) {
|
|
21898
21962
|
for(var i = 0; i < props.length; i++){
|
|
@@ -22142,11 +22206,8 @@ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
22142
22206
|
reject(error);
|
|
22143
22207
|
return;
|
|
22144
22208
|
}
|
|
22145
|
-
if (info.done)
|
|
22146
|
-
|
|
22147
|
-
} else {
|
|
22148
|
-
Promise.resolve(value).then(_next, _throw);
|
|
22149
|
-
}
|
|
22209
|
+
if (info.done) resolve(value);
|
|
22210
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
22150
22211
|
}
|
|
22151
22212
|
function _async_to_generator$4(fn) {
|
|
22152
22213
|
return function() {
|
|
@@ -22372,9 +22433,7 @@ var USER_EXTERNAL_CONNECTION_CREDENTIALS_EXPIRED_ERROR_CODE = 'USER_EXTERNAL_CON
|
|
|
22372
22433
|
}
|
|
22373
22434
|
|
|
22374
22435
|
function _class_call_check$8(instance, Constructor) {
|
|
22375
|
-
if (!(instance instanceof Constructor))
|
|
22376
|
-
throw new TypeError("Cannot call a class as a function");
|
|
22377
|
-
}
|
|
22436
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
22378
22437
|
}
|
|
22379
22438
|
/**
|
|
22380
22439
|
* The providers an app has an OAuth authorize/callback flow mounted for.
|
|
@@ -22456,11 +22515,8 @@ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
22456
22515
|
reject(error);
|
|
22457
22516
|
return;
|
|
22458
22517
|
}
|
|
22459
|
-
if (info.done)
|
|
22460
|
-
|
|
22461
|
-
} else {
|
|
22462
|
-
Promise.resolve(value).then(_next, _throw);
|
|
22463
|
-
}
|
|
22518
|
+
if (info.done) resolve(value);
|
|
22519
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
22464
22520
|
}
|
|
22465
22521
|
function _async_to_generator$3(fn) {
|
|
22466
22522
|
return function() {
|
|
@@ -22478,9 +22534,7 @@ function _async_to_generator$3(fn) {
|
|
|
22478
22534
|
};
|
|
22479
22535
|
}
|
|
22480
22536
|
function _class_call_check$7(instance, Constructor) {
|
|
22481
|
-
if (!(instance instanceof Constructor))
|
|
22482
|
-
throw new TypeError("Cannot call a class as a function");
|
|
22483
|
-
}
|
|
22537
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
22484
22538
|
}
|
|
22485
22539
|
function _defineProperties$1(target, props) {
|
|
22486
22540
|
for(var i = 0; i < props.length; i++){
|
|
@@ -22503,9 +22557,7 @@ function _define_property$4(obj, key, value) {
|
|
|
22503
22557
|
configurable: true,
|
|
22504
22558
|
writable: true
|
|
22505
22559
|
});
|
|
22506
|
-
} else
|
|
22507
|
-
obj[key] = value;
|
|
22508
|
-
}
|
|
22560
|
+
} else obj[key] = value;
|
|
22509
22561
|
return obj;
|
|
22510
22562
|
}
|
|
22511
22563
|
function _object_spread$4(target) {
|
|
@@ -22533,9 +22585,8 @@ function ownKeys$3(object, enumerableOnly) {
|
|
|
22533
22585
|
}
|
|
22534
22586
|
function _object_spread_props$3(target, source) {
|
|
22535
22587
|
source = source != null ? source : {};
|
|
22536
|
-
if (Object.getOwnPropertyDescriptors)
|
|
22537
|
-
|
|
22538
|
-
} else {
|
|
22588
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
22589
|
+
else {
|
|
22539
22590
|
ownKeys$3(Object(source)).forEach(function(key) {
|
|
22540
22591
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
22541
22592
|
});
|
|
@@ -22905,9 +22956,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
22905
22956
|
();
|
|
22906
22957
|
|
|
22907
22958
|
function _class_call_check$6(instance, Constructor) {
|
|
22908
|
-
if (!(instance instanceof Constructor))
|
|
22909
|
-
throw new TypeError("Cannot call a class as a function");
|
|
22910
|
-
}
|
|
22959
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
22911
22960
|
}
|
|
22912
22961
|
/**
|
|
22913
22962
|
* Secret the external-connection OAuth `state` is encrypted with.
|
|
@@ -23020,9 +23069,7 @@ function base64UrlToBase64(value) {
|
|
|
23020
23069
|
}
|
|
23021
23070
|
|
|
23022
23071
|
function _assert_this_initialized(self) {
|
|
23023
|
-
if (self === void 0)
|
|
23024
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
23025
|
-
}
|
|
23072
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
23026
23073
|
return self;
|
|
23027
23074
|
}
|
|
23028
23075
|
function _call_super(_this, derived, args) {
|
|
@@ -23030,9 +23077,7 @@ function _call_super(_this, derived, args) {
|
|
|
23030
23077
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
23031
23078
|
}
|
|
23032
23079
|
function _class_call_check$5(instance, Constructor) {
|
|
23033
|
-
if (!(instance instanceof Constructor))
|
|
23034
|
-
throw new TypeError("Cannot call a class as a function");
|
|
23035
|
-
}
|
|
23080
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
23036
23081
|
}
|
|
23037
23082
|
function _defineProperties(target, props) {
|
|
23038
23083
|
for(var i = 0; i < props.length; i++){
|
|
@@ -23055,9 +23100,7 @@ function _define_property$3(obj, key, value) {
|
|
|
23055
23100
|
configurable: true,
|
|
23056
23101
|
writable: true
|
|
23057
23102
|
});
|
|
23058
|
-
} else
|
|
23059
|
-
obj[key] = value;
|
|
23060
|
-
}
|
|
23103
|
+
} else obj[key] = value;
|
|
23061
23104
|
return obj;
|
|
23062
23105
|
}
|
|
23063
23106
|
function _get_prototype_of(o) {
|
|
@@ -23079,6 +23122,14 @@ function _inherits(subClass, superClass) {
|
|
|
23079
23122
|
});
|
|
23080
23123
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
23081
23124
|
}
|
|
23125
|
+
function _is_native_reflect_construct() {
|
|
23126
|
+
try {
|
|
23127
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
23128
|
+
} catch (_) {}
|
|
23129
|
+
return (_is_native_reflect_construct = function() {
|
|
23130
|
+
return !!result;
|
|
23131
|
+
})();
|
|
23132
|
+
}
|
|
23082
23133
|
function _object_spread$3(target) {
|
|
23083
23134
|
for(var i = 1; i < arguments.length; i++){
|
|
23084
23135
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -23104,9 +23155,8 @@ function ownKeys$2(object, enumerableOnly) {
|
|
|
23104
23155
|
}
|
|
23105
23156
|
function _object_spread_props$2(target, source) {
|
|
23106
23157
|
source = source != null ? source : {};
|
|
23107
|
-
if (Object.getOwnPropertyDescriptors)
|
|
23108
|
-
|
|
23109
|
-
} else {
|
|
23158
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
23159
|
+
else {
|
|
23110
23160
|
ownKeys$2(Object(source)).forEach(function(key) {
|
|
23111
23161
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
23112
23162
|
});
|
|
@@ -23114,9 +23164,7 @@ function _object_spread_props$2(target, source) {
|
|
|
23114
23164
|
return target;
|
|
23115
23165
|
}
|
|
23116
23166
|
function _possible_constructor_return(self, call) {
|
|
23117
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
23118
|
-
return call;
|
|
23119
|
-
}
|
|
23167
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
23120
23168
|
return _assert_this_initialized(self);
|
|
23121
23169
|
}
|
|
23122
23170
|
function _set_prototype_of(o, p) {
|
|
@@ -23130,14 +23178,6 @@ function _type_of(obj) {
|
|
|
23130
23178
|
"@swc/helpers - typeof";
|
|
23131
23179
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
23132
23180
|
}
|
|
23133
|
-
function _is_native_reflect_construct() {
|
|
23134
|
-
try {
|
|
23135
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
23136
|
-
} catch (_) {}
|
|
23137
|
-
return (_is_native_reflect_construct = function() {
|
|
23138
|
-
return !!result;
|
|
23139
|
-
})();
|
|
23140
|
-
}
|
|
23141
23181
|
// MARK: Collections
|
|
23142
23182
|
/**
|
|
23143
23183
|
* Provides access to the {@link UserExternalConnectionPrivate} collection.
|
|
@@ -23324,11 +23364,8 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
23324
23364
|
reject(error);
|
|
23325
23365
|
return;
|
|
23326
23366
|
}
|
|
23327
|
-
if (info.done)
|
|
23328
|
-
|
|
23329
|
-
} else {
|
|
23330
|
-
Promise.resolve(value).then(_next, _throw);
|
|
23331
|
-
}
|
|
23367
|
+
if (info.done) resolve(value);
|
|
23368
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
23332
23369
|
}
|
|
23333
23370
|
function _async_to_generator$2(fn) {
|
|
23334
23371
|
return function() {
|
|
@@ -23346,9 +23383,7 @@ function _async_to_generator$2(fn) {
|
|
|
23346
23383
|
};
|
|
23347
23384
|
}
|
|
23348
23385
|
function _class_call_check$4(instance, Constructor) {
|
|
23349
|
-
if (!(instance instanceof Constructor))
|
|
23350
|
-
throw new TypeError("Cannot call a class as a function");
|
|
23351
|
-
}
|
|
23386
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
23352
23387
|
}
|
|
23353
23388
|
function _iterable_to_array_limit(arr, i) {
|
|
23354
23389
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -23375,19 +23410,11 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
23375
23410
|
return _arr;
|
|
23376
23411
|
}
|
|
23377
23412
|
function _non_iterable_rest() {
|
|
23378
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
23413
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
23379
23414
|
}
|
|
23380
23415
|
function _sliced_to_array(arr, i) {
|
|
23381
23416
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest();
|
|
23382
23417
|
}
|
|
23383
|
-
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
23384
|
-
if (!o) return;
|
|
23385
|
-
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
23386
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
23387
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
23388
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
23389
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
23390
|
-
}
|
|
23391
23418
|
function _ts_generator$2(thisArg, body) {
|
|
23392
23419
|
var f, y, t, _ = {
|
|
23393
23420
|
label: 0,
|
|
@@ -23487,6 +23514,14 @@ function _ts_generator$2(thisArg, body) {
|
|
|
23487
23514
|
};
|
|
23488
23515
|
}
|
|
23489
23516
|
}
|
|
23517
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
23518
|
+
if (!o) return;
|
|
23519
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
23520
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
23521
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
23522
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
23523
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
23524
|
+
}
|
|
23490
23525
|
/**
|
|
23491
23526
|
* Server-only read surface for the UserExternalConnection document pair.
|
|
23492
23527
|
*
|
|
@@ -23599,11 +23634,8 @@ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
23599
23634
|
reject(error);
|
|
23600
23635
|
return;
|
|
23601
23636
|
}
|
|
23602
|
-
if (info.done)
|
|
23603
|
-
|
|
23604
|
-
} else {
|
|
23605
|
-
Promise.resolve(value).then(_next, _throw);
|
|
23606
|
-
}
|
|
23637
|
+
if (info.done) resolve(value);
|
|
23638
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
23607
23639
|
}
|
|
23608
23640
|
function _async_to_generator$1(fn) {
|
|
23609
23641
|
return function() {
|
|
@@ -23621,9 +23653,7 @@ function _async_to_generator$1(fn) {
|
|
|
23621
23653
|
};
|
|
23622
23654
|
}
|
|
23623
23655
|
function _class_call_check$3(instance, Constructor) {
|
|
23624
|
-
if (!(instance instanceof Constructor))
|
|
23625
|
-
throw new TypeError("Cannot call a class as a function");
|
|
23626
|
-
}
|
|
23656
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
23627
23657
|
}
|
|
23628
23658
|
function _define_property$2(obj, key, value) {
|
|
23629
23659
|
if (key in obj) {
|
|
@@ -23633,9 +23663,7 @@ function _define_property$2(obj, key, value) {
|
|
|
23633
23663
|
configurable: true,
|
|
23634
23664
|
writable: true
|
|
23635
23665
|
});
|
|
23636
|
-
} else
|
|
23637
|
-
obj[key] = value;
|
|
23638
|
-
}
|
|
23666
|
+
} else obj[key] = value;
|
|
23639
23667
|
return obj;
|
|
23640
23668
|
}
|
|
23641
23669
|
function _object_spread$2(target) {
|
|
@@ -23663,9 +23691,8 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
23663
23691
|
}
|
|
23664
23692
|
function _object_spread_props$1(target, source) {
|
|
23665
23693
|
source = source != null ? source : {};
|
|
23666
|
-
if (Object.getOwnPropertyDescriptors)
|
|
23667
|
-
|
|
23668
|
-
} else {
|
|
23694
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
23695
|
+
else {
|
|
23669
23696
|
ownKeys$1(Object(source)).forEach(function(key) {
|
|
23670
23697
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
23671
23698
|
});
|
|
@@ -24046,11 +24073,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
24046
24073
|
reject(error);
|
|
24047
24074
|
return;
|
|
24048
24075
|
}
|
|
24049
|
-
if (info.done)
|
|
24050
|
-
|
|
24051
|
-
} else {
|
|
24052
|
-
Promise.resolve(value).then(_next, _throw);
|
|
24053
|
-
}
|
|
24076
|
+
if (info.done) resolve(value);
|
|
24077
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
24054
24078
|
}
|
|
24055
24079
|
function _async_to_generator(fn) {
|
|
24056
24080
|
return function() {
|
|
@@ -24068,9 +24092,7 @@ function _async_to_generator(fn) {
|
|
|
24068
24092
|
};
|
|
24069
24093
|
}
|
|
24070
24094
|
function _class_call_check$2(instance, Constructor) {
|
|
24071
|
-
if (!(instance instanceof Constructor))
|
|
24072
|
-
throw new TypeError("Cannot call a class as a function");
|
|
24073
|
-
}
|
|
24095
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
24074
24096
|
}
|
|
24075
24097
|
function _define_property$1(obj, key, value) {
|
|
24076
24098
|
if (key in obj) {
|
|
@@ -24080,9 +24102,7 @@ function _define_property$1(obj, key, value) {
|
|
|
24080
24102
|
configurable: true,
|
|
24081
24103
|
writable: true
|
|
24082
24104
|
});
|
|
24083
|
-
} else
|
|
24084
|
-
obj[key] = value;
|
|
24085
|
-
}
|
|
24105
|
+
} else obj[key] = value;
|
|
24086
24106
|
return obj;
|
|
24087
24107
|
}
|
|
24088
24108
|
function _object_spread$1(target) {
|
|
@@ -24110,9 +24130,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
24110
24130
|
}
|
|
24111
24131
|
function _object_spread_props(target, source) {
|
|
24112
24132
|
source = source != null ? source : {};
|
|
24113
|
-
if (Object.getOwnPropertyDescriptors)
|
|
24114
|
-
|
|
24115
|
-
} else {
|
|
24133
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24134
|
+
else {
|
|
24116
24135
|
ownKeys(Object(source)).forEach(function(key) {
|
|
24117
24136
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24118
24137
|
});
|
|
@@ -24501,9 +24520,7 @@ function _array_without_holes(arr) {
|
|
|
24501
24520
|
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
24502
24521
|
}
|
|
24503
24522
|
function _class_call_check$1(instance, Constructor) {
|
|
24504
|
-
if (!(instance instanceof Constructor))
|
|
24505
|
-
throw new TypeError("Cannot call a class as a function");
|
|
24506
|
-
}
|
|
24523
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
24507
24524
|
}
|
|
24508
24525
|
function _define_property(obj, key, value) {
|
|
24509
24526
|
if (key in obj) {
|
|
@@ -24513,16 +24530,16 @@ function _define_property(obj, key, value) {
|
|
|
24513
24530
|
configurable: true,
|
|
24514
24531
|
writable: true
|
|
24515
24532
|
});
|
|
24516
|
-
} else
|
|
24517
|
-
obj[key] = value;
|
|
24518
|
-
}
|
|
24533
|
+
} else obj[key] = value;
|
|
24519
24534
|
return obj;
|
|
24520
24535
|
}
|
|
24521
24536
|
function _iterable_to_array(iter) {
|
|
24522
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
24537
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
24538
|
+
return Array.from(iter);
|
|
24539
|
+
}
|
|
24523
24540
|
}
|
|
24524
24541
|
function _non_iterable_spread() {
|
|
24525
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
24542
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24526
24543
|
}
|
|
24527
24544
|
function _object_spread(target) {
|
|
24528
24545
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -24757,9 +24774,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
24757
24774
|
}
|
|
24758
24775
|
|
|
24759
24776
|
function _class_call_check(instance, Constructor) {
|
|
24760
|
-
if (!(instance instanceof Constructor))
|
|
24761
|
-
throw new TypeError("Cannot call a class as a function");
|
|
24762
|
-
}
|
|
24777
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
24763
24778
|
}
|
|
24764
24779
|
/**
|
|
24765
24780
|
* Exchanges a user's stored credentials for fresh ones.
|
|
@@ -24778,4 +24793,4 @@ function _class_call_check(instance, Constructor) {
|
|
|
24778
24793
|
}
|
|
24779
24794
|
;
|
|
24780
24795
|
|
|
24781
|
-
export { AbstractAppNotificationModule, AbstractUserExternalConnectionOAuthController, AbstractUserExternalConnectionOAuthService, BASE_CALENDAR_SERVER_ACTION_CONTEXT_TOKEN, BASE_FORM_SPACE_SERVER_ACTION_CONTEXT_TOKEN, BASE_NOTIFICATION_SERVER_ACTION_CONTEXT_TOKEN, BASE_STORAGE_FILE_SERVER_ACTION_CONTEXT_TOKEN, CALENDAR_ICS_DOMAIN_TOKEN, CALENDAR_ICS_PUBLISHED_CACHE_CONTROL, CALENDAR_ICS_PUBLISHED_CONTENT_DISPOSITION, CALENDAR_SERVER_ACTION_CONTEXT_TOKEN, CALENDAR_TYPE_CONFIGS_TOKEN, CalendarServerActions, DEFAULT_COMPRESS_IMAGE_FORMAT, DEFAULT_COMPRESS_IMAGE_INITIAL_QUALITY, DEFAULT_COMPRESS_IMAGE_MAX_DIMENSION, DEFAULT_COMPRESS_IMAGE_MIN_QUALITY, DEFAULT_COMPRESS_IMAGE_QUALITY_STEP, DEFAULT_COMPRESS_PDF_IMAGE_MAX_DIMENSION, DEFAULT_COMPRESS_PDF_IMAGE_QUALITY, DEFAULT_COMPRESS_PDF_IMAGE_SIZE_THRESHOLD_BYTES, DEFAULT_DOWNLOAD_MULTIPLE_STORAGE_FILES_MAX_PARALLEL_TASKS, DEFAULT_FORM_SPACE_EXPIRATION_SWEEP_MAX_RUN_TIME, DEFAULT_FORM_SPACE_EXPIRATION_SWEEP_PAGE_SIZE, DEFAULT_FORM_SPACE_FILE_VALIDATION_MAX_ATTEMPTS, DEFAULT_FORM_SPACE_FILE_VALIDATION_RETRY_DELAY, DEFAULT_MAILGUN_HEALTH_CHECK_PROBE_TIMEOUT_MINUTES, DEFAULT_MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_MAX_BATCH_SIZE_PER_REQUEST, DEFAULT_MAX_NOTIFICATION_BOXES_TO_INSPECT_PER_HEALTH_CHECK, DEFAULT_READ_MULTIPLE_STORAGE_FILES_METADATA_MAX_PARALLEL_TASKS, DEFAULT_USER_EXTERNAL_CONNECTION_CREDENTIALS_EXPIRATION_BUFFER, DEFAULT_USER_EXTERNAL_CONNECTION_REFRESH_FAILURE_ERROR_CODE, DEFAULT_USER_EXTERNAL_CONNECTION_STATE_EXPIRATION, FORM_SPACE_SERVER_ACTION_CONTEXT_TOKEN, FORM_SPACE_TYPE_CONFIGS_TOKEN, FormSpaceServerActions, GlobalNotificationModule, KNOWN_BUT_UNCONFIGURED_NOTIFICATION_TEMPLATE_TYPE_DELETE_AFTER_RETRY_ATTEMPTS, KNOWN_BUT_UNCONFIGURED_NOTIFICATION_TEMPLATE_TYPE_HOURS_DELAY, MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_RESPONSE, MAKE_TEMPLATE_FOR_STORAGEFILE_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_RESPONSE, MutableNotificationExpediteService, NOTIFICATION_BOX_NOT_INITIALIZED_DELAY_MINUTES, NOTIFICATION_INIT_SERVER_ACTIONS_CONTEXT_CONFIG_TOKEN, NOTIFICATION_MAX_SEND_ATTEMPTS, NOTIFICATION_SERVER_ACTION_CONTEXT_TOKEN, NOTIFICATION_TASK_MINIMUM_SET_AT_THROTTLE_TIME_MINUTES, NOTIFICATION_TASK_TYPE_FAILURE_DELAY_HOURS, NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS, NOTIFICATION_TASK_TYPE_MAX_SEND_ATTEMPTS, NOTIFICATION_TEMPLATE_SERVICE_CONFIGS_ARRAY_TOKEN, NOTIFICATION_TEMPLATE_SERVICE_DEFAULTS_OVERRIDE_TOKEN, NotificationExpediteService, NotificationInitServerActions, NotificationSendService, NotificationServerActions, NotificationTaskService, NotificationTaskSubTaskMissingRequiredDataTermination, NotificationTemplateService, SEND_QUEUE_NOTIFICATIONS_TASK_EXCESS_THRESHOLD, STORAGE_FILE_INIT_SERVER_ACTIONS_CONTEXT_CONFIG_TOKEN, STORAGE_FILE_SERVER_ACTION_CONTEXT_TOKEN, STORAGE_FILE_SIGNED_UPLOAD_POLICIES_TOKEN, StorageFileInitServerActions, StorageFileInitializeFromUploadService, StorageFileServerActions, SystemStatePrivateDocument, SystemStatePrivateFirestoreCollections, SystemStatePrivateModuleConfig, TESTING_USER_EXTERNAL_CONNECTION_ENCRYPTION_SECRET, TESTING_USER_EXTERNAL_CONNECTION_STATE_SECRET, UNKNOWN_NOTIFICATION_TASK_TYPE_DELETE_AFTER_RETRY_ATTEMPTS, UNKNOWN_NOTIFICATION_TASK_TYPE_HOURS_DELAY, UNKNOWN_NOTIFICATION_TEMPLATE_TYPE_DELETE_AFTER_RETRY_ATTEMPTS, UNKNOWN_NOTIFICATION_TEMPLATE_TYPE_HOURS_DELAY, USER_EXTERNAL_CONNECTION_ALREADY_EXISTS_ERROR_CODE, USER_EXTERNAL_CONNECTION_CREDENTIALS_EXPIRED_ERROR_CODE, USER_EXTERNAL_CONNECTION_ENCRYPTION_SECRET_ENV_KEY, USER_EXTERNAL_CONNECTION_OAUTH_REDIRECT_STATUS, USER_EXTERNAL_CONNECTION_PROVIDER_NOT_ALLOWED_ERROR_CODE, USER_EXTERNAL_CONNECTION_PROVIDER_NOT_CONNECTED_ERROR_CODE, USER_EXTERNAL_CONNECTION_SERVER_ACTIONS_CONTEXT_TOKEN, USER_EXTERNAL_CONNECTION_STATE_SECRET_CONFIG_KEY, UserExternalConnectionAccessor, UserExternalConnectionCredentialsRefresher, UserExternalConnectionModuleConfig, UserExternalConnectionOAuthProviderRegistry, UserExternalConnectionOAuthServiceConfig, UserExternalConnectionPrivateDocument, UserExternalConnectionReader, UserExternalConnectionServerActions, UserExternalConnectionServerFirestoreCollections, UserExternalConnectionStateCoder, _initializeStorageFileFromUploadFileFactory, _processStorageFileInTransactionFactory, _queueFormSpaceForProcessingFactory, _syncStorageFileWithGroupsInTransactionFactory, allStorageFileGroupStorageFileProcessingPurposeSubtaskProcessors, appCalendarModuleMetadata, appCalendarTypeConfigServiceFactory, appFormSpaceModuleMetadata, appFormSpaceTypeConfigServiceFactory, appNotificationModuleMetadata, appStorageFileModuleMetadata, appSystemStatePrivateModuleMetadata, appUserExternalConnectionModuleMetadata, applyUserExternalConnectionCredentials, calendarIcsDomainNotConfiguredError, calendarIcsRotateThrottledError, calendarIcsStorageFileProcessingPurposeSubtaskProcessor, calendarIcsStorageFileUnavailableError, calendarServerActions, calendarServerActionsContextFactory, calendarServerActionsFactory, cleanupOldNotificationLoggedEventDaysFactory, cleanupSentNotificationsFactory, compressImageBufferToTargetSize, compressPdfImagesToTargetSize, createFormSpaceFactory, createNotificationBoxFactory, createNotificationBoxInTransactionFactory, createNotificationIdRequiredError, createNotificationSummaryFactory, createNotificationUserFactory, createOrRunUniqueNotificationDocument, createStorageFileFactory, createStorageFileGroupFactory, createStorageFileGroupInTransactionFactory, createStorageFileGroupInputError, createStorageFileSignedUploadUrlFactory, createUserExternalConnectionFactory, deleteAllQueuedStorageFilesFactory, deleteAllUserExternalConnectionsForUserFactory, deleteFormSpaceFactory, deleteStorageFileFactory, downloadMultipleStorageFilesFactory, downloadStorageFileFactory, expandNotificationRecipients, expireAllExpiredFormSpacesFactory, exportMutableNotificationExpediteService, firestoreNotificationSummarySendService, flagStaleCalendarsForSyncFactory, formSpaceAlreadyExistsError, formSpaceFileAccessDeniedError, formSpaceFileNotFoundError, formSpaceFileValidationStorageFileProcessor, formSpaceHasInvalidFilesError, formSpaceNotEditableError, formSpaceNotFoundError, formSpaceRequiredSlotMissingError, formSpaceServerActions, formSpaceServerActionsContextFactory, formSpaceServerActionsFactory, formSpaceStorageFileUploadInitializers, formSpaceSubmissionNotificationTaskHandler, formSpaceSubmissionNotificationTaskHandlerDefaultCleanup, formSpaceTypeMismatchError, formSpaceTypeNotRegisteredError, formSpaceUploadNotAllowedError, formSpaceUploadUserMismatchError, formSpaceValidationPendingError, ignoreSendNotificationTextSendService, initializeAllApplicableNotificationBoxesFactory, initializeAllApplicableNotificationSummariesFactory, initializeAllApplicableStorageFileGroupsFactory, initializeAllStorageFilesFromUploadsFactory, initializeNotificationBoxFactory, initializeNotificationBoxInTransactionFactory, initializeNotificationModelInTransaction, initializeNotificationSummaryFactory, initializeNotificationSummaryInTransactionFactory, initializeStorageFileFromUploadFactory, initializeStorageFileGroupFactory, initializeStorageFileGroupInTransactionFactory, initializeStorageFileModelInTransaction, mailgunCalendarFileAttachmentForNotificationMessage, mailgunNotificationEmailSendService, mailgunNotificationEmailSendServiceHealthCheckService, makeNewNotificationSummaryTemplate, markStorageFileForDeleteTemplate, mergeRefreshedUserExternalConnectionCredentials, notificationBoxDoesNotExist, notificationBoxExclusionTargetInvalidError, notificationBoxExistsForModelError, notificationBoxRecipientDoesNotExistsError, notificationBoxUnregistredModelTypeInitializationError, notificationExpediteServiceInstance, notificationInitServerActions, notificationInitServerActionsFactory, notificationMessageCalendarAttachmentToMailgunFileAttachment, notificationModelAlreadyInitializedError, notificationServerActions, notificationServerActionsContextFactory, notificationServerActionsFactory, notificationTaskService, notificationTaskSubTaskMissingRequiredDataTermination, notificationTaskSubtaskNotificationTaskHandlerFactory, notificationTemplateServiceInstance, notificationUserBlockedFromBeingAddedToRecipientsError, notificationUserHealthCheckFactory, notificationUserHealthCheckProbeThrottledError, notificationUserHealthCheckThrottledError, notificationUserHealthCheckVerifyThrottledError, notificationUserInvalidUidForCreateError, notificationUserLockedConfigFromBeingUpdatedError, processAllQueuedFormSpacesFactory, processAllQueuedStorageFilesFactory, processStorageFileFactory, provideMutableNotificationExpediteService, queryAndFlagStorageFilesForDelete, readMultipleStorageFilesMetadataFactory, readStorageFileMetadataFactory, regenerateAllFlaggedStorageFileGroupsContentFactory, regenerateStorageFileGroupContentFactory, removeFormSpaceFileFactory, resyncAllNotificationUsersFactory, resyncNotificationUserFactory, rotateCalendarIcsFactory, schedulerSystemStateAccessorFactory, sendNotificationFactory, sendQueuedNotificationsFactory, storageFileAlreadyProcessedError, storageFileCannotBeDeletedYetError, storageFileCreateSignedUploadUrlToolDetailsFactory, storageFileGroupQueuedForInitializationError, storageFileGroupZipStorageFileProcessingPurposeSubtaskProcessor, storageFileInitServerActions, storageFileInitServerActionsFactory, storageFileInitializeFromUploadService, storageFileInitializeFromUploadServiceInitializerResultPermanentFailure, storageFileInitializeFromUploadServiceInitializerResultTransientFailure, storageFileModelAlreadyInitializedError, storageFileNotFlaggedForDeletionError, storageFileNotFlaggedForGroupsSyncError, storageFileProcessToolDetailsFactory, storageFileProcessingNotAllowedForInvalidStateError, storageFileProcessingNotAvailableForTypeError, storageFileProcessingNotQueuedForProcessingError, storageFileProcessingNotificationTaskHandler, storageFileProcessingNotificationTaskHandlerDefaultCleanup, storageFileServerActions, storageFileServerActionsContextFactory, storageFileServerActionsFactory, submitFormSpaceFactory, syncAllFlaggedCalendarsFactory, syncAllFlaggedStorageFilesWithGroupsFactory, syncCalendarFactory, syncStorageFileWithGroupsFactory, systemStatePrivateCollectionReference, systemStatePrivateFirestoreCollection, systemStatePrivateFirestoreCollectionsFactory, systemStatePrivateIdentity, updateFormSpaceFactory, updateNotificationBoxFactory, updateNotificationBoxRecipientExclusionInTransactionFactory, updateNotificationBoxRecipientFactory, updateNotificationBoxRecipientInTransactionFactory, updateNotificationSummaryFactory, updateNotificationUserFactory, updateNotificationUserNotificationBoxRecipientConfig, updateStorageFileFactory, updateStorageFileGroupFactory, uploadedFileDoesNotExistError, uploadedFileInitializationDiscardedError, uploadedFileInitializationFailedError, uploadedFileIsNotAllowedToBeInitializedError, userExternalConnectionAccessor, userExternalConnectionAlreadyExistsError, userExternalConnectionCredentialsExpiredError, userExternalConnectionErrorCodeForOAuthProviderError, userExternalConnectionGrantSummaryFromCredentials, userExternalConnectionModuleConfigFactory, userExternalConnectionOAuthControllerPath, userExternalConnectionOAuthProviderRegistry, userExternalConnectionOAuthProviderRegistryProvider, userExternalConnectionOAuthRedirectUri, userExternalConnectionOAuthRegistryCredentialsRefresher, userExternalConnectionOAuthRoutesForGlobalRouteExclude, userExternalConnectionOAuthServiceConfigFactory, userExternalConnectionOAuthStateForRequest, userExternalConnectionPrivateAccessorFactory, userExternalConnectionPrivateCollectionReference, userExternalConnectionPrivateConverter, userExternalConnectionPrivateFirestoreCollection, userExternalConnectionPrivateIdentity, userExternalConnectionProviderNotAllowedError, userExternalConnectionProviderNotConnectedError, userExternalConnectionReader, userExternalConnectionReaderProvider, userExternalConnectionServerActions, userExternalConnectionServerActionsContextFactory, userExternalConnectionServerFirestoreCollectionsFactory, userExternalConnectionStateCoder, userExternalConnectionStateCoderFactory, writeUserExternalConnectionPairInTransactionFactory };
|
|
24796
|
+
export { AbstractAppNotificationModule, AbstractUserExternalConnectionOAuthController, AbstractUserExternalConnectionOAuthService, BASE_CALENDAR_SERVER_ACTION_CONTEXT_TOKEN, BASE_FORM_SPACE_SERVER_ACTION_CONTEXT_TOKEN, BASE_NOTIFICATION_SERVER_ACTION_CONTEXT_TOKEN, BASE_STORAGE_FILE_SERVER_ACTION_CONTEXT_TOKEN, CALENDAR_ICS_DOMAIN_TOKEN, CALENDAR_ICS_PUBLISHED_CACHE_CONTROL, CALENDAR_ICS_PUBLISHED_CONTENT_DISPOSITION, CALENDAR_SERVER_ACTION_CONTEXT_TOKEN, CALENDAR_TYPE_CONFIGS_TOKEN, CalendarServerActions, DEFAULT_COMPRESS_IMAGE_FORMAT, DEFAULT_COMPRESS_IMAGE_INITIAL_QUALITY, DEFAULT_COMPRESS_IMAGE_MAX_DIMENSION, DEFAULT_COMPRESS_IMAGE_MIN_QUALITY, DEFAULT_COMPRESS_IMAGE_QUALITY_STEP, DEFAULT_COMPRESS_PDF_IMAGE_MAX_DIMENSION, DEFAULT_COMPRESS_PDF_IMAGE_QUALITY, DEFAULT_COMPRESS_PDF_IMAGE_SIZE_THRESHOLD_BYTES, DEFAULT_DOWNLOAD_MULTIPLE_STORAGE_FILES_MAX_PARALLEL_TASKS, DEFAULT_FORM_SPACE_EXPIRATION_SWEEP_MAX_RUN_TIME, DEFAULT_FORM_SPACE_EXPIRATION_SWEEP_PAGE_SIZE, DEFAULT_FORM_SPACE_FILE_VALIDATION_MAX_ATTEMPTS, DEFAULT_FORM_SPACE_FILE_VALIDATION_RETRY_DELAY, DEFAULT_MAILGUN_HEALTH_CHECK_PROBE_TIMEOUT_MINUTES, DEFAULT_MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_MAX_BATCH_SIZE_PER_REQUEST, DEFAULT_MAX_NOTIFICATION_BOXES_TO_INSPECT_PER_HEALTH_CHECK, DEFAULT_READ_MULTIPLE_STORAGE_FILES_METADATA_MAX_PARALLEL_TASKS, DEFAULT_USER_EXTERNAL_CONNECTION_CREDENTIALS_EXPIRATION_BUFFER, DEFAULT_USER_EXTERNAL_CONNECTION_REFRESH_FAILURE_ERROR_CODE, DEFAULT_USER_EXTERNAL_CONNECTION_STATE_EXPIRATION, FORM_SPACE_SERVER_ACTION_CONTEXT_TOKEN, FORM_SPACE_TYPE_CONFIGS_TOKEN, FormSpaceServerActions, GlobalNotificationModule, KNOWN_BUT_UNCONFIGURED_NOTIFICATION_TEMPLATE_TYPE_DELETE_AFTER_RETRY_ATTEMPTS, KNOWN_BUT_UNCONFIGURED_NOTIFICATION_TEMPLATE_TYPE_HOURS_DELAY, MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_RESPONSE, MAKE_TEMPLATE_FOR_STORAGEFILE_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_RESPONSE, MutableNotificationExpediteService, NOTIFICATION_BOX_NOT_INITIALIZED_DELAY_MINUTES, NOTIFICATION_INIT_SERVER_ACTIONS_CONTEXT_CONFIG_TOKEN, NOTIFICATION_MAX_SEND_ATTEMPTS, NOTIFICATION_SERVER_ACTION_CONTEXT_TOKEN, NOTIFICATION_TASK_MINIMUM_SET_AT_THROTTLE_TIME_MINUTES, NOTIFICATION_TASK_TYPE_FAILURE_DELAY_HOURS, NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS, NOTIFICATION_TASK_TYPE_MAX_SEND_ATTEMPTS, NOTIFICATION_TEMPLATE_SERVICE_CONFIGS_ARRAY_TOKEN, NOTIFICATION_TEMPLATE_SERVICE_DEFAULTS_OVERRIDE_TOKEN, NotificationExpediteService, NotificationInitServerActions, NotificationSendService, NotificationServerActions, NotificationTaskService, NotificationTaskSubTaskMissingRequiredDataTermination, NotificationTemplateService, SEND_QUEUE_NOTIFICATIONS_TASK_EXCESS_THRESHOLD, STORAGE_FILE_INIT_SERVER_ACTIONS_CONTEXT_CONFIG_TOKEN, STORAGE_FILE_SERVER_ACTION_CONTEXT_TOKEN, STORAGE_FILE_SIGNED_UPLOAD_POLICIES_TOKEN, StorageFileInitServerActions, StorageFileInitializeFromUploadService, StorageFileServerActions, SystemStatePrivateDocument, SystemStatePrivateFirestoreCollections, SystemStatePrivateModuleConfig, TESTING_USER_EXTERNAL_CONNECTION_ENCRYPTION_SECRET, TESTING_USER_EXTERNAL_CONNECTION_STATE_SECRET, UNKNOWN_NOTIFICATION_TASK_TYPE_DELETE_AFTER_RETRY_ATTEMPTS, UNKNOWN_NOTIFICATION_TASK_TYPE_HOURS_DELAY, UNKNOWN_NOTIFICATION_TEMPLATE_TYPE_DELETE_AFTER_RETRY_ATTEMPTS, UNKNOWN_NOTIFICATION_TEMPLATE_TYPE_HOURS_DELAY, USER_EXTERNAL_CONNECTION_ALREADY_EXISTS_ERROR_CODE, USER_EXTERNAL_CONNECTION_CREDENTIALS_EXPIRED_ERROR_CODE, USER_EXTERNAL_CONNECTION_ENCRYPTION_SECRET_ENV_KEY, USER_EXTERNAL_CONNECTION_OAUTH_REDIRECT_STATUS, USER_EXTERNAL_CONNECTION_PROVIDER_NOT_ALLOWED_ERROR_CODE, USER_EXTERNAL_CONNECTION_PROVIDER_NOT_CONNECTED_ERROR_CODE, USER_EXTERNAL_CONNECTION_SERVER_ACTIONS_CONTEXT_TOKEN, USER_EXTERNAL_CONNECTION_STATE_SECRET_CONFIG_KEY, UserExternalConnectionAccessor, UserExternalConnectionCredentialsRefresher, UserExternalConnectionModuleConfig, UserExternalConnectionOAuthProviderRegistry, UserExternalConnectionOAuthServiceConfig, UserExternalConnectionPrivateDocument, UserExternalConnectionReader, UserExternalConnectionServerActions, UserExternalConnectionServerFirestoreCollections, UserExternalConnectionStateCoder, _initializeStorageFileFromUploadFileFactory, _processStorageFileInTransactionFactory, _queueFormSpaceForProcessingFactory, _syncStorageFileWithGroupsInTransactionFactory, allStorageFileGroupStorageFileProcessingPurposeSubtaskProcessors, appCalendarModuleMetadata, appCalendarTypeConfigServiceFactory, appFormSpaceModuleMetadata, appFormSpaceTypeConfigServiceFactory, appNotificationModuleMetadata, appStorageFileModuleMetadata, appSystemStatePrivateModuleMetadata, appUserExternalConnectionModuleMetadata, applyUserExternalConnectionCredentials, calendarIcsDomainNotConfiguredError, calendarIcsRotateThrottledError, calendarIcsStorageFileProcessingPurposeSubtaskProcessor, calendarIcsStorageFileUnavailableError, calendarServerActions, calendarServerActionsContextFactory, calendarServerActionsFactory, cleanupOldNotificationLoggedEventDaysFactory, cleanupSentNotificationsFactory, compressImageBufferToTargetSize, compressPdfImagesToTargetSize, createFormSpaceFactory, createNotificationBoxFactory, createNotificationBoxInTransactionFactory, createNotificationIdRequiredError, createNotificationSummaryFactory, createNotificationUserFactory, createOrRunUniqueNotificationDocument, createStorageFileFactory, createStorageFileGroupFactory, createStorageFileGroupInTransactionFactory, createStorageFileGroupInputError, createStorageFileSignedUploadUrlFactory, createUserExternalConnectionFactory, deleteAllQueuedStorageFilesFactory, deleteAllUserExternalConnectionsForUserFactory, deleteFormSpaceFactory, deleteStorageFileFactory, downloadMultipleStorageFilesFactory, downloadStorageFileFactory, expandNotificationRecipients, expireAllExpiredFormSpacesFactory, exportMutableNotificationExpediteService, firestoreNotificationSummarySendService, flagStaleCalendarsForSyncFactory, formSpaceAlreadyExistsError, formSpaceFileAccessDeniedError, formSpaceFileNotFoundError, formSpaceFileValidationStorageFileProcessor, formSpaceHasInvalidFilesError, formSpaceNotEditableError, formSpaceNotFoundError, formSpaceNotReopenableError, formSpaceNotSubmittedError, formSpaceProcessingInProgressError, formSpaceRequiredSlotMissingError, formSpaceServerActions, formSpaceServerActionsContextFactory, formSpaceServerActionsFactory, formSpaceStorageFileUploadInitializers, formSpaceSubmissionNotificationTaskHandler, formSpaceSubmissionNotificationTaskHandlerDefaultCleanup, formSpaceTypeMismatchError, formSpaceTypeNotRegisteredError, formSpaceUploadNotAllowedError, formSpaceUploadUserMismatchError, formSpaceValidationPendingError, ignoreSendNotificationTextSendService, initializeAllApplicableNotificationBoxesFactory, initializeAllApplicableNotificationSummariesFactory, initializeAllApplicableStorageFileGroupsFactory, initializeAllStorageFilesFromUploadsFactory, initializeNotificationBoxFactory, initializeNotificationBoxInTransactionFactory, initializeNotificationModelInTransaction, initializeNotificationSummaryFactory, initializeNotificationSummaryInTransactionFactory, initializeStorageFileFromUploadFactory, initializeStorageFileGroupFactory, initializeStorageFileGroupInTransactionFactory, initializeStorageFileModelInTransaction, lockFormSpaceFactory, mailgunCalendarFileAttachmentForNotificationMessage, mailgunNotificationEmailSendService, mailgunNotificationEmailSendServiceHealthCheckService, makeNewNotificationSummaryTemplate, markStorageFileForDeleteTemplate, mergeRefreshedUserExternalConnectionCredentials, notificationBoxDoesNotExist, notificationBoxExclusionTargetInvalidError, notificationBoxExistsForModelError, notificationBoxRecipientDoesNotExistsError, notificationBoxUnregistredModelTypeInitializationError, notificationExpediteServiceInstance, notificationInitServerActions, notificationInitServerActionsFactory, notificationMessageCalendarAttachmentToMailgunFileAttachment, notificationModelAlreadyInitializedError, notificationServerActions, notificationServerActionsContextFactory, notificationServerActionsFactory, notificationTaskService, notificationTaskSubTaskMissingRequiredDataTermination, notificationTaskSubtaskNotificationTaskHandlerFactory, notificationTemplateServiceInstance, notificationUserBlockedFromBeingAddedToRecipientsError, notificationUserHealthCheckFactory, notificationUserHealthCheckProbeThrottledError, notificationUserHealthCheckThrottledError, notificationUserHealthCheckVerifyThrottledError, notificationUserInvalidUidForCreateError, notificationUserLockedConfigFromBeingUpdatedError, processAllQueuedFormSpacesFactory, processAllQueuedStorageFilesFactory, processStorageFileFactory, provideMutableNotificationExpediteService, queryAndFlagStorageFilesForDelete, readMultipleStorageFilesMetadataFactory, readStorageFileMetadataFactory, regenerateAllFlaggedStorageFileGroupsContentFactory, regenerateStorageFileGroupContentFactory, removeFormSpaceFileFactory, reopenFormSpaceFactory, resyncAllNotificationUsersFactory, resyncNotificationUserFactory, rotateCalendarIcsFactory, schedulerSystemStateAccessorFactory, sendNotificationFactory, sendQueuedNotificationsFactory, storageFileAlreadyProcessedError, storageFileCannotBeDeletedYetError, storageFileCreateSignedUploadUrlToolDetailsFactory, storageFileGroupQueuedForInitializationError, storageFileGroupZipStorageFileProcessingPurposeSubtaskProcessor, storageFileInitServerActions, storageFileInitServerActionsFactory, storageFileInitializeFromUploadService, storageFileInitializeFromUploadServiceInitializerResultPermanentFailure, storageFileInitializeFromUploadServiceInitializerResultTransientFailure, storageFileModelAlreadyInitializedError, storageFileNotFlaggedForDeletionError, storageFileNotFlaggedForGroupsSyncError, storageFileProcessToolDetailsFactory, storageFileProcessingNotAllowedForInvalidStateError, storageFileProcessingNotAvailableForTypeError, storageFileProcessingNotQueuedForProcessingError, storageFileProcessingNotificationTaskHandler, storageFileProcessingNotificationTaskHandlerDefaultCleanup, storageFileServerActions, storageFileServerActionsContextFactory, storageFileServerActionsFactory, submitFormSpaceFactory, syncAllFlaggedCalendarsFactory, syncAllFlaggedStorageFilesWithGroupsFactory, syncCalendarFactory, syncStorageFileWithGroupsFactory, systemStatePrivateCollectionReference, systemStatePrivateFirestoreCollection, systemStatePrivateFirestoreCollectionsFactory, systemStatePrivateIdentity, updateFormSpaceFactory, updateNotificationBoxFactory, updateNotificationBoxRecipientExclusionInTransactionFactory, updateNotificationBoxRecipientFactory, updateNotificationBoxRecipientInTransactionFactory, updateNotificationSummaryFactory, updateNotificationUserFactory, updateNotificationUserNotificationBoxRecipientConfig, updateStorageFileFactory, updateStorageFileGroupFactory, uploadedFileDoesNotExistError, uploadedFileInitializationDiscardedError, uploadedFileInitializationFailedError, uploadedFileIsNotAllowedToBeInitializedError, userExternalConnectionAccessor, userExternalConnectionAlreadyExistsError, userExternalConnectionCredentialsExpiredError, userExternalConnectionErrorCodeForOAuthProviderError, userExternalConnectionGrantSummaryFromCredentials, userExternalConnectionModuleConfigFactory, userExternalConnectionOAuthControllerPath, userExternalConnectionOAuthProviderRegistry, userExternalConnectionOAuthProviderRegistryProvider, userExternalConnectionOAuthRedirectUri, userExternalConnectionOAuthRegistryCredentialsRefresher, userExternalConnectionOAuthRoutesForGlobalRouteExclude, userExternalConnectionOAuthServiceConfigFactory, userExternalConnectionOAuthStateForRequest, userExternalConnectionPrivateAccessorFactory, userExternalConnectionPrivateCollectionReference, userExternalConnectionPrivateConverter, userExternalConnectionPrivateFirestoreCollection, userExternalConnectionPrivateIdentity, userExternalConnectionProviderNotAllowedError, userExternalConnectionProviderNotConnectedError, userExternalConnectionReader, userExternalConnectionReaderProvider, userExternalConnectionServerActions, userExternalConnectionServerActionsContextFactory, userExternalConnectionServerFirestoreCollectionsFactory, userExternalConnectionStateCoder, userExternalConnectionStateCoderFactory, writeUserExternalConnectionPairInTransactionFactory };
|