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.
- package/AppsflyerCapacitorPlugin.podspec +1 -1
- package/README.md +5 -1
- package/android/build.gradle +22 -16
- package/dist/esm/Appsflyer_constants.js.map +1 -1
- package/dist/esm/appsflyer_interfaces.d.ts +1 -1
- package/dist/esm/appsflyer_interfaces.js +1 -1
- package/dist/esm/appsflyer_interfaces.js.map +1 -1
- package/dist/esm/definitions.d.ts +8 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/plugin.cjs.js +1 -3
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +1 -3
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/AppsFlyerPlugin.swift +1 -1
- package/package.json +18 -18
- package/src/Appsflyer_constants.ts +25 -26
- package/src/appsflyer_interfaces.ts +188 -134
- package/src/definitions.ts +311 -314
- package/src/index.ts +1 -2
- package/tsconfig.json +1 -0
- /package/{rollup.config.js → rollup.config.mjs} +0 -0
|
@@ -1,180 +1,234 @@
|
|
|
1
|
-
import type {MediationNetwork, AFPurchaseType} from
|
|
1
|
+
import type { MediationNetwork, AFPurchaseType } from './Appsflyer_constants';
|
|
2
2
|
|
|
3
|
-
export interface AFInit{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
20
|
-
|
|
18
|
+
export interface AFEvent {
|
|
19
|
+
eventName?: string;
|
|
20
|
+
eventValue?: any;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export interface OnConversionDataResult{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
export interface OnConversionDataResult {
|
|
24
|
+
callbackName: string;
|
|
25
|
+
errorMessage?: string;
|
|
26
|
+
data?: any;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export interface OnAppOpenAttribution{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
export interface OnAppOpenAttribution {
|
|
30
|
+
callbackName: string;
|
|
31
|
+
errorMessage?: string;
|
|
32
|
+
data?: any;
|
|
33
33
|
}
|
|
34
|
-
export interface OnDeepLink{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
54
|
-
|
|
54
|
+
export interface AFInAppPurchase {
|
|
55
|
+
currency: string;
|
|
56
|
+
additionalParameters?: StringMap;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
export interface AFAndroidInAppPurchase extends AFInAppPurchase{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface AFLatLng{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
export interface AFPartnerData{
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
export interface AFLogInvite{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
export interface AFLink {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
export interface
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
export interface
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
export interface
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
export interface
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
export interface
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
export interface
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
121
|
-
|
|
122
|
-
|
|
168
|
+
isUserSubjectToGDPR: boolean;
|
|
169
|
+
hasConsentForDataUsage?: boolean;
|
|
170
|
+
hasConsentForAdsPersonalization?: boolean;
|
|
123
171
|
}
|
|
124
172
|
|
|
125
173
|
class AppsFlyerConsentClass implements IAppsFlyerConsent {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
174
|
+
public isUserSubjectToGDPR: boolean;
|
|
175
|
+
public hasConsentForDataUsage?: boolean;
|
|
176
|
+
public hasConsentForAdsPersonalization?: boolean;
|
|
129
177
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
188
|
+
static forGDPRUser(hasConsentForDataUsage: boolean, hasConsentForAdsPersonalization: boolean): IAppsFlyerConsent {
|
|
189
|
+
return new AppsFlyerConsentClass(true, hasConsentForDataUsage, hasConsentForAdsPersonalization);
|
|
190
|
+
}
|
|
139
191
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
192
|
+
static forNonGDPRUser(): IAppsFlyerConsent {
|
|
193
|
+
return new AppsFlyerConsentClass(false);
|
|
194
|
+
}
|
|
143
195
|
}
|
|
144
196
|
|
|
145
197
|
export const AppsFlyerConsent = {
|
|
146
|
-
|
|
147
|
-
|
|
198
|
+
forGDPRUser: AppsFlyerConsentClass.forGDPRUser,
|
|
199
|
+
forNonGDPRUser: AppsFlyerConsentClass.forNonGDPRUser,
|
|
148
200
|
};
|
|
149
201
|
|
|
150
202
|
export interface AFConsentData {
|
|
151
|
-
|
|
203
|
+
data: IAppsFlyerConsent;
|
|
152
204
|
}
|
|
153
205
|
|
|
154
206
|
export interface AFAdRevenueData {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
215
|
+
isUserSubjectToGDPR?: boolean | null;
|
|
216
|
+
hasConsentForDataUsage?: boolean | null;
|
|
217
|
+
hasConsentForAdsPersonalization?: boolean | null;
|
|
218
|
+
hasConsentForAdStorage?: boolean | null;
|
|
167
219
|
}
|
|
168
220
|
|
|
169
|
-
export interface AFIsStarted {
|
|
221
|
+
export interface AFIsStarted {
|
|
222
|
+
isStarted: boolean;
|
|
223
|
+
}
|
|
170
224
|
|
|
171
225
|
export interface AFPurchaseDetails {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
226
|
+
purchaseType: AFPurchaseType;
|
|
227
|
+
purchaseToken: string;
|
|
228
|
+
productId: string;
|
|
175
229
|
}
|
|
176
230
|
|
|
177
231
|
export interface AFPurchaseDetailsV2 {
|
|
178
|
-
|
|
179
|
-
|
|
232
|
+
purchaseDetails: AFPurchaseDetails;
|
|
233
|
+
additionalParameters?: StringMap;
|
|
180
234
|
}
|