@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
package/dist/index.mjs CHANGED
@@ -12851,10 +12851,17 @@ __name(createStatusCodeLimits, "createStatusCodeLimits");
12851
12851
  var cacheStrategies = {
12852
12852
  /**
12853
12853
  * No caching - always fetch fresh data
12854
- * Use for: Real-time data, sensitive information
12854
+ * Use for: Real-time data, sensitive information, mutations
12855
+ *
12856
+ * IMPORTANT: Explicit ttl/stale of 0 prevents staleTime refetch issues.
12857
+ * The skip:true alone doesn't prevent default staleTime from being applied.
12855
12858
  */
12856
12859
  none: {
12857
- skip: true
12860
+ skip: true,
12861
+ ttl: 0,
12862
+ // No caching
12863
+ stale: 0
12864
+ // No stale refetch (prevents 60s re-trigger issue)
12858
12865
  },
12859
12866
  /**
12860
12867
  * Short-lived cache for frequently changing data
@@ -14235,6 +14242,32 @@ var cdnEndpoints = {
14235
14242
  ...fastlyEndpoints
14236
14243
  };
14237
14244
 
14245
+ // src/api/endpoints/notification.ts
14246
+ var notificationEndpoints = {
14247
+ // ==========================================================================
14248
+ // GET ENDPOINTS
14249
+ // ==========================================================================
14250
+ /**
14251
+ * GET /notifications
14252
+ * List all notifications with optional filters
14253
+ */
14254
+ listNotifications: {
14255
+ url: "/notifications",
14256
+ method: "GET"
14257
+ },
14258
+ // ==========================================================================
14259
+ // DELETE ENDPOINTS
14260
+ // ==========================================================================
14261
+ /**
14262
+ * DELETE /notifications/:id
14263
+ * Delete a notification
14264
+ */
14265
+ deleteNotification: {
14266
+ url: "/notifications/:id",
14267
+ method: "DELETE"
14268
+ }
14269
+ };
14270
+
14238
14271
  // src/api/endpoints/utils.ts
14239
14272
  function getEndpointUrl(name) {
14240
14273
  return endpoints[name].url;
@@ -14419,7 +14452,8 @@ var endpoints = {
14419
14452
  // CDN provider endpoints (Cloudflare, CloudFront, Fastly)
14420
14453
  ...cloudflareEndpoints,
14421
14454
  ...cloudFrontEndpoints,
14422
- ...fastlyEndpoints
14455
+ ...fastlyEndpoints,
14456
+ ...notificationEndpoints
14423
14457
  };
14424
14458
  var isSlowConnection = isSlowConnection$1;
14425
14459
  function isNetworkAPISupported() {
@@ -17239,18 +17273,19 @@ var unifiedStrategies = {
17239
17273
  },
17240
17274
  /**
17241
17275
  * Mutation: POST/PUT/DELETE operations (uploads, creates, updates, deletes)
17242
- * - NO caching (mutations should never be cached)
17243
- * - Standard retry for actual failures
17276
+ * - NO caching (cache: 'none' sets skip:true, ttl:0, stale:0 - prevents staleTime refetch!)
17277
+ * - Conservative retry (allows retry on server errors 500/502/503/504)
17244
17278
  * - NO polling (critical! - polling causes duplicate mutations)
17245
17279
  * - Realtime performance (immediate response)
17246
17280
  *
17247
- * Use this for any data-modifying operation to prevent duplicate requests.
17281
+ * Note: The retry is safe because it only triggers on actual errors (5xx).
17282
+ * The staleTime refetch issue was fixed by setting stale:0 in cache:'none'.
17248
17283
  */
17249
17284
  mutation: {
17250
17285
  cache: "none",
17251
- // Never cache mutations
17252
- retry: "none",
17253
- // No retry - mutations should not auto-retry to prevent duplicates
17286
+ // Never cache mutations (ttl:0, stale:0 prevents refetch)
17287
+ retry: "conservative",
17288
+ // Retry on server errors (500/502/503/504) only
17254
17289
  // NO polling - this is critical! Polling would re-execute the mutation
17255
17290
  performance: "realtime"
17256
17291
  // Immediate response, no batching
@@ -21534,10 +21569,28 @@ function mergeHeadersCaseInsensitive(...headerSets) {
21534
21569
  return result;
21535
21570
  }
21536
21571
  __name(mergeHeadersCaseInsensitive, "mergeHeadersCaseInsensitive");
21537
- function createOnRequestHandler(handlers, enrichedHeadersConfig, encryptionConfig, configStrategy) {
21572
+ function createOnRequestHandler(options) {
21573
+ const {
21574
+ handlers,
21575
+ enrichedHeadersConfig,
21576
+ encryptionConfig,
21577
+ configStrategy,
21578
+ getResolvedFetchffConfig
21579
+ } = options;
21538
21580
  return async (config) => {
21539
21581
  const performanceFactory = getPerformanceEventFactory();
21540
21582
  const requestId = generateRequestId();
21583
+ if (getResolvedFetchffConfig) {
21584
+ const resolvedConfig = getResolvedFetchffConfig();
21585
+ config = {
21586
+ ...config,
21587
+ ...resolvedConfig,
21588
+ headers: {
21589
+ ...resolvedConfig.headers,
21590
+ ...config.headers
21591
+ }
21592
+ };
21593
+ }
21541
21594
  startRequestTracking(requestId);
21542
21595
  UnifiedDebugger.getInstance().trackConfigChange(
21543
21596
  { headers: config.headers },
@@ -21706,7 +21759,8 @@ function setupUnifiedHandlers(params) {
21706
21759
  enrichedHeadersConfig,
21707
21760
  globalConfig,
21708
21761
  clientOptions,
21709
- clearTemporaryOverrides: clearTemporaryOverrides2
21762
+ clearTemporaryOverrides: clearTemporaryOverrides2,
21763
+ getResolvedFetchffConfig
21710
21764
  } = params;
21711
21765
  const mergedOnRequest = mergeHandlers(
21712
21766
  globalConfig?.onRequest,
@@ -21732,12 +21786,13 @@ function setupUnifiedHandlers(params) {
21732
21786
  const encryptionConfig = mergedConfig.encryption ?? globalConfig?.encryption ?? clientOptions?.encryption;
21733
21787
  const configStrategy = mergedConfig.configOverride?.strategy ?? clientOptions?.configOverride?.strategy ?? globalConfig?.configOverride?.strategy ?? "merge";
21734
21788
  return {
21735
- onRequest: createOnRequestHandler(
21736
- mergedOnRequest,
21789
+ onRequest: createOnRequestHandler({
21790
+ handlers: mergedOnRequest,
21737
21791
  enrichedHeadersConfig,
21738
21792
  encryptionConfig,
21739
- configStrategy
21740
- ),
21793
+ configStrategy,
21794
+ getResolvedFetchffConfig
21795
+ }),
21741
21796
  onResponse: createOnResponseHandler(
21742
21797
  mergedOnResponse,
21743
21798
  clearTemporaryOverrides2,
@@ -22092,15 +22147,21 @@ function createUpdateConfigMethod(initialConfigState, eventManager2, client, set
22092
22147
  const validation = validateConfigUpdate(updates, updateOptions);
22093
22148
  if (!validation.valid) {
22094
22149
  handleInvalidConfigUpdate(validation, updates, updateOptions);
22095
- return;
22150
+ return { fetchffConfig: {}, applied: false };
22096
22151
  }
22097
22152
  const result = applyConfigUpdate(configState, updates, updateOptions);
22098
22153
  configState = result.state;
22099
22154
  setConfigState(configState);
22100
22155
  const newConfig = getEffectiveConfig(configState);
22156
+ let resolvedUpdates = { ...updates };
22157
+ if (updates.unifiedStrategy) {
22158
+ resolvedUpdates = applyUnifiedStrategyToConfig(resolvedUpdates, updates.unifiedStrategy);
22159
+ }
22160
+ resolvedUpdates = applyIndividualStrategies(resolvedUpdates, updates);
22161
+ const fetchffConfig = toFetchffConfig(resolvedUpdates);
22101
22162
  if (client && "__config" in client) {
22102
22163
  const fetchffClient = client;
22103
- Object.assign(fetchffClient["__config"], updates);
22164
+ Object.assign(fetchffClient["__config"], fetchffConfig);
22104
22165
  }
22105
22166
  eventManager2.updateConfig(updates, updateOptions ?? {});
22106
22167
  const afterEventState = captureEventState(eventManager2);
@@ -22114,11 +22175,13 @@ function createUpdateConfigMethod(initialConfigState, eventManager2, client, set
22114
22175
  validation,
22115
22176
  startTime
22116
22177
  });
22178
+ return { fetchffConfig, applied: true };
22117
22179
  };
22118
22180
  }
22119
22181
  __name(createUpdateConfigMethod, "createUpdateConfigMethod");
22120
- function createFetchffClient(fetchffConfig, effectiveConfig, options, unifiedHandlers) {
22121
- return createApiFetcher({
22182
+ function createFetchffClient(params) {
22183
+ const { fetchffConfig, effectiveConfig, options, unifiedHandlers, getResolvedFetchffConfig } = params;
22184
+ const rawClient = createApiFetcher({
22122
22185
  ...fetchffConfig,
22123
22186
  baseURL: effectiveConfig.baseURL ?? options.apiUrl,
22124
22187
  endpoints,
@@ -22127,6 +22190,26 @@ function createFetchffClient(fetchffConfig, effectiveConfig, options, unifiedHan
22127
22190
  onError: unifiedHandlers.onError,
22128
22191
  onRetry: unifiedHandlers.onRetry
22129
22192
  });
22193
+ const endpointMethodNames = new Set(Object.keys(endpoints));
22194
+ return new Proxy(rawClient, {
22195
+ get(target, prop, receiver) {
22196
+ const value = Reflect.get(target, prop, receiver);
22197
+ if (typeof value !== "function" || typeof prop !== "string") {
22198
+ return value;
22199
+ }
22200
+ if (!endpointMethodNames.has(prop)) {
22201
+ return value;
22202
+ }
22203
+ return /* @__PURE__ */ __name(function wrappedEndpointMethod(config) {
22204
+ const resolvedConfig = getResolvedFetchffConfig();
22205
+ const mergedConfig = {
22206
+ ...resolvedConfig,
22207
+ ...config
22208
+ };
22209
+ return value.call(this, mergedConfig);
22210
+ }, "wrappedEndpointMethod");
22211
+ }
22212
+ });
22130
22213
  }
22131
22214
  __name(createFetchffClient, "createFetchffClient");
22132
22215
  function enhanceClientWithMethods(params) {
@@ -22211,14 +22294,33 @@ async function createApiClient(options = {}) {
22211
22294
  const effectiveConfig = getEffectiveConfig(stateContainer.current);
22212
22295
  const fetchffConfig = toFetchffConfig(effectiveConfig);
22213
22296
  let clearTemporaryOverridesFn;
22297
+ const getResolvedFetchffConfig = /* @__PURE__ */ __name(() => {
22298
+ const currentConfig = getEffectiveConfig(stateContainer.current);
22299
+ let resolvedConfig2 = { ...currentConfig };
22300
+ if (currentConfig.unifiedStrategy) {
22301
+ resolvedConfig2 = applyUnifiedStrategyToConfig(
22302
+ resolvedConfig2,
22303
+ currentConfig.unifiedStrategy
22304
+ );
22305
+ }
22306
+ resolvedConfig2 = applyIndividualStrategies(resolvedConfig2, currentConfig);
22307
+ return toFetchffConfig(resolvedConfig2);
22308
+ }, "getResolvedFetchffConfig");
22214
22309
  const unifiedHandlers = setupUnifiedHandlers({
22215
22310
  mergedConfig: effectiveConfig,
22216
22311
  enrichedHeadersConfig: options.enrichedHeaders,
22217
22312
  globalConfig,
22218
22313
  clientOptions: options,
22219
- clearTemporaryOverrides: /* @__PURE__ */ __name(() => clearTemporaryOverridesFn?.(), "clearTemporaryOverrides")
22314
+ clearTemporaryOverrides: /* @__PURE__ */ __name(() => clearTemporaryOverridesFn?.(), "clearTemporaryOverrides"),
22315
+ getResolvedFetchffConfig
22316
+ });
22317
+ const client = createFetchffClient({
22318
+ fetchffConfig,
22319
+ effectiveConfig,
22320
+ options,
22321
+ unifiedHandlers,
22322
+ getResolvedFetchffConfig
22220
22323
  });
22221
- const client = createFetchffClient(fetchffConfig, effectiveConfig, options, unifiedHandlers);
22222
22324
  const clientWithEvents = setupClientEvents(client, globalConfig, options);
22223
22325
  const { eventManager: eventManager2 } = clientWithEvents;
22224
22326
  Object.defineProperty(clientWithEvents, "then", {
@@ -26961,8 +27063,8 @@ async function uploadFile(data, options) {
26961
27063
  const client = options?.apiClient ?? getDefaultApiClient();
26962
27064
  const serviceDefaults = {
26963
27065
  unifiedStrategy: "mutation",
26964
- timeout: 6e4
26965
- // 60 seconds for uploads
27066
+ timeout: 12e4
27067
+ // 2 minutes for large uploads
26966
27068
  };
26967
27069
  const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
26968
27070
  const updateOptions = {
@@ -27096,6 +27198,72 @@ function useDeleteFile(serviceOptions, mutationOptions) {
27096
27198
  })(serviceOptions, mutationOptions);
27097
27199
  }
27098
27200
  __name(useDeleteFile, "useDeleteFile");
27201
+
27202
+ // src/api/services/notification/GET/fetchNotifications.ts
27203
+ async function fetchNotifications(filters, options) {
27204
+ const client = options?.apiClient ?? getDefaultApiClient();
27205
+ const serviceDefaults = { unifiedStrategy: "interactive" };
27206
+ const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
27207
+ const updateOptions = {
27208
+ strategy: "temporary",
27209
+ ...options?.updateConfigOptions
27210
+ };
27211
+ if (shouldApplyConfig(mergedConfig, updateOptions)) {
27212
+ client.updateConfig(mergedConfig, updateOptions);
27213
+ }
27214
+ return client.listNotifications({
27215
+ params: filters
27216
+ });
27217
+ }
27218
+ __name(fetchNotifications, "fetchNotifications");
27219
+ function useNotifications(queryKey, filters, serviceOptions, queryOptions) {
27220
+ return createApiQuery(fetchNotifications, {
27221
+ apiConfig: {
27222
+ unifiedStrategy: "interactive"
27223
+ },
27224
+ staleTime: TIME_CONSTANTS.TEN_MINUTES
27225
+ })(queryKey, filters, serviceOptions, queryOptions);
27226
+ }
27227
+ __name(useNotifications, "useNotifications");
27228
+
27229
+ // src/api/services/notification/DELETE/deleteNotification.ts
27230
+ async function deleteNotification(id, options) {
27231
+ const client = options?.apiClient ?? getDefaultApiClient();
27232
+ const serviceDefaults = {
27233
+ unifiedStrategy: "mutation"
27234
+ };
27235
+ const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
27236
+ const updateOptions = {
27237
+ strategy: "temporary",
27238
+ ...options?.updateConfigOptions
27239
+ };
27240
+ if (shouldApplyConfig(mergedConfig, updateOptions)) {
27241
+ client.updateConfig(mergedConfig, updateOptions);
27242
+ }
27243
+ const pathParams = { id };
27244
+ return client.deleteNotification({
27245
+ urlPathParams: pathParams
27246
+ });
27247
+ }
27248
+ __name(deleteNotification, "deleteNotification");
27249
+ function useDeleteNotification(serviceOptions, mutationOptions) {
27250
+ const queryClient = useQueryClient();
27251
+ return createApiMutation(
27252
+ deleteNotification,
27253
+ {
27254
+ onSuccess: /* @__PURE__ */ __name((_data, id) => {
27255
+ void queryClient.invalidateQueries({
27256
+ queryKey: ["notifications"]
27257
+ });
27258
+ queryClient.removeQueries({
27259
+ queryKey: ["notification", id]
27260
+ });
27261
+ }, "onSuccess"),
27262
+ ...mutationOptions
27263
+ }
27264
+ )(serviceOptions, mutationOptions);
27265
+ }
27266
+ __name(useDeleteNotification, "useDeleteNotification");
27099
27267
  function getSSRSafeConfig(config) {
27100
27268
  if (!isBrowser()) {
27101
27269
  return {
@@ -27463,6 +27631,6 @@ function ApiProvider({
27463
27631
  }
27464
27632
  __name(ApiProvider, "ApiProvider");
27465
27633
 
27466
- export { ALL_EVENTS, ApiInitializationError, ApiInitializationLoading, ApiPackageError, ApiProvider, CACHE_EVENTS2 as CACHE_EVENTS, CLIENT_EVENTS2 as CLIENT_EVENTS, CONFIG_EVENTS2 as CONFIG_EVENTS, ClientEventManager, ClientHintsInterceptor, 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, MinimumConnectionGuard, NETWORK_EVENTS2 as NETWORK_EVENTS, NetworkConfigurationManager, NetworkDetectionMiddleware, NetworkGuard, NetworkInfoParam, NetworkPresetNames, NetworkProperty, NoDataSaverGuard, 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, createAbortError2 as createAbortError, createAdaptiveResponse, createApiClient, 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, createNetworkDetectionMiddleware, 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, getConfigHierarchy, getConnection, getConnectionType, getConsole, getContextHeaders, 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, getNetworkDebugStats, getNetworkEventStats, getNetworkInfo, getNetworkInfoFromHeaders, getNetworkInfoFromRequest, getNetworkOptimizedConfig, getNetworkPreset, getNetworkQuality, getNetworkQualityFromHeaders, 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, hasNetworkInfo2 as hasNetworkInfoExpress, hasNetworkInfo as hasNetworkInfoNextjs, hasPathParams, hasPreset, hasProperty, hasSessionStorage, hasWebGL, hasWebPSupport, headerPresets, headers, headersContext, 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, networkDetectionMiddleware, networkPresets, networkStatus, normalizeHeaders2 as normalizeHeaders, now, nowInSeconds, omit, onOffline, onOnline, onceErrorHandler, oneOf, parseAndValidateNumber, parseFieldPath, percentage, pick, pollingEndpoints, pollingStrategies, prepareRequestConfig, prepareRequestConfigWithEnrichedHeaders, 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, runWithHeaders, runWithHeadersAsync, 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, uploadWithProgress, 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, withNetworkInfo, withTimeout };
27634
+ export { ALL_EVENTS, ApiInitializationError, ApiInitializationLoading, ApiPackageError, ApiProvider, CACHE_EVENTS2 as CACHE_EVENTS, CLIENT_EVENTS2 as CLIENT_EVENTS, CONFIG_EVENTS2 as CONFIG_EVENTS, ClientEventManager, ClientHintsInterceptor, 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, MinimumConnectionGuard, NETWORK_EVENTS2 as NETWORK_EVENTS, NetworkConfigurationManager, NetworkDetectionMiddleware, NetworkGuard, NetworkInfoParam, NetworkPresetNames, NetworkProperty, NoDataSaverGuard, 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, createAbortError2 as createAbortError, createAdaptiveResponse, createApiClient, 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, createNetworkDetectionMiddleware, 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, getConfigHierarchy, getConnection, getConnectionType, getConsole, getContextHeaders, 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, getNetworkDebugStats, getNetworkEventStats, getNetworkInfo, getNetworkInfoFromHeaders, getNetworkInfoFromRequest, getNetworkOptimizedConfig, getNetworkPreset, getNetworkQuality, getNetworkQualityFromHeaders, 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, hasNetworkInfo2 as hasNetworkInfoExpress, hasNetworkInfo as hasNetworkInfoNextjs, hasPathParams, hasPreset, hasProperty, hasSessionStorage, hasWebGL, hasWebPSupport, headerPresets, headers, headersContext, 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, networkDetectionMiddleware, networkPresets, networkStatus, normalizeHeaders2 as normalizeHeaders, notificationEndpoints, now, nowInSeconds, omit, onOffline, onOnline, onceErrorHandler, oneOf, parseAndValidateNumber, parseFieldPath, percentage, pick, pollingEndpoints, pollingStrategies, prepareRequestConfig, prepareRequestConfigWithEnrichedHeaders, 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, runWithHeaders, runWithHeadersAsync, 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, uploadWithProgress, 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, withNetworkInfo, withTimeout };
27467
27635
  //# sourceMappingURL=index.mjs.map
27468
27636
  //# sourceMappingURL=index.mjs.map