appsflyer-capacitor-plugin 6.17.9 → 6.17.91

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.
@@ -1,180 +1,234 @@
1
- import type {MediationNetwork, AFPurchaseType} from "./Appsflyer_constants";
1
+ import type { MediationNetwork, AFPurchaseType } from './Appsflyer_constants';
2
2
 
3
- export interface AFInit{
4
- devKey: string;
5
- appID: string;
6
- isDebug?: boolean;
7
- waitForATTUserAuthorization?: number;
8
- registerConversionListener?: boolean;
9
- registerOnAppOpenAttribution?: boolean;
10
- registerOnDeepLink?: boolean;
11
- useUninstallSandbox?: boolean;
12
- useReceiptValidationSandbox?: boolean;
13
- minTimeBetweenSessions?: number
14
- deepLinkTimeout?: number
15
- manualStart?: boolean;
3
+ export interface AFInit {
4
+ devKey: string;
5
+ appID: string;
6
+ isDebug?: boolean;
7
+ waitForATTUserAuthorization?: number;
8
+ registerConversionListener?: boolean;
9
+ registerOnAppOpenAttribution?: boolean;
10
+ registerOnDeepLink?: boolean;
11
+ useUninstallSandbox?: boolean;
12
+ useReceiptValidationSandbox?: boolean;
13
+ minTimeBetweenSessions?: number;
14
+ deepLinkTimeout?: number;
15
+ manualStart?: boolean;
16
16
  }
17
17
 
18
- export interface AFEvent{
19
- eventName?: string;
20
- eventValue?: any;
18
+ export interface AFEvent {
19
+ eventName?: string;
20
+ eventValue?: any;
21
21
  }
22
22
 
23
- export interface OnConversionDataResult{
24
- callbackName:string;
25
- errorMessage?: string;
26
- data?: any;
23
+ export interface OnConversionDataResult {
24
+ callbackName: string;
25
+ errorMessage?: string;
26
+ data?: any;
27
27
  }
28
28
 
29
- export interface OnAppOpenAttribution{
30
- callbackName:string;
31
- errorMessage?: string;
32
- data?: any;
29
+ export interface OnAppOpenAttribution {
30
+ callbackName: string;
31
+ errorMessage?: string;
32
+ data?: any;
33
33
  }
34
- export interface OnDeepLink{
35
- status:string;
36
- error?:string;
37
- deepLink?:any;
34
+ export interface OnDeepLink {
35
+ status: string;
36
+ error?: string;
37
+ deepLink?: any;
38
+ }
39
+ export interface StringMap {
40
+ [key: string]: string;
38
41
  }
39
- export interface StringMap { [key: string]: string; }
40
42
 
41
- export interface AFLinkGenerator{
42
- brandDomain?: string;
43
- campaign?: string;
44
- channel? : string;
45
- referrerName? : string;
46
- referrerImageURL? : string;
47
- referrerCustomerId? : string;
48
- baseDeeplink? : string; //af_dp
49
- addParameters? : StringMap;
43
+ export interface AFLinkGenerator {
44
+ brandDomain?: string;
45
+ campaign?: string;
46
+ channel?: string;
47
+ referrerName?: string;
48
+ referrerImageURL?: string;
49
+ referrerCustomerId?: string;
50
+ baseDeeplink?: string; //af_dp
51
+ addParameters?: StringMap;
50
52
  }
51
53
 
52
- export interface AFInAppPurchase{
53
- currency: string;
54
- additionalParameters?:StringMap;
54
+ export interface AFInAppPurchase {
55
+ currency: string;
56
+ additionalParameters?: StringMap;
55
57
  }
56
58
 
57
- export interface AFAndroidInAppPurchase extends AFInAppPurchase{
58
- publicKey: string;
59
- signature: string;
60
- purchaseData: string;
61
- price:string
59
+ export interface AFAndroidInAppPurchase extends AFInAppPurchase {
60
+ publicKey: string;
61
+ signature: string;
62
+ purchaseData: string;
63
+ price: string;
62
64
  }
63
65
 
64
- export interface AFIosInAppPurchase extends AFInAppPurchase{
65
- inAppPurchase: string;
66
- price: string;
67
- transactionId: string;
66
+ export interface AFIosInAppPurchase extends AFInAppPurchase {
67
+ inAppPurchase: string;
68
+ price: string;
69
+ transactionId: string;
68
70
  }
69
71
 
70
72
  export interface AFPromotion {
71
- appID:string,
72
- campaign:string,
73
- parameters:StringMap,
74
- }
75
-
76
- export interface AFLatLng{
77
- latitude: number,
78
- longitude: number
79
- }
80
- export interface AFPartnerData{
81
- data: any,
82
- partnerId: string
83
- }
84
- export interface AFLogInvite{
85
- eventParameters: StringMap,
86
- channel: string
87
- }
88
- export interface AFLink {link:string}
89
- export interface AFRes {res:string}
90
- export interface AFUninstall {token: string}
91
- export interface AFUid {uid: string}
92
- export interface AFCurrency {currencyCode: string}
93
- export interface AFCuid {cuid: string}
94
- export interface AFAnonymizeUser {anonymizeUser: boolean}
95
- export interface AFOnelinkID {onelinkID: string}
96
- export interface AFOnelinkDomain {domains: string[]}
97
- export interface AFUrls {urls: string[]}
98
- export interface AFPath {path: string[]}
99
- export interface AFEmails {emails: string[],
100
- encode?: boolean}
101
- export interface AFStop {stop: boolean}
102
- export interface AFIsStopped {isStopped: boolean}
103
- export interface AFFilters{filters: string[]}
104
- export interface AFData{additionalData: any}
105
- export interface AFDisable{shouldDisable: boolean}
106
- export interface AFFbDAL{enableFacebookDAL: boolean}
107
- export interface AFPushPayload{pushPayload: StringMap}
108
- export interface AFLanguage{language: string}
109
- export interface AFPhone{phone: string}
110
- export interface AFHost{hostPrefixName: string;
111
- hostName: string;
112
- }
113
- export interface AFAppendToDeepLink{contains: string;
114
- parameters: StringMap;
115
- }
116
-
117
- export interface AFEnableTCFDataCollection { shouldEnableTCFDataCollection: boolean }
73
+ appID: string;
74
+ campaign: string;
75
+ parameters: StringMap;
76
+ }
77
+
78
+ export interface AFLatLng {
79
+ latitude: number;
80
+ longitude: number;
81
+ }
82
+ export interface AFPartnerData {
83
+ data: any;
84
+ partnerId: string;
85
+ }
86
+ export interface AFLogInvite {
87
+ eventParameters: StringMap;
88
+ channel: string;
89
+ }
90
+ export interface AFLink {
91
+ link: string;
92
+ }
93
+ export interface AFRes {
94
+ res: string;
95
+ }
96
+ export interface AFUninstall {
97
+ token: string;
98
+ }
99
+ export interface AFUid {
100
+ uid: string;
101
+ }
102
+ export interface AFCurrency {
103
+ currencyCode: string;
104
+ }
105
+ export interface AFCuid {
106
+ cuid: string;
107
+ }
108
+ export interface AFAnonymizeUser {
109
+ anonymizeUser: boolean;
110
+ }
111
+ export interface AFOnelinkID {
112
+ onelinkID: string;
113
+ }
114
+ export interface AFOnelinkDomain {
115
+ domains: string[];
116
+ }
117
+ export interface AFUrls {
118
+ urls: string[];
119
+ }
120
+ export interface AFPath {
121
+ path: string[];
122
+ }
123
+ export interface AFEmails {
124
+ emails: string[];
125
+ encode?: boolean;
126
+ }
127
+ export interface AFStop {
128
+ stop: boolean;
129
+ }
130
+ export interface AFIsStopped {
131
+ isStopped: boolean;
132
+ }
133
+ export interface AFFilters {
134
+ filters: string[];
135
+ }
136
+ export interface AFData {
137
+ additionalData: any;
138
+ }
139
+ export interface AFDisable {
140
+ shouldDisable: boolean;
141
+ }
142
+ export interface AFFbDAL {
143
+ enableFacebookDAL: boolean;
144
+ }
145
+ export interface AFPushPayload {
146
+ pushPayload: StringMap;
147
+ }
148
+ export interface AFLanguage {
149
+ language: string;
150
+ }
151
+ export interface AFPhone {
152
+ phone: string;
153
+ }
154
+ export interface AFHost {
155
+ hostPrefixName: string;
156
+ hostName: string;
157
+ }
158
+ export interface AFAppendToDeepLink {
159
+ contains: string;
160
+ parameters: StringMap;
161
+ }
162
+
163
+ export interface AFEnableTCFDataCollection {
164
+ shouldEnableTCFDataCollection: boolean;
165
+ }
118
166
 
119
167
  export interface IAppsFlyerConsent {
120
- isUserSubjectToGDPR: boolean,
121
- hasConsentForDataUsage?: boolean,
122
- hasConsentForAdsPersonalization?: boolean
168
+ isUserSubjectToGDPR: boolean;
169
+ hasConsentForDataUsage?: boolean;
170
+ hasConsentForAdsPersonalization?: boolean;
123
171
  }
124
172
 
125
173
  class AppsFlyerConsentClass implements IAppsFlyerConsent {
126
- public isUserSubjectToGDPR: boolean;
127
- public hasConsentForDataUsage?: boolean;
128
- public hasConsentForAdsPersonalization?: boolean;
174
+ public isUserSubjectToGDPR: boolean;
175
+ public hasConsentForDataUsage?: boolean;
176
+ public hasConsentForAdsPersonalization?: boolean;
129
177
 
130
- private constructor(isUserSubjectToGDPR: boolean, hasConsentForDataUsage?: boolean, hasConsentForAdsPersonalization?: boolean) {
131
- this.isUserSubjectToGDPR = isUserSubjectToGDPR;
132
- this.hasConsentForDataUsage = hasConsentForDataUsage;
133
- this.hasConsentForAdsPersonalization = hasConsentForAdsPersonalization;
134
- }
178
+ private constructor(
179
+ isUserSubjectToGDPR: boolean,
180
+ hasConsentForDataUsage?: boolean,
181
+ hasConsentForAdsPersonalization?: boolean,
182
+ ) {
183
+ this.isUserSubjectToGDPR = isUserSubjectToGDPR;
184
+ this.hasConsentForDataUsage = hasConsentForDataUsage;
185
+ this.hasConsentForAdsPersonalization = hasConsentForAdsPersonalization;
186
+ }
135
187
 
136
- static forGDPRUser(hasConsentForDataUsage: boolean, hasConsentForAdsPersonalization: boolean): IAppsFlyerConsent {
137
- return new AppsFlyerConsentClass(true, hasConsentForDataUsage, hasConsentForAdsPersonalization);
138
- }
188
+ static forGDPRUser(hasConsentForDataUsage: boolean, hasConsentForAdsPersonalization: boolean): IAppsFlyerConsent {
189
+ return new AppsFlyerConsentClass(true, hasConsentForDataUsage, hasConsentForAdsPersonalization);
190
+ }
139
191
 
140
- static forNonGDPRUser(): IAppsFlyerConsent {
141
- return new AppsFlyerConsentClass(false);
142
- }
192
+ static forNonGDPRUser(): IAppsFlyerConsent {
193
+ return new AppsFlyerConsentClass(false);
194
+ }
143
195
  }
144
196
 
145
197
  export const AppsFlyerConsent = {
146
- forGDPRUser: AppsFlyerConsentClass.forGDPRUser,
147
- forNonGDPRUser: AppsFlyerConsentClass.forNonGDPRUser
198
+ forGDPRUser: AppsFlyerConsentClass.forGDPRUser,
199
+ forNonGDPRUser: AppsFlyerConsentClass.forNonGDPRUser,
148
200
  };
149
201
 
150
202
  export interface AFConsentData {
151
- data: IAppsFlyerConsent
203
+ data: IAppsFlyerConsent;
152
204
  }
153
205
 
154
206
  export interface AFAdRevenueData {
155
- monetizationNetwork: string;
156
- mediationNetwork: MediationNetwork;
157
- currencyIso4217Code: string;
158
- revenue: number;
159
- additionalParameters?: StringMap;
160
- }
207
+ monetizationNetwork: string;
208
+ mediationNetwork: MediationNetwork;
209
+ currencyIso4217Code: string;
210
+ revenue: number;
211
+ additionalParameters?: StringMap;
212
+ }
161
213
 
162
214
  export interface AFConsentOptions {
163
- isUserSubjectToGDPR?: boolean | null;
164
- hasConsentForDataUsage?: boolean | null;
165
- hasConsentForAdsPersonalization?: boolean | null;
166
- hasConsentForAdStorage?: boolean | null;
215
+ isUserSubjectToGDPR?: boolean | null;
216
+ hasConsentForDataUsage?: boolean | null;
217
+ hasConsentForAdsPersonalization?: boolean | null;
218
+ hasConsentForAdStorage?: boolean | null;
167
219
  }
168
220
 
169
- export interface AFIsStarted {isStarted: boolean}
221
+ export interface AFIsStarted {
222
+ isStarted: boolean;
223
+ }
170
224
 
171
225
  export interface AFPurchaseDetails {
172
- purchaseType: AFPurchaseType;
173
- purchaseToken: string;
174
- productId: string;
226
+ purchaseType: AFPurchaseType;
227
+ purchaseToken: string;
228
+ productId: string;
175
229
  }
176
230
 
177
231
  export interface AFPurchaseDetailsV2 {
178
- purchaseDetails: AFPurchaseDetails;
179
- additionalParameters?: StringMap;
232
+ purchaseDetails: AFPurchaseDetails;
233
+ additionalParameters?: StringMap;
180
234
  }