apps-sdk 1.1.33 → 1.1.35
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/package.json +1 -1
- package/src/libraries/Adapty.js +8 -0
- package/types/index.d.ts +4 -3
package/package.json
CHANGED
package/src/libraries/Adapty.js
CHANGED
|
@@ -169,6 +169,14 @@ class Adapty {
|
|
|
169
169
|
console.error('Error setting integration identifier:', error);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
+
|
|
173
|
+
async setMixpanelIntegrationIdentifier(integrationIdentifier) {
|
|
174
|
+
try {
|
|
175
|
+
await adapty.setIntegrationIdentifier('mixpanel_user_id', integrationIdentifier);
|
|
176
|
+
} catch (error) {
|
|
177
|
+
console.error('Error setting integration identifier:', error);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
172
180
|
}
|
|
173
181
|
|
|
174
182
|
export default new Adapty();
|
package/types/index.d.ts
CHANGED
|
@@ -215,13 +215,14 @@ declare module 'apps-sdk' {
|
|
|
215
215
|
getPaywallForPlacement(placementID: string, lang: string): Promise<any>;
|
|
216
216
|
isActivated(): Promise<boolean>;
|
|
217
217
|
createPaywallView(paywall: any): Promise<any>;
|
|
218
|
-
showPaywall(placementID: any, lang:
|
|
219
|
-
preloadPaywall(placementID: any, lang:
|
|
218
|
+
showPaywall(placementID: any, lang: any, eventHandlers?: PaywallEventHandlers): Promise<void>;
|
|
219
|
+
preloadPaywall(placementID: any, lang: any): Promise<any>
|
|
220
220
|
showPaywallPreloaded(paywallView: any, eventHandlers?: PaywallEventHandlers): Promise<void>;
|
|
221
|
-
checkPlacementExists(placementID: any, lang:
|
|
221
|
+
checkPlacementExists(placementID: any, lang: any): Promise<boolean>;
|
|
222
222
|
getProfile(): Promise<any>;
|
|
223
223
|
updateAdjustAttributionData(attribution: any): Promise<void>;
|
|
224
224
|
setAdjustIntegrationIdentifier(adjustIntegrationIdentifier: string): Promise<void>;
|
|
225
|
+
setMixpanelIntegrationIdentifier(mixpanelIntegrationIdentifier: string): Promise<void>;
|
|
225
226
|
closePaywall(): Promise<void>;
|
|
226
227
|
}
|
|
227
228
|
|