airbridge-react-native-sdk-restricted 2.8.9 → 4.1.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/.github/workflows/build.yml +249 -159
- package/.github/workflows/documentation.yml +76 -0
- package/.github/workflows/qa.yml +187 -0
- package/.github/workflows/release.yml +26 -0
- package/airbridge-react-native-sdk-restricted.podspec +10 -7
- package/airbridge_sdk.json +4 -0
- package/android/build.gradle +22 -5
- package/android/{copy-config.gradle → copy-airbridge-json.gradle} +2 -2
- package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeReactNative.kt +141 -0
- package/android/src/main/java/co/ab180/airbridge/reactnative/common/AirbridgeLifecycleIntegration.kt +7 -0
- package/android/src/main/java/co/ab180/airbridge/reactnative/extension/AirbridgeOptionBuilderApply.kt +79 -0
- package/android/src/main/java/co/ab180/airbridge/reactnative/extension/JSONConvert.kt +33 -0
- package/android/src/main/java/co/ab180/airbridge/reactnative/module/AttributionInteractor.kt +54 -0
- package/android/src/main/java/co/ab180/airbridge/reactnative/module/DeeplinkInteractor.kt +45 -0
- package/android/src/main/java/co/ab180/airbridge/reactnative/module/EventInteractor.kt +22 -0
- package/android/src/main/java/co/ab180/airbridge/reactnative/module/FetchInteractor.kt +51 -0
- package/android/src/main/java/co/ab180/airbridge/reactnative/module/PlacementInteractor.kt +56 -0
- package/android/src/main/java/co/ab180/airbridge/reactnative/module/RegisterInteractor.kt +108 -0
- package/android/src/main/java/co/ab180/airbridge/reactnative/module/SwitchInteractor.kt +43 -0
- package/android/src/main/java/co/ab180/airbridge/reactnative/module/WebInterfaceInteractor.kt +24 -0
- package/build/document/.nojekyll +1 -0
- package/build/document/assets/highlight.css +22 -0
- package/build/document/assets/icons.js +18 -0
- package/build/document/assets/icons.svg +1 -0
- package/build/document/assets/main.js +60 -0
- package/build/document/assets/navigation.js +1 -0
- package/build/document/assets/search.js +1 -0
- package/build/document/assets/style.css +1448 -0
- package/build/document/classes/Airbridge.html +113 -0
- package/build/document/classes/AirbridgeAttribute.html +49 -0
- package/build/document/classes/AirbridgeCategory.html +28 -0
- package/build/document/index.html +8 -0
- package/build/document/modules.html +4 -0
- package/build/source/Airbridge.d.ts +230 -0
- package/build/source/Airbridge.js +277 -0
- package/build/source/Airbridge.js.map +1 -0
- package/build/source/architecture/Interactor.d.ts +2 -0
- package/build/source/architecture/Interactor.js +7 -0
- package/build/source/architecture/Interactor.js.map +1 -0
- package/build/source/architecture/module.d.ts +1 -0
- package/build/source/architecture/module.js +2 -0
- package/build/source/architecture/module.js.map +1 -0
- package/build/source/constant/AirbridgeAttribute.d.ts +51 -0
- package/build/source/constant/AirbridgeAttribute.js +144 -0
- package/build/source/constant/AirbridgeAttribute.js.map +1 -0
- package/build/source/constant/AirbridgeCategory.d.ts +30 -0
- package/build/source/constant/AirbridgeCategory.js +81 -0
- package/build/source/constant/AirbridgeCategory.js.map +1 -0
- package/build/source/module/Attribution.d.ts +16 -0
- package/build/source/module/Attribution.js +39 -0
- package/build/source/module/Attribution.js.map +1 -0
- package/build/source/module/Deeplink.d.ts +17 -0
- package/build/source/module/Deeplink.js +40 -0
- package/build/source/module/Deeplink.js.map +1 -0
- package/build/source/module/Event.d.ts +14 -0
- package/build/source/module/Event.js +50 -0
- package/build/source/module/Event.js.map +1 -0
- package/build/source/module/Fetch.d.ts +19 -0
- package/build/source/module/Fetch.js +100 -0
- package/build/source/module/Fetch.js.map +1 -0
- package/build/source/module/Placement.d.ts +18 -0
- package/build/source/module/Placement.js +95 -0
- package/build/source/module/Placement.js.map +1 -0
- package/build/source/module/Register.d.ts +49 -0
- package/build/source/module/Register.js +138 -0
- package/build/source/module/Register.js.map +1 -0
- package/build/source/module/Switch.d.ts +24 -0
- package/build/source/module/Switch.js +39 -0
- package/build/source/module/Switch.js.map +1 -0
- package/build/source/module/WebInterface.d.ts +16 -0
- package/build/source/module/WebInterface.js +46 -0
- package/build/source/module/WebInterface.js.map +1 -0
- package/build/source/module.d.ts +3 -0
- package/build/source/module.js +4 -0
- package/build/source/module.js.map +1 -0
- package/build/source/utility/check.d.ts +13 -0
- package/build/source/utility/check.js +15 -0
- package/build/source/utility/check.js.map +1 -0
- package/build/source/utility/compute.d.ts +3 -0
- package/build/source/utility/compute.js +5 -0
- package/build/source/utility/compute.js.map +1 -0
- package/build/source/utility/create.d.ts +5 -0
- package/build/source/utility/create.js +12 -0
- package/build/source/utility/create.js.map +1 -0
- package/build/source/utility/extract.d.ts +3 -0
- package/build/source/utility/extract.js +4 -0
- package/build/source/utility/extract.js.map +1 -0
- package/build/source/utility/json.d.ts +11 -0
- package/build/source/utility/json.js +137 -0
- package/build/source/utility/json.js.map +1 -0
- package/build/source/utility/log.d.ts +4 -0
- package/build/source/utility/log.js +9 -0
- package/build/source/utility/log.js.map +1 -0
- package/changelog.md +5 -3
- package/ios/AirbridgeReactNative/AirbridgeReactNative.h +23 -0
- package/ios/AirbridgeReactNative/AirbridgeReactNative.m +36 -0
- package/ios/AirbridgeReactNative/AirbridgeReactNative.swift +95 -0
- package/ios/AirbridgeReactNative/Extension/AirbridgeOptionBuilderApply.swift +86 -0
- package/ios/AirbridgeReactNative/Extension/DataFromHex.swift +21 -0
- package/ios/AirbridgeReactNative/Extension/Logger.swift +62 -0
- package/ios/AirbridgeReactNative/Module/AirbridgeModuleExtern.m +133 -0
- package/ios/AirbridgeReactNative/Module/AttributionInteractor.swift +43 -0
- package/ios/AirbridgeReactNative/Module/DeeplinkInteractor.swift +49 -0
- package/ios/AirbridgeReactNative/Module/EventInteractor.swift +26 -0
- package/ios/AirbridgeReactNative/Module/FetchInteractor.swift +66 -0
- package/ios/AirbridgeReactNative/Module/PlacementInteractor.swift +72 -0
- package/ios/AirbridgeReactNative/Module/RegisterInteractor.swift +104 -0
- package/ios/AirbridgeReactNative/Module/SwitchInteractor.swift +48 -0
- package/ios/AirbridgeReactNative/Module/WebInterfaceInteractor.swift +30 -0
- package/ios/{copy-config.rb → copy-airbridge-json.rb} +1 -1
- package/package.json +18 -27
- package/qa/Gemfile +3 -4
- package/qa/Gemfile.lock +28 -17
- package/qa/airbridge_qa.json +6 -0
- package/qa/android/app/build.gradle +30 -26
- package/qa/android/app/src/main/AndroidManifest.xml +159 -7
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/ConfigurationLoader.kt +5 -5
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/MainActivity.kt +2 -2
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/IdentifiersInteractor.kt +8 -17
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/InstallReferrerInteractor.kt +13 -22
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/ModuleInjector.kt +1 -2
- package/qa/android/app/src/main/res/values/airbridge.xml +16 -0
- package/qa/android/build.gradle +4 -2
- package/qa/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/qa/android/gradle.properties +0 -2
- package/qa/android/gradlew +1 -1
- package/qa/android/settings.gradle +3 -1
- package/qa/ios/AirbridgeQA/AirbridgeQA.entitlements +11 -0
- package/qa/ios/AirbridgeQA/AppDelegate.mm +40 -30
- package/qa/ios/AirbridgeQA/DeviceInfoInteractor.swift +0 -1
- package/qa/ios/AirbridgeQA/IdentifiersInteractor.swift +4 -8
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x~ipad.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-20@3x.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-20~ipad.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-29.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x~ipad.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-29@3x.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-29~ipad.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x~ipad.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-40@3x.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-40~ipad.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-60@2x~car.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-60@3x~car.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon-83.5@2x~ipad.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon@2x.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon@2x~ipad.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon@3x.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon~ios-marketing.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/AppIcon~ipad.png +0 -0
- package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/Contents.json +113 -32
- package/qa/ios/AirbridgeQA.xcodeproj/project.pbxproj +47 -29
- package/qa/ios/InternalLibrary/airbridge-ios-sdk-qa-library.podspec +32 -0
- package/qa/ios/InternalLibrary/airbridge-ios-sdk-restricted.podspec +32 -0
- package/qa/ios/Library/airbridge-ios-sdk-qa-library.podspec +6 -1
- package/qa/ios/Podfile +13 -1
- package/qa/ios/Podfile.lock +678 -313
- package/qa/ios/Script/prepare-build-parameter.rb +23 -0
- package/qa/metro.config.js +5 -2
- package/qa/package-lock.json +3360 -1435
- package/qa/package.json +29 -30
- package/qa/source/App.js +11 -5
- package/qa/source/common/FCMService.js +39 -15
- package/qa/source/navigations/Stack.js +8 -1
- package/qa/source/pages/AppInfo.js +40 -0
- package/qa/source/pages/Browse.js +16 -19
- package/qa/source/pages/DeviceInfo.js +10 -4
- package/qa/source/pages/Event.js +70 -60
- package/qa/source/pages/Home.js +77 -17
- package/qa/source/pages/Identifiers.js +10 -6
- package/qa/source/pages/Placement.js +3 -3
- package/qa/source/pages/Skad.js +76 -0
- package/qa/source/pages/UserInfo.js +47 -28
- package/readme.md +6 -6
- package/script/BuildDocument.sh +10 -0
- package/{scripts/build-qa.sh → script/BuildQA.sh} +5 -4
- package/script/BuildSource.sh +14 -0
- package/script/ChangeInternalSDK.sh +22 -0
- package/script/ChangeProductionSDK.sh +37 -0
- package/script/ChangeRestricted.sh +34 -0
- package/script/PrepareBuildParameter.sh +28 -0
- package/source/Airbridge.ts +340 -0
- package/source/architecture/Interactor.ts +10 -0
- package/source/architecture/module.ts +1 -0
- package/source/constant/AirbridgeAttribute.ts +188 -0
- package/source/constant/AirbridgeCategory.ts +104 -0
- package/source/module/Attribution.ts +4 -8
- package/source/module/Deeplink.ts +59 -0
- package/source/module/Event.ts +71 -0
- package/source/module/Fetch.ts +137 -0
- package/source/module/Placement.ts +134 -0
- package/source/module/Register.ts +203 -0
- package/source/module/Switch.ts +61 -0
- package/source/module/WebInterface.ts +55 -0
- package/source/module.ts +3 -0
- package/source/tsconfig.json +14 -0
- package/source/utility/check.ts +46 -0
- package/source/utility/compute.ts +9 -0
- package/source/utility/create.ts +12 -0
- package/source/utility/extract.ts +5 -0
- package/source/utility/json.ts +180 -0
- package/source/utility/log.ts +14 -0
- package/test/jest.json +13 -0
- package/test/mock.ts +112 -0
- package/test/module/Deeplink.test.ts +29 -0
- package/test/tsconfig.json +8 -0
- package/.eslintrc.json +0 -44
- package/.gitattributes +0 -1
- package/.github/actions/add-github-check/action.yml +0 -78
- package/.github/actions/add-github-comment/action.yml +0 -48
- package/.github/actions/add-slack-message/action.yml +0 -32
- package/.github/actions/edit-github-check/action.yml +0 -59
- package/.github/actions/edit-github-comment/action.yml +0 -41
- package/.github/workflows/release-restricted.yml +0 -35
- package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeAttribution.java +0 -78
- package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeDeeplink.java +0 -97
- package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeEvent.java +0 -76
- package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeLifecycle.java +0 -31
- package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeLifecycleIntegration.java +0 -8
- package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgePlacement.java +0 -42
- package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeRN.java +0 -112
- package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeState.java +0 -174
- package/android/src/main/java/co/ab180/airbridge/reactnative/ConfigReader.java +0 -154
- package/android/src/main/java/co/ab180/airbridge/reactnative/Get.java +0 -84
- package/index.d.ts +0 -338
- package/index.js +0 -8
- package/ios/AirbridgeRN/ARNConfigReader.h +0 -19
- package/ios/AirbridgeRN/ARNConfigReader.m +0 -80
- package/ios/AirbridgeRN/ARNGet.h +0 -20
- package/ios/AirbridgeRN/ARNGet.m +0 -40
- package/ios/AirbridgeRN/ARNHex.h +0 -16
- package/ios/AirbridgeRN/ARNHex.m +0 -44
- package/ios/AirbridgeRN/AirbridgeAttribution.h +0 -19
- package/ios/AirbridgeRN/AirbridgeAttribution.m +0 -47
- package/ios/AirbridgeRN/AirbridgeDeeplink.h +0 -20
- package/ios/AirbridgeRN/AirbridgeDeeplink.m +0 -59
- package/ios/AirbridgeRN/AirbridgeEvent.h +0 -17
- package/ios/AirbridgeRN/AirbridgeEvent.m +0 -63
- package/ios/AirbridgeRN/AirbridgePlacement.h +0 -17
- package/ios/AirbridgeRN/AirbridgePlacement.m +0 -38
- package/ios/AirbridgeRN/AirbridgeRN.h +0 -71
- package/ios/AirbridgeRN/AirbridgeRN.m +0 -83
- package/ios/AirbridgeRN/AirbridgeState.h +0 -17
- package/ios/AirbridgeRN/AirbridgeState.m +0 -94
- package/ios/AirbridgeRN.xcodeproj/project.pbxproj +0 -417
- package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/UserInfoInteractor.kt +0 -74
- package/qa/ios/AirbridgeQA/UserInfoInteractor.m +0 -57
- package/qa/ios/AirbridgeQA/UserInfoInteractor.swift +0 -49
- package/qa/source/pages/appInfo.js +0 -22
- package/scripts/addiOSFramework.js +0 -48
- package/scripts/change_restricted.sh +0 -21
- package/scripts/update_native_version.sh +0 -104
- package/src/Airbridge.js +0 -82
- package/src/Deeplink.js +0 -75
- package/src/Event.js +0 -38
- package/src/Placement.js +0 -56
- package/src/State.js +0 -175
- package/src/WebInterface.js +0 -135
- package/src/tool/Log.js +0 -40
- package/src/tool/_.js +0 -56
- package/src/type/AirbridgeAttributes.js +0 -40
- package/src/type/AirbridgeCategory.js +0 -35
- package/src/type/AirbridgeProduct.js +0 -18
- package/src/typedef/EventOption.js +0 -9
- package/src/typedef/Product.js +0 -10
- package/src/typedef/User.js +0 -9
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
export declare const createDependency: {
|
|
2
|
+
(): void;
|
|
3
|
+
Airbridge(): {
|
|
4
|
+
attributionModule: {
|
|
5
|
+
setOnAttributionReceived: (onReceived: (attribution: Record<string, string>) => void) => void;
|
|
6
|
+
};
|
|
7
|
+
deeplinkModule: {
|
|
8
|
+
setOnDeeplinkReceived: (onReceived: (deeplink: string) => void) => void;
|
|
9
|
+
};
|
|
10
|
+
eventModule: {
|
|
11
|
+
trackEvent: (category: string, semanticAttributes?: Record<string, any>, customAttributes?: Record<string, any>) => void;
|
|
12
|
+
};
|
|
13
|
+
fetchModule: {
|
|
14
|
+
fetchDeviceUUID: (onSuccess: (deviceUUID: string) => void, onFailure?: (error: Error) => void) => Promise<boolean>;
|
|
15
|
+
fetchAirbridgeGeneratedUUID: (onSuccess: (airbridgeGeneratedUUID: string) => void, onFailure?: (error: Error) => void) => Promise<boolean>;
|
|
16
|
+
isUninstallTrackingNotification: (notification: Record<string, any>) => boolean;
|
|
17
|
+
};
|
|
18
|
+
placementModule: {
|
|
19
|
+
click: (trackingLink: string, onSuccess?: () => void, onFailure?: (error: Error) => void) => Promise<boolean>;
|
|
20
|
+
impression: (trackingLink: string, onSuccess?: () => void, onFailure?: (error: Error) => void) => Promise<boolean>;
|
|
21
|
+
};
|
|
22
|
+
registerModule: {
|
|
23
|
+
setUserID: (id: string) => void;
|
|
24
|
+
clearUserID: () => void;
|
|
25
|
+
setUserEmail: (email: string) => void;
|
|
26
|
+
clearUserEmail: () => void;
|
|
27
|
+
setUserPhone: (phone: string) => void;
|
|
28
|
+
clearUserPhone: () => void;
|
|
29
|
+
setUserAttribute: (key: string, value: any) => void;
|
|
30
|
+
removeUserAttribute: (key: string) => void;
|
|
31
|
+
clearUserAttributes: () => void;
|
|
32
|
+
setUserAlias: (key: string, value: string) => void;
|
|
33
|
+
removeUserAlias: (key: string) => void;
|
|
34
|
+
clearUserAlias: () => void;
|
|
35
|
+
clearUser: () => void;
|
|
36
|
+
setDeviceAlias: (key: string, value: string) => void;
|
|
37
|
+
removeDeviceAlias: (key: string) => void;
|
|
38
|
+
clearDeviceAlias: () => void;
|
|
39
|
+
registerPushToken: (token: string) => void;
|
|
40
|
+
};
|
|
41
|
+
switchModule: {
|
|
42
|
+
enableSDK: () => void;
|
|
43
|
+
disableSDK: () => void;
|
|
44
|
+
isSDKEnabled: () => Promise<boolean>;
|
|
45
|
+
startTracking: () => void;
|
|
46
|
+
stopTracking: () => void;
|
|
47
|
+
isTrackingEnabled: () => Promise<boolean>;
|
|
48
|
+
};
|
|
49
|
+
webInterfaceModule: {
|
|
50
|
+
createWebInterfaceScript: (webToken: string, postMessageScript: string) => Promise<string | undefined>;
|
|
51
|
+
handleWebInterfaceCommand: (command: string) => undefined;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare class Airbridge {
|
|
56
|
+
#private;
|
|
57
|
+
/**
|
|
58
|
+
* Sets a listener for receiving attribution of install event.
|
|
59
|
+
* @param onReceived Map of attribution is delivered.
|
|
60
|
+
*/
|
|
61
|
+
static setOnAttributionReceived(onReceived: (attribution: Record<string, string>) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* Handles deeplink and deferred-deeplink.
|
|
64
|
+
* @param onReceived URL of deeplink is delivered.
|
|
65
|
+
*/
|
|
66
|
+
static setOnDeeplinkReceived(onReceived: (deeplink: string) => void): void;
|
|
67
|
+
/**
|
|
68
|
+
* Tracks user behavior through event tracking with attributes.
|
|
69
|
+
* @param category Name of event.
|
|
70
|
+
* @param semanticAttributes Additional attributes of the event that defined by Airbridge.
|
|
71
|
+
* @param customAttributes Additional attributes of the event.
|
|
72
|
+
*/
|
|
73
|
+
static trackEvent(category: string, semanticAttributes?: Record<string, any>, customAttributes?: Record<string, any>): void;
|
|
74
|
+
/**
|
|
75
|
+
* Fetch deviceUUID of SDK.
|
|
76
|
+
* @param onSuccess Callback to be invoked when deviceUUID is successfully handled.
|
|
77
|
+
* @param onFailure Callback to be invoked when any error occurs.
|
|
78
|
+
*/
|
|
79
|
+
static fetchDeviceUUID(onSuccess: (deviceUUID: string) => void, onFailure?: (error: Error) => void): Promise<boolean>;
|
|
80
|
+
/**
|
|
81
|
+
* Fetch airbridgeGeneratedUUID of SDK.
|
|
82
|
+
* @param onSuccess Callback to be invoked when airbridgeGeneratedUUID is successfully handled.
|
|
83
|
+
* @param onFailure Callback to be invoked when any error occurs.
|
|
84
|
+
*/
|
|
85
|
+
static fetchAirbridgeGeneratedUUID(onSuccess: (airbridgeGeneratedUUID: string) => void, onFailure?: (error: Error) => void): Promise<boolean>;
|
|
86
|
+
/**
|
|
87
|
+
* Indicates whether notification was sent by Airbridge to track uninstall of app.
|
|
88
|
+
* @param notification The notification to check.
|
|
89
|
+
*/
|
|
90
|
+
static isUninstallTrackingNotification(notification: Record<string, any>): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Notifies that an in-app area within an app has been clicked on by the user.
|
|
93
|
+
* @param trackingLink tracking link uri
|
|
94
|
+
* @param onSuccess Callback to be invoked when tracking link is successfully handled.
|
|
95
|
+
* @param onFailure Callback to be invoked when any error occurs.
|
|
96
|
+
* @return `true` if all of the following conditions are met below, `false` otherwise.
|
|
97
|
+
* - If the SDK is initialized and enabled.
|
|
98
|
+
* - If tracking link is successfully handled.
|
|
99
|
+
*/
|
|
100
|
+
static click(trackingLink: string, onSuccess?: () => void, onFailure?: (error: Error) => void): Promise<boolean>;
|
|
101
|
+
/**
|
|
102
|
+
* Notifies that the in-app area within the app has been exposed to the user.
|
|
103
|
+
* @param trackingLink tracking link uri
|
|
104
|
+
* @param onSuccess Callback to be invoked when tracking link is successfully handled.
|
|
105
|
+
* @param onFailure Callback to be invoked when any error occurs.
|
|
106
|
+
* @return `true` if all of the following conditions are met below, `false` otherwise.
|
|
107
|
+
* - If the SDK is initialized and enabled.
|
|
108
|
+
* - If tracking link is successfully handled.
|
|
109
|
+
*/
|
|
110
|
+
static impression(trackingLink: string, onSuccess?: () => void, onFailure?: ((error: Error) => void)): Promise<boolean>;
|
|
111
|
+
/**
|
|
112
|
+
* Sets the user ID.
|
|
113
|
+
* @param id The user ID.
|
|
114
|
+
*/
|
|
115
|
+
static setUserID(id: string): void;
|
|
116
|
+
/**
|
|
117
|
+
* Clear the user ID.
|
|
118
|
+
*/
|
|
119
|
+
static clearUserID(): void;
|
|
120
|
+
/**
|
|
121
|
+
* Sets the user email.
|
|
122
|
+
* @param email The user email.
|
|
123
|
+
*/
|
|
124
|
+
static setUserEmail(email: string): void;
|
|
125
|
+
/**
|
|
126
|
+
* Clear the user email.
|
|
127
|
+
*/
|
|
128
|
+
static clearUserEmail(): void;
|
|
129
|
+
/**
|
|
130
|
+
* Sets the user phone number.
|
|
131
|
+
* @param phone The user phone number.
|
|
132
|
+
*/
|
|
133
|
+
static setUserPhone(phone: string): void;
|
|
134
|
+
/**
|
|
135
|
+
* Clear the user phone number.
|
|
136
|
+
*/
|
|
137
|
+
static clearUserPhone(): void;
|
|
138
|
+
/**
|
|
139
|
+
* Sets the key, value pair to the user attribute.
|
|
140
|
+
* @param key The key that uniquely identifies the user attribute.
|
|
141
|
+
* @param value The value to set for the user attribute.
|
|
142
|
+
*/
|
|
143
|
+
static setUserAttribute(key: string, value: any): void;
|
|
144
|
+
/**
|
|
145
|
+
* Removes the user attribute with the given key.
|
|
146
|
+
* @param key The key that uniquely identifies the user attribute.
|
|
147
|
+
*/
|
|
148
|
+
static removeUserAttribute(key: string): void;
|
|
149
|
+
/**
|
|
150
|
+
* Clears all user attributes.
|
|
151
|
+
*/
|
|
152
|
+
static clearUserAttributes(): void;
|
|
153
|
+
/**
|
|
154
|
+
* Sets the key, value pair to the user alias.
|
|
155
|
+
* @param key The key that uniquely identifies the user alias.
|
|
156
|
+
* @param value The value to set for the user alias.
|
|
157
|
+
*/
|
|
158
|
+
static setUserAlias(key: string, value: string): void;
|
|
159
|
+
/**
|
|
160
|
+
* Removes the user alias with the given key.
|
|
161
|
+
* @param key The key that uniquely identifies the user alias.
|
|
162
|
+
*/
|
|
163
|
+
static removeUserAlias(key: string): void;
|
|
164
|
+
/**
|
|
165
|
+
* Clears all user aliases.
|
|
166
|
+
*/
|
|
167
|
+
static clearUserAlias(): void;
|
|
168
|
+
/**
|
|
169
|
+
* Clears all user information.
|
|
170
|
+
*/
|
|
171
|
+
static clearUser(): void;
|
|
172
|
+
/**
|
|
173
|
+
* Sets the key, value pair to the device alias.
|
|
174
|
+
* @param key The key that uniquely identifies the device alias.
|
|
175
|
+
* @param value The value to set for the device alias.
|
|
176
|
+
*/
|
|
177
|
+
static setDeviceAlias(key: string, value: string): void;
|
|
178
|
+
/**
|
|
179
|
+
* Removes the device alias with the given key.
|
|
180
|
+
* @param key The key that uniquely identifies the device alias.
|
|
181
|
+
*/
|
|
182
|
+
static removeDeviceAlias(key: string): void;
|
|
183
|
+
/**
|
|
184
|
+
* Clears all device aliases.
|
|
185
|
+
*/
|
|
186
|
+
static clearDeviceAlias(): void;
|
|
187
|
+
/**
|
|
188
|
+
* Registers the FCM or APNS registration token to track app uninstalls.
|
|
189
|
+
* @param token The FCM or APNS registration token.
|
|
190
|
+
*/
|
|
191
|
+
static registerPushToken(token: string): void;
|
|
192
|
+
/**
|
|
193
|
+
* Enables the SDK.
|
|
194
|
+
*/
|
|
195
|
+
static enableSDK(): void;
|
|
196
|
+
/**
|
|
197
|
+
* Disables the SDK.
|
|
198
|
+
*/
|
|
199
|
+
static disableSDK(): void;
|
|
200
|
+
/**
|
|
201
|
+
* Checks whether the SDK is currently enabled.
|
|
202
|
+
* @return `true` if the SDK is enabled, `false` otherwise.
|
|
203
|
+
*/
|
|
204
|
+
static isSDKEnabled(): Promise<boolean>;
|
|
205
|
+
/**
|
|
206
|
+
* Start collecting and transferring events.
|
|
207
|
+
*/
|
|
208
|
+
static startTracking(): void;
|
|
209
|
+
/**
|
|
210
|
+
* Stop collecting and transferring events.
|
|
211
|
+
*/
|
|
212
|
+
static stopTracking(): void;
|
|
213
|
+
/**
|
|
214
|
+
* Checks whether the tracking feature of SDK is currently enabled.
|
|
215
|
+
* @return `true` if the tracking feature of SDK tracking is enabled,`false` otherwise.
|
|
216
|
+
*/
|
|
217
|
+
static isTrackingEnabled(): Promise<boolean>;
|
|
218
|
+
/**
|
|
219
|
+
* Creates a script that initialize the web interface.
|
|
220
|
+
* @param webToken The token to initialize Airbridge Web SDK.
|
|
221
|
+
* @param postMessageScript The JavaScript code to post commands from web to app.
|
|
222
|
+
* @return web interface script
|
|
223
|
+
*/
|
|
224
|
+
static createWebInterfaceScript(webToken: string, postMessageScript: string): Promise<string | undefined>;
|
|
225
|
+
/**
|
|
226
|
+
* Handles commands from the web interface.
|
|
227
|
+
* @param command The command to handle.
|
|
228
|
+
*/
|
|
229
|
+
static handleWebInterfaceCommand(command: string): void;
|
|
230
|
+
}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
+
};
|
|
6
|
+
var _a, _Airbridge_dependency;
|
|
7
|
+
import { createAttributionModule } from './module/Attribution';
|
|
8
|
+
import { createDeeplinkModule } from './module/Deeplink';
|
|
9
|
+
import { createEventModule } from './module/Event';
|
|
10
|
+
import { createFetchModule } from './module/Fetch';
|
|
11
|
+
import { createPlacementModule } from './module/Placement';
|
|
12
|
+
import { createRegisterModule } from './module/Register';
|
|
13
|
+
import { createSwitchModule } from './module/Switch';
|
|
14
|
+
import { createWebInterfaceModule } from './module/WebInterface';
|
|
15
|
+
export const createDependency = () => { };
|
|
16
|
+
createDependency.Airbridge = () => ({
|
|
17
|
+
attributionModule: createAttributionModule(),
|
|
18
|
+
deeplinkModule: createDeeplinkModule(),
|
|
19
|
+
eventModule: createEventModule(),
|
|
20
|
+
fetchModule: createFetchModule(),
|
|
21
|
+
placementModule: createPlacementModule(),
|
|
22
|
+
registerModule: createRegisterModule(),
|
|
23
|
+
switchModule: createSwitchModule(),
|
|
24
|
+
webInterfaceModule: createWebInterfaceModule(),
|
|
25
|
+
});
|
|
26
|
+
export class Airbridge {
|
|
27
|
+
// attribution
|
|
28
|
+
/**
|
|
29
|
+
* Sets a listener for receiving attribution of install event.
|
|
30
|
+
* @param onReceived Map of attribution is delivered.
|
|
31
|
+
*/
|
|
32
|
+
static setOnAttributionReceived(onReceived) {
|
|
33
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).attributionModule.setOnAttributionReceived(onReceived);
|
|
34
|
+
}
|
|
35
|
+
// deeplink
|
|
36
|
+
/**
|
|
37
|
+
* Handles deeplink and deferred-deeplink.
|
|
38
|
+
* @param onReceived URL of deeplink is delivered.
|
|
39
|
+
*/
|
|
40
|
+
static setOnDeeplinkReceived(onReceived) {
|
|
41
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).deeplinkModule.setOnDeeplinkReceived(onReceived);
|
|
42
|
+
}
|
|
43
|
+
// event
|
|
44
|
+
/**
|
|
45
|
+
* Tracks user behavior through event tracking with attributes.
|
|
46
|
+
* @param category Name of event.
|
|
47
|
+
* @param semanticAttributes Additional attributes of the event that defined by Airbridge.
|
|
48
|
+
* @param customAttributes Additional attributes of the event.
|
|
49
|
+
*/
|
|
50
|
+
static trackEvent(category, semanticAttributes, customAttributes) {
|
|
51
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).eventModule.trackEvent(category, semanticAttributes, customAttributes);
|
|
52
|
+
}
|
|
53
|
+
// fetch
|
|
54
|
+
/**
|
|
55
|
+
* Fetch deviceUUID of SDK.
|
|
56
|
+
* @param onSuccess Callback to be invoked when deviceUUID is successfully handled.
|
|
57
|
+
* @param onFailure Callback to be invoked when any error occurs.
|
|
58
|
+
*/
|
|
59
|
+
static fetchDeviceUUID(onSuccess, onFailure) {
|
|
60
|
+
return __classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).fetchModule.fetchDeviceUUID(onSuccess, onFailure);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Fetch airbridgeGeneratedUUID of SDK.
|
|
64
|
+
* @param onSuccess Callback to be invoked when airbridgeGeneratedUUID is successfully handled.
|
|
65
|
+
* @param onFailure Callback to be invoked when any error occurs.
|
|
66
|
+
*/
|
|
67
|
+
static fetchAirbridgeGeneratedUUID(onSuccess, onFailure) {
|
|
68
|
+
return __classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).fetchModule.fetchAirbridgeGeneratedUUID(onSuccess, onFailure);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Indicates whether notification was sent by Airbridge to track uninstall of app.
|
|
72
|
+
* @param notification The notification to check.
|
|
73
|
+
*/
|
|
74
|
+
static isUninstallTrackingNotification(notification) {
|
|
75
|
+
return __classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).fetchModule.isUninstallTrackingNotification(notification);
|
|
76
|
+
}
|
|
77
|
+
// placement
|
|
78
|
+
/**
|
|
79
|
+
* Notifies that an in-app area within an app has been clicked on by the user.
|
|
80
|
+
* @param trackingLink tracking link uri
|
|
81
|
+
* @param onSuccess Callback to be invoked when tracking link is successfully handled.
|
|
82
|
+
* @param onFailure Callback to be invoked when any error occurs.
|
|
83
|
+
* @return `true` if all of the following conditions are met below, `false` otherwise.
|
|
84
|
+
* - If the SDK is initialized and enabled.
|
|
85
|
+
* - If tracking link is successfully handled.
|
|
86
|
+
*/
|
|
87
|
+
static click(trackingLink, onSuccess, onFailure) {
|
|
88
|
+
return __classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).placementModule.click(trackingLink, onSuccess, onFailure);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Notifies that the in-app area within the app has been exposed to the user.
|
|
92
|
+
* @param trackingLink tracking link uri
|
|
93
|
+
* @param onSuccess Callback to be invoked when tracking link is successfully handled.
|
|
94
|
+
* @param onFailure Callback to be invoked when any error occurs.
|
|
95
|
+
* @return `true` if all of the following conditions are met below, `false` otherwise.
|
|
96
|
+
* - If the SDK is initialized and enabled.
|
|
97
|
+
* - If tracking link is successfully handled.
|
|
98
|
+
*/
|
|
99
|
+
static impression(trackingLink, onSuccess, onFailure) {
|
|
100
|
+
return __classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).placementModule.impression(trackingLink, onSuccess, onFailure);
|
|
101
|
+
}
|
|
102
|
+
// register
|
|
103
|
+
/**
|
|
104
|
+
* Sets the user ID.
|
|
105
|
+
* @param id The user ID.
|
|
106
|
+
*/
|
|
107
|
+
static setUserID(id) {
|
|
108
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.setUserID(id);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Clear the user ID.
|
|
112
|
+
*/
|
|
113
|
+
static clearUserID() {
|
|
114
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.clearUserID();
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Sets the user email.
|
|
118
|
+
* @param email The user email.
|
|
119
|
+
*/
|
|
120
|
+
static setUserEmail(email) {
|
|
121
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.setUserEmail(email);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Clear the user email.
|
|
125
|
+
*/
|
|
126
|
+
static clearUserEmail() {
|
|
127
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.clearUserEmail();
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Sets the user phone number.
|
|
131
|
+
* @param phone The user phone number.
|
|
132
|
+
*/
|
|
133
|
+
static setUserPhone(phone) {
|
|
134
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.setUserPhone(phone);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Clear the user phone number.
|
|
138
|
+
*/
|
|
139
|
+
static clearUserPhone() {
|
|
140
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.clearUserPhone();
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Sets the key, value pair to the user attribute.
|
|
144
|
+
* @param key The key that uniquely identifies the user attribute.
|
|
145
|
+
* @param value The value to set for the user attribute.
|
|
146
|
+
*/
|
|
147
|
+
static setUserAttribute(key, value) {
|
|
148
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.setUserAttribute(key, value);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Removes the user attribute with the given key.
|
|
152
|
+
* @param key The key that uniquely identifies the user attribute.
|
|
153
|
+
*/
|
|
154
|
+
static removeUserAttribute(key) {
|
|
155
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.removeUserAttribute(key);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Clears all user attributes.
|
|
159
|
+
*/
|
|
160
|
+
static clearUserAttributes() {
|
|
161
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.clearUserAttributes();
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Sets the key, value pair to the user alias.
|
|
165
|
+
* @param key The key that uniquely identifies the user alias.
|
|
166
|
+
* @param value The value to set for the user alias.
|
|
167
|
+
*/
|
|
168
|
+
static setUserAlias(key, value) {
|
|
169
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.setUserAlias(key, value);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Removes the user alias with the given key.
|
|
173
|
+
* @param key The key that uniquely identifies the user alias.
|
|
174
|
+
*/
|
|
175
|
+
static removeUserAlias(key) {
|
|
176
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.removeUserAlias(key);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Clears all user aliases.
|
|
180
|
+
*/
|
|
181
|
+
static clearUserAlias() {
|
|
182
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.clearUserAlias();
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Clears all user information.
|
|
186
|
+
*/
|
|
187
|
+
static clearUser() {
|
|
188
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.clearUser();
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Sets the key, value pair to the device alias.
|
|
192
|
+
* @param key The key that uniquely identifies the device alias.
|
|
193
|
+
* @param value The value to set for the device alias.
|
|
194
|
+
*/
|
|
195
|
+
static setDeviceAlias(key, value) {
|
|
196
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.setDeviceAlias(key, value);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Removes the device alias with the given key.
|
|
200
|
+
* @param key The key that uniquely identifies the device alias.
|
|
201
|
+
*/
|
|
202
|
+
static removeDeviceAlias(key) {
|
|
203
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.removeDeviceAlias(key);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Clears all device aliases.
|
|
207
|
+
*/
|
|
208
|
+
static clearDeviceAlias() {
|
|
209
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.clearDeviceAlias();
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Registers the FCM or APNS registration token to track app uninstalls.
|
|
213
|
+
* @param token The FCM or APNS registration token.
|
|
214
|
+
*/
|
|
215
|
+
static registerPushToken(token) {
|
|
216
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).registerModule.registerPushToken(token);
|
|
217
|
+
}
|
|
218
|
+
// switch
|
|
219
|
+
/**
|
|
220
|
+
* Enables the SDK.
|
|
221
|
+
*/
|
|
222
|
+
static enableSDK() {
|
|
223
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).switchModule.enableSDK();
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Disables the SDK.
|
|
227
|
+
*/
|
|
228
|
+
static disableSDK() {
|
|
229
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).switchModule.disableSDK();
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Checks whether the SDK is currently enabled.
|
|
233
|
+
* @return `true` if the SDK is enabled, `false` otherwise.
|
|
234
|
+
*/
|
|
235
|
+
static isSDKEnabled() {
|
|
236
|
+
return __classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).switchModule.isSDKEnabled();
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Start collecting and transferring events.
|
|
240
|
+
*/
|
|
241
|
+
static startTracking() {
|
|
242
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).switchModule.startTracking();
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Stop collecting and transferring events.
|
|
246
|
+
*/
|
|
247
|
+
static stopTracking() {
|
|
248
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).switchModule.stopTracking();
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Checks whether the tracking feature of SDK is currently enabled.
|
|
252
|
+
* @return `true` if the tracking feature of SDK tracking is enabled,`false` otherwise.
|
|
253
|
+
*/
|
|
254
|
+
static isTrackingEnabled() {
|
|
255
|
+
return __classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).switchModule.isSDKEnabled();
|
|
256
|
+
}
|
|
257
|
+
// web interface
|
|
258
|
+
/**
|
|
259
|
+
* Creates a script that initialize the web interface.
|
|
260
|
+
* @param webToken The token to initialize Airbridge Web SDK.
|
|
261
|
+
* @param postMessageScript The JavaScript code to post commands from web to app.
|
|
262
|
+
* @return web interface script
|
|
263
|
+
*/
|
|
264
|
+
static createWebInterfaceScript(webToken, postMessageScript) {
|
|
265
|
+
return __classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).webInterfaceModule.createWebInterfaceScript(webToken, postMessageScript);
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Handles commands from the web interface.
|
|
269
|
+
* @param command The command to handle.
|
|
270
|
+
*/
|
|
271
|
+
static handleWebInterfaceCommand(command) {
|
|
272
|
+
__classPrivateFieldGet(this, _a, "f", _Airbridge_dependency).webInterfaceModule.handleWebInterfaceCommand(command);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
_a = Airbridge;
|
|
276
|
+
_Airbridge_dependency = { value: createDependency.Airbridge() };
|
|
277
|
+
//# sourceMappingURL=Airbridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Airbridge.js","sourceRoot":"","sources":["../../source/Airbridge.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE,GAAE,CAAC,CAAA;AAExC,gBAAgB,CAAC,SAAS,GAAG,GAAG,EAAE,CAAC,CAAC;IAChC,iBAAiB,EAAE,uBAAuB,EAAE;IAC5C,cAAc,EAAE,oBAAoB,EAAE;IACtC,WAAW,EAAE,iBAAiB,EAAE;IAChC,WAAW,EAAE,iBAAiB,EAAE;IAChC,eAAe,EAAE,qBAAqB,EAAE;IACxC,cAAc,EAAE,oBAAoB,EAAE;IACtC,YAAY,EAAE,kBAAkB,EAAE;IAClC,kBAAkB,EAAE,wBAAwB,EAAE;CACjD,CAAC,CAAA;AAEF,MAAM,OAAO,SAAS;IAGlB,cAAc;IAEd;;;OAGG;IACH,MAAM,CAAC,wBAAwB,CAC3B,UAAyD;QAEzD,uBAAA,IAAI,iCAAY,CAAC,iBAAiB,CAAC,wBAAwB,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,CAAA;AACN,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Module = {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../source/architecture/module.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains key of semantic attributes.
|
|
3
|
+
*/
|
|
4
|
+
export declare class AirbridgeAttribute {
|
|
5
|
+
static get ACTION(): string;
|
|
6
|
+
static get LABEL(): string;
|
|
7
|
+
static get VALUE(): string;
|
|
8
|
+
static get CURRENCY(): string;
|
|
9
|
+
static get ORIGINAL_CURRENCY(): string;
|
|
10
|
+
static get PRODUCTS(): string;
|
|
11
|
+
static get PERIOD(): string;
|
|
12
|
+
static get IS_RENEWAL(): string;
|
|
13
|
+
static get RENEWAL_COUNT(): string;
|
|
14
|
+
static get PRODUCT_LIST_ID(): string;
|
|
15
|
+
static get CART_ID(): string;
|
|
16
|
+
static get TRANSACTION_ID(): string;
|
|
17
|
+
static get TRANSACTION_TYPE(): string;
|
|
18
|
+
static get TRANSACTION_PAIRED_EVENT_CATEGORY(): string;
|
|
19
|
+
static get TRANSACTION_PAIRED_EVENT_TIMESTAMP(): string;
|
|
20
|
+
static get TOTAL_QUANTITY(): string;
|
|
21
|
+
static get QUERY(): string;
|
|
22
|
+
static get IN_APP_PURCHASED(): string;
|
|
23
|
+
static get CONTRIBUTION_MARGIN(): string;
|
|
24
|
+
static get ORIGINAL_CONTRIBUTION_MARGIN(): string;
|
|
25
|
+
static get LIST_ID(): string;
|
|
26
|
+
static get RATE_ID(): string;
|
|
27
|
+
static get RATE(): string;
|
|
28
|
+
static get MAX_RATE(): string;
|
|
29
|
+
static get ACHIEVEMENT_ID(): string;
|
|
30
|
+
static get SHARED_CHANNEL(): string;
|
|
31
|
+
static get DATE_TIME(): string;
|
|
32
|
+
static get DESCRIPTION(): string;
|
|
33
|
+
static get IS_REVENUE(): string;
|
|
34
|
+
static get PLACE(): string;
|
|
35
|
+
static get SCHEDULE_ID(): string;
|
|
36
|
+
static get TYPE(): string;
|
|
37
|
+
static get LEVEL(): string;
|
|
38
|
+
static get SCORE(): string;
|
|
39
|
+
static get PRODUCT_ID(): string;
|
|
40
|
+
static get PRODUCT_NAME(): string;
|
|
41
|
+
static get PRODUCT_PRICE(): string;
|
|
42
|
+
static get PRODUCT_QUANTITY(): string;
|
|
43
|
+
static get PRODUCT_CURRENCY(): string;
|
|
44
|
+
static get PRODUCT_POSITION(): string;
|
|
45
|
+
static get PRODUCT_CATEGORY_ID(): string;
|
|
46
|
+
static get PRODUCT_CATEGORY_NAME(): string;
|
|
47
|
+
static get PRODUCT_BRAND_ID(): string;
|
|
48
|
+
static get PRODUCT_BRAND_NAME(): string;
|
|
49
|
+
static get AD_PARTNERS(): string;
|
|
50
|
+
static get IS_FIRST_PER_USER(): string;
|
|
51
|
+
}
|