@plyaz/api 1.7.3 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/api/cache/strategies.d.ts.map +1 -1
  2. package/dist/api/client/createApiClient.d.ts.map +1 -1
  3. package/dist/api/client/helpers/interceptors.d.ts +2 -2
  4. package/dist/api/client/helpers/interceptors.d.ts.map +1 -1
  5. package/dist/api/endpoints/index.d.ts +9 -0
  6. package/dist/api/endpoints/index.d.ts.map +1 -1
  7. package/dist/api/endpoints/notification.d.ts +72 -0
  8. package/dist/api/endpoints/notification.d.ts.map +1 -0
  9. package/dist/api/services/index.d.ts +1 -0
  10. package/dist/api/services/index.d.ts.map +1 -1
  11. package/dist/api/services/notification/DELETE/deleteNotification.d.ts +25 -0
  12. package/dist/api/services/notification/DELETE/deleteNotification.d.ts.map +1 -0
  13. package/dist/api/services/notification/DELETE/index.d.ts +12 -0
  14. package/dist/api/services/notification/DELETE/index.d.ts.map +1 -0
  15. package/dist/api/services/notification/DELETE/useDeleteNotification.d.ts +34 -0
  16. package/dist/api/services/notification/DELETE/useDeleteNotification.d.ts.map +1 -0
  17. package/dist/api/services/notification/GET/fetchNotifications.d.ts +26 -0
  18. package/dist/api/services/notification/GET/fetchNotifications.d.ts.map +1 -0
  19. package/dist/api/services/notification/GET/index.d.ts +12 -0
  20. package/dist/api/services/notification/GET/index.d.ts.map +1 -0
  21. package/dist/api/services/notification/GET/useNotifications.d.ts +32 -0
  22. package/dist/api/services/notification/GET/useNotifications.d.ts.map +1 -0
  23. package/dist/api/services/notification/index.d.ts +14 -0
  24. package/dist/api/services/notification/index.d.ts.map +1 -0
  25. package/dist/api/strategies/unified.d.ts.map +1 -1
  26. package/dist/entry-frontend.cjs +196 -23
  27. package/dist/entry-frontend.cjs.map +1 -1
  28. package/dist/entry-frontend.mjs +192 -24
  29. package/dist/entry-frontend.mjs.map +1 -1
  30. package/dist/index.cjs +196 -23
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.mjs +192 -24
  33. package/dist/index.mjs.map +1 -1
  34. package/package.json +2 -2
@@ -12840,10 +12840,17 @@ __name(createStatusCodeLimits, "createStatusCodeLimits");
12840
12840
  var cacheStrategies = {
12841
12841
  /**
12842
12842
  * No caching - always fetch fresh data
12843
- * Use for: Real-time data, sensitive information
12843
+ * Use for: Real-time data, sensitive information, mutations
12844
+ *
12845
+ * IMPORTANT: Explicit ttl/stale of 0 prevents staleTime refetch issues.
12846
+ * The skip:true alone doesn't prevent default staleTime from being applied.
12844
12847
  */
12845
12848
  none: {
12846
- skip: true
12849
+ skip: true,
12850
+ ttl: 0,
12851
+ // No caching
12852
+ stale: 0
12853
+ // No stale refetch (prevents 60s re-trigger issue)
12847
12854
  },
12848
12855
  /**
12849
12856
  * Short-lived cache for frequently changing data
@@ -14224,6 +14231,32 @@ var cdnEndpoints = {
14224
14231
  ...fastlyEndpoints
14225
14232
  };
14226
14233
 
14234
+ // src/api/endpoints/notification.ts
14235
+ var notificationEndpoints = {
14236
+ // ==========================================================================
14237
+ // GET ENDPOINTS
14238
+ // ==========================================================================
14239
+ /**
14240
+ * GET /notifications
14241
+ * List all notifications with optional filters
14242
+ */
14243
+ listNotifications: {
14244
+ url: "/notifications",
14245
+ method: "GET"
14246
+ },
14247
+ // ==========================================================================
14248
+ // DELETE ENDPOINTS
14249
+ // ==========================================================================
14250
+ /**
14251
+ * DELETE /notifications/:id
14252
+ * Delete a notification
14253
+ */
14254
+ deleteNotification: {
14255
+ url: "/notifications/:id",
14256
+ method: "DELETE"
14257
+ }
14258
+ };
14259
+
14227
14260
  // src/api/endpoints/utils.ts
14228
14261
  function getEndpointUrl(name) {
14229
14262
  return endpoints[name].url;
@@ -14408,7 +14441,8 @@ var endpoints = {
14408
14441
  // CDN provider endpoints (Cloudflare, CloudFront, Fastly)
14409
14442
  ...cloudflareEndpoints,
14410
14443
  ...cloudFrontEndpoints,
14411
- ...fastlyEndpoints
14444
+ ...fastlyEndpoints,
14445
+ ...notificationEndpoints
14412
14446
  };
14413
14447
  var isSlowConnection = isSlowConnection$1;
14414
14448
  function isNetworkAPISupported() {
@@ -17228,18 +17262,19 @@ var unifiedStrategies = {
17228
17262
  },
17229
17263
  /**
17230
17264
  * Mutation: POST/PUT/DELETE operations (uploads, creates, updates, deletes)
17231
- * - NO caching (mutations should never be cached)
17232
- * - Standard retry for actual failures
17265
+ * - NO caching (cache: 'none' sets skip:true, ttl:0, stale:0 - prevents staleTime refetch!)
17266
+ * - Conservative retry (allows retry on server errors 500/502/503/504)
17233
17267
  * - NO polling (critical! - polling causes duplicate mutations)
17234
17268
  * - Realtime performance (immediate response)
17235
17269
  *
17236
- * Use this for any data-modifying operation to prevent duplicate requests.
17270
+ * Note: The retry is safe because it only triggers on actual errors (5xx).
17271
+ * The staleTime refetch issue was fixed by setting stale:0 in cache:'none'.
17237
17272
  */
17238
17273
  mutation: {
17239
17274
  cache: "none",
17240
- // Never cache mutations
17241
- retry: "none",
17242
- // No retry - mutations should not auto-retry to prevent duplicates
17275
+ // Never cache mutations (ttl:0, stale:0 prevents refetch)
17276
+ retry: "conservative",
17277
+ // Retry on server errors (500/502/503/504) only
17243
17278
  // NO polling - this is critical! Polling would re-execute the mutation
17244
17279
  performance: "realtime"
17245
17280
  // Immediate response, no batching
@@ -21523,10 +21558,28 @@ function mergeHeadersCaseInsensitive(...headerSets) {
21523
21558
  return result;
21524
21559
  }
21525
21560
  __name(mergeHeadersCaseInsensitive, "mergeHeadersCaseInsensitive");
21526
- function createOnRequestHandler(handlers, enrichedHeadersConfig, encryptionConfig, configStrategy) {
21561
+ function createOnRequestHandler(options) {
21562
+ const {
21563
+ handlers,
21564
+ enrichedHeadersConfig,
21565
+ encryptionConfig,
21566
+ configStrategy,
21567
+ getResolvedFetchffConfig
21568
+ } = options;
21527
21569
  return async (config) => {
21528
21570
  const performanceFactory = getPerformanceEventFactory();
21529
21571
  const requestId = generateRequestId();
21572
+ if (getResolvedFetchffConfig) {
21573
+ const resolvedConfig = getResolvedFetchffConfig();
21574
+ config = {
21575
+ ...config,
21576
+ ...resolvedConfig,
21577
+ headers: {
21578
+ ...resolvedConfig.headers,
21579
+ ...config.headers
21580
+ }
21581
+ };
21582
+ }
21530
21583
  startRequestTracking(requestId);
21531
21584
  UnifiedDebugger.getInstance().trackConfigChange(
21532
21585
  { headers: config.headers },
@@ -21695,7 +21748,8 @@ function setupUnifiedHandlers(params) {
21695
21748
  enrichedHeadersConfig,
21696
21749
  globalConfig,
21697
21750
  clientOptions,
21698
- clearTemporaryOverrides: clearTemporaryOverrides2
21751
+ clearTemporaryOverrides: clearTemporaryOverrides2,
21752
+ getResolvedFetchffConfig
21699
21753
  } = params;
21700
21754
  const mergedOnRequest = mergeHandlers(
21701
21755
  globalConfig?.onRequest,
@@ -21721,12 +21775,13 @@ function setupUnifiedHandlers(params) {
21721
21775
  const encryptionConfig = mergedConfig.encryption ?? globalConfig?.encryption ?? clientOptions?.encryption;
21722
21776
  const configStrategy = mergedConfig.configOverride?.strategy ?? clientOptions?.configOverride?.strategy ?? globalConfig?.configOverride?.strategy ?? "merge";
21723
21777
  return {
21724
- onRequest: createOnRequestHandler(
21725
- mergedOnRequest,
21778
+ onRequest: createOnRequestHandler({
21779
+ handlers: mergedOnRequest,
21726
21780
  enrichedHeadersConfig,
21727
21781
  encryptionConfig,
21728
- configStrategy
21729
- ),
21782
+ configStrategy,
21783
+ getResolvedFetchffConfig
21784
+ }),
21730
21785
  onResponse: createOnResponseHandler(
21731
21786
  mergedOnResponse,
21732
21787
  clearTemporaryOverrides2,
@@ -22081,15 +22136,21 @@ function createUpdateConfigMethod(initialConfigState, eventManager2, client, set
22081
22136
  const validation = validateConfigUpdate(updates, updateOptions);
22082
22137
  if (!validation.valid) {
22083
22138
  handleInvalidConfigUpdate(validation, updates, updateOptions);
22084
- return;
22139
+ return { fetchffConfig: {}, applied: false };
22085
22140
  }
22086
22141
  const result = applyConfigUpdate(configState, updates, updateOptions);
22087
22142
  configState = result.state;
22088
22143
  setConfigState(configState);
22089
22144
  const newConfig = getEffectiveConfig(configState);
22145
+ let resolvedUpdates = { ...updates };
22146
+ if (updates.unifiedStrategy) {
22147
+ resolvedUpdates = applyUnifiedStrategyToConfig(resolvedUpdates, updates.unifiedStrategy);
22148
+ }
22149
+ resolvedUpdates = applyIndividualStrategies(resolvedUpdates, updates);
22150
+ const fetchffConfig = toFetchffConfig(resolvedUpdates);
22090
22151
  if (client && "__config" in client) {
22091
22152
  const fetchffClient = client;
22092
- Object.assign(fetchffClient["__config"], updates);
22153
+ Object.assign(fetchffClient["__config"], fetchffConfig);
22093
22154
  }
22094
22155
  eventManager2.updateConfig(updates, updateOptions ?? {});
22095
22156
  const afterEventState = captureEventState(eventManager2);
@@ -22103,11 +22164,13 @@ function createUpdateConfigMethod(initialConfigState, eventManager2, client, set
22103
22164
  validation,
22104
22165
  startTime
22105
22166
  });
22167
+ return { fetchffConfig, applied: true };
22106
22168
  };
22107
22169
  }
22108
22170
  __name(createUpdateConfigMethod, "createUpdateConfigMethod");
22109
- function createFetchffClient(fetchffConfig, effectiveConfig, options, unifiedHandlers) {
22110
- return createApiFetcher({
22171
+ function createFetchffClient(params) {
22172
+ const { fetchffConfig, effectiveConfig, options, unifiedHandlers, getResolvedFetchffConfig } = params;
22173
+ const rawClient = createApiFetcher({
22111
22174
  ...fetchffConfig,
22112
22175
  baseURL: effectiveConfig.baseURL ?? options.apiUrl,
22113
22176
  endpoints,
@@ -22116,6 +22179,26 @@ function createFetchffClient(fetchffConfig, effectiveConfig, options, unifiedHan
22116
22179
  onError: unifiedHandlers.onError,
22117
22180
  onRetry: unifiedHandlers.onRetry
22118
22181
  });
22182
+ const endpointMethodNames = new Set(Object.keys(endpoints));
22183
+ return new Proxy(rawClient, {
22184
+ get(target, prop, receiver) {
22185
+ const value = Reflect.get(target, prop, receiver);
22186
+ if (typeof value !== "function" || typeof prop !== "string") {
22187
+ return value;
22188
+ }
22189
+ if (!endpointMethodNames.has(prop)) {
22190
+ return value;
22191
+ }
22192
+ return /* @__PURE__ */ __name(function wrappedEndpointMethod(config) {
22193
+ const resolvedConfig = getResolvedFetchffConfig();
22194
+ const mergedConfig = {
22195
+ ...resolvedConfig,
22196
+ ...config
22197
+ };
22198
+ return value.call(this, mergedConfig);
22199
+ }, "wrappedEndpointMethod");
22200
+ }
22201
+ });
22119
22202
  }
22120
22203
  __name(createFetchffClient, "createFetchffClient");
22121
22204
  function enhanceClientWithMethods(params) {
@@ -22200,14 +22283,33 @@ async function createApiClient(options = {}) {
22200
22283
  const effectiveConfig = getEffectiveConfig(stateContainer.current);
22201
22284
  const fetchffConfig = toFetchffConfig(effectiveConfig);
22202
22285
  let clearTemporaryOverridesFn;
22286
+ const getResolvedFetchffConfig = /* @__PURE__ */ __name(() => {
22287
+ const currentConfig = getEffectiveConfig(stateContainer.current);
22288
+ let resolvedConfig2 = { ...currentConfig };
22289
+ if (currentConfig.unifiedStrategy) {
22290
+ resolvedConfig2 = applyUnifiedStrategyToConfig(
22291
+ resolvedConfig2,
22292
+ currentConfig.unifiedStrategy
22293
+ );
22294
+ }
22295
+ resolvedConfig2 = applyIndividualStrategies(resolvedConfig2, currentConfig);
22296
+ return toFetchffConfig(resolvedConfig2);
22297
+ }, "getResolvedFetchffConfig");
22203
22298
  const unifiedHandlers = setupUnifiedHandlers({
22204
22299
  mergedConfig: effectiveConfig,
22205
22300
  enrichedHeadersConfig: options.enrichedHeaders,
22206
22301
  globalConfig,
22207
22302
  clientOptions: options,
22208
- clearTemporaryOverrides: /* @__PURE__ */ __name(() => clearTemporaryOverridesFn?.(), "clearTemporaryOverrides")
22303
+ clearTemporaryOverrides: /* @__PURE__ */ __name(() => clearTemporaryOverridesFn?.(), "clearTemporaryOverrides"),
22304
+ getResolvedFetchffConfig
22305
+ });
22306
+ const client = createFetchffClient({
22307
+ fetchffConfig,
22308
+ effectiveConfig,
22309
+ options,
22310
+ unifiedHandlers,
22311
+ getResolvedFetchffConfig
22209
22312
  });
22210
- const client = createFetchffClient(fetchffConfig, effectiveConfig, options, unifiedHandlers);
22211
22313
  const clientWithEvents = setupClientEvents(client, globalConfig, options);
22212
22314
  const { eventManager: eventManager2 } = clientWithEvents;
22213
22315
  Object.defineProperty(clientWithEvents, "then", {
@@ -23760,8 +23862,8 @@ async function uploadFile(data, options) {
23760
23862
  const client = options?.apiClient ?? getDefaultApiClient();
23761
23863
  const serviceDefaults = {
23762
23864
  unifiedStrategy: "mutation",
23763
- timeout: 6e4
23764
- // 60 seconds for uploads
23865
+ timeout: 12e4
23866
+ // 2 minutes for large uploads
23765
23867
  };
23766
23868
  const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
23767
23869
  const updateOptions = {
@@ -23895,6 +23997,72 @@ function useDeleteFile(serviceOptions, mutationOptions) {
23895
23997
  })(serviceOptions, mutationOptions);
23896
23998
  }
23897
23999
  __name(useDeleteFile, "useDeleteFile");
24000
+
24001
+ // src/api/services/notification/GET/fetchNotifications.ts
24002
+ async function fetchNotifications(filters, options) {
24003
+ const client = options?.apiClient ?? getDefaultApiClient();
24004
+ const serviceDefaults = { unifiedStrategy: "interactive" };
24005
+ const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
24006
+ const updateOptions = {
24007
+ strategy: "temporary",
24008
+ ...options?.updateConfigOptions
24009
+ };
24010
+ if (shouldApplyConfig(mergedConfig, updateOptions)) {
24011
+ client.updateConfig(mergedConfig, updateOptions);
24012
+ }
24013
+ return client.listNotifications({
24014
+ params: filters
24015
+ });
24016
+ }
24017
+ __name(fetchNotifications, "fetchNotifications");
24018
+ function useNotifications(queryKey, filters, serviceOptions, queryOptions) {
24019
+ return createApiQuery(fetchNotifications, {
24020
+ apiConfig: {
24021
+ unifiedStrategy: "interactive"
24022
+ },
24023
+ staleTime: TIME_CONSTANTS.TEN_MINUTES
24024
+ })(queryKey, filters, serviceOptions, queryOptions);
24025
+ }
24026
+ __name(useNotifications, "useNotifications");
24027
+
24028
+ // src/api/services/notification/DELETE/deleteNotification.ts
24029
+ async function deleteNotification(id, options) {
24030
+ const client = options?.apiClient ?? getDefaultApiClient();
24031
+ const serviceDefaults = {
24032
+ unifiedStrategy: "mutation"
24033
+ };
24034
+ const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
24035
+ const updateOptions = {
24036
+ strategy: "temporary",
24037
+ ...options?.updateConfigOptions
24038
+ };
24039
+ if (shouldApplyConfig(mergedConfig, updateOptions)) {
24040
+ client.updateConfig(mergedConfig, updateOptions);
24041
+ }
24042
+ const pathParams = { id };
24043
+ return client.deleteNotification({
24044
+ urlPathParams: pathParams
24045
+ });
24046
+ }
24047
+ __name(deleteNotification, "deleteNotification");
24048
+ function useDeleteNotification(serviceOptions, mutationOptions) {
24049
+ const queryClient = useQueryClient();
24050
+ return createApiMutation(
24051
+ deleteNotification,
24052
+ {
24053
+ onSuccess: /* @__PURE__ */ __name((_data, id) => {
24054
+ void queryClient.invalidateQueries({
24055
+ queryKey: ["notifications"]
24056
+ });
24057
+ queryClient.removeQueries({
24058
+ queryKey: ["notification", id]
24059
+ });
24060
+ }, "onSuccess"),
24061
+ ...mutationOptions
24062
+ }
24063
+ )(serviceOptions, mutationOptions);
24064
+ }
24065
+ __name(useDeleteNotification, "useDeleteNotification");
23898
24066
  function useApiConfigConflicts(client, options = {}) {
23899
24067
  const [conflicts, setConflicts] = useState([]);
23900
24068
  const [isChecking, setIsChecking] = useState(false);
@@ -26314,6 +26482,6 @@ function ApiProvider({
26314
26482
  }
26315
26483
  __name(ApiProvider, "ApiProvider");
26316
26484
 
26317
- export { ALL_EVENTS, ApiInitializationError, ApiInitializationLoading, ApiPackageError, ApiProvider, CACHE_EVENTS2 as CACHE_EVENTS, CLIENT_EVENTS2 as CLIENT_EVENTS, CONFIG_EVENTS2 as CONFIG_EVENTS, ClientEventManager, ConfigBuilder, DEBUG_EVENTS2 as DEBUG_EVENTS, ERROR_EVENTS2 as ERROR_EVENTS, EVENT_NAMESPACES2 as EVENT_NAMESPACES, EVENT_SCOPES, EVENT_SCOPES_WITH_TEMPORARY2 as EVENT_SCOPES_WITH_TEMPORARY, Environment, EventHelpers, EventManager, HANDLER_SCOPES, HEADER_EVENTS2 as HEADER_EVENTS, HeaderBuilder, IntervalManager, MEDIA_EXTENSIONS, MEDIA_MIME_PREFIXES, NETWORK_EVENTS2 as NETWORK_EVENTS, NetworkConfigurationManager, NetworkPresetNames, PERFORMANCE_EVENTS2 as PERFORMANCE_EVENTS, RequestTracker, UnifiedDebugger, abortAllRequests, abortByPattern, abortRequest, abortSearchRequests, abortUploadRequests, addClientHintsToResponse, addInterval, addTime, analyzeComplianceIssues, analyzeConfigImpact, analyzeConflictPatterns, analyzeEventSystemIssues, analyzeHistoryPatterns, analyzePerformanceIssues, applyCacheStrategyConfig, applyConfigOverride, applyConfigPreset, applyConfigUpdate, applyCustomQualityPresetStrategies, applyHeaderPresets, applyIndividualStrategies, applyPerformancePresetConfig, applyPollingStrategy, applyPollingStrategyConfig, applyRetryStrategy, applyRetryStrategyConfig, applyRevalidationStrategy, applyTemporaryNetworkOverride, applyUnifiedStrategy, applyUnifiedStrategyToConfig, arrayOf, average, base64ToBytes, buildCacheKey, buildEndpointUrl, buildFullUrl, buildUrl, bulkValidateInfobipEmails, bytesToBase64, cacheKeyPatterns, cacheStrategies, calculateCacheDuration, calculatePerformanceImpact, calculatePollingDuration, calculateRequestMetrics, campaignEndpoints, canPerformHeavyOperation, cdnEndpoints, checkFeatureFlagEnabled, checkOverrideTriggers, clamp, clampedPercentage, clearErrorHandlers, clearNetworkDebugData, clearTemporaryOverrides, cloneConfig, cloudFrontCreateInvalidation, cloudFrontEndpoints, cloudflareEndpoints, cloudflarePurgeCache, compactHistory, configConflictDetector, configureForEnvironment, containsAny, convertEndpointsToFetchff, createAbortError, createAdaptiveResponse, createApiClient, createApiMutation, createApiQuery, createCachePattern, createCacheStrategy, createCampaign, createComplianceReport, createConditionalInterval, createConditionalPolling, createConfigBuilder, createConfigHistoryEntry, createConfigState, createConflict, createCustomPreset, createCustomUnifiedStrategy, createDate, createDebouncedAbort, createDebugReport, createDecryptionInterceptor, createDelay, createEncryptionInterceptor, createEncryptionInterceptors, createEventEmitter, createFeatureFlag, createHistoryEntry, createHistorySummary, createLimitedInterval, createManagedInterval, createPerformanceAnalysis, createPerformanceBenchmark, createPollingStrategy, createPreservedConfig, createProgressivePolling, createRetryConfig, createRetryStrategy, createRevalidationKey, createRevalidationStrategy, createRouteGuard, createRouteScope, createScopedAbort, createStatusCodeLimits, createThrottledAbort, createTypedSubscription, createVisibilityAwarePolling, dateDiff, debounce, decrypt, deepMerge, deleteCache, deleteCampaign, deleteFeatureFlag, deleteFile, detectConfigConflicts, detectConflicts, detectPlatform, determinePrecedenceReason, disableNetworkConfigDebug, downloadFile, enableNetworkConfigDebug, encrypt, endOfDay, endpointCacheKey, endpointCachePattern, endpointCachePatterns, endpoints, evaluateAllFeatureFlags, evaluateFeatureFlag, eventManager, exportKeyToBase64, extendPresets as extendRevalidationPresets, extractFields, extractUrlParams, fastlyEndpoints, fastlyPurgeUrl, featureFlagEndpoints, fetchCampaign, fetchCampaignParticipants, fetchCampaignStats, fetchCampaigns, fetchFeatureFlagHealth, fetchFeatureFlagRules, fetchInfobipEmailLogs, fetchInfobipEmailReports, fetchInfobipScheduledEmailStatuses, fetchInfobipScheduledEmails, fetchInfobipValidations, filesEndpoints, filterHistory, filterObject, findEndpointsByPattern, findMatchingPaths, flattenObject, formatDuration, formatReportForConsole, formatTimeForInterval, fromFetchffConfig, fromISOString, fromUnixTimestamp, generateComprehensiveReport, generateDocument, generateIV, generateIssueBreakdown, generateRandomKey, generateRecommendations, generateUUID, getActiveOverrideKeys, getAdaptiveApiConfig, getAdaptiveBatchSize, getAdaptiveCacheDuration, getAdaptiveConfig, getAdaptivePageSize, getAdaptiveTimeout, getAllEndpointUrls, getAllFieldPaths, getAllMediaExtensions, getAnalysisResult, getAppVersion, getAuthenticationType, getCache, getCacheAffectingHeaders, getCacheStrategy, getClientHintHeaders, getClientHintHeaders as getClientHintHeadersNetwork, getConfigHierarchy, getConnection, getConnectionType, getConsole, getCrypto, getDefaultApiClient, getDeviceId, getDeviceInfo, getDocument, getEffectiveConfig, getEffectiveConnectionType, getEndpointConfig, getEndpointMetadata, getEndpointParams, getEndpointUrl, getEndpointsByMethod, getEnhancedClientHints, getEntries, getEnv, getEnvironmentInfo, getEnvironmentName, getErrorHandlers, getEventManager, getExtendedEnvironmentInfo, getFieldValue, getFile, getFileExtension, getFrameworkAdaptiveBatchSize, getFrameworkAdaptiveTimeout, getGlobal, getGlobalConfig, getHeaderFingerprint, getHeaderSummary, getISOWeek, getIntervalBoundaries, getIntervalDifference, getIntervalEnd, getIntervalStart, getJSONSize, getKeys, getLocalStorage, getLocation, getMatchingPresets, getNavigator, getNetworkConfigFromHeaders, getNetworkConfigFromHeaders as getNetworkConfigFromHeadersNetwork, getNetworkDebugStats, getNetworkEventStats, getNetworkInfo, getNetworkInfoFromHeaders, getNetworkInfoFromHeaders as getNetworkInfoFromHeadersNetwork, getNetworkInfoFromRequest, getNetworkOptimizedConfig, getNetworkPreset, getNetworkQuality, getNetworkQualityFromHeaders, getNetworkQualityFromHeaders as getNetworkQualityFromHeadersNetwork, getNetworkQualityScore, getNetworkQualityWithThresholds, getNetworkRTT, getNetworkSpeed, getNonCacheAffectingHeaders, getOptimizedNetworkConfig, getPresetForNetworkInfo, getPresetForQuality, getPresetNames, getProcess, getQuarter, getQueryClient, getRelativeTime, getRetryStrategy, getPreset as getRevalidationPreset, getPresets as getRevalidationPresets, getRevalidationStrategy, getRuntimeEnvironment, getSSRSafeConfig, getSSRSafePollingConfig, getSessionStorage, getSignedUrl, getTimeComponents, getUnifiedDebugger, getUnifiedStrategy, getUnifiedStrategyNames, getUnixTimestamp, getUserAgent, getValues, getWindow, groupBy, handleArrayMerge, handleObjectMerge, hasAnyExtension, hasAuthentication, hasEncryptableFields, hasEndpoint, hasGlobal, hasIndexedDB, hasLocalStorage, hasMatchingFields, hasNavigator, hasNetworkInfo as hasNetworkInfoNextjs, hasPathParams, hasPreset, hasProperty, hasSessionStorage, hasWebGL, hasWebPSupport, headerPresets, headers, importKey, inBrowser, inRange, inServer, infobipEmailEndpoints, infobipEndpoints, invalidationScenarios, inverseLerp, isAbortError, isArray, isBoolean, isBrowser, isBun, isCI, isCacheValid, isCellularConnection, isCryptoAvailable, isDataFresh, isDataSaverEnabled, isDataSaverEnabledFromHeaders, isDebug, isDeno, isDevelopment, isDocumentVisible, isElectron, isEmpty, isEmptyObject, isEncryptedMetadata, isError, isFunction, isFuture, isInIframe, isInRange, isInteger, isMergeableObject, isMobile, isNetworkAPISupported, isNode, isNonEmptyArray, isNonEmptyObject, isNonEmptyString2 as isNonEmptyString, isNonNegativeNumber, isNotNullish, isNullish, isNumber, isObject, isOffline, isOneOfIgnoreCase, isOnline, isPageFocused, isPast, isPlainObject, isPollingActive, isPositiveNumber, isProduction, isPromise, isReactNative, isRevalidationSupported, isSSR, isSameDay, isSameInterval, isServer, isSlowConnection, isStaging, isString, isTest, isToday, isTouchDevice, isUnifiedStrategyName, isValidDate, isValidEnumValue, isValidFieldPath, isValidJSON, isValidNumber2 as isValidNumber, isValidPollingConfig, isValidStrategyName as isValidRevalidationStrategyName, isWebWorker, isWifiConnection, isWildcard, isWithinDedupeWindow, joinCampaign, jsonClone, jsonEquals, keyBy, leaveCampaign, lerp, logNetworkConfigReport, mapKeys, mapObject, mapRange, matchFieldPath, matchesAny, max, median, mergeCacheStrategies, mergeConfigs, mergeConflicts, mergeHeaders, mergePollingConfigs, mergePresets, mergeRetryStrategies, mergeRevalidationStrategies, mergeUnifiedStrategy, min, msToSeconds, mutate2 as mutate, networkConfigDebugger, networkConfigManager, networkPresets, networkStatus, normalizeHeaders2 as normalizeHeaders, now, nowInSeconds, omit, onOffline, onOnline, onceErrorHandler, oneOf, parseAndValidateNumber, parseFieldPath, percentage, pick, pollingEndpoints, pollingStrategies, prettyStringify, processHeaders2 as processHeaders, raceRequests, randomBetween, randomInt, refreshFeatureFlagCache, registerErrorHandler, registerErrorHandlers, removeCircularReferences, removeEmpty, removeFeatureFlagOverride, removeNullish, removeSensitiveHeaders, removeUndefined, requestTracker, requestWithTimeout, rescheduleInfobipEmails, resetGlobalConfig, resetQueryClient, resetPresets as resetRevalidationPresets, resolveConflict, retryConditions, retryStrategies, genericPresets as revalidationPresets, revalidationStrategies, round, safeParseJSON, safeStringify, sanitizeHeaders, secondsToMs, sendInfobipAdvancedEmail, sendInfobipEmail, sequentialRequests, setCache, setConfigWarnings, setDefaultApiClient, setErrorHandlers, setFeatureFlagOverride, setFieldValue, setGlobalConfig, setupClientEvents, setupNetworkMonitoring, setupRouteChangeCleanup, setupTemporaryOverride, shouldApplyConfig, shouldAutoRefresh, shouldPrefetch, shouldServeHighQuality, shouldUseAggressiveCaching, sleep, sortIssuesByPriority, startNetworkEventMonitoring, startOfDay, startRequestTracking, subscribe, subscribeMultiple, subscribeOnce, subscribeWithTimeout, sum, supportsBroadcastChannel, supportsFetch, supportsGeolocation, supportsIntersectionObserver, supportsLocalStorage, supportsNotifications, supportsPushNotifications, supportsRequestIdleCallback, supportsServiceWorker, supportsSessionStorage, supportsWebSocket, throttle, timeAgo, toFetchffConfig, toFetchffRevalidationConfig, toISOString, trackConfig, trackDirectCacheConfig, trackNetworkOverride, trackSpreadProperties, trackableSpread, transformFields, truncateJSON, unifiedStrategies, unregisterErrorHandlers, updateCampaign, updateFeatureFlag, updateGlobalConfig, updateInfobipScheduledEmailStatuses, uploadFile, uploadFileForScanning, uploadFiles, useAbortableRequest, useApiConfigConflicts, useApiDebugInfo, useApiMonitor, useApiNetworkQuality, useCampaign, useCampaignParticipants, useCampaignStats, useCampaigns, useCheckFeatureFlagEnabled, useConditionalSubscription, useCreateCampaign, useCreateFeatureFlag, useDebouncedSubscription, useDeleteCampaign, useDeleteFeatureFlag, useDeleteFile, useDownloadFile, useEvaluateAllFeatureFlags, useGenerateDocument, useGetFile, useGetSignedUrl, useJoinCampaign, useLeaveCampaign, useMultipleSubscriptions, useOptimisticUpdate, useRealTimeData, useRemoveFeatureFlagOverride, useRequestCleanup, useRequestGroup, useRouteAwareRequest, useSubscription, useSubscriptionState, useUpdateCampaign, useUpdateFeatureFlag, useUploadFile, useUploadFiles, validateConfigUpdate, validateEncryptionConfig, validateHeaders, validateInfobipEmail, validatePathParams, validatePreset, virusTotalEndpoints, waitForOnline, withNetworkDetection, withNetworkDetection2 as withNetworkDetectionNextjs, withTimeout };
26485
+ export { ALL_EVENTS, ApiInitializationError, ApiInitializationLoading, ApiPackageError, ApiProvider, CACHE_EVENTS2 as CACHE_EVENTS, CLIENT_EVENTS2 as CLIENT_EVENTS, CONFIG_EVENTS2 as CONFIG_EVENTS, ClientEventManager, ConfigBuilder, DEBUG_EVENTS2 as DEBUG_EVENTS, ERROR_EVENTS2 as ERROR_EVENTS, EVENT_NAMESPACES2 as EVENT_NAMESPACES, EVENT_SCOPES, EVENT_SCOPES_WITH_TEMPORARY2 as EVENT_SCOPES_WITH_TEMPORARY, Environment, EventHelpers, EventManager, HANDLER_SCOPES, HEADER_EVENTS2 as HEADER_EVENTS, HeaderBuilder, IntervalManager, MEDIA_EXTENSIONS, MEDIA_MIME_PREFIXES, NETWORK_EVENTS2 as NETWORK_EVENTS, NetworkConfigurationManager, NetworkPresetNames, PERFORMANCE_EVENTS2 as PERFORMANCE_EVENTS, RequestTracker, UnifiedDebugger, abortAllRequests, abortByPattern, abortRequest, abortSearchRequests, abortUploadRequests, addClientHintsToResponse, addInterval, addTime, analyzeComplianceIssues, analyzeConfigImpact, analyzeConflictPatterns, analyzeEventSystemIssues, analyzeHistoryPatterns, analyzePerformanceIssues, applyCacheStrategyConfig, applyConfigOverride, applyConfigPreset, applyConfigUpdate, applyCustomQualityPresetStrategies, applyHeaderPresets, applyIndividualStrategies, applyPerformancePresetConfig, applyPollingStrategy, applyPollingStrategyConfig, applyRetryStrategy, applyRetryStrategyConfig, applyRevalidationStrategy, applyTemporaryNetworkOverride, applyUnifiedStrategy, applyUnifiedStrategyToConfig, arrayOf, average, base64ToBytes, buildCacheKey, buildEndpointUrl, buildFullUrl, buildUrl, bulkValidateInfobipEmails, bytesToBase64, cacheKeyPatterns, cacheStrategies, calculateCacheDuration, calculatePerformanceImpact, calculatePollingDuration, calculateRequestMetrics, campaignEndpoints, canPerformHeavyOperation, cdnEndpoints, checkFeatureFlagEnabled, checkOverrideTriggers, clamp, clampedPercentage, clearErrorHandlers, clearNetworkDebugData, clearTemporaryOverrides, cloneConfig, cloudFrontCreateInvalidation, cloudFrontEndpoints, cloudflareEndpoints, cloudflarePurgeCache, compactHistory, configConflictDetector, configureForEnvironment, containsAny, convertEndpointsToFetchff, createAbortError, createAdaptiveResponse, createApiClient, createApiMutation, createApiQuery, createCachePattern, createCacheStrategy, createCampaign, createComplianceReport, createConditionalInterval, createConditionalPolling, createConfigBuilder, createConfigHistoryEntry, createConfigState, createConflict, createCustomPreset, createCustomUnifiedStrategy, createDate, createDebouncedAbort, createDebugReport, createDecryptionInterceptor, createDelay, createEncryptionInterceptor, createEncryptionInterceptors, createEventEmitter, createFeatureFlag, createHistoryEntry, createHistorySummary, createLimitedInterval, createManagedInterval, createPerformanceAnalysis, createPerformanceBenchmark, createPollingStrategy, createPreservedConfig, createProgressivePolling, createRetryConfig, createRetryStrategy, createRevalidationKey, createRevalidationStrategy, createRouteGuard, createRouteScope, createScopedAbort, createStatusCodeLimits, createThrottledAbort, createTypedSubscription, createVisibilityAwarePolling, dateDiff, debounce, decrypt, deepMerge, deleteCache, deleteCampaign, deleteFeatureFlag, deleteFile, deleteNotification, detectConfigConflicts, detectConflicts, detectPlatform, determinePrecedenceReason, disableNetworkConfigDebug, downloadFile, enableNetworkConfigDebug, encrypt, endOfDay, endpointCacheKey, endpointCachePattern, endpointCachePatterns, endpoints, evaluateAllFeatureFlags, evaluateFeatureFlag, eventManager, exportKeyToBase64, extendPresets as extendRevalidationPresets, extractFields, extractUrlParams, fastlyEndpoints, fastlyPurgeUrl, featureFlagEndpoints, fetchCampaign, fetchCampaignParticipants, fetchCampaignStats, fetchCampaigns, fetchFeatureFlagHealth, fetchFeatureFlagRules, fetchInfobipEmailLogs, fetchInfobipEmailReports, fetchInfobipScheduledEmailStatuses, fetchInfobipScheduledEmails, fetchInfobipValidations, fetchNotifications, filesEndpoints, filterHistory, filterObject, findEndpointsByPattern, findMatchingPaths, flattenObject, formatDuration, formatReportForConsole, formatTimeForInterval, fromFetchffConfig, fromISOString, fromUnixTimestamp, generateComprehensiveReport, generateDocument, generateIV, generateIssueBreakdown, generateRandomKey, generateRecommendations, generateUUID, getActiveOverrideKeys, getAdaptiveApiConfig, getAdaptiveBatchSize, getAdaptiveCacheDuration, getAdaptiveConfig, getAdaptivePageSize, getAdaptiveTimeout, getAllEndpointUrls, getAllFieldPaths, getAllMediaExtensions, getAnalysisResult, getAppVersion, getAuthenticationType, getCache, getCacheAffectingHeaders, getCacheStrategy, getClientHintHeaders, getClientHintHeaders as getClientHintHeadersNetwork, getConfigHierarchy, getConnection, getConnectionType, getConsole, getCrypto, getDefaultApiClient, getDeviceId, getDeviceInfo, getDocument, getEffectiveConfig, getEffectiveConnectionType, getEndpointConfig, getEndpointMetadata, getEndpointParams, getEndpointUrl, getEndpointsByMethod, getEnhancedClientHints, getEntries, getEnv, getEnvironmentInfo, getEnvironmentName, getErrorHandlers, getEventManager, getExtendedEnvironmentInfo, getFieldValue, getFile, getFileExtension, getFrameworkAdaptiveBatchSize, getFrameworkAdaptiveTimeout, getGlobal, getGlobalConfig, getHeaderFingerprint, getHeaderSummary, getISOWeek, getIntervalBoundaries, getIntervalDifference, getIntervalEnd, getIntervalStart, getJSONSize, getKeys, getLocalStorage, getLocation, getMatchingPresets, getNavigator, getNetworkConfigFromHeaders, getNetworkConfigFromHeaders as getNetworkConfigFromHeadersNetwork, getNetworkDebugStats, getNetworkEventStats, getNetworkInfo, getNetworkInfoFromHeaders, getNetworkInfoFromHeaders as getNetworkInfoFromHeadersNetwork, getNetworkInfoFromRequest, getNetworkOptimizedConfig, getNetworkPreset, getNetworkQuality, getNetworkQualityFromHeaders, getNetworkQualityFromHeaders as getNetworkQualityFromHeadersNetwork, getNetworkQualityScore, getNetworkQualityWithThresholds, getNetworkRTT, getNetworkSpeed, getNonCacheAffectingHeaders, getOptimizedNetworkConfig, getPresetForNetworkInfo, getPresetForQuality, getPresetNames, getProcess, getQuarter, getQueryClient, getRelativeTime, getRetryStrategy, getPreset as getRevalidationPreset, getPresets as getRevalidationPresets, getRevalidationStrategy, getRuntimeEnvironment, getSSRSafeConfig, getSSRSafePollingConfig, getSessionStorage, getSignedUrl, getTimeComponents, getUnifiedDebugger, getUnifiedStrategy, getUnifiedStrategyNames, getUnixTimestamp, getUserAgent, getValues, getWindow, groupBy, handleArrayMerge, handleObjectMerge, hasAnyExtension, hasAuthentication, hasEncryptableFields, hasEndpoint, hasGlobal, hasIndexedDB, hasLocalStorage, hasMatchingFields, hasNavigator, hasNetworkInfo as hasNetworkInfoNextjs, hasPathParams, hasPreset, hasProperty, hasSessionStorage, hasWebGL, hasWebPSupport, headerPresets, headers, importKey, inBrowser, inRange, inServer, infobipEmailEndpoints, infobipEndpoints, invalidationScenarios, inverseLerp, isAbortError, isArray, isBoolean, isBrowser, isBun, isCI, isCacheValid, isCellularConnection, isCryptoAvailable, isDataFresh, isDataSaverEnabled, isDataSaverEnabledFromHeaders, isDebug, isDeno, isDevelopment, isDocumentVisible, isElectron, isEmpty, isEmptyObject, isEncryptedMetadata, isError, isFunction, isFuture, isInIframe, isInRange, isInteger, isMergeableObject, isMobile, isNetworkAPISupported, isNode, isNonEmptyArray, isNonEmptyObject, isNonEmptyString2 as isNonEmptyString, isNonNegativeNumber, isNotNullish, isNullish, isNumber, isObject, isOffline, isOneOfIgnoreCase, isOnline, isPageFocused, isPast, isPlainObject, isPollingActive, isPositiveNumber, isProduction, isPromise, isReactNative, isRevalidationSupported, isSSR, isSameDay, isSameInterval, isServer, isSlowConnection, isStaging, isString, isTest, isToday, isTouchDevice, isUnifiedStrategyName, isValidDate, isValidEnumValue, isValidFieldPath, isValidJSON, isValidNumber2 as isValidNumber, isValidPollingConfig, isValidStrategyName as isValidRevalidationStrategyName, isWebWorker, isWifiConnection, isWildcard, isWithinDedupeWindow, joinCampaign, jsonClone, jsonEquals, keyBy, leaveCampaign, lerp, logNetworkConfigReport, mapKeys, mapObject, mapRange, matchFieldPath, matchesAny, max, median, mergeCacheStrategies, mergeConfigs, mergeConflicts, mergeHeaders, mergePollingConfigs, mergePresets, mergeRetryStrategies, mergeRevalidationStrategies, mergeUnifiedStrategy, min, msToSeconds, mutate2 as mutate, networkConfigDebugger, networkConfigManager, networkPresets, networkStatus, normalizeHeaders2 as normalizeHeaders, notificationEndpoints, now, nowInSeconds, omit, onOffline, onOnline, onceErrorHandler, oneOf, parseAndValidateNumber, parseFieldPath, percentage, pick, pollingEndpoints, pollingStrategies, prettyStringify, processHeaders2 as processHeaders, raceRequests, randomBetween, randomInt, refreshFeatureFlagCache, registerErrorHandler, registerErrorHandlers, removeCircularReferences, removeEmpty, removeFeatureFlagOverride, removeNullish, removeSensitiveHeaders, removeUndefined, requestTracker, requestWithTimeout, rescheduleInfobipEmails, resetGlobalConfig, resetQueryClient, resetPresets as resetRevalidationPresets, resolveConflict, retryConditions, retryStrategies, genericPresets as revalidationPresets, revalidationStrategies, round, safeParseJSON, safeStringify, sanitizeHeaders, secondsToMs, sendInfobipAdvancedEmail, sendInfobipEmail, sequentialRequests, setCache, setConfigWarnings, setDefaultApiClient, setErrorHandlers, setFeatureFlagOverride, setFieldValue, setGlobalConfig, setupClientEvents, setupNetworkMonitoring, setupRouteChangeCleanup, setupTemporaryOverride, shouldApplyConfig, shouldAutoRefresh, shouldPrefetch, shouldServeHighQuality, shouldUseAggressiveCaching, sleep, sortIssuesByPriority, startNetworkEventMonitoring, startOfDay, startRequestTracking, subscribe, subscribeMultiple, subscribeOnce, subscribeWithTimeout, sum, supportsBroadcastChannel, supportsFetch, supportsGeolocation, supportsIntersectionObserver, supportsLocalStorage, supportsNotifications, supportsPushNotifications, supportsRequestIdleCallback, supportsServiceWorker, supportsSessionStorage, supportsWebSocket, throttle, timeAgo, toFetchffConfig, toFetchffRevalidationConfig, toISOString, trackConfig, trackDirectCacheConfig, trackNetworkOverride, trackSpreadProperties, trackableSpread, transformFields, truncateJSON, unifiedStrategies, unregisterErrorHandlers, updateCampaign, updateFeatureFlag, updateGlobalConfig, updateInfobipScheduledEmailStatuses, uploadFile, uploadFileForScanning, uploadFiles, useAbortableRequest, useApiConfigConflicts, useApiDebugInfo, useApiMonitor, useApiNetworkQuality, useCampaign, useCampaignParticipants, useCampaignStats, useCampaigns, useCheckFeatureFlagEnabled, useConditionalSubscription, useCreateCampaign, useCreateFeatureFlag, useDebouncedSubscription, useDeleteCampaign, useDeleteFeatureFlag, useDeleteFile, useDeleteNotification, useDownloadFile, useEvaluateAllFeatureFlags, useGenerateDocument, useGetFile, useGetSignedUrl, useJoinCampaign, useLeaveCampaign, useMultipleSubscriptions, useNotifications, useOptimisticUpdate, useRealTimeData, useRemoveFeatureFlagOverride, useRequestCleanup, useRequestGroup, useRouteAwareRequest, useSubscription, useSubscriptionState, useUpdateCampaign, useUpdateFeatureFlag, useUploadFile, useUploadFiles, validateConfigUpdate, validateEncryptionConfig, validateHeaders, validateInfobipEmail, validatePathParams, validatePreset, virusTotalEndpoints, waitForOnline, withNetworkDetection, withNetworkDetection2 as withNetworkDetectionNextjs, withTimeout };
26318
26486
  //# sourceMappingURL=entry-frontend.mjs.map
26319
26487
  //# sourceMappingURL=entry-frontend.mjs.map