@croct/sdk 0.17.11 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/activeRecord.cjs +1 -2
- package/activeRecord.d.cts +26 -0
- package/activeRecord.js +1 -2
- package/apiKey.cjs +0 -1
- package/apiKey.d.cts +48 -0
- package/apiKey.js +0 -1
- package/base64Url.cjs +0 -1
- package/base64Url.d.cts +4 -0
- package/base64Url.js +0 -1
- package/cache/cache.cjs +0 -1
- package/cache/cache.d.cts +17 -0
- package/cache/cache.js +0 -1
- package/cache/cookieCache.cjs +0 -1
- package/cache/cookieCache.d.cts +22 -0
- package/cache/cookieCache.js +0 -1
- package/cache/fallbackCache.cjs +0 -1
- package/cache/fallbackCache.d.cts +11 -0
- package/cache/fallbackCache.js +0 -1
- package/cache/inMemoryCache.cjs +0 -1
- package/cache/inMemoryCache.d.cts +11 -0
- package/cache/inMemoryCache.js +0 -1
- package/cache/index.cjs +5 -6
- package/cache/index.d.cts +4 -0
- package/cache/index.js +4 -5
- package/cache/localStorageCache.cjs +0 -1
- package/cache/localStorageCache.d.cts +19 -0
- package/cache/localStorageCache.js +0 -1
- package/channel/channel.cjs +1 -2
- package/channel/channel.d.cts +24 -0
- package/channel/channel.js +1 -2
- package/channel/encodedChannel.cjs +0 -1
- package/channel/encodedChannel.d.cts +12 -0
- package/channel/encodedChannel.js +0 -1
- package/channel/guaranteedChannel.cjs +2 -3
- package/channel/guaranteedChannel.d.cts +33 -0
- package/channel/guaranteedChannel.js +2 -3
- package/channel/httpBeaconChannel.cjs +5 -6
- package/channel/httpBeaconChannel.d.cts +26 -0
- package/channel/httpBeaconChannel.js +5 -6
- package/channel/index.cjs +8 -9
- package/channel/index.d.cts +12 -0
- package/channel/index.js +7 -8
- package/channel/queuedChannel.cjs +2 -3
- package/channel/queuedChannel.d.cts +21 -0
- package/channel/queuedChannel.js +2 -3
- package/channel/retryChannel.cjs +2 -3
- package/channel/retryChannel.d.cts +21 -0
- package/channel/retryChannel.js +2 -3
- package/channel/sandboxChannel.cjs +1 -2
- package/channel/sandboxChannel.d.cts +15 -0
- package/channel/sandboxChannel.js +1 -2
- package/cid/assigner.cjs +0 -1
- package/cid/assigner.d.cts +5 -0
- package/cid/assigner.js +0 -1
- package/cid/cachedAssigner.cjs +1 -2
- package/cid/cachedAssigner.d.cts +17 -0
- package/cid/cachedAssigner.js +1 -2
- package/cid/fixedAssigner.cjs +0 -1
- package/cid/fixedAssigner.d.cts +9 -0
- package/cid/fixedAssigner.js +0 -1
- package/cid/index.cjs +5 -6
- package/cid/index.d.cts +6 -0
- package/cid/index.js +4 -5
- package/cid/remoteAssigner.cjs +3 -4
- package/cid/remoteAssigner.d.cts +13 -0
- package/cid/remoteAssigner.js +3 -4
- package/constants.cjs +1 -2
- package/constants.d.cts +6 -0
- package/constants.d.ts +2 -2
- package/constants.js +1 -2
- package/container.cjs +18 -19
- package/container.d.cts +95 -0
- package/container.js +18 -19
- package/contentFetcher.cjs +4 -5
- package/contentFetcher.d.cts +69 -0
- package/contentFetcher.js +4 -5
- package/context.cjs +4 -5
- package/context.d.cts +36 -0
- package/context.js +4 -5
- package/error.cjs +0 -1
- package/error.d.cts +4 -0
- package/error.js +0 -1
- package/evaluator.cjs +5 -6
- package/evaluator.d.cts +86 -0
- package/evaluator.js +5 -6
- package/eventManager.cjs +0 -1
- package/eventManager.d.cts +21 -0
- package/eventManager.js +0 -1
- package/eventSubjectProcessor.cjs +0 -1
- package/eventSubjectProcessor.d.cts +22 -0
- package/eventSubjectProcessor.js +0 -1
- package/facade/contentFetcherFacade.cjs +2 -3
- package/facade/contentFetcherFacade.d.cts +36 -0
- package/facade/contentFetcherFacade.js +2 -3
- package/facade/evaluatorFacade.cjs +2 -3
- package/facade/evaluatorFacade.d.cts +41 -0
- package/facade/evaluatorFacade.js +2 -3
- package/facade/index.cjs +7 -10
- package/facade/index.d.cts +29 -0
- package/facade/index.js +7 -9
- package/facade/sdkFacade.cjs +10 -11
- package/facade/sdkFacade.d.cts +86 -0
- package/facade/sdkFacade.js +10 -11
- package/facade/sessionFacade.cjs +1 -2
- package/facade/sessionFacade.d.cts +22 -0
- package/facade/sessionFacade.js +1 -2
- package/facade/sessionPatch.cjs +1 -2
- package/facade/sessionPatch.d.cts +21 -0
- package/facade/sessionPatch.js +1 -2
- package/facade/trackerFacade.cjs +2 -3
- package/facade/trackerFacade.d.cts +25 -0
- package/facade/trackerFacade.js +2 -3
- package/facade/userFacade.cjs +1 -2
- package/facade/userFacade.d.cts +28 -0
- package/facade/userFacade.js +1 -2
- package/facade/userPatch.cjs +1 -2
- package/facade/userPatch.d.cts +21 -0
- package/facade/userPatch.js +1 -2
- package/help.cjs +0 -1
- package/help.d.cts +5 -0
- package/help.js +0 -1
- package/index.cjs +2 -5
- package/index.d.cts +25 -0
- package/index.js +2 -4
- package/logging/consoleLogger.cjs +0 -1
- package/logging/consoleLogger.d.cts +13 -0
- package/logging/consoleLogger.js +0 -1
- package/logging/filteredLogger.cjs +0 -1
- package/logging/filteredLogger.d.cts +22 -0
- package/logging/filteredLogger.js +0 -1
- package/logging/index.cjs +6 -7
- package/logging/index.d.cts +5 -0
- package/logging/index.js +5 -6
- package/logging/logger.cjs +0 -1
- package/logging/logger.d.cts +11 -0
- package/logging/logger.js +0 -1
- package/logging/namespacedLogger.cjs +0 -1
- package/logging/namespacedLogger.d.cts +14 -0
- package/logging/namespacedLogger.js +0 -1
- package/logging/nullLogger.cjs +0 -1
- package/logging/nullLogger.d.cts +10 -0
- package/logging/nullLogger.js +0 -1
- package/namespacedStorage.cjs +0 -1
- package/namespacedStorage.d.cts +16 -0
- package/namespacedStorage.js +0 -1
- package/package.json +4 -1
- package/patch.cjs +0 -1
- package/patch.d.cts +46 -0
- package/patch.js +0 -1
- package/queue/capacityRestrictedQueue.cjs +0 -1
- package/queue/capacityRestrictedQueue.d.cts +16 -0
- package/queue/capacityRestrictedQueue.js +0 -1
- package/queue/inMemoryQueue.cjs +0 -1
- package/queue/inMemoryQueue.d.cts +15 -0
- package/queue/inMemoryQueue.js +0 -1
- package/queue/index.cjs +6 -7
- package/queue/index.d.cts +6 -0
- package/queue/index.js +5 -6
- package/queue/monitoredQueue.cjs +1 -2
- package/queue/monitoredQueue.d.cts +28 -0
- package/queue/monitoredQueue.js +1 -2
- package/queue/persistentQueue.cjs +0 -1
- package/queue/persistentQueue.d.cts +18 -0
- package/queue/persistentQueue.js +0 -1
- package/queue/queue.cjs +0 -1
- package/queue/queue.d.cts +11 -0
- package/queue/queue.js +0 -1
- package/retry/arbitraryPolicy.cjs +0 -1
- package/retry/arbitraryPolicy.d.cts +10 -0
- package/retry/arbitraryPolicy.js +0 -1
- package/retry/backoffPolicy.cjs +0 -1
- package/retry/backoffPolicy.d.cts +26 -0
- package/retry/backoffPolicy.js +0 -1
- package/retry/index.cjs +6 -7
- package/retry/index.d.cts +5 -0
- package/retry/index.js +5 -6
- package/retry/maxAttemptsPolicy.cjs +0 -1
- package/retry/maxAttemptsPolicy.d.cts +11 -0
- package/retry/maxAttemptsPolicy.js +0 -1
- package/retry/neverPolicy.cjs +0 -1
- package/retry/neverPolicy.d.cts +8 -0
- package/retry/neverPolicy.js +0 -1
- package/retry/policy.cjs +0 -1
- package/retry/policy.d.cts +6 -0
- package/retry/policy.js +0 -1
- package/schema/attributeSchema.cjs +1 -2
- package/schema/attributeSchema.d.cts +6 -0
- package/schema/attributeSchema.js +1 -2
- package/schema/contentFetcherSchemas.cjs +1 -2
- package/schema/contentFetcherSchemas.d.cts +6 -0
- package/schema/contentFetcherSchemas.js +1 -2
- package/schema/contentSchemas.cjs +1 -2
- package/schema/contentSchemas.d.cts +6 -0
- package/schema/contentSchemas.js +1 -2
- package/schema/contextSchemas.cjs +1 -2
- package/schema/contextSchemas.d.cts +6 -0
- package/schema/contextSchemas.js +1 -2
- package/schema/ecommerceSchemas.cjs +1 -2
- package/schema/ecommerceSchemas.d.cts +10 -0
- package/schema/ecommerceSchemas.js +1 -2
- package/schema/evaluatorSchemas.cjs +1 -2
- package/schema/evaluatorSchemas.d.cts +6 -0
- package/schema/evaluatorSchemas.js +1 -2
- package/schema/eventSchemas.cjs +4 -5
- package/schema/eventSchemas.d.cts +16 -0
- package/schema/eventSchemas.js +4 -5
- package/schema/index.cjs +22 -23
- package/schema/index.d.cts +14 -0
- package/schema/index.js +11 -12
- package/schema/loggerSchema.cjs +1 -2
- package/schema/loggerSchema.d.cts +6 -0
- package/schema/loggerSchema.js +1 -2
- package/schema/operationSchemas.cjs +2 -3
- package/schema/operationSchemas.d.cts +14 -0
- package/schema/operationSchemas.js +2 -3
- package/schema/sdkFacadeSchemas.cjs +4 -5
- package/schema/sdkFacadeSchemas.d.cts +6 -0
- package/schema/sdkFacadeSchemas.js +4 -5
- package/schema/sdkSchemas.cjs +3 -4
- package/schema/sdkSchemas.d.cts +8 -0
- package/schema/sdkSchemas.js +3 -4
- package/schema/tokenSchema.cjs +1 -2
- package/schema/tokenSchema.d.cts +6 -0
- package/schema/tokenSchema.js +1 -2
- package/schema/userSchema.cjs +2 -3
- package/schema/userSchema.d.cts +6 -0
- package/schema/userSchema.js +2 -3
- package/sdk.cjs +4 -5
- package/sdk.d.cts +69 -0
- package/sdk.js +4 -5
- package/sdkEvents.cjs +0 -1
- package/sdkEvents.d.cts +15 -0
- package/sdkEvents.js +0 -1
- package/sourceLocation.cjs +0 -1
- package/sourceLocation.d.cts +14 -0
- package/sourceLocation.js +0 -1
- package/tab.cjs +1 -2
- package/tab.d.cts +40 -0
- package/tab.js +1 -2
- package/token/cachedTokenStore.cjs +1 -2
- package/token/cachedTokenStore.d.cts +13 -0
- package/token/cachedTokenStore.js +1 -2
- package/token/inMemoryTokenStore.cjs +0 -1
- package/token/inMemoryTokenStore.d.cts +11 -0
- package/token/inMemoryTokenStore.js +0 -1
- package/token/index.cjs +5 -6
- package/token/index.d.cts +7 -0
- package/token/index.js +4 -5
- package/token/replicatedTokenStore.cjs +0 -1
- package/token/replicatedTokenStore.d.cts +13 -0
- package/token/replicatedTokenStore.js +0 -1
- package/token/token.cjs +3 -4
- package/token/token.d.cts +70 -0
- package/token/token.js +3 -4
- package/tracker.cjs +3 -4
- package/tracker.d.cts +82 -0
- package/tracker.js +3 -4
- package/trackingEvents.cjs +0 -1
- package/trackingEvents.d.cts +309 -0
- package/trackingEvents.js +0 -1
- package/transformer.cjs +0 -1
- package/transformer.d.cts +6 -0
- package/transformer.js +0 -1
- package/utilityTypes.cjs +0 -1
- package/utilityTypes.d.cts +4 -0
- package/utilityTypes.js +0 -1
- package/uuid.cjs +0 -1
- package/uuid.d.cts +3 -0
- package/uuid.js +0 -1
- package/validation/arrayType.cjs +2 -3
- package/validation/arrayType.d.cts +16 -0
- package/validation/arrayType.js +2 -3
- package/validation/booleanType.cjs +2 -3
- package/validation/booleanType.d.cts +9 -0
- package/validation/booleanType.js +2 -3
- package/validation/functionType.cjs +2 -3
- package/validation/functionType.d.cts +9 -0
- package/validation/functionType.js +2 -3
- package/validation/index.cjs +14 -15
- package/validation/index.d.cts +12 -0
- package/validation/index.js +12 -13
- package/validation/jsonType.cjs +2 -3
- package/validation/jsonType.d.cts +35 -0
- package/validation/jsonType.js +2 -3
- package/validation/mixedSchema.cjs +0 -1
- package/validation/mixedSchema.d.cts +7 -0
- package/validation/mixedSchema.js +0 -1
- package/validation/nullType.cjs +2 -3
- package/validation/nullType.d.cts +9 -0
- package/validation/nullType.js +2 -3
- package/validation/numberType.cjs +2 -3
- package/validation/numberType.d.cts +16 -0
- package/validation/numberType.js +2 -3
- package/validation/objectType.cjs +3 -4
- package/validation/objectType.d.cts +30 -0
- package/validation/objectType.js +3 -4
- package/validation/schema.cjs +0 -1
- package/validation/schema.d.cts +18 -0
- package/validation/schema.js +0 -1
- package/validation/stringType.cjs +2 -3
- package/validation/stringType.d.cts +24 -0
- package/validation/stringType.js +2 -3
- package/validation/unionType.cjs +2 -3
- package/validation/unionType.d.cts +11 -0
- package/validation/unionType.js +2 -3
- package/validation/violation.cjs +0 -1
- package/validation/violation.d.cts +4 -0
- package/validation/violation.js +0 -1
- package/activeRecord.cjs.map +0 -1
- package/activeRecord.js.map +0 -1
- package/apiKey.cjs.map +0 -1
- package/apiKey.js.map +0 -1
- package/base64Url.cjs.map +0 -1
- package/base64Url.js.map +0 -1
- package/cache/cache.cjs.map +0 -1
- package/cache/cache.js.map +0 -1
- package/cache/cookieCache.cjs.map +0 -1
- package/cache/cookieCache.js.map +0 -1
- package/cache/fallbackCache.cjs.map +0 -1
- package/cache/fallbackCache.js.map +0 -1
- package/cache/inMemoryCache.cjs.map +0 -1
- package/cache/inMemoryCache.js.map +0 -1
- package/cache/index.cjs.map +0 -1
- package/cache/index.js.map +0 -1
- package/cache/localStorageCache.cjs.map +0 -1
- package/cache/localStorageCache.js.map +0 -1
- package/channel/channel.cjs.map +0 -1
- package/channel/channel.js.map +0 -1
- package/channel/encodedChannel.cjs.map +0 -1
- package/channel/encodedChannel.js.map +0 -1
- package/channel/guaranteedChannel.cjs.map +0 -1
- package/channel/guaranteedChannel.js.map +0 -1
- package/channel/httpBeaconChannel.cjs.map +0 -1
- package/channel/httpBeaconChannel.js.map +0 -1
- package/channel/index.cjs.map +0 -1
- package/channel/index.js.map +0 -1
- package/channel/queuedChannel.cjs.map +0 -1
- package/channel/queuedChannel.js.map +0 -1
- package/channel/retryChannel.cjs.map +0 -1
- package/channel/retryChannel.js.map +0 -1
- package/channel/sandboxChannel.cjs.map +0 -1
- package/channel/sandboxChannel.js.map +0 -1
- package/cid/assigner.cjs.map +0 -1
- package/cid/assigner.js.map +0 -1
- package/cid/cachedAssigner.cjs.map +0 -1
- package/cid/cachedAssigner.js.map +0 -1
- package/cid/fixedAssigner.cjs.map +0 -1
- package/cid/fixedAssigner.js.map +0 -1
- package/cid/index.cjs.map +0 -1
- package/cid/index.js.map +0 -1
- package/cid/remoteAssigner.cjs.map +0 -1
- package/cid/remoteAssigner.js.map +0 -1
- package/constants.cjs.map +0 -1
- package/constants.js.map +0 -1
- package/container.cjs.map +0 -1
- package/container.js.map +0 -1
- package/contentFetcher.cjs.map +0 -1
- package/contentFetcher.js.map +0 -1
- package/context.cjs.map +0 -1
- package/context.js.map +0 -1
- package/error.cjs.map +0 -1
- package/error.js.map +0 -1
- package/evaluator.cjs.map +0 -1
- package/evaluator.js.map +0 -1
- package/eventManager.cjs.map +0 -1
- package/eventManager.js.map +0 -1
- package/eventSubjectProcessor.cjs.map +0 -1
- package/eventSubjectProcessor.js.map +0 -1
- package/facade/contentFetcherFacade.cjs.map +0 -1
- package/facade/contentFetcherFacade.js.map +0 -1
- package/facade/evaluatorFacade.cjs.map +0 -1
- package/facade/evaluatorFacade.js.map +0 -1
- package/facade/index.cjs.map +0 -1
- package/facade/index.js.map +0 -1
- package/facade/sdkFacade.cjs.map +0 -1
- package/facade/sdkFacade.js.map +0 -1
- package/facade/sessionFacade.cjs.map +0 -1
- package/facade/sessionFacade.js.map +0 -1
- package/facade/sessionPatch.cjs.map +0 -1
- package/facade/sessionPatch.js.map +0 -1
- package/facade/trackerFacade.cjs.map +0 -1
- package/facade/trackerFacade.js.map +0 -1
- package/facade/userFacade.cjs.map +0 -1
- package/facade/userFacade.js.map +0 -1
- package/facade/userPatch.cjs.map +0 -1
- package/facade/userPatch.js.map +0 -1
- package/help.cjs.map +0 -1
- package/help.js.map +0 -1
- package/index.cjs.map +0 -1
- package/index.js.map +0 -1
- package/logging/consoleLogger.cjs.map +0 -1
- package/logging/consoleLogger.js.map +0 -1
- package/logging/filteredLogger.cjs.map +0 -1
- package/logging/filteredLogger.js.map +0 -1
- package/logging/index.cjs.map +0 -1
- package/logging/index.js.map +0 -1
- package/logging/logger.cjs.map +0 -1
- package/logging/logger.js.map +0 -1
- package/logging/namespacedLogger.cjs.map +0 -1
- package/logging/namespacedLogger.js.map +0 -1
- package/logging/nullLogger.cjs.map +0 -1
- package/logging/nullLogger.js.map +0 -1
- package/namespacedStorage.cjs.map +0 -1
- package/namespacedStorage.js.map +0 -1
- package/patch.cjs.map +0 -1
- package/patch.js.map +0 -1
- package/queue/capacityRestrictedQueue.cjs.map +0 -1
- package/queue/capacityRestrictedQueue.js.map +0 -1
- package/queue/inMemoryQueue.cjs.map +0 -1
- package/queue/inMemoryQueue.js.map +0 -1
- package/queue/index.cjs.map +0 -1
- package/queue/index.js.map +0 -1
- package/queue/monitoredQueue.cjs.map +0 -1
- package/queue/monitoredQueue.js.map +0 -1
- package/queue/persistentQueue.cjs.map +0 -1
- package/queue/persistentQueue.js.map +0 -1
- package/queue/queue.cjs.map +0 -1
- package/queue/queue.js.map +0 -1
- package/retry/arbitraryPolicy.cjs.map +0 -1
- package/retry/arbitraryPolicy.js.map +0 -1
- package/retry/backoffPolicy.cjs.map +0 -1
- package/retry/backoffPolicy.js.map +0 -1
- package/retry/index.cjs.map +0 -1
- package/retry/index.js.map +0 -1
- package/retry/maxAttemptsPolicy.cjs.map +0 -1
- package/retry/maxAttemptsPolicy.js.map +0 -1
- package/retry/neverPolicy.cjs.map +0 -1
- package/retry/neverPolicy.js.map +0 -1
- package/retry/policy.cjs.map +0 -1
- package/retry/policy.js.map +0 -1
- package/schema/attributeSchema.cjs.map +0 -1
- package/schema/attributeSchema.js.map +0 -1
- package/schema/contentFetcherSchemas.cjs.map +0 -1
- package/schema/contentFetcherSchemas.js.map +0 -1
- package/schema/contentSchemas.cjs.map +0 -1
- package/schema/contentSchemas.js.map +0 -1
- package/schema/contextSchemas.cjs.map +0 -1
- package/schema/contextSchemas.js.map +0 -1
- package/schema/ecommerceSchemas.cjs.map +0 -1
- package/schema/ecommerceSchemas.js.map +0 -1
- package/schema/evaluatorSchemas.cjs.map +0 -1
- package/schema/evaluatorSchemas.js.map +0 -1
- package/schema/eventSchemas.cjs.map +0 -1
- package/schema/eventSchemas.js.map +0 -1
- package/schema/index.cjs.map +0 -1
- package/schema/index.js.map +0 -1
- package/schema/loggerSchema.cjs.map +0 -1
- package/schema/loggerSchema.js.map +0 -1
- package/schema/operationSchemas.cjs.map +0 -1
- package/schema/operationSchemas.js.map +0 -1
- package/schema/sdkFacadeSchemas.cjs.map +0 -1
- package/schema/sdkFacadeSchemas.js.map +0 -1
- package/schema/sdkSchemas.cjs.map +0 -1
- package/schema/sdkSchemas.js.map +0 -1
- package/schema/tokenSchema.cjs.map +0 -1
- package/schema/tokenSchema.js.map +0 -1
- package/schema/userSchema.cjs.map +0 -1
- package/schema/userSchema.js.map +0 -1
- package/sdk.cjs.map +0 -1
- package/sdk.js.map +0 -1
- package/sdkEvents.cjs.map +0 -1
- package/sdkEvents.js.map +0 -1
- package/sourceLocation.cjs.map +0 -1
- package/sourceLocation.js.map +0 -1
- package/tab.cjs.map +0 -1
- package/tab.js.map +0 -1
- package/token/cachedTokenStore.cjs.map +0 -1
- package/token/cachedTokenStore.js.map +0 -1
- package/token/inMemoryTokenStore.cjs.map +0 -1
- package/token/inMemoryTokenStore.js.map +0 -1
- package/token/index.cjs.map +0 -1
- package/token/index.js.map +0 -1
- package/token/replicatedTokenStore.cjs.map +0 -1
- package/token/replicatedTokenStore.js.map +0 -1
- package/token/token.cjs.map +0 -1
- package/token/token.js.map +0 -1
- package/tracker.cjs.map +0 -1
- package/tracker.js.map +0 -1
- package/trackingEvents.cjs.map +0 -1
- package/trackingEvents.js.map +0 -1
- package/transformer.cjs.map +0 -1
- package/transformer.js.map +0 -1
- package/utilityTypes.cjs.map +0 -1
- package/utilityTypes.js.map +0 -1
- package/uuid.cjs.map +0 -1
- package/uuid.js.map +0 -1
- package/validation/arrayType.cjs.map +0 -1
- package/validation/arrayType.js.map +0 -1
- package/validation/booleanType.cjs.map +0 -1
- package/validation/booleanType.js.map +0 -1
- package/validation/functionType.cjs.map +0 -1
- package/validation/functionType.js.map +0 -1
- package/validation/index.cjs.map +0 -1
- package/validation/index.js.map +0 -1
- package/validation/jsonType.cjs.map +0 -1
- package/validation/jsonType.js.map +0 -1
- package/validation/mixedSchema.cjs.map +0 -1
- package/validation/mixedSchema.js.map +0 -1
- package/validation/nullType.cjs.map +0 -1
- package/validation/nullType.js.map +0 -1
- package/validation/numberType.cjs.map +0 -1
- package/validation/numberType.js.map +0 -1
- package/validation/objectType.cjs.map +0 -1
- package/validation/objectType.js.map +0 -1
- package/validation/schema.cjs.map +0 -1
- package/validation/schema.js.map +0 -1
- package/validation/stringType.cjs.map +0 -1
- package/validation/stringType.js.map +0 -1
- package/validation/unionType.cjs.map +0 -1
- package/validation/unionType.js.map +0 -1
- package/validation/violation.cjs.map +0 -1
- package/validation/violation.js.map +0 -1
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
NullType,
|
|
8
8
|
BooleanType,
|
|
9
9
|
ArrayType
|
|
10
|
-
} from "../validation";
|
|
10
|
+
} from "../validation/index.js";
|
|
11
11
|
function createJsonSchema(maximumDepth) {
|
|
12
12
|
return new UnionType(
|
|
13
13
|
new NullType(),
|
|
@@ -47,4 +47,3 @@ const evaluationOptionsSchema = new ObjectType({
|
|
|
47
47
|
export {
|
|
48
48
|
evaluationOptionsSchema
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=evaluatorSchemas.js.map
|
package/schema/eventSchemas.cjs
CHANGED
|
@@ -30,10 +30,10 @@ __export(eventSchemas_exports, {
|
|
|
30
30
|
userSignedUp: () => userSignedUp
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(eventSchemas_exports);
|
|
33
|
-
var import_validation = require(
|
|
34
|
-
var import_ecommerceSchemas = require(
|
|
35
|
-
var import_userSchema = require(
|
|
36
|
-
var import_contentSchemas = require(
|
|
33
|
+
var import_validation = require('../validation/index.cjs');
|
|
34
|
+
var import_ecommerceSchemas = require('./ecommerceSchemas.cjs');
|
|
35
|
+
var import_userSchema = require('./userSchema.cjs');
|
|
36
|
+
var import_contentSchemas = require('./contentSchemas.cjs');
|
|
37
37
|
const cartModified = new import_validation.ObjectType({
|
|
38
38
|
required: ["cart"],
|
|
39
39
|
properties: {
|
|
@@ -159,4 +159,3 @@ const eventOccurred = new import_validation.ObjectType({
|
|
|
159
159
|
productViewed,
|
|
160
160
|
userSignedUp
|
|
161
161
|
});
|
|
162
|
-
//# sourceMappingURL=eventSchemas.cjs.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ObjectType } from '../validation/objectType.cjs';
|
|
2
|
+
import '../validation/schema.cjs';
|
|
3
|
+
|
|
4
|
+
declare const cartModified: ObjectType;
|
|
5
|
+
declare const cartViewed: ObjectType;
|
|
6
|
+
declare const checkoutStarted: ObjectType;
|
|
7
|
+
declare const orderPlaced: ObjectType;
|
|
8
|
+
declare const productViewed: ObjectType;
|
|
9
|
+
declare const userSignedUp: ObjectType;
|
|
10
|
+
declare const goalCompleted: ObjectType;
|
|
11
|
+
declare const interestShown: ObjectType;
|
|
12
|
+
declare const postViewed: ObjectType;
|
|
13
|
+
declare const linkOpened: ObjectType;
|
|
14
|
+
declare const eventOccurred: ObjectType;
|
|
15
|
+
|
|
16
|
+
export { cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, linkOpened, orderPlaced, postViewed, productViewed, userSignedUp };
|
package/schema/eventSchemas.js
CHANGED
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
NullType,
|
|
7
7
|
BooleanType,
|
|
8
8
|
ArrayType
|
|
9
|
-
} from "../validation";
|
|
10
|
-
import { cart, order, productDetails } from "./ecommerceSchemas";
|
|
11
|
-
import { userProfileSchema } from "./userSchema";
|
|
12
|
-
import { postDetails } from "./contentSchemas";
|
|
9
|
+
} from "../validation/index.js";
|
|
10
|
+
import { cart, order, productDetails } from "./ecommerceSchemas.js";
|
|
11
|
+
import { userProfileSchema } from "./userSchema.js";
|
|
12
|
+
import { postDetails } from "./contentSchemas.js";
|
|
13
13
|
const cartModified = new ObjectType({
|
|
14
14
|
required: ["cart"],
|
|
15
15
|
properties: {
|
|
@@ -134,4 +134,3 @@ export {
|
|
|
134
134
|
productViewed,
|
|
135
135
|
userSignedUp
|
|
136
136
|
};
|
|
137
|
-
//# sourceMappingURL=eventSchemas.js.map
|
package/schema/index.cjs
CHANGED
|
@@ -14,29 +14,28 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
14
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
15
|
var schema_exports = {};
|
|
16
16
|
module.exports = __toCommonJS(schema_exports);
|
|
17
|
-
__reExport(schema_exports, require(
|
|
18
|
-
__reExport(schema_exports, require(
|
|
19
|
-
__reExport(schema_exports, require(
|
|
20
|
-
__reExport(schema_exports, require(
|
|
21
|
-
__reExport(schema_exports, require(
|
|
22
|
-
__reExport(schema_exports, require(
|
|
23
|
-
__reExport(schema_exports, require(
|
|
24
|
-
__reExport(schema_exports, require(
|
|
25
|
-
__reExport(schema_exports, require(
|
|
26
|
-
__reExport(schema_exports, require(
|
|
27
|
-
__reExport(schema_exports, require(
|
|
17
|
+
__reExport(schema_exports, require('./contextSchemas.cjs'), module.exports);
|
|
18
|
+
__reExport(schema_exports, require('./ecommerceSchemas.cjs'), module.exports);
|
|
19
|
+
__reExport(schema_exports, require('./evaluatorSchemas.cjs'), module.exports);
|
|
20
|
+
__reExport(schema_exports, require('./contentFetcherSchemas.cjs'), module.exports);
|
|
21
|
+
__reExport(schema_exports, require('./eventSchemas.cjs'), module.exports);
|
|
22
|
+
__reExport(schema_exports, require('./loggerSchema.cjs'), module.exports);
|
|
23
|
+
__reExport(schema_exports, require('./operationSchemas.cjs'), module.exports);
|
|
24
|
+
__reExport(schema_exports, require('./sdkFacadeSchemas.cjs'), module.exports);
|
|
25
|
+
__reExport(schema_exports, require('./sdkSchemas.cjs'), module.exports);
|
|
26
|
+
__reExport(schema_exports, require('./tokenSchema.cjs'), module.exports);
|
|
27
|
+
__reExport(schema_exports, require('./userSchema.cjs'), module.exports);
|
|
28
28
|
// Annotate the CommonJS export names for ESM import in node:
|
|
29
29
|
0 && (module.exports = {
|
|
30
|
-
...require(
|
|
31
|
-
...require(
|
|
32
|
-
...require(
|
|
33
|
-
...require(
|
|
34
|
-
...require(
|
|
35
|
-
...require(
|
|
36
|
-
...require(
|
|
37
|
-
...require(
|
|
38
|
-
...require(
|
|
39
|
-
...require(
|
|
40
|
-
...require(
|
|
30
|
+
...require('./contextSchemas.cjs'),
|
|
31
|
+
...require('./ecommerceSchemas.cjs'),
|
|
32
|
+
...require('./evaluatorSchemas.cjs'),
|
|
33
|
+
...require('./contentFetcherSchemas.cjs'),
|
|
34
|
+
...require('./eventSchemas.cjs'),
|
|
35
|
+
...require('./loggerSchema.cjs'),
|
|
36
|
+
...require('./operationSchemas.cjs'),
|
|
37
|
+
...require('./sdkFacadeSchemas.cjs'),
|
|
38
|
+
...require('./sdkSchemas.cjs'),
|
|
39
|
+
...require('./tokenSchema.cjs'),
|
|
40
|
+
...require('./userSchema.cjs')
|
|
41
41
|
});
|
|
42
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { tokenScopeSchema } from './contextSchemas.cjs';
|
|
2
|
+
export { cart, cartItem, order, orderItem, productDetails } from './ecommerceSchemas.cjs';
|
|
3
|
+
export { evaluationOptionsSchema } from './evaluatorSchemas.cjs';
|
|
4
|
+
export { fetchOptionsSchema } from './contentFetcherSchemas.cjs';
|
|
5
|
+
export { cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, linkOpened, orderPlaced, postViewed, productViewed, userSignedUp } from './eventSchemas.cjs';
|
|
6
|
+
export { loggerSchema } from './loggerSchema.cjs';
|
|
7
|
+
export { addOperation, clearOperation, combineOperation, decrementOperation, incrementOperation, mergeOperation, removeOperation, setOperation, unsetOperation } from './operationSchemas.cjs';
|
|
8
|
+
export { sdkFacadeConfigurationSchema } from './sdkFacadeSchemas.cjs';
|
|
9
|
+
export { cookieOptionsSchema, eventMetadataSchema, sdkConfigurationSchema } from './sdkSchemas.cjs';
|
|
10
|
+
export { tokenSchema } from './tokenSchema.cjs';
|
|
11
|
+
export { userProfileSchema } from './userSchema.cjs';
|
|
12
|
+
import '../validation/stringType.cjs';
|
|
13
|
+
import '../validation/schema.cjs';
|
|
14
|
+
import '../validation/objectType.cjs';
|
package/schema/index.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
export * from "./contextSchemas";
|
|
2
|
-
export * from "./ecommerceSchemas";
|
|
3
|
-
export * from "./evaluatorSchemas";
|
|
4
|
-
export * from "./contentFetcherSchemas";
|
|
5
|
-
export * from "./eventSchemas";
|
|
6
|
-
export * from "./loggerSchema";
|
|
7
|
-
export * from "./operationSchemas";
|
|
8
|
-
export * from "./sdkFacadeSchemas";
|
|
9
|
-
export * from "./sdkSchemas";
|
|
10
|
-
export * from "./tokenSchema";
|
|
11
|
-
export * from "./userSchema";
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from "./contextSchemas.js";
|
|
2
|
+
export * from "./ecommerceSchemas.js";
|
|
3
|
+
export * from "./evaluatorSchemas.js";
|
|
4
|
+
export * from "./contentFetcherSchemas.js";
|
|
5
|
+
export * from "./eventSchemas.js";
|
|
6
|
+
export * from "./loggerSchema.js";
|
|
7
|
+
export * from "./operationSchemas.js";
|
|
8
|
+
export * from "./sdkFacadeSchemas.js";
|
|
9
|
+
export * from "./sdkSchemas.js";
|
|
10
|
+
export * from "./tokenSchema.js";
|
|
11
|
+
export * from "./userSchema.js";
|
package/schema/loggerSchema.cjs
CHANGED
|
@@ -20,7 +20,7 @@ __export(loggerSchema_exports, {
|
|
|
20
20
|
loggerSchema: () => loggerSchema
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(loggerSchema_exports);
|
|
23
|
-
var import_validation = require(
|
|
23
|
+
var import_validation = require('../validation/index.cjs');
|
|
24
24
|
const loggerSchema = new import_validation.ObjectType({
|
|
25
25
|
required: ["debug", "info", "warn", "error"],
|
|
26
26
|
additionalProperties: true,
|
|
@@ -35,4 +35,3 @@ const loggerSchema = new import_validation.ObjectType({
|
|
|
35
35
|
0 && (module.exports = {
|
|
36
36
|
loggerSchema
|
|
37
37
|
});
|
|
38
|
-
//# sourceMappingURL=loggerSchema.cjs.map
|
package/schema/loggerSchema.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ObjectType, FunctionType } from "../validation";
|
|
1
|
+
import { ObjectType, FunctionType } from "../validation/index.js";
|
|
2
2
|
const loggerSchema = new ObjectType({
|
|
3
3
|
required: ["debug", "info", "warn", "error"],
|
|
4
4
|
additionalProperties: true,
|
|
@@ -12,4 +12,3 @@ const loggerSchema = new ObjectType({
|
|
|
12
12
|
export {
|
|
13
13
|
loggerSchema
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=loggerSchema.js.map
|
|
@@ -28,8 +28,8 @@ __export(operationSchemas_exports, {
|
|
|
28
28
|
unsetOperation: () => unsetOperation
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(operationSchemas_exports);
|
|
31
|
-
var import_validation = require(
|
|
32
|
-
var import_attributeSchema = require(
|
|
31
|
+
var import_validation = require('../validation/index.cjs');
|
|
32
|
+
var import_attributeSchema = require('./attributeSchema.cjs');
|
|
33
33
|
const pointer = new import_validation.StringType({
|
|
34
34
|
format: "pointer"
|
|
35
35
|
});
|
|
@@ -119,4 +119,3 @@ const removeOperation = new import_validation.ObjectType({
|
|
|
119
119
|
setOperation,
|
|
120
120
|
unsetOperation
|
|
121
121
|
});
|
|
122
|
-
//# sourceMappingURL=operationSchemas.cjs.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ObjectType } from '../validation/objectType.cjs';
|
|
2
|
+
import '../validation/schema.cjs';
|
|
3
|
+
|
|
4
|
+
declare const addOperation: ObjectType;
|
|
5
|
+
declare const setOperation: ObjectType;
|
|
6
|
+
declare const combineOperation: ObjectType;
|
|
7
|
+
declare const mergeOperation: ObjectType;
|
|
8
|
+
declare const decrementOperation: ObjectType;
|
|
9
|
+
declare const incrementOperation: ObjectType;
|
|
10
|
+
declare const clearOperation: ObjectType;
|
|
11
|
+
declare const unsetOperation: ObjectType;
|
|
12
|
+
declare const removeOperation: ObjectType;
|
|
13
|
+
|
|
14
|
+
export { addOperation, clearOperation, combineOperation, decrementOperation, incrementOperation, mergeOperation, removeOperation, setOperation, unsetOperation };
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
JsonObjectType,
|
|
7
7
|
JsonPrimitiveType,
|
|
8
8
|
UnionType
|
|
9
|
-
} from "../validation";
|
|
10
|
-
import { attributeNameSchema } from "./attributeSchema";
|
|
9
|
+
} from "../validation/index.js";
|
|
10
|
+
import { attributeNameSchema } from "./attributeSchema.js";
|
|
11
11
|
const pointer = new StringType({
|
|
12
12
|
format: "pointer"
|
|
13
13
|
});
|
|
@@ -96,4 +96,3 @@ export {
|
|
|
96
96
|
setOperation,
|
|
97
97
|
unsetOperation
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=operationSchemas.js.map
|
|
@@ -20,10 +20,10 @@ __export(sdkFacadeSchemas_exports, {
|
|
|
20
20
|
sdkFacadeConfigurationSchema: () => sdkFacadeConfigurationSchema
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(sdkFacadeSchemas_exports);
|
|
23
|
-
var import_validation = require(
|
|
24
|
-
var import_contextSchemas = require(
|
|
25
|
-
var import_sdkSchemas = require(
|
|
26
|
-
var import_loggerSchema = require(
|
|
23
|
+
var import_validation = require('../validation/index.cjs');
|
|
24
|
+
var import_contextSchemas = require('./contextSchemas.cjs');
|
|
25
|
+
var import_sdkSchemas = require('./sdkSchemas.cjs');
|
|
26
|
+
var import_loggerSchema = require('./loggerSchema.cjs');
|
|
27
27
|
const sdkFacadeConfigurationSchema = new import_validation.ObjectType({
|
|
28
28
|
required: ["appId"],
|
|
29
29
|
properties: {
|
|
@@ -79,4 +79,3 @@ const sdkFacadeConfigurationSchema = new import_validation.ObjectType({
|
|
|
79
79
|
0 && (module.exports = {
|
|
80
80
|
sdkFacadeConfigurationSchema
|
|
81
81
|
});
|
|
82
|
-
//# sourceMappingURL=sdkFacadeSchemas.cjs.map
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
NullType,
|
|
7
7
|
FunctionType,
|
|
8
8
|
NumberType
|
|
9
|
-
} from "../validation";
|
|
10
|
-
import { tokenScopeSchema } from "./contextSchemas";
|
|
11
|
-
import { cookieOptionsSchema, eventMetadataSchema } from "./sdkSchemas";
|
|
12
|
-
import { loggerSchema } from "./loggerSchema";
|
|
9
|
+
} from "../validation/index.js";
|
|
10
|
+
import { tokenScopeSchema } from "./contextSchemas.js";
|
|
11
|
+
import { cookieOptionsSchema, eventMetadataSchema } from "./sdkSchemas.js";
|
|
12
|
+
import { loggerSchema } from "./loggerSchema.js";
|
|
13
13
|
const sdkFacadeConfigurationSchema = new ObjectType({
|
|
14
14
|
required: ["appId"],
|
|
15
15
|
properties: {
|
|
@@ -64,4 +64,3 @@ const sdkFacadeConfigurationSchema = new ObjectType({
|
|
|
64
64
|
export {
|
|
65
65
|
sdkFacadeConfigurationSchema
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=sdkFacadeSchemas.js.map
|
package/schema/sdkSchemas.cjs
CHANGED
|
@@ -22,9 +22,9 @@ __export(sdkSchemas_exports, {
|
|
|
22
22
|
sdkConfigurationSchema: () => sdkConfigurationSchema
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(sdkSchemas_exports);
|
|
25
|
-
var import_validation = require(
|
|
26
|
-
var import_contextSchemas = require(
|
|
27
|
-
var import_loggerSchema = require(
|
|
25
|
+
var import_validation = require('../validation/index.cjs');
|
|
26
|
+
var import_contextSchemas = require('./contextSchemas.cjs');
|
|
27
|
+
var import_loggerSchema = require('./loggerSchema.cjs');
|
|
28
28
|
const eventMetadataSchema = new import_validation.ObjectType({
|
|
29
29
|
maxProperties: 5,
|
|
30
30
|
propertyNames: new import_validation.StringType({
|
|
@@ -107,4 +107,3 @@ const sdkConfigurationSchema = new import_validation.ObjectType({
|
|
|
107
107
|
eventMetadataSchema,
|
|
108
108
|
sdkConfigurationSchema
|
|
109
109
|
});
|
|
110
|
-
//# sourceMappingURL=sdkSchemas.cjs.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ObjectType } from '../validation/objectType.cjs';
|
|
2
|
+
import '../validation/schema.cjs';
|
|
3
|
+
|
|
4
|
+
declare const eventMetadataSchema: ObjectType;
|
|
5
|
+
declare const cookieOptionsSchema: ObjectType;
|
|
6
|
+
declare const sdkConfigurationSchema: ObjectType;
|
|
7
|
+
|
|
8
|
+
export { cookieOptionsSchema, eventMetadataSchema, sdkConfigurationSchema };
|
package/schema/sdkSchemas.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ObjectType, StringType, BooleanType, NumberType, FunctionType } from "../validation";
|
|
2
|
-
import { tokenScopeSchema } from "./contextSchemas";
|
|
3
|
-
import { loggerSchema } from "./loggerSchema";
|
|
1
|
+
import { ObjectType, StringType, BooleanType, NumberType, FunctionType } from "../validation/index.js";
|
|
2
|
+
import { tokenScopeSchema } from "./contextSchemas.js";
|
|
3
|
+
import { loggerSchema } from "./loggerSchema.js";
|
|
4
4
|
const eventMetadataSchema = new ObjectType({
|
|
5
5
|
maxProperties: 5,
|
|
6
6
|
propertyNames: new StringType({
|
|
@@ -82,4 +82,3 @@ export {
|
|
|
82
82
|
eventMetadataSchema,
|
|
83
83
|
sdkConfigurationSchema
|
|
84
84
|
};
|
|
85
|
-
//# sourceMappingURL=sdkSchemas.js.map
|
package/schema/tokenSchema.cjs
CHANGED
|
@@ -20,7 +20,7 @@ __export(tokenSchema_exports, {
|
|
|
20
20
|
tokenSchema: () => tokenSchema
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(tokenSchema_exports);
|
|
23
|
-
var import_validation = require(
|
|
23
|
+
var import_validation = require('../validation/index.cjs');
|
|
24
24
|
const tokenSchema = new import_validation.ObjectType({
|
|
25
25
|
required: ["headers", "payload"],
|
|
26
26
|
properties: {
|
|
@@ -65,4 +65,3 @@ const tokenSchema = new import_validation.ObjectType({
|
|
|
65
65
|
0 && (module.exports = {
|
|
66
66
|
tokenSchema
|
|
67
67
|
});
|
|
68
|
-
//# sourceMappingURL=tokenSchema.cjs.map
|
package/schema/tokenSchema.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ObjectType, StringType, NumberType, UnionType, ArrayType } from "../validation";
|
|
1
|
+
import { ObjectType, StringType, NumberType, UnionType, ArrayType } from "../validation/index.js";
|
|
2
2
|
const tokenSchema = new ObjectType({
|
|
3
3
|
required: ["headers", "payload"],
|
|
4
4
|
properties: {
|
|
@@ -42,4 +42,3 @@ const tokenSchema = new ObjectType({
|
|
|
42
42
|
export {
|
|
43
43
|
tokenSchema
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=tokenSchema.js.map
|
package/schema/userSchema.cjs
CHANGED
|
@@ -20,8 +20,8 @@ __export(userSchema_exports, {
|
|
|
20
20
|
userProfileSchema: () => userProfileSchema
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(userSchema_exports);
|
|
23
|
-
var import_validation = require(
|
|
24
|
-
var import_attributeSchema = require(
|
|
23
|
+
var import_validation = require('../validation/index.cjs');
|
|
24
|
+
var import_attributeSchema = require('./attributeSchema.cjs');
|
|
25
25
|
const userProfileSchema = new import_validation.ObjectType({
|
|
26
26
|
properties: {
|
|
27
27
|
firstName: new import_validation.StringType({
|
|
@@ -199,4 +199,3 @@ const userProfileSchema = new import_validation.ObjectType({
|
|
|
199
199
|
0 && (module.exports = {
|
|
200
200
|
userProfileSchema
|
|
201
201
|
});
|
|
202
|
-
//# sourceMappingURL=userSchema.cjs.map
|
package/schema/userSchema.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
NullType,
|
|
7
7
|
NumberType,
|
|
8
8
|
ArrayType
|
|
9
|
-
} from "../validation";
|
|
10
|
-
import { attributeNameSchema } from "./attributeSchema";
|
|
9
|
+
} from "../validation/index.js";
|
|
10
|
+
import { attributeNameSchema } from "./attributeSchema.js";
|
|
11
11
|
const userProfileSchema = new ObjectType({
|
|
12
12
|
properties: {
|
|
13
13
|
firstName: new StringType({
|
|
@@ -184,4 +184,3 @@ const userProfileSchema = new ObjectType({
|
|
|
184
184
|
export {
|
|
185
185
|
userProfileSchema
|
|
186
186
|
};
|
|
187
|
-
//# sourceMappingURL=userSchema.js.map
|
package/sdk.cjs
CHANGED
|
@@ -20,10 +20,10 @@ __export(sdk_exports, {
|
|
|
20
20
|
Sdk: () => Sdk
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(sdk_exports);
|
|
23
|
-
var import_container = require(
|
|
24
|
-
var import_constants = require(
|
|
25
|
-
var import_schema = require(
|
|
26
|
-
var import_error = require(
|
|
23
|
+
var import_container = require('./container.cjs');
|
|
24
|
+
var import_constants = require('./constants.cjs');
|
|
25
|
+
var import_schema = require('./schema/index.cjs');
|
|
26
|
+
var import_error = require('./error.cjs');
|
|
27
27
|
function validateConfiguration(configuration) {
|
|
28
28
|
if (typeof configuration !== "object" || configuration === null) {
|
|
29
29
|
throw new Error("The configuration must be a key-value map.");
|
|
@@ -131,4 +131,3 @@ class Sdk {
|
|
|
131
131
|
0 && (module.exports = {
|
|
132
132
|
Sdk
|
|
133
133
|
});
|
|
134
|
-
//# sourceMappingURL=sdk.cjs.map
|
package/sdk.d.cts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { DependencyResolver } from './container.cjs';
|
|
2
|
+
import { TokenScope, Context } from './context.cjs';
|
|
3
|
+
import { Logger } from './logging/logger.cjs';
|
|
4
|
+
import { TrackingEventProcessor, Tracker } from './tracker.cjs';
|
|
5
|
+
import { Evaluator } from './evaluator.cjs';
|
|
6
|
+
import { SdkEventMap } from './sdkEvents.cjs';
|
|
7
|
+
import { EventManager } from './eventManager.cjs';
|
|
8
|
+
import { CidAssigner } from './cid/assigner.cjs';
|
|
9
|
+
import { UrlSanitizer } from './tab.cjs';
|
|
10
|
+
import { ContentFetcher } from './contentFetcher.cjs';
|
|
11
|
+
import { TokenStore } from './token/token.cjs';
|
|
12
|
+
import { CookieCacheConfiguration } from './cache/cookieCache.cjs';
|
|
13
|
+
import './queue/monitoredQueue.cjs';
|
|
14
|
+
import './queue/queue.cjs';
|
|
15
|
+
import './cache/cache.cjs';
|
|
16
|
+
import './channel/channel.cjs';
|
|
17
|
+
import './retry/policy.cjs';
|
|
18
|
+
import './trackingEvents.cjs';
|
|
19
|
+
import './patch.cjs';
|
|
20
|
+
import '@croct/json';
|
|
21
|
+
import './utilityTypes.cjs';
|
|
22
|
+
import './sourceLocation.cjs';
|
|
23
|
+
import './apiKey.cjs';
|
|
24
|
+
|
|
25
|
+
type Configuration = {
|
|
26
|
+
appId: string;
|
|
27
|
+
tokenScope: TokenScope;
|
|
28
|
+
debug: boolean;
|
|
29
|
+
test: boolean;
|
|
30
|
+
clientId?: string;
|
|
31
|
+
baseEndpointUrl?: string;
|
|
32
|
+
disableCidMirroring: boolean;
|
|
33
|
+
cidAssignerEndpointUrl?: string;
|
|
34
|
+
beaconQueueSize?: number;
|
|
35
|
+
urlSanitizer?: UrlSanitizer;
|
|
36
|
+
logger?: Logger;
|
|
37
|
+
eventMetadata?: {
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
};
|
|
40
|
+
cookie?: {
|
|
41
|
+
clientId?: CookieCacheConfiguration;
|
|
42
|
+
userToken?: CookieCacheConfiguration;
|
|
43
|
+
previewToken?: CookieCacheConfiguration;
|
|
44
|
+
};
|
|
45
|
+
eventProcessor?: DependencyResolver<TrackingEventProcessor>;
|
|
46
|
+
defaultFetchTimeout?: number;
|
|
47
|
+
defaultPreferredLocale?: string;
|
|
48
|
+
};
|
|
49
|
+
declare class Sdk {
|
|
50
|
+
private container;
|
|
51
|
+
private closed;
|
|
52
|
+
private constructor();
|
|
53
|
+
static init(configuration: Configuration): Sdk;
|
|
54
|
+
get appId(): string;
|
|
55
|
+
get cidAssigner(): CidAssigner;
|
|
56
|
+
get previewTokenStore(): TokenStore;
|
|
57
|
+
get userTokenStore(): TokenStore;
|
|
58
|
+
get context(): Context;
|
|
59
|
+
get tracker(): Tracker;
|
|
60
|
+
get evaluator(): Evaluator;
|
|
61
|
+
get contentFetcher(): ContentFetcher;
|
|
62
|
+
get eventManager(): EventManager<SdkEventMap>;
|
|
63
|
+
getLogger(...namespace: string[]): Logger;
|
|
64
|
+
getTabStorage(namespace: string, ...subnamespace: string[]): Storage;
|
|
65
|
+
getBrowserStorage(namespace: string, ...subnamespace: string[]): Storage;
|
|
66
|
+
close(): Promise<void>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { type Configuration, Sdk };
|
package/sdk.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Container } from "./container";
|
|
2
|
-
import { BASE_ENDPOINT_URL, VERSION } from "./constants";
|
|
3
|
-
import { sdkConfigurationSchema } from "./schema";
|
|
4
|
-
import { formatCause } from "./error";
|
|
1
|
+
import { Container } from "./container.js";
|
|
2
|
+
import { BASE_ENDPOINT_URL, VERSION } from "./constants.js";
|
|
3
|
+
import { sdkConfigurationSchema } from "./schema/index.js";
|
|
4
|
+
import { formatCause } from "./error.js";
|
|
5
5
|
function validateConfiguration(configuration) {
|
|
6
6
|
if (typeof configuration !== "object" || configuration === null) {
|
|
7
7
|
throw new Error("The configuration must be a key-value map.");
|
|
@@ -108,4 +108,3 @@ class Sdk {
|
|
|
108
108
|
export {
|
|
109
109
|
Sdk
|
|
110
110
|
};
|
|
111
|
-
//# sourceMappingURL=sdk.js.map
|
package/sdkEvents.cjs
CHANGED
package/sdkEvents.d.cts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Token } from './token/token.cjs';
|
|
2
|
+
import '@croct/json';
|
|
3
|
+
import './apiKey.cjs';
|
|
4
|
+
|
|
5
|
+
interface TokenChanged {
|
|
6
|
+
oldToken: Token | null;
|
|
7
|
+
newToken: Token | null;
|
|
8
|
+
}
|
|
9
|
+
type SdkEventMap = Record<string, Record<string, unknown>> & {
|
|
10
|
+
tokenChanged: TokenChanged;
|
|
11
|
+
};
|
|
12
|
+
type SdkEventType = keyof SdkEventMap;
|
|
13
|
+
type SdkEvent<T extends SdkEventType = SdkEventType> = T extends SdkEventType ? SdkEventMap[T] : SdkEventMap[SdkEventType];
|
|
14
|
+
|
|
15
|
+
export type { SdkEvent, SdkEventMap, SdkEventType, TokenChanged };
|
package/sdkEvents.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=sdkEvents.js.map
|
package/sourceLocation.cjs
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type Position = {
|
|
2
|
+
line: number;
|
|
3
|
+
column: number;
|
|
4
|
+
index: number;
|
|
5
|
+
};
|
|
6
|
+
type Location = {
|
|
7
|
+
start: Position;
|
|
8
|
+
end: Position;
|
|
9
|
+
};
|
|
10
|
+
declare function getLength(input: string): number;
|
|
11
|
+
declare function getLocation(input: string, startIndex: number, endIndex: number): Location;
|
|
12
|
+
declare function getPosition(input: string, index: number): Position;
|
|
13
|
+
|
|
14
|
+
export { type Location, type Position, getLength, getLocation, getPosition };
|
package/sourceLocation.js
CHANGED
package/tab.cjs
CHANGED
|
@@ -20,7 +20,7 @@ __export(tab_exports, {
|
|
|
20
20
|
Tab: () => Tab
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(tab_exports);
|
|
23
|
-
var import_eventManager = require(
|
|
23
|
+
var import_eventManager = require('./eventManager.cjs');
|
|
24
24
|
const EventMap = {
|
|
25
25
|
focus: "focus",
|
|
26
26
|
blur: "blur",
|
|
@@ -119,4 +119,3 @@ class Tab {
|
|
|
119
119
|
0 && (module.exports = {
|
|
120
120
|
Tab
|
|
121
121
|
});
|
|
122
|
-
//# sourceMappingURL=tab.cjs.map
|