@ua/react-native-airship 23.0.0 → 23.1.1

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.
Files changed (210) hide show
  1. package/android/gradle.properties +1 -1
  2. package/ios/AirshipReactNative.swift +13 -2
  3. package/ios/MessageWebViewWrapper.swift +1 -0
  4. package/lib/module/AirshipEmbeddedView.js +1 -1
  5. package/lib/module/AirshipEmbeddedView.js.map +1 -1
  6. package/lib/module/MessageView.js +1 -1
  7. package/lib/module/MessageView.js.map +1 -1
  8. package/lib/module/NativeRNAirship.ts +138 -0
  9. package/lib/module/RNAirshipEmbeddedViewNativeComponent.ts +9 -0
  10. package/lib/module/RNAirshipMessageViewNativeComponent.ts +41 -0
  11. package/lib/typescript/package.json +1 -0
  12. package/lib/typescript/src/AirshipActions.d.ts.map +1 -0
  13. package/lib/typescript/src/AirshipAnalytics.d.ts.map +1 -0
  14. package/lib/typescript/src/AirshipChannel.d.ts.map +1 -0
  15. package/lib/typescript/src/AirshipContact.d.ts.map +1 -0
  16. package/lib/typescript/src/AirshipEmbeddedView.d.ts.map +1 -0
  17. package/lib/typescript/src/AirshipFeatureFlagManager.d.ts.map +1 -0
  18. package/lib/typescript/src/AirshipInApp.d.ts.map +1 -0
  19. package/lib/typescript/src/AirshipLiveActivityManager.d.ts.map +1 -0
  20. package/lib/typescript/src/AirshipLiveUpdateManager.d.ts.map +1 -0
  21. package/lib/typescript/src/AirshipLocale.d.ts.map +1 -0
  22. package/lib/typescript/src/AirshipMessageCenter.d.ts.map +1 -0
  23. package/lib/typescript/src/AirshipPreferenceCenter.d.ts.map +1 -0
  24. package/lib/typescript/src/AirshipPrivacyManager.d.ts.map +1 -0
  25. package/lib/typescript/src/AirshipPush.d.ts.map +1 -0
  26. package/lib/typescript/src/AirshipRoot.d.ts.map +1 -0
  27. package/lib/typescript/src/AttributeEditor.d.ts.map +1 -0
  28. package/lib/typescript/src/MessageView.d.ts.map +1 -0
  29. package/lib/typescript/src/NativeRNAirship.d.ts.map +1 -0
  30. package/lib/typescript/src/RNAirshipEmbeddedViewNativeComponent.d.ts.map +1 -0
  31. package/lib/typescript/src/RNAirshipMessageViewNativeComponent.d.ts.map +1 -0
  32. package/lib/typescript/src/ScopedSubscriptionListEditor.d.ts.map +1 -0
  33. package/lib/typescript/src/SubscriptionListEditor.d.ts.map +1 -0
  34. package/lib/typescript/src/TagEditor.d.ts.map +1 -0
  35. package/lib/typescript/src/TagGroupEditor.d.ts.map +1 -0
  36. package/lib/typescript/src/UAEventEmitter.d.ts.map +1 -0
  37. package/lib/typescript/src/index.d.ts.map +1 -0
  38. package/lib/typescript/src/types.d.ts.map +1 -0
  39. package/package.json +24 -62
  40. package/react-native-airship.podspec +1 -1
  41. package/lib/commonjs/AirshipActions.js +0 -31
  42. package/lib/commonjs/AirshipActions.js.map +0 -1
  43. package/lib/commonjs/AirshipAnalytics.js +0 -54
  44. package/lib/commonjs/AirshipAnalytics.js.map +0 -1
  45. package/lib/commonjs/AirshipChannel.js +0 -115
  46. package/lib/commonjs/AirshipChannel.js.map +0 -1
  47. package/lib/commonjs/AirshipContact.js +0 -90
  48. package/lib/commonjs/AirshipContact.js.map +0 -1
  49. package/lib/commonjs/AirshipEmbeddedView.js +0 -28
  50. package/lib/commonjs/AirshipEmbeddedView.js.map +0 -1
  51. package/lib/commonjs/AirshipFeatureFlagManager.js +0 -76
  52. package/lib/commonjs/AirshipFeatureFlagManager.js.map +0 -1
  53. package/lib/commonjs/AirshipInApp.js +0 -108
  54. package/lib/commonjs/AirshipInApp.js.map +0 -1
  55. package/lib/commonjs/AirshipLiveActivityManager.js +0 -61
  56. package/lib/commonjs/AirshipLiveActivityManager.js.map +0 -1
  57. package/lib/commonjs/AirshipLiveUpdateManager.js +0 -68
  58. package/lib/commonjs/AirshipLiveUpdateManager.js.map +0 -1
  59. package/lib/commonjs/AirshipLocale.js +0 -41
  60. package/lib/commonjs/AirshipLocale.js.map +0 -1
  61. package/lib/commonjs/AirshipMessageCenter.js +0 -111
  62. package/lib/commonjs/AirshipMessageCenter.js.map +0 -1
  63. package/lib/commonjs/AirshipPreferenceCenter.js +0 -48
  64. package/lib/commonjs/AirshipPreferenceCenter.js.map +0 -1
  65. package/lib/commonjs/AirshipPrivacyManager.js +0 -60
  66. package/lib/commonjs/AirshipPrivacyManager.js.map +0 -1
  67. package/lib/commonjs/AirshipPush.js +0 -264
  68. package/lib/commonjs/AirshipPush.js.map +0 -1
  69. package/lib/commonjs/AirshipRoot.js +0 -115
  70. package/lib/commonjs/AirshipRoot.js.map +0 -1
  71. package/lib/commonjs/AttributeEditor.js +0 -89
  72. package/lib/commonjs/AttributeEditor.js.map +0 -1
  73. package/lib/commonjs/MessageView.js +0 -85
  74. package/lib/commonjs/MessageView.js.map +0 -1
  75. package/lib/commonjs/NativeRNAirship.js +0 -9
  76. package/lib/commonjs/NativeRNAirship.js.map +0 -1
  77. package/lib/commonjs/RNAirshipEmbeddedViewNativeComponent.js +0 -11
  78. package/lib/commonjs/RNAirshipEmbeddedViewNativeComponent.js.map +0 -1
  79. package/lib/commonjs/RNAirshipMessageViewNativeComponent.js +0 -11
  80. package/lib/commonjs/RNAirshipMessageViewNativeComponent.js.map +0 -1
  81. package/lib/commonjs/ScopedSubscriptionListEditor.js +0 -76
  82. package/lib/commonjs/ScopedSubscriptionListEditor.js.map +0 -1
  83. package/lib/commonjs/SubscriptionListEditor.js +0 -70
  84. package/lib/commonjs/SubscriptionListEditor.js.map +0 -1
  85. package/lib/commonjs/TagEditor.js +0 -66
  86. package/lib/commonjs/TagEditor.js.map +0 -1
  87. package/lib/commonjs/TagGroupEditor.js +0 -87
  88. package/lib/commonjs/TagGroupEditor.js.map +0 -1
  89. package/lib/commonjs/UAEventEmitter.js +0 -79
  90. package/lib/commonjs/UAEventEmitter.js.map +0 -1
  91. package/lib/commonjs/index.js +0 -217
  92. package/lib/commonjs/index.js.map +0 -1
  93. package/lib/commonjs/types.js +0 -340
  94. package/lib/commonjs/types.js.map +0 -1
  95. package/lib/module/NativeRNAirship.js +0 -5
  96. package/lib/module/NativeRNAirship.js.map +0 -1
  97. package/lib/module/RNAirshipEmbeddedViewNativeComponent.js +0 -6
  98. package/lib/module/RNAirshipEmbeddedViewNativeComponent.js.map +0 -1
  99. package/lib/module/RNAirshipMessageViewNativeComponent.js +0 -6
  100. package/lib/module/RNAirshipMessageViewNativeComponent.js.map +0 -1
  101. package/lib/typescript/commonjs/package.json +0 -1
  102. package/lib/typescript/commonjs/src/AirshipActions.d.ts.map +0 -1
  103. package/lib/typescript/commonjs/src/AirshipAnalytics.d.ts.map +0 -1
  104. package/lib/typescript/commonjs/src/AirshipChannel.d.ts.map +0 -1
  105. package/lib/typescript/commonjs/src/AirshipContact.d.ts.map +0 -1
  106. package/lib/typescript/commonjs/src/AirshipEmbeddedView.d.ts.map +0 -1
  107. package/lib/typescript/commonjs/src/AirshipFeatureFlagManager.d.ts.map +0 -1
  108. package/lib/typescript/commonjs/src/AirshipInApp.d.ts.map +0 -1
  109. package/lib/typescript/commonjs/src/AirshipLiveActivityManager.d.ts.map +0 -1
  110. package/lib/typescript/commonjs/src/AirshipLiveUpdateManager.d.ts.map +0 -1
  111. package/lib/typescript/commonjs/src/AirshipLocale.d.ts.map +0 -1
  112. package/lib/typescript/commonjs/src/AirshipMessageCenter.d.ts.map +0 -1
  113. package/lib/typescript/commonjs/src/AirshipPreferenceCenter.d.ts.map +0 -1
  114. package/lib/typescript/commonjs/src/AirshipPrivacyManager.d.ts.map +0 -1
  115. package/lib/typescript/commonjs/src/AirshipPush.d.ts.map +0 -1
  116. package/lib/typescript/commonjs/src/AirshipRoot.d.ts.map +0 -1
  117. package/lib/typescript/commonjs/src/AttributeEditor.d.ts.map +0 -1
  118. package/lib/typescript/commonjs/src/MessageView.d.ts.map +0 -1
  119. package/lib/typescript/commonjs/src/NativeRNAirship.d.ts.map +0 -1
  120. package/lib/typescript/commonjs/src/RNAirshipEmbeddedViewNativeComponent.d.ts.map +0 -1
  121. package/lib/typescript/commonjs/src/RNAirshipMessageViewNativeComponent.d.ts.map +0 -1
  122. package/lib/typescript/commonjs/src/ScopedSubscriptionListEditor.d.ts.map +0 -1
  123. package/lib/typescript/commonjs/src/SubscriptionListEditor.d.ts.map +0 -1
  124. package/lib/typescript/commonjs/src/TagEditor.d.ts.map +0 -1
  125. package/lib/typescript/commonjs/src/TagGroupEditor.d.ts.map +0 -1
  126. package/lib/typescript/commonjs/src/UAEventEmitter.d.ts.map +0 -1
  127. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  128. package/lib/typescript/commonjs/src/types.d.ts.map +0 -1
  129. package/lib/typescript/module/src/AirshipActions.d.ts +0 -18
  130. package/lib/typescript/module/src/AirshipActions.d.ts.map +0 -1
  131. package/lib/typescript/module/src/AirshipAnalytics.d.ts +0 -35
  132. package/lib/typescript/module/src/AirshipAnalytics.d.ts.map +0 -1
  133. package/lib/typescript/module/src/AirshipChannel.d.ts +0 -69
  134. package/lib/typescript/module/src/AirshipChannel.d.ts.map +0 -1
  135. package/lib/typescript/module/src/AirshipContact.d.ts +0 -53
  136. package/lib/typescript/module/src/AirshipContact.d.ts.map +0 -1
  137. package/lib/typescript/module/src/AirshipEmbeddedView.d.ts +0 -19
  138. package/lib/typescript/module/src/AirshipEmbeddedView.d.ts.map +0 -1
  139. package/lib/typescript/module/src/AirshipFeatureFlagManager.d.ts +0 -51
  140. package/lib/typescript/module/src/AirshipFeatureFlagManager.d.ts.map +0 -1
  141. package/lib/typescript/module/src/AirshipInApp.d.ts +0 -47
  142. package/lib/typescript/module/src/AirshipInApp.d.ts.map +0 -1
  143. package/lib/typescript/module/src/AirshipLiveActivityManager.d.ts +0 -39
  144. package/lib/typescript/module/src/AirshipLiveActivityManager.d.ts.map +0 -1
  145. package/lib/typescript/module/src/AirshipLiveUpdateManager.d.ts +0 -43
  146. package/lib/typescript/module/src/AirshipLiveUpdateManager.d.ts.map +0 -1
  147. package/lib/typescript/module/src/AirshipLocale.d.ts +0 -24
  148. package/lib/typescript/module/src/AirshipLocale.d.ts.map +0 -1
  149. package/lib/typescript/module/src/AirshipMessageCenter.d.ts +0 -74
  150. package/lib/typescript/module/src/AirshipMessageCenter.d.ts.map +0 -1
  151. package/lib/typescript/module/src/AirshipPreferenceCenter.d.ts +0 -32
  152. package/lib/typescript/module/src/AirshipPreferenceCenter.d.ts.map +0 -1
  153. package/lib/typescript/module/src/AirshipPrivacyManager.d.ts +0 -38
  154. package/lib/typescript/module/src/AirshipPrivacyManager.d.ts.map +0 -1
  155. package/lib/typescript/module/src/AirshipPush.d.ts +0 -161
  156. package/lib/typescript/module/src/AirshipPush.d.ts.map +0 -1
  157. package/lib/typescript/module/src/AirshipRoot.d.ts +0 -84
  158. package/lib/typescript/module/src/AirshipRoot.d.ts.map +0 -1
  159. package/lib/typescript/module/src/AttributeEditor.d.ts +0 -55
  160. package/lib/typescript/module/src/AttributeEditor.d.ts.map +0 -1
  161. package/lib/typescript/module/src/MessageView.d.ts +0 -108
  162. package/lib/typescript/module/src/MessageView.d.ts.map +0 -1
  163. package/lib/typescript/module/src/NativeRNAirship.d.ts +0 -99
  164. package/lib/typescript/module/src/NativeRNAirship.d.ts.map +0 -1
  165. package/lib/typescript/module/src/RNAirshipEmbeddedViewNativeComponent.d.ts +0 -7
  166. package/lib/typescript/module/src/RNAirshipEmbeddedViewNativeComponent.d.ts.map +0 -1
  167. package/lib/typescript/module/src/RNAirshipMessageViewNativeComponent.d.ts +0 -26
  168. package/lib/typescript/module/src/RNAirshipMessageViewNativeComponent.d.ts.map +0 -1
  169. package/lib/typescript/module/src/ScopedSubscriptionListEditor.d.ts +0 -60
  170. package/lib/typescript/module/src/ScopedSubscriptionListEditor.d.ts.map +0 -1
  171. package/lib/typescript/module/src/SubscriptionListEditor.d.ts +0 -51
  172. package/lib/typescript/module/src/SubscriptionListEditor.d.ts.map +0 -1
  173. package/lib/typescript/module/src/TagEditor.d.ts +0 -47
  174. package/lib/typescript/module/src/TagEditor.d.ts.map +0 -1
  175. package/lib/typescript/module/src/TagGroupEditor.d.ts +0 -61
  176. package/lib/typescript/module/src/TagGroupEditor.d.ts.map +0 -1
  177. package/lib/typescript/module/src/UAEventEmitter.d.ts +0 -27
  178. package/lib/typescript/module/src/UAEventEmitter.d.ts.map +0 -1
  179. package/lib/typescript/module/src/index.d.ts +0 -25
  180. package/lib/typescript/module/src/index.d.ts.map +0 -1
  181. package/lib/typescript/module/src/types.d.ts +0 -938
  182. package/lib/typescript/module/src/types.d.ts.map +0 -1
  183. /package/lib/{typescript/module → module}/package.json +0 -0
  184. /package/lib/typescript/{commonjs/src → src}/AirshipActions.d.ts +0 -0
  185. /package/lib/typescript/{commonjs/src → src}/AirshipAnalytics.d.ts +0 -0
  186. /package/lib/typescript/{commonjs/src → src}/AirshipChannel.d.ts +0 -0
  187. /package/lib/typescript/{commonjs/src → src}/AirshipContact.d.ts +0 -0
  188. /package/lib/typescript/{commonjs/src → src}/AirshipEmbeddedView.d.ts +0 -0
  189. /package/lib/typescript/{commonjs/src → src}/AirshipFeatureFlagManager.d.ts +0 -0
  190. /package/lib/typescript/{commonjs/src → src}/AirshipInApp.d.ts +0 -0
  191. /package/lib/typescript/{commonjs/src → src}/AirshipLiveActivityManager.d.ts +0 -0
  192. /package/lib/typescript/{commonjs/src → src}/AirshipLiveUpdateManager.d.ts +0 -0
  193. /package/lib/typescript/{commonjs/src → src}/AirshipLocale.d.ts +0 -0
  194. /package/lib/typescript/{commonjs/src → src}/AirshipMessageCenter.d.ts +0 -0
  195. /package/lib/typescript/{commonjs/src → src}/AirshipPreferenceCenter.d.ts +0 -0
  196. /package/lib/typescript/{commonjs/src → src}/AirshipPrivacyManager.d.ts +0 -0
  197. /package/lib/typescript/{commonjs/src → src}/AirshipPush.d.ts +0 -0
  198. /package/lib/typescript/{commonjs/src → src}/AirshipRoot.d.ts +0 -0
  199. /package/lib/typescript/{commonjs/src → src}/AttributeEditor.d.ts +0 -0
  200. /package/lib/typescript/{commonjs/src → src}/MessageView.d.ts +0 -0
  201. /package/lib/typescript/{commonjs/src → src}/NativeRNAirship.d.ts +0 -0
  202. /package/lib/typescript/{commonjs/src → src}/RNAirshipEmbeddedViewNativeComponent.d.ts +0 -0
  203. /package/lib/typescript/{commonjs/src → src}/RNAirshipMessageViewNativeComponent.d.ts +0 -0
  204. /package/lib/typescript/{commonjs/src → src}/ScopedSubscriptionListEditor.d.ts +0 -0
  205. /package/lib/typescript/{commonjs/src → src}/SubscriptionListEditor.d.ts +0 -0
  206. /package/lib/typescript/{commonjs/src → src}/TagEditor.d.ts +0 -0
  207. /package/lib/typescript/{commonjs/src → src}/TagGroupEditor.d.ts +0 -0
  208. /package/lib/typescript/{commonjs/src → src}/UAEventEmitter.d.ts +0 -0
  209. /package/lib/typescript/{commonjs/src → src}/index.d.ts +0 -0
  210. /package/lib/typescript/{commonjs/src → src}/types.d.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"names":["AirshipLiveUpdateManager","constructor","module","list","request","liveUpdateList","listAll","liveUpdateListAll","start","liveUpdateStart","update","liveUpdateUpdate","end","liveUpdateEnd","clearAll","liveUpdateClearAll","exports"],"sourceRoot":"../../src","sources":["AirshipLiveUpdateManager.ts"],"mappings":";;;;;;AAQA;AACA;AACA;AACO,MAAMA,wBAAwB,CAAC;EACpCC,WAAWA,CAAkBC,MAAW,EAAE;IAAA,KAAbA,MAAW,GAAXA,MAAW;EAAG;;EAE3C;AACF;AACA;AACA;AACA;EACSC,IAAIA,CAACC,OAA8B,EAAyB;IACjE,OAAO,IAAI,CAACF,MAAM,CAACG,cAAc,CAACD,OAAO,CAAC;EAC5C;;EAEA;AACF;AACA;AACA;EACSE,OAAOA,CAAA,EAA0B;IACtC,OAAO,IAAI,CAACJ,MAAM,CAACK,iBAAiB,CAAC,CAAC;EACxC;;EAEA;AACF;AACA;AACA;AACA;EACSC,KAAKA,CAACJ,OAA+B,EAAiB;IAC3D,OAAO,IAAI,CAACF,MAAM,CAACO,eAAe,CAACL,OAAO,CAAC;EAC7C;;EAEA;AACF;AACA;AACA;AACA;EACSM,MAAMA,CAACN,OAAgC,EAAiB;IAC7D,OAAO,IAAI,CAACF,MAAM,CAACS,gBAAgB,CAACP,OAAO,CAAC;EAC9C;;EAEA;AACF;AACA;AACA;AACA;EACSQ,GAAGA,CAACR,OAA6B,EAAiB;IACvD,OAAO,IAAI,CAACF,MAAM,CAACW,aAAa,CAACT,OAAO,CAAC;EAC3C;;EAEA;AACF;AACA;AACA;EACSU,QAAQA,CAAA,EAAkB;IAC/B,OAAO,IAAI,CAACZ,MAAM,CAACa,kBAAkB,CAAC,CAAC;EACzC;AACF;AAACC,OAAA,CAAAhB,wBAAA,GAAAA,wBAAA","ignoreList":[]}
@@ -1,41 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.AirshipLocale = void 0;
7
- /**
8
- * Manages locale used by Airship messaging.
9
- */
10
- class AirshipLocale {
11
- constructor(module) {
12
- this.module = module;
13
- }
14
-
15
- /**
16
- * Sets the locale override.
17
- * @param localeIdentifier The locale identifier.
18
- * @returns A promise.
19
- */
20
- setLocaleOverride(localeIdentifier) {
21
- return this.module.localeSetLocaleOverride(localeIdentifier);
22
- }
23
-
24
- /**
25
- * Clears the locale override.
26
- * @returns A promise.
27
- */
28
- clearLocaleOverride() {
29
- return this.module.localeClearLocaleOverride();
30
- }
31
-
32
- /**
33
- * Gets the current locale.
34
- * @returns A promise with the result.
35
- */
36
- getLocale() {
37
- return this.module.localeGetLocale();
38
- }
39
- }
40
- exports.AirshipLocale = AirshipLocale;
41
- //# sourceMappingURL=AirshipLocale.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["AirshipLocale","constructor","module","setLocaleOverride","localeIdentifier","localeSetLocaleOverride","clearLocaleOverride","localeClearLocaleOverride","getLocale","localeGetLocale","exports"],"sourceRoot":"../../src","sources":["AirshipLocale.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACO,MAAMA,aAAa,CAAC;EACzBC,WAAWA,CAAkBC,MAAW,EAAE;IAAA,KAAbA,MAAW,GAAXA,MAAW;EAAG;;EAE3C;AACF;AACA;AACA;AACA;EACSC,iBAAiBA,CAACC,gBAAwB,EAAiB;IAChE,OAAO,IAAI,CAACF,MAAM,CAACG,uBAAuB,CAACD,gBAAgB,CAAC;EAC9D;;EAEA;AACF;AACA;AACA;EACSE,mBAAmBA,CAAA,EAAkB;IAC1C,OAAO,IAAI,CAACJ,MAAM,CAACK,yBAAyB,CAAC,CAAC;EAChD;;EAEA;AACF;AACA;AACA;EACSC,SAASA,CAAA,EAAoB;IAClC,OAAO,IAAI,CAACN,MAAM,CAACO,eAAe,CAAC,CAAC;EACtC;AACF;AAACC,OAAA,CAAAV,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -1,111 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.AirshipMessageCenter = void 0;
7
- /**
8
- * Airship Message Center
9
- */
10
- class AirshipMessageCenter {
11
- constructor(module) {
12
- this.module = module;
13
- }
14
-
15
- /**
16
- * Gets the unread count.
17
- * @returns A promise with the result.
18
- */
19
- getUnreadCount() {
20
- return this.module.messageCenterGetUnreadCount();
21
- }
22
-
23
- /**
24
- * Gets the inbox messages.
25
- * @returns A promise with the result.
26
- */
27
- getMessages() {
28
- return this.module.messageCenterGetMessages();
29
- }
30
-
31
- /**
32
- * Marks a message as read.
33
- * @param messageId The message Id.
34
- * @returns A promise. Will reject if the message is not
35
- * found or if takeOff is not called.
36
- */
37
- markMessageRead(messageId) {
38
- return this.module.messageCenterMarkMessageRead(messageId);
39
- }
40
-
41
- /**
42
- * Deletes a message.
43
- * @param messageId The message Id.
44
- * @returns A promise. Will reject if the message is not
45
- * found or if takeOff is not called.
46
- */
47
- deleteMessage(messageId) {
48
- return this.module.messageCenterDeleteMessage(messageId);
49
- }
50
-
51
- /**
52
- * Dismisses the OOTB message center if displayed.
53
- * @returns A promise.
54
- */
55
- dismiss() {
56
- return this.module.messageCenterDismiss();
57
- }
58
-
59
- /**
60
- * Requests to display the Message Center.
61
- *
62
- * Will either emit an event to display the
63
- * Message Center if auto launch message center
64
- * is disabled, or display the OOTB message center.
65
- * @param messageId Optional message Id.
66
- * @returns A promise.
67
- */
68
- display(messageId) {
69
- return this.module.messageCenterDisplay(messageId);
70
- }
71
-
72
- /**
73
- * Overlays the Message Center regardless if auto launch Message Center is enabled or not.
74
- *
75
- * @param messageId Optional message Id.
76
- * @returns A promise.
77
- */
78
- showMessageCenter(messageId) {
79
- return this.module.messageCenterShowMessageCenter(messageId);
80
- }
81
-
82
- /**
83
- * Overlays the message view regardless if auto launch Message Center is enabled or not.
84
- *
85
- * @param messageId The message Id.
86
- * @returns A promise.
87
- */
88
- showMessageView(messageId) {
89
- return this.module.messageCenterShowMessageView(messageId);
90
- }
91
-
92
- /**
93
- * Refreshes the messages.
94
- * @returns A promise. Will reject if the list fails to refresh or if
95
- * takeOff is not called yet.
96
- */
97
- refreshMessages() {
98
- return this.module.messageCenterRefresh();
99
- }
100
-
101
- /**
102
- * Enables or disables showing the OOTB UI when requested to display by either
103
- * `display` or by a notification with a Message Center action.
104
- * @param autoLaunch true to show OOTB UI, false to emit events.
105
- */
106
- setAutoLaunchDefaultMessageCenter(autoLaunch) {
107
- this.module.messageCenterSetAutoLaunchDefaultMessageCenter(autoLaunch);
108
- }
109
- }
110
- exports.AirshipMessageCenter = AirshipMessageCenter;
111
- //# sourceMappingURL=AirshipMessageCenter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["AirshipMessageCenter","constructor","module","getUnreadCount","messageCenterGetUnreadCount","getMessages","messageCenterGetMessages","markMessageRead","messageId","messageCenterMarkMessageRead","deleteMessage","messageCenterDeleteMessage","dismiss","messageCenterDismiss","display","messageCenterDisplay","showMessageCenter","messageCenterShowMessageCenter","showMessageView","messageCenterShowMessageView","refreshMessages","messageCenterRefresh","setAutoLaunchDefaultMessageCenter","autoLaunch","messageCenterSetAutoLaunchDefaultMessageCenter","exports"],"sourceRoot":"../../src","sources":["AirshipMessageCenter.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACO,MAAMA,oBAAoB,CAAC;EAChCC,WAAWA,CAAkBC,MAAW,EAAE;IAAA,KAAbA,MAAW,GAAXA,MAAW;EAAG;;EAE3C;AACF;AACA;AACA;EACSC,cAAcA,CAAA,EAAoB;IACvC,OAAO,IAAI,CAACD,MAAM,CAACE,2BAA2B,CAAC,CAAC;EAClD;;EAEA;AACF;AACA;AACA;EACSC,WAAWA,CAAA,EAA4B;IAC5C,OAAO,IAAI,CAACH,MAAM,CAACI,wBAAwB,CAAC,CAAC;EAC/C;;EAEA;AACF;AACA;AACA;AACA;AACA;EACSC,eAAeA,CAACC,SAAiB,EAAiB;IACvD,OAAO,IAAI,CAACN,MAAM,CAACO,4BAA4B,CAACD,SAAS,CAAC;EAC5D;;EAEA;AACF;AACA;AACA;AACA;AACA;EACSE,aAAaA,CAACF,SAAiB,EAAiB;IACrD,OAAO,IAAI,CAACN,MAAM,CAACS,0BAA0B,CAACH,SAAS,CAAC;EAC1D;;EAEA;AACF;AACA;AACA;EACSI,OAAOA,CAAA,EAAkB;IAC9B,OAAO,IAAI,CAACV,MAAM,CAACW,oBAAoB,CAAC,CAAC;EAC3C;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACSC,OAAOA,CAACN,SAAkB,EAAiB;IAChD,OAAO,IAAI,CAACN,MAAM,CAACa,oBAAoB,CAACP,SAAS,CAAC;EACpD;;EAEA;AACF;AACA;AACA;AACA;AACA;EACSQ,iBAAiBA,CAACR,SAAkB,EAAiB;IAC1D,OAAO,IAAI,CAACN,MAAM,CAACe,8BAA8B,CAACT,SAAS,CAAC;EAC9D;;EAEA;AACF;AACA;AACA;AACA;AACA;EACSU,eAAeA,CAACV,SAAiB,EAAiB;IACvD,OAAO,IAAI,CAACN,MAAM,CAACiB,4BAA4B,CAACX,SAAS,CAAC;EAC5D;;EAEA;AACF;AACA;AACA;AACA;EACSY,eAAeA,CAAA,EAAkB;IACtC,OAAO,IAAI,CAAClB,MAAM,CAACmB,oBAAoB,CAAC,CAAC;EAC3C;;EAEA;AACF;AACA;AACA;AACA;EACSC,iCAAiCA,CAACC,UAAmB,EAAE;IAC5D,IAAI,CAACrB,MAAM,CAACsB,8CAA8C,CAACD,UAAU,CAAC;EACxE;AACF;AAACE,OAAA,CAAAzB,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -1,48 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.AirshipPreferenceCenter = void 0;
7
- /**
8
- * Airship Preference Center.
9
- */
10
- class AirshipPreferenceCenter {
11
- constructor(module) {
12
- this.module = module;
13
- }
14
-
15
- /**
16
- * Requests to display a preference center.
17
- *
18
- * Will either emit an event to display the
19
- * Preference Center if auto launch is disabled,
20
- * or display the OOTB UI.
21
- * @param preferenceCenterId The preference center Id.
22
- * @returns A promise.
23
- */
24
- display(preferenceCenterId) {
25
- return this.module.preferenceCenterDisplay(preferenceCenterId);
26
- }
27
-
28
- /**
29
- * Gets the preference center config.
30
- * @param preferenceCenterId The preference center Id.
31
- * @returns A promise with the result.
32
- */
33
- getConfig(preferenceCenterId) {
34
- return this.module.preferenceCenterGetConfig(preferenceCenterId);
35
- }
36
-
37
- /**
38
- * Enables or disables showing the OOTB UI when requested to display by either
39
- * `display` or by a notification with some other action.
40
- * @param preferenceCenterId The preference center Id.
41
- * @param autoLaunch true to show OOTB UI, false to emit events.
42
- */
43
- setAutoLaunchDefaultPreferenceCenter(preferenceCenterId, autoLaunch) {
44
- return this.module.preferenceCenterAutoLaunchDefaultPreferenceCenter(preferenceCenterId, autoLaunch);
45
- }
46
- }
47
- exports.AirshipPreferenceCenter = AirshipPreferenceCenter;
48
- //# sourceMappingURL=AirshipPreferenceCenter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["AirshipPreferenceCenter","constructor","module","display","preferenceCenterId","preferenceCenterDisplay","getConfig","preferenceCenterGetConfig","setAutoLaunchDefaultPreferenceCenter","autoLaunch","preferenceCenterAutoLaunchDefaultPreferenceCenter","exports"],"sourceRoot":"../../src","sources":["AirshipPreferenceCenter.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACO,MAAMA,uBAAuB,CAAC;EACnCC,WAAWA,CAAkBC,MAAW,EAAE;IAAA,KAAbA,MAAW,GAAXA,MAAW;EAAG;;EAE3C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACSC,OAAOA,CAACC,kBAA0B,EAAiB;IACxD,OAAO,IAAI,CAACF,MAAM,CAACG,uBAAuB,CAACD,kBAAkB,CAAC;EAChE;;EAEA;AACF;AACA;AACA;AACA;EACSE,SAASA,CAACF,kBAA0B,EAA6B;IACtE,OAAO,IAAI,CAACF,MAAM,CAACK,yBAAyB,CAACH,kBAAkB,CAAC;EAClE;;EAEC;AACH;AACA;AACA;AACA;AACA;EACSI,oCAAoCA,CACzCJ,kBAA0B,EAC1BK,UAAmB,EACb;IACN,OAAO,IAAI,CAACP,MAAM,CAACQ,iDAAiD,CAClEN,kBAAkB,EAClBK,UACF,CAAC;EACH;AACF;AAACE,OAAA,CAAAX,uBAAA,GAAAA,uBAAA","ignoreList":[]}
@@ -1,60 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.AirshipPrivacyManager = void 0;
7
- var _types = require("./types.js");
8
- /**
9
- * Airship Privacy Manager.
10
- */
11
- class AirshipPrivacyManager {
12
- constructor(module) {
13
- this.module = module;
14
- }
15
-
16
- /**
17
- * Sets the current set of enabled features.
18
- * @param features The features to set.
19
- * @returns A promise.
20
- */
21
- setEnabledFeatures(features) {
22
- return this.module.privacyManagerSetEnabledFeatures(features.filter(feature => feature !== _types.Feature.Location && feature !== _types.Feature.Chat));
23
- }
24
- /**
25
- * Gets the current enabled features.
26
- * @returns A promise with the result.
27
- */
28
- getEnabledFeatures() {
29
- return this.module.privacyManagerGetEnabledFeatures();
30
- }
31
-
32
- /**
33
- * Enables additional features.
34
- * @param features The features to enable.
35
- * @returns A promise.
36
- */
37
- enableFeatures(features) {
38
- return this.module.privacyManagerEnableFeature(features.filter(feature => feature !== _types.Feature.Location && feature !== _types.Feature.Chat));
39
- }
40
-
41
- /**
42
- * Disable features.
43
- * @param features The features to disable.
44
- * @returns A promise.
45
- */
46
- disableFeatures(features) {
47
- return this.module.privacyManagerDisableFeature(features.filter(feature => feature !== _types.Feature.Location && feature !== _types.Feature.Chat));
48
- }
49
-
50
- /**
51
- * Checks if the features are enabled or not.
52
- * @param features The features to check.
53
- * @returns A promise with the result.
54
- */
55
- isFeaturesEnabled(features) {
56
- return this.module.privacyManagerIsFeatureEnabled(features.filter(feature => feature !== _types.Feature.Location && feature !== _types.Feature.Chat));
57
- }
58
- }
59
- exports.AirshipPrivacyManager = AirshipPrivacyManager;
60
- //# sourceMappingURL=AirshipPrivacyManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_types","require","AirshipPrivacyManager","constructor","module","setEnabledFeatures","features","privacyManagerSetEnabledFeatures","filter","feature","Feature","Location","Chat","getEnabledFeatures","privacyManagerGetEnabledFeatures","enableFeatures","privacyManagerEnableFeature","disableFeatures","privacyManagerDisableFeature","isFeaturesEnabled","privacyManagerIsFeatureEnabled","exports"],"sourceRoot":"../../src","sources":["AirshipPrivacyManager.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACO,MAAMC,qBAAqB,CAAC;EACjCC,WAAWA,CAAkBC,MAAW,EAAE;IAAA,KAAbA,MAAW,GAAXA,MAAW;EAAG;;EAE3C;AACF;AACA;AACA;AACA;EACSC,kBAAkBA,CAACC,QAAmB,EAAiB;IAC5D,OAAO,IAAI,CAACF,MAAM,CAACG,gCAAgC,CACjDD,QAAQ,CAACE,MAAM,CAACC,OAAO,IACrBA,OAAO,KAAKC,cAAO,CAACC,QAAQ,IAAIF,OAAO,KAAKC,cAAO,CAACE,IACtD,CACF,CAAC;EACH;EACA;AACF;AACA;AACA;EACSC,kBAAkBA,CAAA,EAAuB;IAC9C,OAAO,IAAI,CAACT,MAAM,CAACU,gCAAgC,CAAC,CAAC;EACvD;;EAEA;AACF;AACA;AACA;AACA;EACSC,cAAcA,CAACT,QAAmB,EAAiB;IACxD,OAAO,IAAI,CAACF,MAAM,CAACY,2BAA2B,CAC5CV,QAAQ,CAACE,MAAM,CAACC,OAAO,IACrBA,OAAO,KAAKC,cAAO,CAACC,QAAQ,IAAIF,OAAO,KAAKC,cAAO,CAACE,IACtD,CACF,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;EACSK,eAAeA,CAACX,QAAmB,EAAiB;IACzD,OAAO,IAAI,CAACF,MAAM,CAACc,4BAA4B,CAC7CZ,QAAQ,CAACE,MAAM,CAACC,OAAO,IACrBA,OAAO,KAAKC,cAAO,CAACC,QAAQ,IAAIF,OAAO,KAAKC,cAAO,CAACE,IACtD,CACF,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;EACSO,iBAAiBA,CAACb,QAAmB,EAAiB;IAC3D,OAAO,IAAI,CAACF,MAAM,CAACgB,8BAA8B,CAC/Cd,QAAQ,CAACE,MAAM,CAACC,OAAO,IACrBA,OAAO,KAAKC,cAAO,CAACC,QAAQ,IAAIF,OAAO,KAAKC,cAAO,CAACE,IACtD,CACF,CAAC;EACH;AACF;AAACS,OAAA,CAAAnB,qBAAA,GAAAA,qBAAA","ignoreList":[]}
@@ -1,264 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.AirshipPushIOS = exports.AirshipPushAndroid = exports.AirshipPush = void 0;
7
- var _reactNative = require("react-native");
8
- /**
9
- * Airship Push.
10
- */
11
- class AirshipPush {
12
- /**
13
- * iOS only push methods.
14
- */
15
-
16
- /**
17
- * Android only push methods.
18
- */
19
-
20
- constructor(module) {
21
- this.module = module;
22
- this.iOS = new AirshipPushIOS(module);
23
- this.android = new AirshipPushAndroid(module);
24
- }
25
-
26
- /**
27
- * Enables/disables notifications on Airship.
28
- *
29
- * When enabled, it will cause the user to be prompted for
30
- * the permission on platforms that support it.
31
- * To get the result of the prompt, use `enableUserNotifications`.
32
- * @param enabled true to enable, false to disable
33
- * @returns A promise.
34
- */
35
- setUserNotificationsEnabled(enabled) {
36
- return this.module.pushSetUserNotificationsEnabled(enabled);
37
- }
38
-
39
- /**
40
- * Checks if user notifications are enabled or not on Airship.
41
- * @returns A promise with the result.
42
- */
43
- isUserNotificationsEnabled() {
44
- return this.module.pushIsUserNotificationsEnabled();
45
- }
46
-
47
- /**
48
- * Enables user notifications.
49
- * @param options Optional options.
50
- * @returns A promise with the permission result.
51
- */
52
- enableUserNotifications(options) {
53
- return this.module.pushEnableUserNotifications(options);
54
- }
55
-
56
- /**
57
- * Gets the notification status.
58
- * @returns A promise with the result.
59
- */
60
- getNotificationStatus() {
61
- return this.module.pushGetNotificationStatus();
62
- }
63
-
64
- /**
65
- * Gets the registration token if generated.
66
- * Use the event EventType.PushTokenReceived to be notified
67
- * when available.
68
- * @returns A promise with the result.
69
- */
70
- getRegistrationToken() {
71
- return this.module.pushGetRegistrationToken();
72
- }
73
-
74
- /**
75
- * Gets the list of active notifications.
76
- *
77
- * On Android, this list only includes notifications
78
- * sent through Airship.
79
- * @returns A promise with the result.
80
- */
81
- getActiveNotifications() {
82
- return this.module.pushGetActiveNotifications();
83
- }
84
-
85
- /**
86
- * Clears all notifications for the app.
87
- */
88
- clearNotifications() {
89
- return this.module.pushClearNotifications();
90
- }
91
-
92
- /**
93
- * Clears a specific notification.
94
- *
95
- * On Android, you can use this method to clear
96
- * notifications outside of Airship, The identifier is in
97
- * the format of <tag>:<id>.
98
- * @param identifier The identifier.
99
- */
100
- clearNotification(identifier) {
101
- return this.module.pushClearNotification(identifier);
102
- }
103
- }
104
-
105
- /**
106
- * iOS Push.
107
- */
108
- exports.AirshipPush = AirshipPush;
109
- class AirshipPushIOS {
110
- constructor(module) {
111
- this.module = module;
112
- this.eventEmitter = new _reactNative.NativeEventEmitter(module);
113
- if (_reactNative.Platform.OS === 'ios') {
114
- this.eventEmitter.addListener("com.airship.ios.override_presentation_options", event => {
115
- let payload = event["pushPayload"];
116
- let requestId = event["requestId"];
117
- if (this.presentationOverridesCallback) {
118
- this.presentationOverridesCallback(payload).then(result => {
119
- module.pushIosOverridePresentationOptions(requestId, result);
120
- }).catch(() => {
121
- module.pushIosOverridePresentationOptions(requestId, null);
122
- });
123
- }
124
- });
125
- }
126
- }
127
-
128
- /**
129
- * Overrides the presentation options per notification. If a `null` is returned, the default
130
- * options will be used. The callback should return as quickly as possible to avoid delaying notification delivery.
131
- *
132
- * @param callback A callback that can override the foreground presentation options.
133
- */
134
- setForegroundPresentationOptionsCallback(callback) {
135
- if (_reactNative.Platform.OS === 'ios') {
136
- this.presentationOverridesCallback = callback;
137
- this.module.pushIosIsOverridePresentationOptionsEnabled(callback != null);
138
- }
139
- }
140
-
141
- /**
142
- * Sets the foreground presentation options.
143
- * @param options The foreground options.
144
- * @returns A promise.
145
- */
146
- setForegroundPresentationOptions(options) {
147
- return this.module.pushIosSetForegroundPresentationOptions(options);
148
- }
149
-
150
- /**
151
- * Sets the notification options.
152
- * @param options The notification options.
153
- * @returns A promise.
154
- */
155
- setNotificationOptions(options) {
156
- return this.module.pushIosSetNotificationOptions(options);
157
- }
158
-
159
- /**
160
- * Checks if autobadge is enabled.
161
- * @returns A promise with the result.
162
- */
163
- isAutobadgeEnabled() {
164
- return this.module.pushIosIsAutobadgeEnabled();
165
- }
166
-
167
- /**
168
- * Enables/disables autobadge.
169
- * @param enabled true to enable, false to disable.
170
- * @returns A promise.
171
- */
172
- setAutobadgeEnabled(enabled) {
173
- return this.module.pushIosSetAutobadgeEnabled(enabled);
174
- }
175
-
176
- /**
177
- * Set the badge number.
178
- * @param badge The badge number.
179
- * @returns A promise.
180
- */
181
- setBadgeNumber(badge) {
182
- return this.module.pushIosSetBadgeNumber(badge);
183
- }
184
-
185
- /**
186
- * Gets the badge number.
187
- * @returns A promise with the result.
188
- */
189
- getBadgeNumber() {
190
- return this.module.pushIosGetBadgeNumber();
191
- }
192
-
193
- /**
194
- * Gets the list of authorized notification settings.
195
- * @returns A promise with the result.
196
- */
197
- getAuthorizedNotificationSettings() {
198
- return this.module.pushIosGetAuthorizedNotificationSettings();
199
- }
200
-
201
- /**
202
- * Gets the authorized notification status.
203
- * @returns A promise with the result.
204
- */
205
- getAuthorizedNotificationStatus() {
206
- return this.module.pushIosGetAuthorizedNotificationStatus();
207
- }
208
- }
209
-
210
- /**
211
- * Android Push.
212
- */
213
- exports.AirshipPushIOS = AirshipPushIOS;
214
- class AirshipPushAndroid {
215
- constructor(module) {
216
- this.module = module;
217
- this.eventEmitter = new _reactNative.NativeEventEmitter(module);
218
- if (_reactNative.Platform.OS === 'android') {
219
- this.eventEmitter.addListener("com.airship.android.override_foreground_display", event => {
220
- let payload = event["pushPayload"];
221
- let requestId = event["requestId"];
222
- if (this.foregroundDisplayPredicate) {
223
- this.foregroundDisplayPredicate(payload).then(result => {
224
- module.pushAndroidOverrideForegroundDisplay(requestId, result);
225
- }).catch(() => {
226
- module.pushAndroidOverrideForegroundDisplay(requestId, true);
227
- });
228
- }
229
- });
230
- }
231
- }
232
- /**
233
- * Checks if a notification category/channel is enabled.
234
- * @param channel The channel name.
235
- * @returns A promise with the result.
236
- */
237
- isNotificationChannelEnabled(channel) {
238
- return this.module.pushAndroidIsNotificationChannelEnabled(channel);
239
- }
240
-
241
- /**
242
- * Sets the notification config.
243
- * @param config The notification config.
244
- */
245
- setNotificationConfig(config) {
246
- return this.module.pushAndroidSetNotificationConfig(config);
247
- }
248
-
249
- /**
250
- * Overrides the foreground display per notification.
251
- *
252
- * The predicate should return as quickly as possible to avoid delaying notification delivery.
253
- *
254
- * @param predicate A foreground display predicate.
255
- */
256
- setForegroundDisplayPredicate(predicate) {
257
- if (_reactNative.Platform.OS === 'android') {
258
- this.foregroundDisplayPredicate = predicate;
259
- this.module.pushAndroidIsOverrideForegroundDisplayEnabled(predicate != null);
260
- }
261
- }
262
- }
263
- exports.AirshipPushAndroid = AirshipPushAndroid;
264
- //# sourceMappingURL=AirshipPush.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","AirshipPush","constructor","module","iOS","AirshipPushIOS","android","AirshipPushAndroid","setUserNotificationsEnabled","enabled","pushSetUserNotificationsEnabled","isUserNotificationsEnabled","pushIsUserNotificationsEnabled","enableUserNotifications","options","pushEnableUserNotifications","getNotificationStatus","pushGetNotificationStatus","getRegistrationToken","pushGetRegistrationToken","getActiveNotifications","pushGetActiveNotifications","clearNotifications","pushClearNotifications","clearNotification","identifier","pushClearNotification","exports","eventEmitter","NativeEventEmitter","Platform","OS","addListener","event","payload","requestId","presentationOverridesCallback","then","result","pushIosOverridePresentationOptions","catch","setForegroundPresentationOptionsCallback","callback","pushIosIsOverridePresentationOptionsEnabled","setForegroundPresentationOptions","pushIosSetForegroundPresentationOptions","setNotificationOptions","pushIosSetNotificationOptions","isAutobadgeEnabled","pushIosIsAutobadgeEnabled","setAutobadgeEnabled","pushIosSetAutobadgeEnabled","setBadgeNumber","badge","pushIosSetBadgeNumber","getBadgeNumber","pushIosGetBadgeNumber","getAuthorizedNotificationSettings","pushIosGetAuthorizedNotificationSettings","getAuthorizedNotificationStatus","pushIosGetAuthorizedNotificationStatus","foregroundDisplayPredicate","pushAndroidOverrideForegroundDisplay","isNotificationChannelEnabled","channel","pushAndroidIsNotificationChannelEnabled","setNotificationConfig","config","pushAndroidSetNotificationConfig","setForegroundDisplayPredicate","predicate","pushAndroidIsOverrideForegroundDisplayEnabled"],"sourceRoot":"../../src","sources":["AirshipPush.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACO,MAAMC,WAAW,CAAC;EACvB;AACF;AACA;;EAIE;AACF;AACA;;EAIEC,WAAWA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WAAW,CAAW;QAE5C,IAAI,IAAI,CAAC4B,0BAA0B,EAAE;UACnC,IAAI,CAACA,0BAA0B,CAAC3B,OAAO,CAAC,CAACG,IAAI,CAAGC,MAAM,IAAK;YACzDnC,MAAM,CAAC2D,oCAAoC,CAAC3B,SAAS,EAAEG,MAAM,CAAC;UAChE,CAAC,CAAC,CACDE,KAAK,CAAC,MAAM;YACXrC,MAAM,CAAC2D,oCAAoC,CAAC3B,SAAS,EAAE,IAAI,CAAC;UAC9D,CAAC,CAAC;QACJ;MACF,CAAC,CAAC;IACJ;EACF;EACA;AACF;AACA;AACA;AACA;EACS4B,4BAA4BA,CAACC,OAAe,EAAoB;IACrE,OAAO,IAAI,CAAC7D,MAAM,CAAC8D,uCAAuC,CAACD,OAAO,CAAC;EACrE;;EAEA;AACF;AACA;AACA;EACSE,qBAAqBA,CAACC,MAAkC,EAAQ;IACrE,OAAO,IAAI,CAAChE,MAAM,CAACiE,gCAAgC,CAACD,MAAM,CAAC;EAC7D;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACSE,6BAA6BA,CAACC,SAA0D,EAAE;IAC/F,IAAIxC,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;MAC7B,IAAI,CAAC8B,0BAA0B,GAAGS,SAAS;MAC3C,IAAI,CAACnE,MAAM,CAACoE,6CAA6C,CAACD,SAAS,IAAI,IAAI,CAAC;IAC9E;EACF;AACF;AAAC3C,OAAA,CAAApB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1,115 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.AirshipRootIOS = exports.AirshipRootAndroid = exports.AirshipRoot = void 0;
7
- var _AirshipActions = require("./AirshipActions.js");
8
- var _AirshipAnalytics = require("./AirshipAnalytics.js");
9
- var _AirshipChannel = require("./AirshipChannel.js");
10
- var _AirshipContact = require("./AirshipContact.js");
11
- var _AirshipInApp = require("./AirshipInApp.js");
12
- var _AirshipLocale = require("./AirshipLocale.js");
13
- var _AirshipMessageCenter = require("./AirshipMessageCenter.js");
14
- var _AirshipPreferenceCenter = require("./AirshipPreferenceCenter.js");
15
- var _AirshipPrivacyManager = require("./AirshipPrivacyManager.js");
16
- var _AirshipPush = require("./AirshipPush.js");
17
- var _AirshipFeatureFlagManager = require("./AirshipFeatureFlagManager.js");
18
- var _UAEventEmitter = require("./UAEventEmitter.js");
19
- var _AirshipLiveActivityManager = require("./AirshipLiveActivityManager.js");
20
- var _AirshipLiveUpdateManager = require("./AirshipLiveUpdateManager.js");
21
- /**
22
- * Airship
23
- */
24
- class AirshipRoot {
25
- /**
26
- * iOS only accessors
27
- */
28
-
29
- /**
30
- * iOS only accessors
31
- */
32
-
33
- constructor(module) {
34
- this.module = module;
35
- this.eventEmitter = new _UAEventEmitter.UAEventEmitter(module);
36
- this.actions = new _AirshipActions.AirshipActions(module);
37
- this.analytics = new _AirshipAnalytics.AirshipAnalytics(module);
38
- this.channel = new _AirshipChannel.AirshipChannel(module);
39
- this.contact = new _AirshipContact.AirshipContact(module);
40
- this.inApp = new _AirshipInApp.AirshipInApp(module, this.eventEmitter);
41
- this.locale = new _AirshipLocale.AirshipLocale(module);
42
- this.messageCenter = new _AirshipMessageCenter.AirshipMessageCenter(module);
43
- this.preferenceCenter = new _AirshipPreferenceCenter.AirshipPreferenceCenter(module);
44
- this.privacyManager = new _AirshipPrivacyManager.AirshipPrivacyManager(module);
45
- this.push = new _AirshipPush.AirshipPush(module);
46
- this.featureFlagManager = new _AirshipFeatureFlagManager.AirshipFeatureFlagManager(module);
47
- this.iOS = new AirshipRootIOS(module);
48
- this.android = new AirshipRootAndroid(module);
49
- }
50
-
51
- /**
52
- * Calls takeOff. If Airship is already configured for
53
- * the app session, the new config will be applied on the next
54
- * app init.
55
- * @param config The config.
56
- * @returns A promise with the result. `true` if airship is ready.
57
- */
58
- takeOff(config) {
59
- return this.module.takeOff(config);
60
- }
61
-
62
- /**
63
- * Checks if Airship is ready.
64
- * @returns A promise with the result.
65
- */
66
- isFlying() {
67
- return this.module.isFlying();
68
- }
69
-
70
- /**
71
- * Adds a listener.
72
- * @param eventType The listener type.
73
- * @param listener The listener.
74
- * @returns A subscription.
75
- */
76
- addListener(eventType, listener) {
77
- this.eventEmitter.addListener(eventType, listener);
78
- return new _UAEventEmitter.Subscription(() => {
79
- this.removeListener(eventType, listener);
80
- });
81
- }
82
-
83
- /**
84
- * Removes a listener.
85
- *
86
- * @param eventType The event type.
87
- * @param listener The event listener. Should be a reference to the function passed into addListener.
88
- */
89
- removeListener(eventType, listener) {
90
- this.eventEmitter.removeListener(eventType, listener);
91
- }
92
-
93
- /**
94
- * Removes all listeners for a given type.
95
- *
96
- * @param eventType The event type.
97
- */
98
- removeAllListeners(eventType) {
99
- this.eventEmitter.removeAllListeners(eventType);
100
- }
101
- }
102
- exports.AirshipRoot = AirshipRoot;
103
- class AirshipRootIOS {
104
- constructor(module) {
105
- this.liveActivityManager = new _AirshipLiveActivityManager.AirshipLiveActivityManager(module);
106
- }
107
- }
108
- exports.AirshipRootIOS = AirshipRootIOS;
109
- class AirshipRootAndroid {
110
- constructor(module) {
111
- this.liveUpdateManager = new _AirshipLiveUpdateManager.AirshipLiveUpdateManager(module);
112
- }
113
- }
114
- exports.AirshipRootAndroid = AirshipRootAndroid;
115
- //# sourceMappingURL=AirshipRoot.js.map