@encorekit/web-sdk 2.3.0 → 2.4.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/README.md +66 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/preview.cjs +2 -0
- package/dist/cjs/preview.cjs.map +1 -0
- package/dist/cjs/react.cjs +1 -1
- package/dist/cjs/react.cjs.map +1 -1
- package/dist/esm/chunks/ClaimReminder-DFyrm5bJ.js +2 -0
- package/dist/esm/chunks/ClaimReminder-DFyrm5bJ.js.map +1 -0
- package/dist/esm/chunks/GiftsButton-B0lVB463.js +2 -0
- package/dist/esm/chunks/GiftsButton-B0lVB463.js.map +1 -0
- package/dist/esm/chunks/TriggerHost-CNTiNrTH.js +2 -0
- package/dist/esm/chunks/TriggerHost-CNTiNrTH.js.map +1 -0
- package/dist/esm/chunks/autoPops-CngtK_R0.js +2 -0
- package/dist/esm/chunks/autoPops-CngtK_R0.js.map +1 -0
- package/dist/esm/chunks/customClaim-B4uj-aOc.js +2 -0
- package/dist/esm/chunks/customClaim-B4uj-aOc.js.map +1 -0
- package/dist/esm/chunks/eligibility-BY7fL8Ve.js +2 -0
- package/dist/esm/chunks/eligibility-BY7fL8Ve.js.map +1 -0
- package/dist/esm/chunks/index-CaBSqauy.js +2 -0
- package/dist/esm/chunks/index-CaBSqauy.js.map +1 -0
- package/dist/esm/chunks/lookValues-B9z2VWpH.js +2 -0
- package/dist/esm/chunks/lookValues-B9z2VWpH.js.map +1 -0
- package/dist/esm/chunks/sduiView-Ds7QtFId.js +2 -0
- package/dist/esm/chunks/sduiView-Ds7QtFId.js.map +1 -0
- package/dist/esm/chunks/spot-DkKMLpB-.js +2 -0
- package/dist/esm/chunks/spot-DkKMLpB-.js.map +1 -0
- package/dist/esm/chunks/template-B9p4CbPD.js +2 -0
- package/dist/esm/chunks/template-B9p4CbPD.js.map +1 -0
- package/dist/esm/chunks/textSlots-BnwxUg9V.js +2 -0
- package/dist/esm/chunks/textSlots-BnwxUg9V.js.map +1 -0
- package/dist/esm/chunks/timers-Bva4yoGM.js +2 -0
- package/dist/esm/chunks/timers-Bva4yoGM.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/preview.js +2 -0
- package/dist/esm/preview.js.map +1 -0
- package/dist/esm/react.js +1 -1
- package/dist/esm/react.js.map +1 -1
- package/dist/umd/encore.min.js +1 -1
- package/dist/umd/encore.min.js.map +1 -1
- package/package.json +9 -1
- package/types/analytics/DiagnosticsOutbox.d.ts +1 -0
- package/types/analytics/DiagnosticsOutbox.d.ts.map +1 -1
- package/types/analytics/events.d.ts +105 -5
- package/types/analytics/events.d.ts.map +1 -1
- package/types/analytics/models.d.ts +2 -0
- package/types/analytics/models.d.ts.map +1 -1
- package/types/analytics/transport.d.ts +6 -0
- package/types/analytics/transport.d.ts.map +1 -1
- package/types/api/APIClient.d.ts +58 -3
- package/types/api/APIClient.d.ts.map +1 -1
- package/types/api/contract.d.ts +4 -1
- package/types/api/contract.d.ts.map +1 -1
- package/types/api/generated/types.d.ts +420 -39
- package/types/api/generated/types.d.ts.map +1 -1
- package/types/api/models.d.ts +18 -2
- package/types/api/models.d.ts.map +1 -1
- package/types/api/offerBuilder.d.ts +10 -4
- package/types/api/offerBuilder.d.ts.map +1 -1
- package/types/core/Encore.d.ts +145 -3
- package/types/core/Encore.d.ts.map +1 -1
- package/types/core/OfferManager.d.ts +25 -3
- package/types/core/OfferManager.d.ts.map +1 -1
- package/types/core/PlacementBuilder.d.ts +6 -1
- package/types/core/PlacementBuilder.d.ts.map +1 -1
- package/types/core/SignalManager.d.ts.map +1 -1
- package/types/core/StorageManager.d.ts +3 -2
- package/types/core/StorageManager.d.ts.map +1 -1
- package/types/core/StrictUnlockReconciler.d.ts +1 -1
- package/types/core/StrictUnlockReconciler.d.ts.map +1 -1
- package/types/core/claimHandle.d.ts +44 -0
- package/types/core/claimHandle.d.ts.map +1 -0
- package/types/core/claimLog.d.ts +102 -0
- package/types/core/claimLog.d.ts.map +1 -0
- package/types/core/claimRefusal.d.ts +3 -0
- package/types/core/claimRefusal.d.ts.map +1 -0
- package/types/core/claimStatusCheck.d.ts +62 -0
- package/types/core/claimStatusCheck.d.ts.map +1 -0
- package/types/core/giftVariant.d.ts +5 -0
- package/types/core/giftVariant.d.ts.map +1 -1
- package/types/core/hostDisplay.d.ts +9 -2
- package/types/core/hostDisplay.d.ts.map +1 -1
- package/types/core/sduiVariables.d.ts +20 -0
- package/types/core/sduiVariables.d.ts.map +1 -0
- package/types/core/strings.d.ts +114 -0
- package/types/core/strings.d.ts.map +1 -0
- package/types/core/unlockCode.d.ts +8 -1
- package/types/core/unlockCode.d.ts.map +1 -1
- package/types/core/userKeys.d.ts +7 -0
- package/types/core/userKeys.d.ts.map +1 -0
- package/types/core/version.d.ts +1 -1
- package/types/experiments/ExposureOutbox.d.ts +1 -0
- package/types/experiments/ExposureOutbox.d.ts.map +1 -1
- package/types/preview.d.ts +51 -0
- package/types/preview.d.ts.map +1 -0
- package/types/react.d.ts +53 -1
- package/types/react.d.ts.map +1 -1
- package/types/sdui/actions.d.ts +93 -0
- package/types/sdui/actions.d.ts.map +1 -0
- package/types/sdui/bindings.d.ts +63 -0
- package/types/sdui/bindings.d.ts.map +1 -0
- package/types/sdui/compile.d.ts +88 -0
- package/types/sdui/compile.d.ts.map +1 -0
- package/types/sdui/conditions.d.ts +22 -0
- package/types/sdui/conditions.d.ts.map +1 -0
- package/types/sdui/context.d.ts +132 -0
- package/types/sdui/context.d.ts.map +1 -0
- package/types/sdui/countdown.d.ts +31 -0
- package/types/sdui/countdown.d.ts.map +1 -0
- package/types/sdui/decode.d.ts +35 -0
- package/types/sdui/decode.d.ts.map +1 -0
- package/types/sdui/deps.d.ts +43 -0
- package/types/sdui/deps.d.ts.map +1 -0
- package/types/sdui/dominantColor.d.ts +24 -0
- package/types/sdui/dominantColor.d.ts.map +1 -0
- package/types/sdui/elements/confetti.d.ts +38 -0
- package/types/sdui/elements/confetti.d.ts.map +1 -0
- package/types/sdui/elements/content.d.ts +27 -0
- package/types/sdui/elements/content.d.ts.map +1 -0
- package/types/sdui/elements/interactive.d.ts +48 -0
- package/types/sdui/elements/interactive.d.ts.map +1 -0
- package/types/sdui/elements/layout.d.ts +41 -0
- package/types/sdui/elements/layout.d.ts.map +1 -0
- package/types/sdui/elements/marquee.d.ts +17 -0
- package/types/sdui/elements/marquee.d.ts.map +1 -0
- package/types/sdui/elements/progress.d.ts +10 -0
- package/types/sdui/elements/progress.d.ts.map +1 -0
- package/types/sdui/elements/shared.d.ts +138 -0
- package/types/sdui/elements/shared.d.ts.map +1 -0
- package/types/sdui/elements/symbols.d.ts +22 -0
- package/types/sdui/elements/symbols.d.ts.map +1 -0
- package/types/sdui/elements/triggerText.d.ts +55 -0
- package/types/sdui/elements/triggerText.d.ts.map +1 -0
- package/types/sdui/host.d.ts +274 -0
- package/types/sdui/host.d.ts.map +1 -0
- package/types/sdui/inlineMarkup.d.ts +22 -0
- package/types/sdui/inlineMarkup.d.ts.map +1 -0
- package/types/sdui/lookValues.d.ts +50 -0
- package/types/sdui/lookValues.d.ts.map +1 -0
- package/types/sdui/model.d.ts +130 -0
- package/types/sdui/model.d.ts.map +1 -0
- package/types/sdui/motion.d.ts +37 -0
- package/types/sdui/motion.d.ts.map +1 -0
- package/types/sdui/precheck.d.ts +94 -0
- package/types/sdui/precheck.d.ts.map +1 -0
- package/types/sdui/scrollMath.d.ts +32 -0
- package/types/sdui/scrollMath.d.ts.map +1 -0
- package/types/sdui/style.d.ts +99 -0
- package/types/sdui/style.d.ts.map +1 -0
- package/types/sdui/triggerKit.d.ts +24 -0
- package/types/sdui/triggerKit.d.ts.map +1 -0
- package/types/sdui/unrunnable.d.ts +11 -0
- package/types/sdui/unrunnable.d.ts.map +1 -0
- package/types/sdui/vocabulary.d.ts +119 -0
- package/types/sdui/vocabulary.d.ts.map +1 -0
- package/types/triggers/claimReminder/ClaimReminder.d.ts +65 -0
- package/types/triggers/claimReminder/ClaimReminder.d.ts.map +1 -0
- package/types/triggers/claimReminder/bindings.d.ts +40 -0
- package/types/triggers/claimReminder/bindings.d.ts.map +1 -0
- package/types/triggers/claimReminder/config.d.ts +56 -0
- package/types/triggers/claimReminder/config.d.ts.map +1 -0
- package/types/triggers/claimReminder/eligibility.d.ts +37 -0
- package/types/triggers/claimReminder/eligibility.d.ts.map +1 -0
- package/types/triggers/claimReminder/servedWindow.d.ts +15 -0
- package/types/triggers/claimReminder/servedWindow.d.ts.map +1 -0
- package/types/triggers/claimReminder/source.d.ts +29 -0
- package/types/triggers/claimReminder/source.d.ts.map +1 -0
- package/types/triggers/giftsButton/GiftsButton.d.ts +60 -0
- package/types/triggers/giftsButton/GiftsButton.d.ts.map +1 -0
- package/types/triggers/giftsButton/config.d.ts +53 -0
- package/types/triggers/giftsButton/config.d.ts.map +1 -0
- package/types/triggers/giftsButton/spot.d.ts +54 -0
- package/types/triggers/giftsButton/spot.d.ts.map +1 -0
- package/types/triggers/host/TriggerHost.d.ts +127 -0
- package/types/triggers/host/TriggerHost.d.ts.map +1 -0
- package/types/triggers/host/autoPops.d.ts +16 -0
- package/types/triggers/host/autoPops.d.ts.map +1 -0
- package/types/triggers/host/configCache.d.ts +29 -0
- package/types/triggers/host/configCache.d.ts.map +1 -0
- package/types/triggers/host/customClaim.d.ts +85 -0
- package/types/triggers/host/customClaim.d.ts.map +1 -0
- package/types/triggers/host/dismissStore.d.ts +37 -0
- package/types/triggers/host/dismissStore.d.ts.map +1 -0
- package/types/triggers/host/readThrottle.d.ts +15 -0
- package/types/triggers/host/readThrottle.d.ts.map +1 -0
- package/types/triggers/host/registry.d.ts +17 -0
- package/types/triggers/host/registry.d.ts.map +1 -0
- package/types/triggers/host/sduiView.d.ts +31 -0
- package/types/triggers/host/sduiView.d.ts.map +1 -0
- package/types/triggers/host/template.d.ts +28 -0
- package/types/triggers/host/template.d.ts.map +1 -0
- package/types/triggers/host/textSlots.d.ts +35 -0
- package/types/triggers/host/textSlots.d.ts.map +1 -0
- package/types/triggers/host/theme.d.ts +87 -0
- package/types/triggers/host/theme.d.ts.map +1 -0
- package/types/triggers/host/timers.d.ts +11 -0
- package/types/triggers/host/timers.d.ts.map +1 -0
- package/types/triggers/host/types.d.ts +278 -0
- package/types/triggers/host/types.d.ts.map +1 -0
- package/types/triggers/host/wire.d.ts +55 -0
- package/types/triggers/host/wire.d.ts.map +1 -0
- package/types/triggers/preview.d.ts +78 -0
- package/types/triggers/preview.d.ts.map +1 -0
- package/types/triggers/request.d.ts +53 -0
- package/types/triggers/request.d.ts.map +1 -0
- package/types/types.d.ts +329 -1
- package/types/types.d.ts.map +1 -1
- package/types/ui/ClaimScreen.d.ts +1 -1
- package/types/ui/ClaimScreen.d.ts.map +1 -1
- package/types/ui/CodeUnlock.d.ts +12 -2
- package/types/ui/CodeUnlock.d.ts.map +1 -1
- package/types/ui/GiftHero.d.ts.map +1 -1
- package/types/ui/GiftList.d.ts.map +1 -1
- package/types/ui/GiftPicker.d.ts.map +1 -1
- package/types/ui/GiftPickerHero.d.ts.map +1 -1
- package/types/ui/GiftReveal.d.ts.map +1 -1
- package/types/ui/GiftSheet.d.ts +5 -5
- package/types/ui/GiftSheet.d.ts.map +1 -1
- package/types/ui/GiftUnwrap.d.ts.map +1 -1
- package/types/ui/OfferCard.d.ts.map +1 -1
- package/types/ui/OfferCarousel.d.ts.map +1 -1
- package/types/ui/OfferModal.d.ts +31 -0
- package/types/ui/OfferModal.d.ts.map +1 -1
- package/types/ui/PrimerScreen.d.ts +2 -0
- package/types/ui/PrimerScreen.d.ts.map +1 -1
- package/types/ui/RedemptionScreen.d.ts +5 -0
- package/types/ui/RedemptionScreen.d.ts.map +1 -1
- package/types/ui/RewardActions.d.ts.map +1 -1
- package/types/ui/RewardCard.d.ts.map +1 -1
- package/types/ui/SduiRewardSurface.d.ts +145 -0
- package/types/ui/SduiRewardSurface.d.ts.map +1 -0
- package/types/ui/Tooltip.d.ts.map +1 -1
- package/types/ui/brandComponents.d.ts.map +1 -1
- package/types/ui/brandTint.d.ts.map +1 -1
- package/types/ui/colorScheme.d.ts +15 -0
- package/types/ui/colorScheme.d.ts.map +1 -0
- package/types/ui/covered.d.ts +12 -0
- package/types/ui/covered.d.ts.map +1 -0
- package/types/ui/giftCategoryGroups.d.ts +13 -0
- package/types/ui/giftCategoryGroups.d.ts.map +1 -1
- package/types/ui/giftCopy.d.ts +14 -9
- package/types/ui/giftCopy.d.ts.map +1 -1
- package/types/ui/giftUnwrapCopy.d.ts.map +1 -1
- package/types/ui/imageURL.d.ts +44 -0
- package/types/ui/imageURL.d.ts.map +1 -0
- package/types/ui/impressionGate.d.ts +9 -0
- package/types/ui/impressionGate.d.ts.map +1 -1
- package/types/ui/offerBadge.d.ts.map +1 -1
- package/types/ui/rewardSurface.d.ts +11 -1
- package/types/ui/rewardSurface.d.ts.map +1 -1
- package/types/ui/sduiTheme.d.ts +48 -0
- package/types/ui/sduiTheme.d.ts.map +1 -0
- package/types/ui/sheetDetents.d.ts +28 -0
- package/types/ui/sheetDetents.d.ts.map +1 -0
- package/types/ui/styles.d.ts +11 -8
- package/types/ui/styles.d.ts.map +1 -1
- package/types/ui/termsLine.d.ts +3 -3
- package/types/ui/termsLine.d.ts.map +1 -1
- package/types/ui/toast.d.ts +11 -0
- package/types/ui/toast.d.ts.map +1 -0
- package/types/utils/logger.d.ts +10 -0
- package/types/utils/logger.d.ts.map +1 -1
- package/types/utils/text.d.ts +17 -0
- package/types/utils/text.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@encorekit/web-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Encore SDK for web applications - display targeted offers and manage user entitlements",
|
|
6
6
|
"main": "./dist/cjs/index.cjs",
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
"import": "./dist/esm/react.js",
|
|
19
19
|
"require": "./dist/cjs/react.cjs",
|
|
20
20
|
"default": "./dist/esm/react.js"
|
|
21
|
+
},
|
|
22
|
+
"./preview": {
|
|
23
|
+
"types": "./types/preview.d.ts",
|
|
24
|
+
"import": "./dist/esm/preview.js",
|
|
25
|
+
"require": "./dist/cjs/preview.cjs",
|
|
26
|
+
"default": "./dist/esm/preview.js"
|
|
21
27
|
}
|
|
22
28
|
},
|
|
23
29
|
"sideEffects": false,
|
|
@@ -47,6 +53,7 @@
|
|
|
47
53
|
"demo:dev": "concurrently -n watch,backend,mock,frontend -c blue,magenta,yellow,green \"npm run build:watch\" \"npm run demo:backend\" \"npm run demo:mock\" \"npm run demo:frontend\"",
|
|
48
54
|
"dev:example": "bash scripts/dev-example.sh",
|
|
49
55
|
"clean:examples": "bash scripts/clean-examples.sh",
|
|
56
|
+
"prepack": "npm run build",
|
|
50
57
|
"prepublishOnly": "npm test && npm run build && npm run clean:examples",
|
|
51
58
|
"pack:local": "npm run build && npm run clean:examples && npm pack",
|
|
52
59
|
"demo:mock": "node demo/mock-sdk-api.js"
|
|
@@ -87,6 +94,7 @@
|
|
|
87
94
|
"express": "^5.1.0",
|
|
88
95
|
"http-server": "^14.1.1",
|
|
89
96
|
"jsdom": "^25.0.0",
|
|
97
|
+
"magic-string": "0.30.21",
|
|
90
98
|
"openapi-typescript": "^7.13.0",
|
|
91
99
|
"openapi-zod-client": "^1.18.3",
|
|
92
100
|
"prettier": "^3.6.2",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { ReliableOutbox } from './ReliableOutbox';
|
|
18
18
|
import type { StorageManager } from '../core/StorageManager';
|
|
19
|
+
export declare const DIAGNOSTICS_OUTBOX_KEY = "diagnostics_outbox";
|
|
19
20
|
export declare class DiagnosticsOutbox extends ReliableOutbox {
|
|
20
21
|
constructor(apiKey: string, analyticsBaseURL: string, storage: StorageManager);
|
|
21
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiagnosticsOutbox.d.ts","sourceRoot":"","sources":["../../src/analytics/DiagnosticsOutbox.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"DiagnosticsOutbox.d.ts","sourceRoot":"","sources":["../../src/analytics/DiagnosticsOutbox.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,eAAO,MAAM,sBAAsB,uBAAuB,CAAC;AAE3D,qBAAa,iBAAkB,SAAQ,cAAc;gBACvC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc;CAG9E"}
|
|
@@ -86,9 +86,62 @@ export type ShareDestinationValue = (typeof ShareDestination)[keyof typeof Share
|
|
|
86
86
|
export declare function declineReasonWireValue(reason: string | undefined): string | undefined;
|
|
87
87
|
export declare function sdkInitialized(distinctId: string, sdkVersion: string, appBundleId: string): AnalyticsEvent;
|
|
88
88
|
export declare function userIdentified(distinctId: string, userId: string, appBundleId: string, attributes?: Record<string, unknown>): AnalyticsEvent;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
/**
|
|
90
|
+
* What every `sdk_trigger_*` event carries. One shape for every trigger on iOS,
|
|
91
|
+
* Android and the web: which trigger, where, which variant and experiment drew it
|
|
92
|
+
* (`experiment_id` is an explicit null when there is none), plus what the trigger
|
|
93
|
+
* adds (`transaction_id`, `campaign_id`, `layout`), each omitted when absent.
|
|
94
|
+
* `use_case` is the sheet's real use case, mapped to its wire value here, so no caller
|
|
95
|
+
* can send a public symbol by mistake.
|
|
96
|
+
*/
|
|
97
|
+
export interface TriggerEventContext {
|
|
98
|
+
trigger: string;
|
|
99
|
+
/** The use case of the sheet the trigger opens; sent as its wire value. */
|
|
100
|
+
useCase: UseCase;
|
|
101
|
+
placementId?: string;
|
|
102
|
+
variantId?: string;
|
|
103
|
+
experimentId: string | null;
|
|
104
|
+
transactionId?: string;
|
|
105
|
+
campaignId?: string;
|
|
106
|
+
layout?: string;
|
|
107
|
+
/** The sheet presentation a click opened, so the readout joins it to the sheet's events. Clicked only. */
|
|
108
|
+
presentationId?: string;
|
|
109
|
+
/** The language the trigger's copy was served in; stamped as the event's `locale`. */
|
|
110
|
+
locale?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The trigger whose spot this one is drawn in (`giftsButton` for a claim reminder shown
|
|
113
|
+
* in a GiftsButton mount after a claim). Absent for a trigger in its own spot.
|
|
114
|
+
*/
|
|
115
|
+
hostTrigger?: string;
|
|
116
|
+
/** The step a look's behavior chose what is drawn for (the response's `ui.step`). */
|
|
117
|
+
step?: string;
|
|
118
|
+
/** With a `step`: the experiment that decided it (`ui.stepExperimentId`), else null. */
|
|
119
|
+
stepExperimentId?: string | null;
|
|
120
|
+
/** The text slots drawn with the app's own text, sorted; absent when none. Never the text. */
|
|
121
|
+
textSlots?: readonly string[];
|
|
122
|
+
}
|
|
123
|
+
/** The trigger was at least half on screen for one second. Once per content per mount. */
|
|
124
|
+
export declare function triggerImpression(distinctId: string, ctx: TriggerEventContext): AnalyticsEvent;
|
|
125
|
+
/** The user tapped the trigger; `target` is `card`, `arrow` or `button`. */
|
|
126
|
+
export declare function triggerClicked(distinctId: string, ctx: TriggerEventContext, target: string): AnalyticsEvent;
|
|
127
|
+
/**
|
|
128
|
+
* A look whose behavior opens the sheet by itself did, and the sheet is up: sent instead of a
|
|
129
|
+
* click, with the sheet's presentation id. A pop that opens no sheet sends nothing.
|
|
130
|
+
*/
|
|
131
|
+
export declare function triggerAutoOpened(distinctId: string, ctx: TriggerEventContext): AnalyticsEvent;
|
|
132
|
+
/** The user dismissed what the trigger showed. */
|
|
133
|
+
export declare function triggerDismissed(distinctId: string, ctx: TriggerEventContext): AnalyticsEvent;
|
|
134
|
+
/**
|
|
135
|
+
* The user reached a mounted trigger that would have shown and did not, for
|
|
136
|
+
* `reason` (see NOT_SHOWN_REASON). The counterfactual exposure. Once per trigger,
|
|
137
|
+
* placement and reason per local day on a device.
|
|
138
|
+
*/
|
|
139
|
+
export declare function triggerEligibleNotShown(distinctId: string, ctx: TriggerEventContext, reason: string): AnalyticsEvent;
|
|
140
|
+
export declare function offerPresentationTriggered(distinctId: string, presentationId: string, variantId?: string, useCase?: UseCase, placementId?: string, experimentId?: string): AnalyticsEvent;
|
|
141
|
+
export declare function offerPresentationFailed(distinctId: string, reason: string, presentationId: string, variantId?: string, useCase?: UseCase, placementId?: string, experimentId?: string): AnalyticsEvent;
|
|
142
|
+
export declare function offerPresentationSuccess(distinctId: string, presentationId: string, offerCount: number, variantId?: string, useCase?: UseCase, placementId?: string, experimentId?: string): AnalyticsEvent;
|
|
143
|
+
/** Why `sdk_offer_presented` fired, when not a view: `'claim'` is a claim before any view. */
|
|
144
|
+
export type PresentationTrigger = 'claim';
|
|
92
145
|
export declare function offerPresented(distinctId: string, params: {
|
|
93
146
|
campaignId: string;
|
|
94
147
|
creativeId?: string;
|
|
@@ -96,11 +149,14 @@ export declare function offerPresented(distinctId: string, params: {
|
|
|
96
149
|
impressionId: string;
|
|
97
150
|
offerIndex: number;
|
|
98
151
|
totalOffers: number;
|
|
99
|
-
presentationTrigger?:
|
|
152
|
+
presentationTrigger?: PresentationTrigger;
|
|
100
153
|
presentationId: string;
|
|
101
154
|
variantId?: string;
|
|
155
|
+
experimentId?: string;
|
|
102
156
|
useCase?: UseCase;
|
|
103
157
|
placementId?: string;
|
|
158
|
+
/** Wire `image_cache_hit`: ready when shown: the offer's images could draw at once. Absent if unknown. */
|
|
159
|
+
imageCacheHit?: boolean;
|
|
104
160
|
}): AnalyticsEvent;
|
|
105
161
|
export declare function offerClaimed(distinctId: string, params: {
|
|
106
162
|
campaignId: string;
|
|
@@ -112,6 +168,7 @@ export declare function offerClaimed(distinctId: string, params: {
|
|
|
112
168
|
totalOffers: number;
|
|
113
169
|
presentationId: string;
|
|
114
170
|
variantId?: string;
|
|
171
|
+
experimentId?: string;
|
|
115
172
|
useCase?: UseCase;
|
|
116
173
|
placementId?: string;
|
|
117
174
|
}): AnalyticsEvent;
|
|
@@ -135,6 +192,7 @@ export declare function offerSheetDismissed(distinctId: string, params: {
|
|
|
135
192
|
offersViewed: number;
|
|
136
193
|
declineReason?: string;
|
|
137
194
|
variantId?: string;
|
|
195
|
+
experimentId?: string;
|
|
138
196
|
useCase?: UseCase;
|
|
139
197
|
placementId?: string;
|
|
140
198
|
}): AnalyticsEvent;
|
|
@@ -399,12 +457,54 @@ export declare function sduiConfigLoaded(distinctId: string, params: {
|
|
|
399
457
|
*/
|
|
400
458
|
export declare function sduiButtonTapped(distinctId: string, params: {
|
|
401
459
|
variantId?: string;
|
|
402
|
-
|
|
460
|
+
/**
|
|
461
|
+
* The eleven wire actions, plus `unknown` for a name this build does not
|
|
462
|
+
* recognise, which both natives still count rather than dropping. `next`
|
|
463
|
+
* and `previous` are the BUILT-IN carousel's arrows: that surface has no
|
|
464
|
+
* SDUI actions, and folding it into the same event is what makes one query
|
|
465
|
+
* read both surfaces.
|
|
466
|
+
*/
|
|
467
|
+
actionType: 'close' | 'claimOffer' | 'openUrl' | 'setState' | 'setValue' | 'selectOffer' | 'setOfferIndex' | 'triggerIAP' | 'submitLead' | 'share' | 'reportCompletion' | 'unknown' | 'next' | 'previous';
|
|
403
468
|
presentationId: string;
|
|
404
469
|
currentState: string;
|
|
405
470
|
useCase?: UseCase;
|
|
406
471
|
placementId?: string;
|
|
407
472
|
}): AnalyticsEvent;
|
|
473
|
+
/**
|
|
474
|
+
* The sheet moved from one screen to another.
|
|
475
|
+
*
|
|
476
|
+
* The canonical screen-view signal on both natives: `fromState`, `toState` and
|
|
477
|
+
* `timeInPreviousStateMs` together let a funnel derive screen-viewed without a
|
|
478
|
+
* second event. Only the SDUI engine can produce it, because only the engine
|
|
479
|
+
* holds the state machine. The built-in surface has none, which is why
|
|
480
|
+
* `sdk_sdui_button_tapped` reports a hard-coded `currentState` there.
|
|
481
|
+
*/
|
|
482
|
+
export declare function sduiStateTransition(distinctId: string, params: {
|
|
483
|
+
variantId?: string;
|
|
484
|
+
fromState: string;
|
|
485
|
+
toState: string;
|
|
486
|
+
timeInPreviousStateMs: number;
|
|
487
|
+
presentationId: string;
|
|
488
|
+
useCase?: UseCase;
|
|
489
|
+
placementId?: string;
|
|
490
|
+
}): AnalyticsEvent;
|
|
491
|
+
/**
|
|
492
|
+
* A values-dictionary key was written by a TAP.
|
|
493
|
+
*
|
|
494
|
+
* Scroll-driven selection writes the same keys and deliberately emits nothing,
|
|
495
|
+
* and so does the mount-time seed: neither is a choice a user made. A tapped
|
|
496
|
+
* offer emits exactly one of these, on the primary selection key, carrying the
|
|
497
|
+
* offer id. The five derivative keys written with it are template-rendering
|
|
498
|
+
* conveniences and are not instrumented on any platform.
|
|
499
|
+
*/
|
|
500
|
+
export declare function sduiValueSet(distinctId: string, params: {
|
|
501
|
+
variantId?: string;
|
|
502
|
+
key: string;
|
|
503
|
+
value: string;
|
|
504
|
+
presentationId: string;
|
|
505
|
+
useCase?: UseCase;
|
|
506
|
+
placementId?: string;
|
|
507
|
+
}): AnalyticsEvent;
|
|
408
508
|
/**
|
|
409
509
|
* The user moved through the offer carousel. `scrollAxis` is genuinely
|
|
410
510
|
* bi-modal on web: the carousel is horizontal on desktop and a vertical list on
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/analytics/events.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE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,UAAU,CACxB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE;IACN,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,YAAY,GAAG,UAAU,CAAC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GACA,cAAc,CAahB;AAMD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,GACxE,cAAc,CAWhB;AAMD,wBAAgB,QAAQ,CACtB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,MAAM,GACf,cAAc,CAMhB"}
|
|
@@ -16,5 +16,7 @@ export interface AnalyticsEvent {
|
|
|
16
16
|
name: string;
|
|
17
17
|
distinctId: string;
|
|
18
18
|
properties: Record<string, unknown>;
|
|
19
|
+
/** The locale this event's copy was served in, when it differs from the SDK-wide one. */
|
|
20
|
+
locale?: string;
|
|
19
21
|
}
|
|
20
22
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/analytics/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,sBAAsB,CAAC;AAEnD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/analytics/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,sBAAsB,CAAC;AAEnD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,yFAAyF;IACzF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -25,6 +25,12 @@ import type { AnalyticsEvent, EventEnvelope } from './models';
|
|
|
25
25
|
*
|
|
26
26
|
* Absent for every publisher, since the option is Encore-internal and omitted when
|
|
27
27
|
* unset: an envelope built without it is byte-identical to before it existed.
|
|
28
|
+
*
|
|
29
|
+
* `locale` is the locale the SDK rendered its copy in (`/config`'s `locale`, the
|
|
30
|
+
* one `lang` and `dir` are stamped from), read when the event is built, as iOS and
|
|
31
|
+
* Android stamp it. Not the browser language: a session pinned to French on an
|
|
32
|
+
* English browser is a French funnel. Absent while nothing is served (a
|
|
33
|
+
* pre-localization backend, or a language change whose `/config` has not answered).
|
|
28
34
|
*/
|
|
29
35
|
export declare function buildEnvelope(event: AnalyticsEvent, eventId?: string, demoVariant?: string | null): EventEnvelope;
|
|
30
36
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/analytics/transport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/analytics/transport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAmD9D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,cAAc,EACrB,OAAO,GAAE,MAAuB,EAChC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAC1B,aAAa,CA0Bf;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,aAAa,EACvB,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAChC,OAAO,CAAC,QAAQ,CAAC,CAWnB"}
|
package/types/api/APIClient.d.ts
CHANGED
|
@@ -12,6 +12,40 @@ export interface OffersSearchScope {
|
|
|
12
12
|
useCase?: UseCase;
|
|
13
13
|
/** Cache key only (never sent): set when /config lists this label in `ruledPlacements`. */
|
|
14
14
|
ruledPlacementId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sent as `variantId` when `variantId` is absent, but never part of the cache key: a
|
|
17
|
+
* trigger's eligibility search names the sheet's variant so the server does not
|
|
18
|
+
* resolve (and record) the sheet again, while its result stays where the sheet's own
|
|
19
|
+
* search, which may not send the variant, will read it.
|
|
20
|
+
*/
|
|
21
|
+
wireVariantId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* `purpose: "prefetch"` marks a search the SDK runs before any sheet is shown (a
|
|
24
|
+
* trigger's gate). Its result may later back the sheet the user opens with a tap, so
|
|
25
|
+
* it is a served request like any other, not an impression. Never a cache key.
|
|
26
|
+
*/
|
|
27
|
+
purpose?: 'prefetch';
|
|
28
|
+
/**
|
|
29
|
+
* Never sent and never a cache key: this presentation is the sheet a trigger's tap
|
|
30
|
+
* opened, so in strict mode it takes the set the trigger's gate held for it. Any other
|
|
31
|
+
* presentation of the scope searches as it always has and leaves that set held.
|
|
32
|
+
*/
|
|
33
|
+
fromTrigger?: true;
|
|
34
|
+
}
|
|
35
|
+
/** What a trigger's /config asks for, beyond the identity. */
|
|
36
|
+
export interface TriggerConfigRequest {
|
|
37
|
+
useCase: UseCase;
|
|
38
|
+
placementId?: string;
|
|
39
|
+
language?: string;
|
|
40
|
+
/** A pinned layout (`layout=<pin>`). */
|
|
41
|
+
layout?: string;
|
|
42
|
+
/**
|
|
43
|
+
* `autoOpen=off`: the mount forbids Encore from opening the sheet by itself. Sent only
|
|
44
|
+
* then; absent means allowed.
|
|
45
|
+
*/
|
|
46
|
+
autoOpen?: 'off';
|
|
47
|
+
/** What happened on the device (`state=`, §2.8): the served look's behavior picks the step. */
|
|
48
|
+
state?: 'claimOpen' | 'completed';
|
|
15
49
|
}
|
|
16
50
|
interface RequestOptions {
|
|
17
51
|
method: 'GET' | 'POST' | 'PATCH';
|
|
@@ -88,7 +122,9 @@ export declare class APIClient {
|
|
|
88
122
|
/**
|
|
89
123
|
* Check verification status for a transaction
|
|
90
124
|
*/
|
|
91
|
-
checkVerificationStatus(transactionId: string
|
|
125
|
+
checkVerificationStatus(transactionId: string, options?: {
|
|
126
|
+
quiet?: boolean;
|
|
127
|
+
}): Promise<{
|
|
92
128
|
status: VerificationStatus;
|
|
93
129
|
raw: BackendVerificationStatus | null;
|
|
94
130
|
}>;
|
|
@@ -118,7 +154,8 @@ export declare class APIClient {
|
|
|
118
154
|
*
|
|
119
155
|
* Two callers, two very different requests:
|
|
120
156
|
* - The EAGER fetch (once, at configure()) passes no use case. Its response
|
|
121
|
-
* carries reduceChurn in `ui`
|
|
157
|
+
* carries reduceChurn in `ui` (or, on a reward-only app, the reward surface,
|
|
158
|
+
* echoed in `ui.useCase`) PLUS the `useCases` prefetch block.
|
|
122
159
|
* - The LAZY fetch (at most once per use case, only when the block did not
|
|
123
160
|
* carry it) passes one. Its response resolves that surface in `ui`
|
|
124
161
|
* INCLUDING experiments — which the prefetch block, carrying only default
|
|
@@ -129,8 +166,26 @@ export declare class APIClient {
|
|
|
129
166
|
*
|
|
130
167
|
* `placementId` is sent only by the placement-scoped fetch behind
|
|
131
168
|
* `EncoreConfig.resolveVariantsByPlacement`, already normalised by the caller.
|
|
169
|
+
*
|
|
170
|
+
* `language` is the session's one language (the host's `Encore.setLanguage()`
|
|
171
|
+
* tag), the same value the offers request carries, so the copy and the offers
|
|
172
|
+
* resolve one locale. Omitted when unset: the browser's
|
|
173
|
+
* Accept-Language header then decides, as it always has.
|
|
174
|
+
*/
|
|
175
|
+
fetchConfig(userId: string, sdkVersion: string, useCase?: UseCase, demoVariant?: string, placementId?: string, language?: string): Promise<RemoteConfigResponse>;
|
|
176
|
+
/**
|
|
177
|
+
* Fetch a trigger's config:
|
|
178
|
+
* `GET /config?trigger=<id>&useCase=<wire>[&placementId][&language][&layout][&autoOpen=off][&state]`.
|
|
179
|
+
*
|
|
180
|
+
* `trigger` makes it a trigger request; `useCase` is the sheet's real use case and is
|
|
181
|
+
* always sent (churn included). The response has the usual shape; the trigger host
|
|
182
|
+
* reads `ui` and `locale` and nothing else, and none of it is written into the SDK's
|
|
183
|
+
* shared config caches.
|
|
184
|
+
*
|
|
185
|
+
* `placementId` is normalised and omitted when blank, and `language` is omitted
|
|
186
|
+
* when unset, as on the other requests.
|
|
132
187
|
*/
|
|
133
|
-
|
|
188
|
+
fetchTriggerConfig(userId: string, sdkVersion: string, triggerId: string, request: TriggerConfigRequest): Promise<RemoteConfigResponse>;
|
|
134
189
|
/**
|
|
135
190
|
* Report a client error (fire-and-forget)
|
|
136
191
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"APIClient.d.ts","sourceRoot":"","sources":["../../src/api/APIClient.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAe,cAAc,EAAE,WAAW,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEtG,OAAO,KAAK,EAEV,wBAAwB,EAIxB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,UAAU,EACV,yBAAyB,EAC1B,M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ClB,OAAO,EAAE,MAAM,CAAC;QAChB,6FAA6F;QAC7F,OAAO,EAAE,YAAY,CAAC;QACtB,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;QAClD,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACnC,GAAG,OAAO,CAAC,IAAI,CAAC;IA0CjB;;OAEG;IACG,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAW3D"}
|
package/types/api/contract.d.ts
CHANGED
|
@@ -14,10 +14,13 @@
|
|
|
14
14
|
* declaration graph: giant zod schemas cannot serialize into `.d.ts` (TS7056),
|
|
15
15
|
* so ONLY tests / runtime validators import them, never production sources.
|
|
16
16
|
*/
|
|
17
|
-
import type { components } from './generated/types';
|
|
17
|
+
import type { components, paths } from './generated/types';
|
|
18
18
|
type Schema = components['schemas'];
|
|
19
19
|
export type AnalyticsEventEnvelope = Schema['AnalyticsEventEnvelope'];
|
|
20
20
|
export type ConfigResponse = Schema['ConfigResponse'];
|
|
21
|
+
/** `GET /config`'s query, including a trigger request's `trigger`, `layout` and `autoOpen`. */
|
|
22
|
+
export type ConfigQuery = paths['/publisher/sdk/v1/config']['get']['parameters']['query'];
|
|
23
|
+
export type OffersSearchRequest = Schema['OffersSearchRequest'];
|
|
21
24
|
export type OffersSearchResponse = Schema['OffersSearchResponse'];
|
|
22
25
|
export type Campaign = Schema['Campaign'];
|
|
23
26
|
export type Creative = Schema['Creative'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/api/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+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