@ua/react-native-airship 22.1.0 → 23.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/android/gradle.properties +1 -1
- package/ios/AirshipReactNative.swift +13 -2
- package/ios/MessageWebViewWrapper.swift +1 -0
- package/lib/module/AirshipEmbeddedView.js +1 -1
- package/lib/module/AirshipEmbeddedView.js.map +1 -1
- package/lib/module/MessageView.js +1 -1
- package/lib/module/MessageView.js.map +1 -1
- package/lib/module/NativeRNAirship.ts +138 -0
- package/lib/module/RNAirshipEmbeddedViewNativeComponent.ts +9 -0
- package/lib/module/RNAirshipMessageViewNativeComponent.ts +41 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/AirshipActions.d.ts.map +1 -0
- package/lib/typescript/src/AirshipAnalytics.d.ts.map +1 -0
- package/lib/typescript/src/AirshipChannel.d.ts.map +1 -0
- package/lib/typescript/src/AirshipContact.d.ts.map +1 -0
- package/lib/typescript/src/AirshipEmbeddedView.d.ts.map +1 -0
- package/lib/typescript/src/AirshipFeatureFlagManager.d.ts.map +1 -0
- package/lib/typescript/src/AirshipInApp.d.ts.map +1 -0
- package/lib/typescript/src/AirshipLiveActivityManager.d.ts.map +1 -0
- package/lib/typescript/src/AirshipLiveUpdateManager.d.ts.map +1 -0
- package/lib/typescript/src/AirshipLocale.d.ts.map +1 -0
- package/lib/typescript/src/AirshipMessageCenter.d.ts.map +1 -0
- package/lib/typescript/src/AirshipPreferenceCenter.d.ts.map +1 -0
- package/lib/typescript/src/AirshipPrivacyManager.d.ts.map +1 -0
- package/lib/typescript/src/AirshipPush.d.ts.map +1 -0
- package/lib/typescript/src/AirshipRoot.d.ts.map +1 -0
- package/lib/typescript/src/AttributeEditor.d.ts.map +1 -0
- package/lib/typescript/src/MessageView.d.ts.map +1 -0
- package/lib/typescript/src/NativeRNAirship.d.ts.map +1 -0
- package/lib/typescript/src/RNAirshipEmbeddedViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/RNAirshipMessageViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/ScopedSubscriptionListEditor.d.ts.map +1 -0
- package/lib/typescript/src/SubscriptionListEditor.d.ts.map +1 -0
- package/lib/typescript/src/TagEditor.d.ts.map +1 -0
- package/lib/typescript/src/TagGroupEditor.d.ts.map +1 -0
- package/lib/typescript/src/UAEventEmitter.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/package.json +24 -62
- package/react-native-airship.podspec +1 -1
- package/lib/commonjs/AirshipActions.js +0 -31
- package/lib/commonjs/AirshipActions.js.map +0 -1
- package/lib/commonjs/AirshipAnalytics.js +0 -54
- package/lib/commonjs/AirshipAnalytics.js.map +0 -1
- package/lib/commonjs/AirshipChannel.js +0 -115
- package/lib/commonjs/AirshipChannel.js.map +0 -1
- package/lib/commonjs/AirshipContact.js +0 -90
- package/lib/commonjs/AirshipContact.js.map +0 -1
- package/lib/commonjs/AirshipEmbeddedView.js +0 -28
- package/lib/commonjs/AirshipEmbeddedView.js.map +0 -1
- package/lib/commonjs/AirshipFeatureFlagManager.js +0 -76
- package/lib/commonjs/AirshipFeatureFlagManager.js.map +0 -1
- package/lib/commonjs/AirshipInApp.js +0 -108
- package/lib/commonjs/AirshipInApp.js.map +0 -1
- package/lib/commonjs/AirshipLiveActivityManager.js +0 -61
- package/lib/commonjs/AirshipLiveActivityManager.js.map +0 -1
- package/lib/commonjs/AirshipLiveUpdateManager.js +0 -68
- package/lib/commonjs/AirshipLiveUpdateManager.js.map +0 -1
- package/lib/commonjs/AirshipLocale.js +0 -41
- package/lib/commonjs/AirshipLocale.js.map +0 -1
- package/lib/commonjs/AirshipMessageCenter.js +0 -111
- package/lib/commonjs/AirshipMessageCenter.js.map +0 -1
- package/lib/commonjs/AirshipPreferenceCenter.js +0 -48
- package/lib/commonjs/AirshipPreferenceCenter.js.map +0 -1
- package/lib/commonjs/AirshipPrivacyManager.js +0 -60
- package/lib/commonjs/AirshipPrivacyManager.js.map +0 -1
- package/lib/commonjs/AirshipPush.js +0 -264
- package/lib/commonjs/AirshipPush.js.map +0 -1
- package/lib/commonjs/AirshipRoot.js +0 -115
- package/lib/commonjs/AirshipRoot.js.map +0 -1
- package/lib/commonjs/AttributeEditor.js +0 -89
- package/lib/commonjs/AttributeEditor.js.map +0 -1
- package/lib/commonjs/MessageView.js +0 -85
- package/lib/commonjs/MessageView.js.map +0 -1
- package/lib/commonjs/NativeRNAirship.js +0 -9
- package/lib/commonjs/NativeRNAirship.js.map +0 -1
- package/lib/commonjs/RNAirshipEmbeddedViewNativeComponent.js +0 -11
- package/lib/commonjs/RNAirshipEmbeddedViewNativeComponent.js.map +0 -1
- package/lib/commonjs/RNAirshipMessageViewNativeComponent.js +0 -11
- package/lib/commonjs/RNAirshipMessageViewNativeComponent.js.map +0 -1
- package/lib/commonjs/ScopedSubscriptionListEditor.js +0 -76
- package/lib/commonjs/ScopedSubscriptionListEditor.js.map +0 -1
- package/lib/commonjs/SubscriptionListEditor.js +0 -70
- package/lib/commonjs/SubscriptionListEditor.js.map +0 -1
- package/lib/commonjs/TagEditor.js +0 -66
- package/lib/commonjs/TagEditor.js.map +0 -1
- package/lib/commonjs/TagGroupEditor.js +0 -87
- package/lib/commonjs/TagGroupEditor.js.map +0 -1
- package/lib/commonjs/UAEventEmitter.js +0 -79
- package/lib/commonjs/UAEventEmitter.js.map +0 -1
- package/lib/commonjs/index.js +0 -217
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/types.js +0 -340
- package/lib/commonjs/types.js.map +0 -1
- package/lib/module/NativeRNAirship.js +0 -5
- package/lib/module/NativeRNAirship.js.map +0 -1
- package/lib/module/RNAirshipEmbeddedViewNativeComponent.js +0 -6
- package/lib/module/RNAirshipEmbeddedViewNativeComponent.js.map +0 -1
- package/lib/module/RNAirshipMessageViewNativeComponent.js +0 -6
- package/lib/module/RNAirshipMessageViewNativeComponent.js.map +0 -1
- package/lib/typescript/commonjs/package.json +0 -1
- package/lib/typescript/commonjs/src/AirshipActions.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipAnalytics.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipChannel.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipContact.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipEmbeddedView.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipFeatureFlagManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipInApp.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipLiveActivityManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipLiveUpdateManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipLocale.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipMessageCenter.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipPreferenceCenter.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipPrivacyManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipPush.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AirshipRoot.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/AttributeEditor.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/MessageView.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/NativeRNAirship.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/RNAirshipEmbeddedViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/RNAirshipMessageViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/ScopedSubscriptionListEditor.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/SubscriptionListEditor.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/TagEditor.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/TagGroupEditor.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/UAEventEmitter.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipActions.d.ts +0 -18
- package/lib/typescript/module/src/AirshipActions.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipAnalytics.d.ts +0 -35
- package/lib/typescript/module/src/AirshipAnalytics.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipChannel.d.ts +0 -69
- package/lib/typescript/module/src/AirshipChannel.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipContact.d.ts +0 -53
- package/lib/typescript/module/src/AirshipContact.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipEmbeddedView.d.ts +0 -19
- package/lib/typescript/module/src/AirshipEmbeddedView.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipFeatureFlagManager.d.ts +0 -51
- package/lib/typescript/module/src/AirshipFeatureFlagManager.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipInApp.d.ts +0 -47
- package/lib/typescript/module/src/AirshipInApp.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipLiveActivityManager.d.ts +0 -39
- package/lib/typescript/module/src/AirshipLiveActivityManager.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipLiveUpdateManager.d.ts +0 -43
- package/lib/typescript/module/src/AirshipLiveUpdateManager.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipLocale.d.ts +0 -24
- package/lib/typescript/module/src/AirshipLocale.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipMessageCenter.d.ts +0 -74
- package/lib/typescript/module/src/AirshipMessageCenter.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipPreferenceCenter.d.ts +0 -32
- package/lib/typescript/module/src/AirshipPreferenceCenter.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipPrivacyManager.d.ts +0 -38
- package/lib/typescript/module/src/AirshipPrivacyManager.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipPush.d.ts +0 -161
- package/lib/typescript/module/src/AirshipPush.d.ts.map +0 -1
- package/lib/typescript/module/src/AirshipRoot.d.ts +0 -84
- package/lib/typescript/module/src/AirshipRoot.d.ts.map +0 -1
- package/lib/typescript/module/src/AttributeEditor.d.ts +0 -55
- package/lib/typescript/module/src/AttributeEditor.d.ts.map +0 -1
- package/lib/typescript/module/src/MessageView.d.ts +0 -108
- package/lib/typescript/module/src/MessageView.d.ts.map +0 -1
- package/lib/typescript/module/src/NativeRNAirship.d.ts +0 -99
- package/lib/typescript/module/src/NativeRNAirship.d.ts.map +0 -1
- package/lib/typescript/module/src/RNAirshipEmbeddedViewNativeComponent.d.ts +0 -7
- package/lib/typescript/module/src/RNAirshipEmbeddedViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/RNAirshipMessageViewNativeComponent.d.ts +0 -26
- package/lib/typescript/module/src/RNAirshipMessageViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/ScopedSubscriptionListEditor.d.ts +0 -60
- package/lib/typescript/module/src/ScopedSubscriptionListEditor.d.ts.map +0 -1
- package/lib/typescript/module/src/SubscriptionListEditor.d.ts +0 -51
- package/lib/typescript/module/src/SubscriptionListEditor.d.ts.map +0 -1
- package/lib/typescript/module/src/TagEditor.d.ts +0 -47
- package/lib/typescript/module/src/TagEditor.d.ts.map +0 -1
- package/lib/typescript/module/src/TagGroupEditor.d.ts +0 -61
- package/lib/typescript/module/src/TagGroupEditor.d.ts.map +0 -1
- package/lib/typescript/module/src/UAEventEmitter.d.ts +0 -27
- package/lib/typescript/module/src/UAEventEmitter.d.ts.map +0 -1
- package/lib/typescript/module/src/index.d.ts +0 -25
- package/lib/typescript/module/src/index.d.ts.map +0 -1
- package/lib/typescript/module/src/types.d.ts +0 -938
- package/lib/typescript/module/src/types.d.ts.map +0 -1
- /package/lib/{typescript/module → module}/package.json +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipActions.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipAnalytics.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipChannel.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipContact.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipEmbeddedView.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipFeatureFlagManager.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipInApp.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipLiveActivityManager.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipLiveUpdateManager.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipLocale.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipMessageCenter.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipPreferenceCenter.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipPrivacyManager.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipPush.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AirshipRoot.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/AttributeEditor.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/MessageView.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/NativeRNAirship.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/RNAirshipEmbeddedViewNativeComponent.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/RNAirshipMessageViewNativeComponent.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/ScopedSubscriptionListEditor.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/SubscriptionListEditor.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/TagEditor.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/TagGroupEditor.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/UAEventEmitter.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types.d.ts +0 -0
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AirshipActions = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Airship actions.
|
|
9
|
-
*/
|
|
10
|
-
class AirshipActions {
|
|
11
|
-
constructor(module) {
|
|
12
|
-
this.module = module;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Runs an Airship action.
|
|
17
|
-
*
|
|
18
|
-
* @param actionName The name of the action.
|
|
19
|
-
* @param actionValue The action's value.
|
|
20
|
-
* @return A promise that returns the action result if the action
|
|
21
|
-
* successfully runs, or the Error if the action was unable to be run.
|
|
22
|
-
*/
|
|
23
|
-
run(actionName, actionValue) {
|
|
24
|
-
return this.module.actionRun({
|
|
25
|
-
name: actionName,
|
|
26
|
-
value: actionValue
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.AirshipActions = AirshipActions;
|
|
31
|
-
//# sourceMappingURL=AirshipActions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AirshipActions","constructor","module","run","actionName","actionValue","actionRun","name","value","exports"],"sourceRoot":"../../src","sources":["AirshipActions.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACO,MAAMA,cAAc,CAAC;EAC1BC,WAAWA,CAAkBC,MAAW,EAAE;IAAA,KAAbA,MAAW,GAAXA,MAAW;EAAG;;EAE3C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACSC,GAAGA,CACRC,UAAkB,EAClBC,WAAuB,EACgB;IACvC,OAAO,IAAI,CAACH,MAAM,CAACI,SAAS,CAAC;MAACC,IAAI,EAAEH,UAAU;MAAEI,KAAK,EAAEH;IAAW,CAAC,CAAC;EACtE;AACF;AAACI,OAAA,CAAAT,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AirshipAnalytics = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Airship analytics.
|
|
9
|
-
*/
|
|
10
|
-
class AirshipAnalytics {
|
|
11
|
-
constructor(module) {
|
|
12
|
-
this.module = module;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Associates an identifier.
|
|
17
|
-
*
|
|
18
|
-
* @param key The key.
|
|
19
|
-
* @param identifier The identifier. `null` to remove.
|
|
20
|
-
* @returns A promise.
|
|
21
|
-
*/
|
|
22
|
-
associateIdentifier(key, identifier) {
|
|
23
|
-
return this.module.analyticsAssociateIdentifier(key, identifier);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Tracks a screen.
|
|
28
|
-
* @param screen The screen. `null` to stop tracking.
|
|
29
|
-
* @returns A promise.
|
|
30
|
-
*/
|
|
31
|
-
trackScreen(screen) {
|
|
32
|
-
return this.module.analyticsTrackScreen(screen);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Adds a custom event.
|
|
37
|
-
* @param event The custom event.
|
|
38
|
-
* @return A promise that returns null if resolved, or an Error if the
|
|
39
|
-
* custom event is rejected.
|
|
40
|
-
*/
|
|
41
|
-
addCustomEvent(event) {
|
|
42
|
-
return this.module.addCustomEvent(event);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Gets the Airship session ID. The session ID is a UUID that updates on foreground and background.
|
|
47
|
-
* @returns A promise.
|
|
48
|
-
*/
|
|
49
|
-
getSessionId() {
|
|
50
|
-
return this.module.analyticsGetSessionId();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.AirshipAnalytics = AirshipAnalytics;
|
|
54
|
-
//# sourceMappingURL=AirshipAnalytics.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AirshipAnalytics","constructor","module","associateIdentifier","key","identifier","analyticsAssociateIdentifier","trackScreen","screen","analyticsTrackScreen","addCustomEvent","event","getSessionId","analyticsGetSessionId","exports"],"sourceRoot":"../../src","sources":["AirshipAnalytics.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACO,MAAMA,gBAAgB,CAAC;EAC5BC,WAAWA,CAAkBC,MAAW,EAAE;IAAA,KAAbA,MAAW,GAAXA,MAAW;EAAG;;EAE3C;AACF;AACA;AACA;AACA;AACA;AACA;EACSC,mBAAmBA,CAACC,GAAW,EAAEC,UAAmB,EAAiB;IAC1E,OAAO,IAAI,CAACH,MAAM,CAACI,4BAA4B,CAACF,GAAG,EAAEC,UAAU,CAAC;EAClE;;EAEA;AACF;AACA;AACA;AACA;EACSE,WAAWA,CAACC,MAAe,EAAiB;IACjD,OAAO,IAAI,CAACN,MAAM,CAACO,oBAAoB,CAACD,MAAM,CAAC;EACjD;;EAEA;AACF;AACA;AACA;AACA;AACA;EACSE,cAAcA,CAACC,KAAkB,EAAiB;IACvD,OAAO,IAAI,CAACT,MAAM,CAACQ,cAAc,CAACC,KAAK,CAAC;EAC1C;;EAEA;AACF;AACA;AACA;EACSC,YAAYA,CAAA,EAAoB;IACrC,OAAO,IAAI,CAACV,MAAM,CAACW,qBAAqB,CAAC,CAAC;EAC5C;AACF;AAACC,OAAA,CAAAd,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AirshipChannel = void 0;
|
|
7
|
-
var _AttributeEditor = require("./AttributeEditor.js");
|
|
8
|
-
var _SubscriptionListEditor = require("./SubscriptionListEditor.js");
|
|
9
|
-
var _TagGroupEditor = require("./TagGroupEditor.js");
|
|
10
|
-
var _TagEditor = require("./TagEditor.js");
|
|
11
|
-
/**
|
|
12
|
-
* Airship channel.
|
|
13
|
-
*/
|
|
14
|
-
class AirshipChannel {
|
|
15
|
-
constructor(module) {
|
|
16
|
-
this.module = module;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Enables channel creation if channel creation has been delayed.
|
|
21
|
-
* It is only necessary to call this when isChannelCreationDelayEnabled
|
|
22
|
-
* has been set to `true` in the airship config.
|
|
23
|
-
* Deprecated. Use the Private Manager to disable all features instead.
|
|
24
|
-
*/
|
|
25
|
-
enableChannelCreation() {
|
|
26
|
-
return this.module.channelEnableChannelCreation();
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Adds a device tag.
|
|
31
|
-
* Deprecated. Use editTags() instead.
|
|
32
|
-
* @param tag The tag.
|
|
33
|
-
* @returns A promise.
|
|
34
|
-
*/
|
|
35
|
-
addTag(tag) {
|
|
36
|
-
return this.module.channelAddTag(tag);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Removes a device tag.
|
|
41
|
-
* Deprecated. Use editTags() instead.
|
|
42
|
-
* @param tag The tag.
|
|
43
|
-
* @returns A promise.
|
|
44
|
-
*/
|
|
45
|
-
removeTag(tag) {
|
|
46
|
-
return this.module.channelRemoveTag(tag);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Edits device tags.
|
|
51
|
-
* @returns A tag editor.
|
|
52
|
-
*/
|
|
53
|
-
editTags() {
|
|
54
|
-
return new _TagEditor.TagEditor(operations => {
|
|
55
|
-
return this.module.channelEditTags(operations);
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Gets the device tags.
|
|
61
|
-
* @returns A promise with the result.
|
|
62
|
-
*/
|
|
63
|
-
getTags() {
|
|
64
|
-
return this.module.channelGetTags();
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Gets the channel Id.
|
|
69
|
-
*
|
|
70
|
-
* @returns A promise with the result.
|
|
71
|
-
*/
|
|
72
|
-
getChannelId() {
|
|
73
|
-
return this.module.channelGetChannelId();
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Gets a list of the channel's subscriptions.
|
|
78
|
-
* @returns A promise with the result.
|
|
79
|
-
*/
|
|
80
|
-
getSubscriptionLists() {
|
|
81
|
-
return this.module.channelGetSubscriptionLists();
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Edits tag groups.
|
|
86
|
-
* @returns A tag group editor.
|
|
87
|
-
*/
|
|
88
|
-
editTagGroups() {
|
|
89
|
-
return new _TagGroupEditor.TagGroupEditor(operations => {
|
|
90
|
-
return this.module.channelEditTagGroups(operations);
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Edits attributes.
|
|
96
|
-
* @returns An attribute editor.
|
|
97
|
-
*/
|
|
98
|
-
editAttributes() {
|
|
99
|
-
return new _AttributeEditor.AttributeEditor(operations => {
|
|
100
|
-
return this.module.channelEditAttributes(operations);
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Edits subscription lists.
|
|
106
|
-
* @returns A subscription list editor.
|
|
107
|
-
*/
|
|
108
|
-
editSubscriptionLists() {
|
|
109
|
-
return new _SubscriptionListEditor.SubscriptionListEditor(operations => {
|
|
110
|
-
return this.module.channelEditSubscriptionLists(operations);
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
exports.AirshipChannel = AirshipChannel;
|
|
115
|
-
//# sourceMappingURL=AirshipChannel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_AttributeEditor","require","_SubscriptionListEditor","_TagGroupEditor","_TagEditor","AirshipChannel","constructor","module","enableChannelCreation","channelEnableChannelCreation","addTag","tag","channelAddTag","removeTag","channelRemoveTag","editTags","TagEditor","operations","channelEditTags","getTags","channelGetTags","getChannelId","channelGetChannelId","getSubscriptionLists","channelGetSubscriptionLists","editTagGroups","TagGroupEditor","channelEditTagGroups","editAttributes","AttributeEditor","channelEditAttributes","editSubscriptionLists","SubscriptionListEditor","channelEditSubscriptionLists","exports"],"sourceRoot":"../../src","sources":["AirshipChannel.ts"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AAGA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAEA;AACA;AACA;AACO,MAAMI,cAAc,CAAC;EAC1BC,WAAWA,CAAkBC,MAAW,EAAE;IAAA,KAAbA,MAAW,GAAXA,MAAW;EAAG;;EAE3C;AACF;AACA;AACA;AACA;AACA;EACSC,qBAAqBA,CAAA,EAAkB;IAC5C,OAAO,IAAI,CAACD,MAAM,CAACE,4BAA4B,CAAC,CAAC;EACnD;;EAEA;AACF;AACA;AACA;AACA;AACA;EACSC,MAAMA,CAACC,GAAW,EAAiB;IACxC,OAAO,IAAI,CAACJ,MAAM,CAACK,aAAa,CAACD,GAAG,CAAC;EACvC;;EAEA;AACF;AACA;AACA;AACA;AACA;EACSE,SAASA,CAACF,GAAW,EAAiB;IAC3C,OAAO,IAAI,CAACJ,MAAM,CAACO,gBAAgB,CAACH,GAAG,CAAC;EAC1C;;EAEA;AACF;AACA;AACA;EACSI,QAAQA,CAAA,EAAc;IAC3B,OAAO,IAAIC,oBAAS,CAAEC,UAA0B,IAAK;MACnD,OAAO,IAAI,CAACV,MAAM,CAACW,eAAe,CAACD,UAAU,CAAC;IAChD,CAAC,CAAC;EACJ;;EAEA;AACF;AACA;AACA;EACSE,OAAOA,CAAA,EAAsB;IAClC,OAAO,IAAI,CAACZ,MAAM,CAACa,cAAc,CAAC,CAAC;EACrC;;EAEA;AACF;AACA;AACA;AACA;EACSC,YAAYA,CAAA,EAAuC;IACxD,OAAO,IAAI,CAACd,MAAM,CAACe,mBAAmB,CAAC,CAAC;EAC1C;;EAEA;AACF;AACA;AACA;EACSC,oBAAoBA,CAAA,EAAsB;IAC/C,OAAO,IAAI,CAAChB,MAAM,CAACiB,2BAA2B,CAAC,CAAC;EAClD;;EAEA;AACF;AACA;AACA;EACSC,aAAaA,CAAA,EAAmB;IACrC,OAAO,IAAIC,8BAAc,CAAET,UAA+B,IAAK;MAC7D,OAAO,IAAI,CAACV,MAAM,CAACoB,oBAAoB,CAACV,UAAU,CAAC;IACrD,CAAC,CAAC;EACJ;;EAEA;AACF;AACA;AACA;EACSW,cAAcA,CAAA,EAAoB;IACvC,OAAO,IAAIC,gCAAe,CAAEZ,UAAgC,IAAK;MAC/D,OAAO,IAAI,CAACV,MAAM,CAACuB,qBAAqB,CAACb,UAAU,CAAC;IACtD,CAAC,CAAC;EACJ;;EAEA;AACF;AACA;AACA;EACSc,qBAAqBA,CAAA,EAA2B;IACrD,OAAO,IAAIC,8CAAsB,CAC9Bf,UAAuC,IAAK;MAC3C,OAAO,IAAI,CAACV,MAAM,CAAC0B,4BAA4B,CAAChB,UAAU,CAAC;IAC7D,CACF,CAAC;EACH;AACF;AAACiB,OAAA,CAAA7B,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AirshipContact = void 0;
|
|
7
|
-
var _AttributeEditor = require("./AttributeEditor.js");
|
|
8
|
-
var _ScopedSubscriptionListEditor = require("./ScopedSubscriptionListEditor.js");
|
|
9
|
-
var _TagGroupEditor = require("./TagGroupEditor.js");
|
|
10
|
-
/**
|
|
11
|
-
* Airship contact.
|
|
12
|
-
*/
|
|
13
|
-
class AirshipContact {
|
|
14
|
-
constructor(module) {
|
|
15
|
-
this.module = module;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Identifies the contact with a named user Id.
|
|
20
|
-
* @param namedUser The named user Id.
|
|
21
|
-
* @returns A promise.
|
|
22
|
-
*/
|
|
23
|
-
identify(namedUser) {
|
|
24
|
-
return this.module.contactIdentify(namedUser);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Resets the contact.
|
|
29
|
-
* @returns A promise.
|
|
30
|
-
*/
|
|
31
|
-
reset() {
|
|
32
|
-
return this.module.contactReset();
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Notifies the contact of a remote login.
|
|
37
|
-
* @returns A promise.
|
|
38
|
-
*/
|
|
39
|
-
notifyRemoteLogin() {
|
|
40
|
-
return this.module.contactNotifyRemoteLogin();
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Gets the named user Id.
|
|
45
|
-
* @returns A promise with the result.
|
|
46
|
-
*/
|
|
47
|
-
getNamedUserId() {
|
|
48
|
-
return this.module.contactGetNamedUserId();
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Gets the contacts subscription lists.
|
|
53
|
-
* @returns A promise with the result.
|
|
54
|
-
*/
|
|
55
|
-
getSubscriptionLists() {
|
|
56
|
-
return this.module.contactGetSubscriptionLists();
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Edits tag groups.
|
|
61
|
-
* @returns A tag group editor.
|
|
62
|
-
*/
|
|
63
|
-
editTagGroups() {
|
|
64
|
-
return new _TagGroupEditor.TagGroupEditor(operations => {
|
|
65
|
-
return this.module.contactEditTagGroups(operations);
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Edits attributes.
|
|
71
|
-
* @returns An attribute editor.
|
|
72
|
-
*/
|
|
73
|
-
editAttributes() {
|
|
74
|
-
return new _AttributeEditor.AttributeEditor(operations => {
|
|
75
|
-
return this.module.contactEditAttributes(operations);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Edits subscription lists.
|
|
81
|
-
* @returns A subscription list editor.
|
|
82
|
-
*/
|
|
83
|
-
editSubscriptionLists() {
|
|
84
|
-
return new _ScopedSubscriptionListEditor.ScopedSubscriptionListEditor(operations => {
|
|
85
|
-
return this.module.contactEditSubscriptionLists(operations);
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
exports.AirshipContact = AirshipContact;
|
|
90
|
-
//# sourceMappingURL=AirshipContact.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_AttributeEditor","require","_ScopedSubscriptionListEditor","_TagGroupEditor","AirshipContact","constructor","module","identify","namedUser","contactIdentify","reset","contactReset","notifyRemoteLogin","contactNotifyRemoteLogin","getNamedUserId","contactGetNamedUserId","getSubscriptionLists","contactGetSubscriptionLists","editTagGroups","TagGroupEditor","operations","contactEditTagGroups","editAttributes","AttributeEditor","contactEditAttributes","editSubscriptionLists","ScopedSubscriptionListEditor","contactEditSubscriptionLists","exports"],"sourceRoot":"../../src","sources":["AirshipContact.ts"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AACA,IAAAC,6BAAA,GAAAD,OAAA;AAIA,IAAAE,eAAA,GAAAF,OAAA;AAGA;AACA;AACA;AACO,MAAMG,cAAc,CAAC;EAC1BC,WAAWA,CAAkBC,MAAW,EAAE;IAAA,KAAbA,MAAW,GAAXA,MAAW;EAAG;;EAE3C;AACF;AACA;AACA;AACA;EACSC,QAAQA,CAACC,SAAiB,EAAiB;IAChD,OAAO,IAAI,CAACF,MAAM,CAACG,eAAe,CAACD,SAAS,CAAC;EAC/C;;EAEA;AACF;AACA;AACA;EACSE,KAAKA,CAAA,EAAkB;IAC5B,OAAO,IAAI,CAACJ,MAAM,CAACK,YAAY,CAAC,CAAC;EACnC;;EAEA;AACF;AACA;AACA;EACWC,iBAAiBA,CAAA,EAAkB;IACxC,OAAO,IAAI,CAACN,MAAM,CAACO,wBAAwB,CAAC,CAAC;EAC/C;;EAEF;AACF;AACA;AACA;EACSC,cAAcA,CAAA,EAAuC;IAC1D,OAAO,IAAI,CAACR,MAAM,CAACS,qBAAqB,CAAC,CAAC;EAC5C;;EAEA;AACF;AACA;AACA;EACSC,oBAAoBA,CAAA,EAAiD;IAC1E,OAAO,IAAI,CAACV,MAAM,CAACW,2BAA2B,CAAC,CAAC;EAClD;;EAEA;AACF;AACA;AACA;EACSC,aAAaA,CAAA,EAAmB;IACrC,OAAO,IAAIC,8BAAc,CAAEC,UAA+B,IAAK;MAC7D,OAAO,IAAI,CAACd,MAAM,CAACe,oBAAoB,CAACD,UAAU,CAAC;IACrD,CAAC,CAAC;EACJ;;EAEA;AACF;AACA;AACA;EACSE,cAAcA,CAAA,EAAoB;IACvC,OAAO,IAAIC,gCAAe,CAAEH,UAAgC,IAAK;MAC/D,OAAO,IAAI,CAACd,MAAM,CAACkB,qBAAqB,CAACJ,UAAU,CAAC;IACtD,CAAC,CAAC;EACJ;;EAEA;AACF;AACA;AACA;EACSK,qBAAqBA,CAAA,EAAiC;IAC3D,OAAO,IAAIC,0DAA4B,CACpCN,UAA6C,IAAK;MACjD,OAAO,IAAI,CAACd,MAAM,CAACqB,4BAA4B,CAACP,UAAU,CAAC;IAC7D,CACF,CAAC;EACH;AACF;AAACQ,OAAA,CAAAxB,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* Copyright Airship and Contributors */
|
|
2
|
-
|
|
3
|
-
'use strict';
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.AirshipEmbeddedView = void 0;
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _RNAirshipEmbeddedViewNativeComponent = _interopRequireDefault(require("./RNAirshipEmbeddedViewNativeComponent.js"));
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
/**
|
|
14
|
-
* AirshipEmbeddedView props
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Airship Embedded view.
|
|
19
|
-
*/
|
|
20
|
-
class AirshipEmbeddedView extends _react.default.Component {
|
|
21
|
-
render() {
|
|
22
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RNAirshipEmbeddedViewNativeComponent.default, {
|
|
23
|
-
...this.props
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.AirshipEmbeddedView = AirshipEmbeddedView;
|
|
28
|
-
//# sourceMappingURL=AirshipEmbeddedView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Object","defineProperty","exports","value","AirshipEmbeddedView","_react","_interopRequireDefault","require","_RNAirshipEmbeddedViewNativeComponent","_jsxRuntime","e","__esModule","default","React","Component","render","jsx","props"],"sourceRoot":"../../src","sources":["AirshipEmbeddedView.tsx"],"mappings":"AAAA;;AAEA,YAAY;;AAACA,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,KAAA;AAAA;AAAAD,OAAA,CAAAE,mBAAA;AAEb,IAAAC,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,qCAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA2E,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG3E;AACA;AACA;;AAUA;AACA;AACA;AACO,MAAMN,mBAAmB,SAASS,cAAK,CAACC,SAAS,CAA0B;EAChFC,MAAMA,CAAA,EAAG;IACP,oBACE,IAAAN,WAAA,CAAAO,GAAA,EAACR,qCAAA,CAAAI,OAAqB;MAAA,GAChB,IAAI,CAACK;IAAK,CACf,CAAC;EAEN;AACF;AAACf,OAAA,CAAAE,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AirshipFeatureFlagResultCache = exports.AirshipFeatureFlagManager = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Airship feature flag manager.
|
|
9
|
-
*/
|
|
10
|
-
class AirshipFeatureFlagManager {
|
|
11
|
-
/**
|
|
12
|
-
* Feature flag cache.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
constructor(module) {
|
|
16
|
-
this.module = module;
|
|
17
|
-
this.resultCache = new AirshipFeatureFlagResultCache(module);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Retrieve a given flag's status and associated data by its name.
|
|
22
|
-
* @param {string} flagName The flag name
|
|
23
|
-
* @param {boolean} useResultCache If the response should use result cache or not.
|
|
24
|
-
* @return {Promise<FeatureFlag>} A promise resolving to the feature flag requested.
|
|
25
|
-
* @throws {Error} when failed to fetch
|
|
26
|
-
*/
|
|
27
|
-
flag(flagName, useResultCache = true) {
|
|
28
|
-
return this.module.featureFlagManagerFlag(flagName, useResultCache);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Tracks a feature flag interaction event.
|
|
33
|
-
* @param {FeatureFlag} flag The flag
|
|
34
|
-
* @return {Promise<Void>} A promise with an empty result.
|
|
35
|
-
* @throws {Error} when failed to fetch
|
|
36
|
-
*/
|
|
37
|
-
trackInteraction(flag) {
|
|
38
|
-
return this.module.featureFlagManagerTrackInteraction(flag);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.AirshipFeatureFlagManager = AirshipFeatureFlagManager;
|
|
42
|
-
class AirshipFeatureFlagResultCache {
|
|
43
|
-
constructor(module) {
|
|
44
|
-
this.module = module;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Retrieve a flag from the cache.
|
|
49
|
-
* @param {string} flagName The flag name
|
|
50
|
-
* @return {Promise<FeatureFlag>} A promise resolving to the feature flag.
|
|
51
|
-
*/
|
|
52
|
-
flag(flagName) {
|
|
53
|
-
return this.module.featureFlagManagerResultCacheGetFlag(flagName);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Caches a feature flag.
|
|
58
|
-
* @param {FeatureFlag} flag The flag
|
|
59
|
-
* @param {FeatureFlag} ttl Cache TTL in milliseconds.
|
|
60
|
-
* @return {Promise<Void>} A promise with an empty result.
|
|
61
|
-
*/
|
|
62
|
-
cache(flag, ttl) {
|
|
63
|
-
return this.module.featureFlagManagerResultCacheSetFlag(flag, ttl);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Clears the cache for a given flag.
|
|
68
|
-
* @param {FeatureFlag} flagName The flag name
|
|
69
|
-
* @return {Promise<Void>} A promise with an empty result.
|
|
70
|
-
*/
|
|
71
|
-
removeCachedFlag(flagName) {
|
|
72
|
-
return this.module.featureFlagManagerResultCacheRemoveFlag(flagName);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
exports.AirshipFeatureFlagResultCache = AirshipFeatureFlagResultCache;
|
|
76
|
-
//# sourceMappingURL=AirshipFeatureFlagManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AirshipFeatureFlagManager","constructor","module","resultCache","AirshipFeatureFlagResultCache","flag","flagName","useResultCache","featureFlagManagerFlag","trackInteraction","featureFlagManagerTrackInteraction","exports","featureFlagManagerResultCacheGetFlag","cache","ttl","featureFlagManagerResultCacheSetFlag","removeCachedFlag","featureFlagManagerResultCacheRemoveFlag"],"sourceRoot":"../../src","sources":["AirshipFeatureFlagManager.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACO,MAAMA,yBAAyB,CAAC;EACrC;AACF;AACA;;EAGEC,WAAWA,CAAkBC,MAAW,EAAE;IAAA,KAAbA,MAAW,GAAXA,MAAW;IACtC,IAAI,CAACC,WAAW,GAAG,IAAIC,6BAA6B,CAACF,MAAM,CAAC;EAC9D;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACSG,IAAIA,CACTC,QAAgB,EAChBC,cAAuB,GAAG,IAAI,EACR;IACtB,OAAO,IAAI,CAACL,MAAM,CAACM,sBAAsB,CAACF,QAAQ,EAAEC,cAAc,CAAC;EACrE;;EAEA;AACF;AACA;AACA;AACA;AACA;EACSE,gBAAgBA,CAACJ,IAAiB,EAAiB;IACxD,OAAO,IAAI,CAACH,MAAM,CAACQ,kCAAkC,CAACL,IAAI,CAAC;EAC7D;AACF;AAACM,OAAA,CAAAX,yBAAA,GAAAA,yBAAA;AAEM,MAAMI,6BAA6B,CAAC;EACzCH,WAAWA,CAAkBC,MAAW,EAAE;IAAA,KAAbA,MAAW,GAAXA,MAAW;EAAG;;EAE3C;AACF;AACA;AACA;AACA;EACSG,IAAIA,CAACC,QAAgB,EAAwB;IAClD,OAAO,IAAI,CAACJ,MAAM,CAACU,oCAAoC,CAACN,QAAQ,CAAC;EACnE;;EAEA;AACF;AACA;AACA;AACA;AACA;EACSO,KAAKA,CAACR,IAAiB,EAAES,GAAW,EAAiB;IAC1D,OAAO,IAAI,CAACZ,MAAM,CAACa,oCAAoC,CAACV,IAAI,EAAES,GAAG,CAAC;EACpE;;EAEA;AACF;AACA;AACA;AACA;EACSE,gBAAgBA,CAACV,QAAgB,EAAiB;IACvD,OAAO,IAAI,CAACJ,MAAM,CAACe,uCAAuC,CAACX,QAAQ,CAAC;EACtE;AACF;AAACK,OAAA,CAAAP,6BAAA,GAAAA,6BAAA","ignoreList":[]}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AirshipInApp = void 0;
|
|
7
|
-
var _UAEventEmitter = require("./UAEventEmitter.js");
|
|
8
|
-
/**
|
|
9
|
-
* Airship InApp Experiences.
|
|
10
|
-
*/
|
|
11
|
-
class AirshipInApp {
|
|
12
|
-
pendingEmbedded = new Map();
|
|
13
|
-
pendingEmbeddedListeners = new Map();
|
|
14
|
-
constructor(module, eventEmitter) {
|
|
15
|
-
this.module = module;
|
|
16
|
-
this.eventEmitter = eventEmitter;
|
|
17
|
-
this.eventEmitter.addListener("com.airship.pending_embedded_updated", event => {
|
|
18
|
-
let pending = event["pending"];
|
|
19
|
-
this.pendingEmbedded = pending.reduce((map, entry) => {
|
|
20
|
-
var embeddedId = entry.embeddedId;
|
|
21
|
-
if (!map.has(embeddedId)) {
|
|
22
|
-
map.set(embeddedId, [entry]);
|
|
23
|
-
} else {
|
|
24
|
-
map.get(embeddedId)?.push(entry);
|
|
25
|
-
}
|
|
26
|
-
return map;
|
|
27
|
-
}, new Map());
|
|
28
|
-
this.pendingEmbeddedListeners.forEach((listeners, embeddedId) => {
|
|
29
|
-
let pending = this.pendingEmbedded.get(embeddedId);
|
|
30
|
-
listeners.forEach(listener => {
|
|
31
|
-
listener(pending ?? []);
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
module.inAppResendPendingEmbeddedEvent();
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Adds a listener to listen for if an embedded ID is ready to display or not.
|
|
40
|
-
* @param embeddedId The embedded ID to check.
|
|
41
|
-
* @param listener The listener.
|
|
42
|
-
* @returns A subscription that can be used to cancel the listener.
|
|
43
|
-
*/
|
|
44
|
-
addEmbeddedReadyListener(embeddedId, listener) {
|
|
45
|
-
var currentValue = this.isEmbeddedReady(embeddedId);
|
|
46
|
-
listener(currentValue);
|
|
47
|
-
let wrappedListener = pending => {
|
|
48
|
-
var nextValue = pending.length > 0;
|
|
49
|
-
if (currentValue != nextValue) {
|
|
50
|
-
listener(nextValue);
|
|
51
|
-
}
|
|
52
|
-
currentValue = nextValue;
|
|
53
|
-
};
|
|
54
|
-
if (!this.pendingEmbeddedListeners.has(embeddedId)) {
|
|
55
|
-
this.pendingEmbeddedListeners.set(embeddedId, [wrappedListener]);
|
|
56
|
-
} else {
|
|
57
|
-
this.pendingEmbeddedListeners.get(embeddedId)?.push(wrappedListener);
|
|
58
|
-
}
|
|
59
|
-
return new _UAEventEmitter.Subscription(() => {
|
|
60
|
-
this.pendingEmbeddedListeners.set(embeddedId, this.pendingEmbeddedListeners.get(embeddedId)?.filter(obj => obj !== wrappedListener) ?? []);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Checks if embedded message is ready for the given ID.
|
|
66
|
-
* @param embeddedId The embedded ID to check.
|
|
67
|
-
* @returns `true` if one is ready, otherwise `false`.
|
|
68
|
-
*/
|
|
69
|
-
isEmbeddedReady(embeddedId) {
|
|
70
|
-
return (this.pendingEmbedded.get(embeddedId)?.length ?? 0) > 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Pauses messages.
|
|
75
|
-
* @param paused `true` to pause, `false` to resume.
|
|
76
|
-
* @returns A promise.
|
|
77
|
-
*/
|
|
78
|
-
setPaused(paused) {
|
|
79
|
-
return this.module.inAppSetPaused(paused);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Checks if messages are paused.
|
|
84
|
-
* @returns A promise with the result.
|
|
85
|
-
*/
|
|
86
|
-
isPaused() {
|
|
87
|
-
return this.module.inAppIsPaused();
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Sets the display interval for messages.
|
|
92
|
-
* @param milliseconds Display interval
|
|
93
|
-
* @returns A promise.
|
|
94
|
-
*/
|
|
95
|
-
setDisplayInterval(milliseconds) {
|
|
96
|
-
return this.module.inAppSetDisplayInterval(milliseconds);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Gets the display interval.
|
|
101
|
-
* @returns A promise with the result.
|
|
102
|
-
*/
|
|
103
|
-
getDisplayInterval() {
|
|
104
|
-
return this.module.inAppGetDisplayInterval();
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
exports.AirshipInApp = AirshipInApp;
|
|
108
|
-
//# sourceMappingURL=AirshipInApp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_UAEventEmitter","require","AirshipInApp","pendingEmbedded","Map","pendingEmbeddedListeners","constructor","module","eventEmitter","addListener","event","pending","reduce","map","entry","embeddedId","has","set","get","push","forEach","listeners","listener","inAppResendPendingEmbeddedEvent","addEmbeddedReadyListener","currentValue","isEmbeddedReady","wrappedListener","nextValue","length","Subscription","filter","obj","setPaused","paused","inAppSetPaused","isPaused","inAppIsPaused","setDisplayInterval","milliseconds","inAppSetDisplayInterval","getDisplayInterval","inAppGetDisplayInterval","exports"],"sourceRoot":"../../src","sources":["AirshipInApp.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AirshipLiveActivityManager = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Live Activity manager.
|
|
9
|
-
*/
|
|
10
|
-
class AirshipLiveActivityManager {
|
|
11
|
-
constructor(module) {
|
|
12
|
-
this.module = module;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Lists any Live Activities for the request.
|
|
17
|
-
* @param request The request options.
|
|
18
|
-
* @returns A promise with the result.
|
|
19
|
-
*/
|
|
20
|
-
list(request) {
|
|
21
|
-
return this.module.liveActivityList(request);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Lists all Live Activities.
|
|
26
|
-
* @param request The request options.
|
|
27
|
-
* @returns A promise with the result.
|
|
28
|
-
*/
|
|
29
|
-
listAll() {
|
|
30
|
-
return this.module.liveActivityListAll();
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Starts a Live Activity.
|
|
35
|
-
* @param request The request options.
|
|
36
|
-
* @returns A promise with the result.
|
|
37
|
-
*/
|
|
38
|
-
start(request) {
|
|
39
|
-
return this.module.liveActivityStart(request);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Updates a Live Activity.
|
|
44
|
-
* @param request The request options.
|
|
45
|
-
* @returns A promise with the result.
|
|
46
|
-
*/
|
|
47
|
-
update(request) {
|
|
48
|
-
return this.module.liveActivityUpdate(request);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Ends a Live Activity.
|
|
53
|
-
* @param request The request options.
|
|
54
|
-
* @returns A promise with the result.
|
|
55
|
-
*/
|
|
56
|
-
end(request) {
|
|
57
|
-
return this.module.liveActivityEnd(request);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
exports.AirshipLiveActivityManager = AirshipLiveActivityManager;
|
|
61
|
-
//# sourceMappingURL=AirshipLiveActivityManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AirshipLiveActivityManager","constructor","module","list","request","liveActivityList","listAll","liveActivityListAll","start","liveActivityStart","update","liveActivityUpdate","end","liveActivityEnd","exports"],"sourceRoot":"../../src","sources":["AirshipLiveActivityManager.ts"],"mappings":";;;;;;AAQA;AACA;AACA;AACO,MAAMA,0BAA0B,CAAC;EACtCC,WAAWA,CAAkBC,MAAW,EAAE;IAAA,KAAbA,MAAW,GAAXA,MAAW;EAAG;;EAE3C;AACF;AACA;AACA;AACA;EACSC,IAAIA,CAACC,OAAgC,EAA2B;IACrE,OAAO,IAAI,CAACF,MAAM,CAACG,gBAAgB,CAACD,OAAO,CAAC;EAC9C;;EAEA;AACF;AACA;AACA;AACA;EACSE,OAAOA,CAAA,EAA4B;IACxC,OAAO,IAAI,CAACJ,MAAM,CAACK,mBAAmB,CAAC,CAAC;EAC1C;;EAEA;AACF;AACA;AACA;AACA;EACSC,KAAKA,CAACJ,OAAiC,EAAyB;IACrE,OAAO,IAAI,CAACF,MAAM,CAACO,iBAAiB,CAACL,OAAO,CAAC;EAC/C;;EAEA;AACF;AACA;AACA;AACA;EACSM,MAAMA,CAACN,OAAkC,EAAiB;IAC/D,OAAO,IAAI,CAACF,MAAM,CAACS,kBAAkB,CAACP,OAAO,CAAC;EAChD;;EAEA;AACF;AACA;AACA;AACA;EACSQ,GAAGA,CAACR,OAA+B,EAAiB;IACzD,OAAO,IAAI,CAACF,MAAM,CAACW,eAAe,CAACT,OAAO,CAAC;EAC7C;AACF;AAACU,OAAA,CAAAd,0BAAA,GAAAA,0BAAA","ignoreList":[]}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AirshipLiveUpdateManager = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Live Update manager.
|
|
9
|
-
*/
|
|
10
|
-
class AirshipLiveUpdateManager {
|
|
11
|
-
constructor(module) {
|
|
12
|
-
this.module = module;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Lists any Live Updates for the request.
|
|
17
|
-
* @param request The request options.
|
|
18
|
-
* @returns A promise with the result.
|
|
19
|
-
*/
|
|
20
|
-
list(request) {
|
|
21
|
-
return this.module.liveUpdateList(request);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Lists all Live Updates.
|
|
26
|
-
* @returns A promise with the result.
|
|
27
|
-
*/
|
|
28
|
-
listAll() {
|
|
29
|
-
return this.module.liveUpdateListAll();
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Starts a Live Update.
|
|
34
|
-
* @param request The request options.
|
|
35
|
-
* @returns A promise with the result.
|
|
36
|
-
*/
|
|
37
|
-
start(request) {
|
|
38
|
-
return this.module.liveUpdateStart(request);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Updates a Live Update.
|
|
43
|
-
* @param request The request options.
|
|
44
|
-
* @returns A promise with the result.
|
|
45
|
-
*/
|
|
46
|
-
update(request) {
|
|
47
|
-
return this.module.liveUpdateUpdate(request);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Ends a Live Update.
|
|
52
|
-
* @param request The request options.
|
|
53
|
-
* @returns A promise with the result.
|
|
54
|
-
*/
|
|
55
|
-
end(request) {
|
|
56
|
-
return this.module.liveUpdateEnd(request);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Clears all Live Updates.
|
|
61
|
-
* @returns A promise with the result.
|
|
62
|
-
*/
|
|
63
|
-
clearAll() {
|
|
64
|
-
return this.module.liveUpdateClearAll();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
exports.AirshipLiveUpdateManager = AirshipLiveUpdateManager;
|
|
68
|
-
//# sourceMappingURL=AirshipLiveUpdateManager.js.map
|