apps-sdk 1.1.34 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps-sdk",
3
- "version": "1.1.34",
3
+ "version": "1.1.35",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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
@@ -222,6 +222,7 @@ declare module 'apps-sdk' {
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