@ua/capacitor-airship 1.0.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.
Files changed (84) hide show
  1. package/README.md +12 -0
  2. package/UaCapacitorAirship.podspec +18 -0
  3. package/android/build.gradle +72 -0
  4. package/android/src/main/AndroidManifest.xml +33 -0
  5. package/android/src/main/java/com/airship/capacitor/AirshipCapacitorVersion.kt +7 -0
  6. package/android/src/main/java/com/airship/capacitor/AirshipPlugin.kt +331 -0
  7. package/android/src/main/java/com/airship/capacitor/CapacitorAutopilot.kt +39 -0
  8. package/android/src/main/res/.gitkeep +0 -0
  9. package/dist/esm/AirshipActions.d.ts +18 -0
  10. package/dist/esm/AirshipActions.js +20 -0
  11. package/dist/esm/AirshipActions.js.map +1 -0
  12. package/dist/esm/AirshipAnalytics.d.ts +30 -0
  13. package/dist/esm/AirshipAnalytics.js +39 -0
  14. package/dist/esm/AirshipAnalytics.js.map +1 -0
  15. package/dist/esm/AirshipChannel.d.ts +61 -0
  16. package/dist/esm/AirshipChannel.js +87 -0
  17. package/dist/esm/AirshipChannel.js.map +1 -0
  18. package/dist/esm/AirshipContact.d.ts +48 -0
  19. package/dist/esm/AirshipContact.js +68 -0
  20. package/dist/esm/AirshipContact.js.map +1 -0
  21. package/dist/esm/AirshipFeatureFlagManager.d.ts +24 -0
  22. package/dist/esm/AirshipFeatureFlagManager.js +28 -0
  23. package/dist/esm/AirshipFeatureFlagManager.js.map +1 -0
  24. package/dist/esm/AirshipInApp.d.ts +30 -0
  25. package/dist/esm/AirshipInApp.js +39 -0
  26. package/dist/esm/AirshipInApp.js.map +1 -0
  27. package/dist/esm/AirshipLocale.d.ts +24 -0
  28. package/dist/esm/AirshipLocale.js +31 -0
  29. package/dist/esm/AirshipLocale.js.map +1 -0
  30. package/dist/esm/AirshipMessageCenter.d.ts +77 -0
  31. package/dist/esm/AirshipMessageCenter.js +99 -0
  32. package/dist/esm/AirshipMessageCenter.js.map +1 -0
  33. package/dist/esm/AirshipPlugin.d.ts +31 -0
  34. package/dist/esm/AirshipPlugin.js +15 -0
  35. package/dist/esm/AirshipPlugin.js.map +1 -0
  36. package/dist/esm/AirshipPreferenceCenter.d.ts +38 -0
  37. package/dist/esm/AirshipPreferenceCenter.js +49 -0
  38. package/dist/esm/AirshipPreferenceCenter.js.map +1 -0
  39. package/dist/esm/AirshipPrivacyManager.d.ts +38 -0
  40. package/dist/esm/AirshipPrivacyManager.js +48 -0
  41. package/dist/esm/AirshipPrivacyManager.js.map +1 -0
  42. package/dist/esm/AirshipPush.d.ts +184 -0
  43. package/dist/esm/AirshipPush.js +232 -0
  44. package/dist/esm/AirshipPush.js.map +1 -0
  45. package/dist/esm/AirshipRoot.d.ts +49 -0
  46. package/dist/esm/AirshipRoot.js +55 -0
  47. package/dist/esm/AirshipRoot.js.map +1 -0
  48. package/dist/esm/AttributeEditor.d.ts +54 -0
  49. package/dist/esm/AttributeEditor.js +76 -0
  50. package/dist/esm/AttributeEditor.js.map +1 -0
  51. package/dist/esm/EventType.d.ts +25 -0
  52. package/dist/esm/EventType.js +14 -0
  53. package/dist/esm/EventType.js.map +1 -0
  54. package/dist/esm/ScopedSubscriptionListEditor.d.ts +59 -0
  55. package/dist/esm/ScopedSubscriptionListEditor.js +62 -0
  56. package/dist/esm/ScopedSubscriptionListEditor.js.map +1 -0
  57. package/dist/esm/SubscriptionListEditor.d.ts +50 -0
  58. package/dist/esm/SubscriptionListEditor.js +56 -0
  59. package/dist/esm/SubscriptionListEditor.js.map +1 -0
  60. package/dist/esm/TagEditor.d.ts +46 -0
  61. package/dist/esm/TagEditor.js +46 -0
  62. package/dist/esm/TagEditor.js.map +1 -0
  63. package/dist/esm/TagGroupEditor.d.ts +60 -0
  64. package/dist/esm/TagGroupEditor.js +60 -0
  65. package/dist/esm/TagGroupEditor.js.map +1 -0
  66. package/dist/esm/index.d.ts +20 -0
  67. package/dist/esm/index.js +25 -0
  68. package/dist/esm/index.js.map +1 -0
  69. package/dist/esm/types.d.ts +651 -0
  70. package/dist/esm/types.js +167 -0
  71. package/dist/esm/types.js.map +1 -0
  72. package/dist/plugin.cjs.js +1278 -0
  73. package/dist/plugin.cjs.js.map +1 -0
  74. package/dist/plugin.js +1281 -0
  75. package/dist/plugin.js.map +1 -0
  76. package/ios/Plugin/AirshipCapacitorAutopilot.swift +94 -0
  77. package/ios/Plugin/AirshipCapacitorBootstrap.h +8 -0
  78. package/ios/Plugin/AirshipCapacitorBootstrap.m +24 -0
  79. package/ios/Plugin/AirshipCapacitorVersion.swift +7 -0
  80. package/ios/Plugin/AirshipPlugin.h +7 -0
  81. package/ios/Plugin/AirshipPlugin.m +9 -0
  82. package/ios/Plugin/AirshipPlugin.swift +557 -0
  83. package/ios/Plugin/Info.plist +24 -0
  84. package/package.json +75 -0
@@ -0,0 +1,1278 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var core = require('@capacitor/core');
6
+
7
+ /**
8
+ * Airship actions.
9
+ */
10
+ class AirshipActions {
11
+ constructor(plugin) {
12
+ this.plugin = plugin;
13
+ }
14
+ /**
15
+ * Runs an Airship action.
16
+ *
17
+ * @param name The name of the action.
18
+ * @param value The action's value.
19
+ * @return A promise that returns the action result if the action
20
+ * successfully runs, or the Error if the action was unable to be run.
21
+ */
22
+ run(actionName, actionValue) {
23
+ return this.plugin.perform('actions#run', [actionName, actionValue]);
24
+ }
25
+ }
26
+
27
+ /**
28
+ * Airship analytics.
29
+ */
30
+ class AirshipAnalytics {
31
+ constructor(plugin) {
32
+ this.plugin = plugin;
33
+ }
34
+ /**
35
+ * Associates an identifier.
36
+ *
37
+ * @param key The key.
38
+ * @param identifier The identifier. `null` to remove.
39
+ * @returns A promise.
40
+ */
41
+ associateIdentifier(key, identifier) {
42
+ return this.plugin.perform('analytics#associateIdentifier', [
43
+ key,
44
+ identifier,
45
+ ]);
46
+ }
47
+ /**
48
+ * Tracks a screen.
49
+ * @param screen The screen. `null` to stop tracking.
50
+ * @returns A promise.
51
+ */
52
+ trackScreen(screen) {
53
+ return this.plugin.perform('analytics#trackScreen', screen);
54
+ }
55
+ /**
56
+ * Adds a custom event.
57
+ * @param event The custom event.
58
+ * @return A promise that returns null if resolved, or an Error if the
59
+ * custom event is rejected.
60
+ */
61
+ addCustomEvent(event) {
62
+ return this.plugin.perform('analytics#addCustomEvent', event);
63
+ }
64
+ }
65
+
66
+ /* Copyright Airship and Contributors */
67
+ /**
68
+ * Editor for attributes.
69
+ */
70
+ class AttributeEditor {
71
+ /**
72
+ * AttributeEditor constructor
73
+ *
74
+ * @hidden
75
+ * @param onApply The apply function
76
+ */
77
+ constructor(onApply) {
78
+ this.onApply = onApply;
79
+ this.operations = [];
80
+ }
81
+ /**
82
+ * Adds an attribute.
83
+ *
84
+ * @param value The attribute value.
85
+ * @param name The attribute name.
86
+ * @return The attribute editor instance.
87
+ */
88
+ setAttribute(name, value) {
89
+ let attributeValue;
90
+ let attributeType;
91
+ if (typeof value === 'boolean') {
92
+ // No boolean attribute type. Convert value to string.
93
+ attributeValue = value.toString();
94
+ attributeType = 'string';
95
+ }
96
+ else {
97
+ attributeValue = value;
98
+ if (typeof value === 'string') {
99
+ attributeType = 'string';
100
+ }
101
+ else if (typeof attributeValue === 'number') {
102
+ attributeType = 'number';
103
+ }
104
+ else if (value instanceof Date) {
105
+ // JavaScript's date type doesn't pass through the JS to native bridge.
106
+ // Dates are instead serialized as milliseconds since epoch.
107
+ attributeType = 'date';
108
+ attributeValue = value.getTime();
109
+ }
110
+ else {
111
+ throw 'Unsupported attribute type: ' + typeof attributeValue;
112
+ }
113
+ }
114
+ const operation = {
115
+ action: 'set',
116
+ value: attributeValue,
117
+ key: name,
118
+ type: attributeType,
119
+ };
120
+ this.operations.push(operation);
121
+ return this;
122
+ }
123
+ /**
124
+ * Removes an attribute.
125
+ * @param name The name of the attribute to remove.
126
+ * @return The attribute editor instance.
127
+ */
128
+ removeAttribute(name) {
129
+ const operation = { action: 'remove', key: name };
130
+ this.operations.push(operation);
131
+ return this;
132
+ }
133
+ /**
134
+ * Applies the attribute operations.
135
+ */
136
+ apply() {
137
+ return this.onApply(this.operations);
138
+ }
139
+ }
140
+
141
+ var EventType;
142
+ (function (EventType) {
143
+ EventType["ChannelCreated"] = "channel_created";
144
+ EventType["NotificationResponse"] = "notification_response_received";
145
+ EventType["PushReceived"] = "push_received";
146
+ EventType["DeepLink"] = "deep_link_received";
147
+ EventType["MessageCenterUpdated"] = "message_center_updated";
148
+ EventType["PushNotificationStatusChangedStatus"] = "notification_status_changed";
149
+ EventType["DisplayMessageCenter"] = "display_message_center";
150
+ EventType["DisplayPreferenceCenter"] = "display_preference_center";
151
+ EventType["PushTokenReceived"] = "push_token_received";
152
+ EventType["IOSAuthorizedNotificationSettingsChanged"] = "ios_authorized_notification_settings_changed";
153
+ })(EventType || (EventType = {}));
154
+
155
+ /* Copyright Airship and Contributors */
156
+ /**
157
+ * Enum of internal subscription list update type.
158
+ * @hidden
159
+ */
160
+ var SubscriptionListOperationAction;
161
+ (function (SubscriptionListOperationAction) {
162
+ SubscriptionListOperationAction["subscribe"] = "subscribe";
163
+ SubscriptionListOperationAction["unsubscribe"] = "unsubscribe";
164
+ })(SubscriptionListOperationAction || (SubscriptionListOperationAction = {}));
165
+ /**
166
+ * Subscription list editor.
167
+ */
168
+ class SubscriptionListEditor {
169
+ constructor(onApply) {
170
+ this.onApply = onApply;
171
+ this.operations = [];
172
+ }
173
+ /**
174
+ * Subscribes to a list.
175
+ *
176
+ * @param subscriptionListId The subscription list identifier.
177
+ * @returns The editor
178
+ */
179
+ subscribe(subscriptionListId) {
180
+ const operation = {
181
+ listId: subscriptionListId,
182
+ action: SubscriptionListOperationAction.subscribe,
183
+ };
184
+ this.operations.push(operation);
185
+ return this;
186
+ }
187
+ /**
188
+ * Unsubscribe from a list.
189
+ *
190
+ * @param subscriptionListId The subscription list identifier.
191
+ * @returns The editor
192
+ */
193
+ unsubscribe(subscriptionListId) {
194
+ const operation = {
195
+ listId: subscriptionListId,
196
+ action: SubscriptionListOperationAction.unsubscribe,
197
+ };
198
+ this.operations.push(operation);
199
+ return this;
200
+ }
201
+ /**
202
+ * Applies subscription list changes.
203
+ *
204
+ */
205
+ apply() {
206
+ return this.onApply(this.operations);
207
+ }
208
+ }
209
+
210
+ /* Copyright Airship and Contributors */
211
+ /**
212
+ * Editor for device tags.
213
+ */
214
+ class TagEditor {
215
+ /**
216
+ * TagEditor constructor
217
+ *
218
+ * @hidden
219
+ * @param onApply The apply function
220
+ */
221
+ constructor(onApply) {
222
+ this.onApply = onApply;
223
+ this.operations = [];
224
+ }
225
+ /**
226
+ * Adds tags to a channel.
227
+ *
228
+ * @param tags Tags to add.
229
+ * @return The tag editor instance.
230
+ */
231
+ addTags(tags) {
232
+ const operation = { operationType: 'add', tags: tags };
233
+ this.operations.push(operation);
234
+ return this;
235
+ }
236
+ /**
237
+ * Removes tags from the channel.
238
+ *
239
+ * @param tags Tags to remove.
240
+ * @return The tag editor instance.
241
+ */
242
+ removeTags(tags) {
243
+ const operation = { operationType: 'remove', tags: tags };
244
+ this.operations.push(operation);
245
+ return this;
246
+ }
247
+ /**
248
+ * Applies the tag changes.
249
+ */
250
+ apply() {
251
+ return this.onApply(this.operations);
252
+ }
253
+ }
254
+
255
+ /* Copyright Airship and Contributors */
256
+ /**
257
+ * Editor for tag groups.
258
+ */
259
+ class TagGroupEditor {
260
+ /**
261
+ * TagGroupEditor constructor
262
+ *
263
+ * @hidden
264
+ * @param onApply The apply function
265
+ */
266
+ constructor(onApply) {
267
+ this.onApply = onApply;
268
+ this.operations = [];
269
+ }
270
+ /**
271
+ * Adds tags to a tag group.
272
+ *
273
+ * @param tagGroup The tag group.
274
+ * @param tags Tags to add.
275
+ * @return The tag group editor instance.
276
+ */
277
+ addTags(group, tags) {
278
+ const operation = { operationType: 'add', group: group, tags: tags };
279
+ this.operations.push(operation);
280
+ return this;
281
+ }
282
+ /**
283
+ * Removes tags from the tag group.
284
+ *
285
+ * @param tagGroup The tag group.
286
+ * @param tags Tags to remove.
287
+ * @return The tag group editor instance.
288
+ */
289
+ removeTags(group, tags) {
290
+ const operation = { operationType: 'remove', group: group, tags: tags };
291
+ this.operations.push(operation);
292
+ return this;
293
+ }
294
+ /**
295
+ * Overwrite the current set of tags on the Tag Group.
296
+ *
297
+ * @param tagGroup The tag group.
298
+ * @param tags Tags to set.
299
+ * @return The tag group editor instance.
300
+ */
301
+ setTags(group, tags) {
302
+ const operation = { operationType: 'set', group: group, tags: tags };
303
+ this.operations.push(operation);
304
+ return this;
305
+ }
306
+ /**
307
+ * Applies the tag changes.
308
+ */
309
+ apply() {
310
+ return this.onApply(this.operations);
311
+ }
312
+ }
313
+
314
+ /**
315
+ * Airship channel.
316
+ */
317
+ class AirshipChannel {
318
+ constructor(plugin) {
319
+ this.plugin = plugin;
320
+ }
321
+ /**
322
+ * Gets the device tags.
323
+ * @returns A promise with the result.
324
+ */
325
+ getTags() {
326
+ return this.plugin.perform('channel#getTags');
327
+ }
328
+ /**
329
+ * Gets the channel Id.
330
+ *
331
+ * @returns A promise with the result.
332
+ */
333
+ getChannelId() {
334
+ return this.plugin.perform('channel#getChannelId');
335
+ }
336
+ /**
337
+ * Gets a list of the channel's subscriptions.
338
+ * @returns A promise with the result.
339
+ */
340
+ getSubscriptionLists() {
341
+ return this.plugin.perform('channel#getSubscriptionLists');
342
+ }
343
+ /**
344
+ * Edits tags.
345
+ * @returns A tag group editor.
346
+ */
347
+ editTags() {
348
+ return new TagEditor((operations) => {
349
+ return this.plugin.perform('channel#editTags', operations);
350
+ });
351
+ }
352
+ /**
353
+ * Edits tag groups.
354
+ * @returns A tag group editor.
355
+ */
356
+ editTagGroups() {
357
+ return new TagGroupEditor((operations) => {
358
+ return this.plugin.perform('channel#editTagGroups', operations);
359
+ });
360
+ }
361
+ /**
362
+ * Edits attributes.
363
+ * @returns An attribute editor.
364
+ */
365
+ editAttributes() {
366
+ return new AttributeEditor((operations) => {
367
+ return this.plugin.perform('channel#editAttributes', operations);
368
+ });
369
+ }
370
+ /**
371
+ * Edits subscription lists.
372
+ * @returns A subscription list editor.
373
+ */
374
+ editSubscriptionLists() {
375
+ return new SubscriptionListEditor((operations) => {
376
+ return this.plugin.perform('channel#editSubscriptionLists', operations);
377
+ });
378
+ }
379
+ /**
380
+ * Enables channel creation if channel creation has been delayed.
381
+ * It is only necessary to call this when isChannelCreationDelayEnabled
382
+ * has been set to `true` in the airship config.
383
+ * Deprecated. Use the Private Manager to disable all features instead.
384
+ */
385
+ enableChannelCreation() {
386
+ return this.plugin.perform('channel#enableChannelCreation');
387
+ }
388
+ /**
389
+ * Adds a channel created listener
390
+ */
391
+ onChannelCreated(listener) {
392
+ return this.plugin.addListener(EventType.ChannelCreated, listener);
393
+ }
394
+ }
395
+
396
+ /* Copyright Airship and Contributors */
397
+ /**
398
+ * Enum of internal scoped subscription list update type.
399
+ * @hidden
400
+ */
401
+ var ScopedSubscriptionListOperationAction;
402
+ (function (ScopedSubscriptionListOperationAction) {
403
+ ScopedSubscriptionListOperationAction["subscribe"] = "subscribe";
404
+ ScopedSubscriptionListOperationAction["unsubscribe"] = "unsubscribe";
405
+ })(ScopedSubscriptionListOperationAction || (ScopedSubscriptionListOperationAction = {}));
406
+ /**
407
+ * Scoped subscription list editor.
408
+ */
409
+ class ScopedSubscriptionListEditor {
410
+ /**
411
+ */
412
+ constructor(onApply) {
413
+ this.onApply = onApply;
414
+ this.operations = [];
415
+ }
416
+ /**
417
+ * Subscribes to a list in the given scope.
418
+ *
419
+ * @param subscriptionListId The subscription list identifier.
420
+ * @param scope The subscription scope to subscribe.
421
+ * @returns The editor.
422
+ */
423
+ subscribe(subscriptionListId, scope) {
424
+ const operation = {
425
+ listId: subscriptionListId,
426
+ action: ScopedSubscriptionListOperationAction.subscribe,
427
+ scope: scope,
428
+ };
429
+ this.operations.push(operation);
430
+ return this;
431
+ }
432
+ /**
433
+ * Unsubscribe from a list.
434
+ *
435
+ * @param subscriptionListId The subscription list identifier.
436
+ * @param scope The subscription scope to unsubscribe.
437
+ * @returns The editor.
438
+ */
439
+ unsubscribe(subscriptionListId, scope) {
440
+ const operation = {
441
+ listId: subscriptionListId,
442
+ action: ScopedSubscriptionListOperationAction.unsubscribe,
443
+ scope: scope,
444
+ };
445
+ this.operations.push(operation);
446
+ return this;
447
+ }
448
+ /**
449
+ * Applies subscription list changes.
450
+ *
451
+ */
452
+ apply() {
453
+ return this.onApply(this.operations);
454
+ }
455
+ }
456
+
457
+ /**
458
+ * Airship contact.
459
+ */
460
+ class AirshipContact {
461
+ constructor(plugin) {
462
+ this.plugin = plugin;
463
+ }
464
+ /**
465
+ * Identifies the contact with a named user Id.
466
+ * @param namedUser The named user Id.
467
+ * @returns A promise.
468
+ */
469
+ identify(namedUser) {
470
+ return this.plugin.perform('contact#identify', namedUser);
471
+ }
472
+ /**
473
+ * Resets the contact.
474
+ * @returns A promise.
475
+ */
476
+ reset() {
477
+ return this.plugin.perform('contact#reset');
478
+ }
479
+ /**
480
+ * Gets the named user Id.
481
+ * @returns A promise with the result.
482
+ */
483
+ getNamedUserId() {
484
+ return this.plugin.perform('contact#getNamedUserId');
485
+ }
486
+ /**
487
+ * Gets the contacts subscription lists.
488
+ * @returns A promise with the result.
489
+ */
490
+ getSubscriptionLists() {
491
+ return this.plugin.perform('contact#getSubscriptionLists');
492
+ }
493
+ /**
494
+ * Edits tag groups.
495
+ * @returns A tag group editor.
496
+ */
497
+ editTagGroups() {
498
+ return new TagGroupEditor((operations) => {
499
+ return this.plugin.perform('contact#editTagGroups', operations);
500
+ });
501
+ }
502
+ /**
503
+ * Edits attributes.
504
+ * @returns An attribute editor.
505
+ */
506
+ editAttributes() {
507
+ return new AttributeEditor((operations) => {
508
+ return this.plugin.perform('contact#editAttributes', operations);
509
+ });
510
+ }
511
+ /**
512
+ * Edits subscription lists.
513
+ * @returns A subscription list editor.
514
+ */
515
+ editSubscriptionLists() {
516
+ return new ScopedSubscriptionListEditor((operations) => {
517
+ return this.plugin.perform('contact#editSubscriptionLists', operations);
518
+ });
519
+ }
520
+ }
521
+
522
+ /**
523
+ * Airship feature flag manager.
524
+ */
525
+ class AirshipFeatureFlagManager {
526
+ constructor(plugin) {
527
+ this.plugin = plugin;
528
+ }
529
+ /**
530
+ * Retrieve a given flag's status and associated data by its name.
531
+ * @param {string} flagName The flag name
532
+ * @return {Promise<FeatureFlag>} A promise resolving to the feature flag
533
+ * requested.
534
+ * @throws {Error} when failed to fetch
535
+ */
536
+ flag(flagName) {
537
+ return this.plugin.perform('featureFlagManager#flag', flagName);
538
+ }
539
+ /**
540
+ * Tracks a feature flag interaction event.
541
+ * @param {FeatureFlag} flag The flag
542
+ * @return {Promise<Void>} A promise with an empty result.
543
+ * @throws {Error} when failed to fetch
544
+ */
545
+ trackInteraction(flag) {
546
+ return this.plugin.perform('featureFlagManager#trackInteraction', flag);
547
+ }
548
+ }
549
+
550
+ /**
551
+ * Airship InApp Experiences.
552
+ */
553
+ class AirshipInApp {
554
+ constructor(plugin) {
555
+ this.plugin = plugin;
556
+ }
557
+ /**
558
+ * Pauses messages.
559
+ * @param paused `true` to pause, `false` to resume.
560
+ * @returns A promise.
561
+ */
562
+ setPaused(paused) {
563
+ return this.plugin.perform('inApp#setPaused', paused);
564
+ }
565
+ /**
566
+ * Checks if messages are paused.
567
+ * @returns A promise with the result.
568
+ */
569
+ isPaused() {
570
+ return this.plugin.perform('inApp#isPaused');
571
+ }
572
+ /**
573
+ * Sets the display interval for messages.
574
+ * @param milliseconds Display interval
575
+ * @returns A promise.
576
+ */
577
+ setDisplayInterval(milliseconds) {
578
+ return this.plugin.perform('inApp#setDisplayInterval', milliseconds);
579
+ }
580
+ /**
581
+ * Gets the display interval.
582
+ * @returns A promise with the result.
583
+ */
584
+ getDisplayInterval() {
585
+ return this.plugin.perform('inApp#getDisplayInterval');
586
+ }
587
+ }
588
+
589
+ /**
590
+ * Manages locale used by Airship messaging.
591
+ */
592
+ class AirshipLocale {
593
+ constructor(plugin) {
594
+ this.plugin = plugin;
595
+ }
596
+ /**
597
+ * Sets the locale override.
598
+ * @param localeIdentifier The locale identifier.
599
+ * @returns A promise.
600
+ */
601
+ setLocaleOverride(localeIdentifier) {
602
+ return this.plugin.perform('locale#setLocaleOverride', localeIdentifier);
603
+ }
604
+ /**
605
+ * Clears the locale override.
606
+ * @returns A promise.
607
+ */
608
+ clearLocaleOverride() {
609
+ return this.plugin.perform('locale#clearLocaleOverride');
610
+ }
611
+ /**
612
+ * Gets the current locale.
613
+ * @returns A promise with the result.
614
+ */
615
+ getLocale() {
616
+ return this.plugin.perform('locale#getLocale');
617
+ }
618
+ }
619
+
620
+ /**
621
+ * Airship Message Center
622
+ */
623
+ class AirshipMessageCenter {
624
+ constructor(plugin) {
625
+ this.plugin = plugin;
626
+ }
627
+ /**
628
+ * Gets the unread count.
629
+ * @returns A promise with the result.
630
+ */
631
+ getUnreadCount() {
632
+ return this.plugin.perform('messageCenter#getUnreadCount');
633
+ }
634
+ /**
635
+ * Gets the inbox messages.
636
+ * @returns A promise with the result.
637
+ */
638
+ getMessages() {
639
+ return this.plugin.perform('messageCenter#getMessages');
640
+ }
641
+ /**
642
+ * Marks a message as read.
643
+ * @param messageId The message Id.
644
+ * @returns A promise. Will reject if the message is not
645
+ * found or if takeOff is not called.
646
+ */
647
+ markMessageRead(messageId) {
648
+ return this.plugin.perform('messageCenter#markMessageRead', messageId);
649
+ }
650
+ /**
651
+ * Deletes a message.
652
+ * @param messageId The message Id.
653
+ * @returns A promise. Will reject if the message is not
654
+ * found or if takeOff is not called.
655
+ */
656
+ deleteMessage(messageId) {
657
+ return this.plugin.perform('messageCenter#deleteMessage', messageId);
658
+ }
659
+ /**
660
+ * Dismisses the OOTB message center if displayed.
661
+ * @returns A promise.
662
+ */
663
+ dismiss() {
664
+ return this.plugin.perform('messageCenter#dismiss');
665
+ }
666
+ /**
667
+ * Requests to display the Message Center.
668
+ *
669
+ * Will either emit an event to display the
670
+ * Message Center if auto launch message center
671
+ * is disabled, or display the OOTB message center.
672
+ * @param messageId Optional message Id.
673
+ * @returns A promise.
674
+ */
675
+ display(messageId) {
676
+ return this.plugin.perform('messageCenter#display', messageId);
677
+ }
678
+ /**
679
+ * Overlays the message view. Should be used to display the actual
680
+ * message body in a custom Message Center.
681
+ *
682
+ * @param messageId The message Id.
683
+ * @returns A promise.
684
+ */
685
+ showMessageView(messageId) {
686
+ return this.plugin.perform('messageCenter#showMessageView', messageId);
687
+ }
688
+ /**
689
+ * Refreshes the messages.
690
+ * @returns A promise. Will reject if the list fails to refresh or if
691
+ * takeOff is not called yet.
692
+ */
693
+ refreshMessages() {
694
+ return this.plugin.perform('messageCenter#refreshMessages');
695
+ }
696
+ /**
697
+ * Enables or disables showing the OOTB UI when requested to display by either
698
+ * `display` or by a notification with a Message Center action.
699
+ * @param autoLaunch true to show OOTB UI, false to emit events.
700
+ */
701
+ setAutoLaunchDefaultMessageCenter(autoLaunch) {
702
+ return this.plugin.perform('messageCenter#setAutoLaunchDefaultMessageCenter', autoLaunch);
703
+ }
704
+ /**
705
+ * Adds a display message center listener.
706
+ */
707
+ onDisplay(listener) {
708
+ return this.plugin.addListener(EventType.DisplayMessageCenter, listener);
709
+ }
710
+ /**
711
+ * Adds a message center list updated listener.
712
+ */
713
+ onUpdated(listener) {
714
+ return this.plugin.addListener(EventType.MessageCenterUpdated, listener);
715
+ }
716
+ }
717
+
718
+ /**
719
+ * Airship Preference Center.
720
+ */
721
+ class AirshipPreferenceCenter {
722
+ constructor(plugin) {
723
+ this.plugin = plugin;
724
+ }
725
+ /**
726
+ * Requests to display a preference center.
727
+ *
728
+ * Will either emit an event to display the
729
+ * Preference Center if auto launch is disabled,
730
+ * or display the OOTB UI.
731
+ * @param preferenceCenterId The preference center Id.
732
+ * @returns A promise.
733
+ */
734
+ display(preferenceCenterId) {
735
+ return this.plugin.perform('preferenceCenter#display', preferenceCenterId);
736
+ }
737
+ /**
738
+ * Gets the preference center config.
739
+ * @param preferenceCenterId The preference center Id.
740
+ * @returns A promise with the result.
741
+ */
742
+ getConfig(preferenceCenterId) {
743
+ return this.plugin.perform('preferenceCenter#getConfig', preferenceCenterId);
744
+ }
745
+ /**
746
+ * Enables or disables showing the OOTB UI when requested to display by either
747
+ * `display` or by a notification with some other action.
748
+ * @param preferenceCenterId The preference center Id.
749
+ * @param autoLaunch true to show OOTB UI, false to emit events.
750
+ * @returns A promise with the result.
751
+ */
752
+ setAutoLaunchDefaultPreferenceCenter(preferenceCenterId, autoLaunch) {
753
+ return this.plugin.perform('preferenceCenter#getConfig', [
754
+ preferenceCenterId,
755
+ autoLaunch,
756
+ ]);
757
+ }
758
+ /**
759
+ * Adds a display message center listener.
760
+ */
761
+ onDisplay(listener) {
762
+ return this.plugin.addListener(EventType.DisplayPreferenceCenter, listener);
763
+ }
764
+ }
765
+
766
+ /**
767
+ * Airship Privacy Manager.
768
+ */
769
+ class AirshipPrivacyManager {
770
+ constructor(plugin) {
771
+ this.plugin = plugin;
772
+ }
773
+ /**
774
+ * Sets the current set of enabled features.
775
+ * @param features The features to set.
776
+ * @returns A promise.
777
+ */
778
+ setEnabledFeatures(features) {
779
+ return this.plugin.perform('privacyManager#setEnabledFeatures', features);
780
+ }
781
+ /**
782
+ * Gets the current enabled features.
783
+ * @returns A promise with the result.
784
+ */
785
+ getEnabledFeatures() {
786
+ return this.plugin.perform('privacyManager#getEnabledFeatures');
787
+ }
788
+ /**
789
+ * Enables additional features.
790
+ * @param features The features to enable.
791
+ * @returns A promise.
792
+ */
793
+ enableFeatures(features) {
794
+ return this.plugin.perform('privacyManager#enableFeatures', features);
795
+ }
796
+ /**
797
+ * Disable features.
798
+ * @param features The features to disable.
799
+ * @returns A promise.
800
+ */
801
+ disableFeatures(features) {
802
+ return this.plugin.perform('privacyManager#disableFeatures', features);
803
+ }
804
+ /**
805
+ * Checks if the features are enabled or not.
806
+ * @param features The features to check.
807
+ * @returns A promise with the result.
808
+ */
809
+ isFeaturesEnabled(features) {
810
+ return this.plugin.perform('privacyManager#isFeaturesEnabled', features);
811
+ }
812
+ }
813
+
814
+ /**
815
+ * Airship Push.
816
+ */
817
+ class AirshipPush {
818
+ constructor(plugin) {
819
+ this.plugin = plugin;
820
+ this.iOS = new AirshipPushIOS(plugin);
821
+ this.android = new AirshipPushAndroid(plugin);
822
+ }
823
+ /**
824
+ * Enables/disables notifications on Airship.
825
+ *
826
+ * When enabled, it will cause the user to be prompted for
827
+ * the permission on platforms that support it.
828
+ * To get the result of the prompt, use `enableUserNotifications`.
829
+ * @param enabled true to enable, false to disable
830
+ * @returns A promise.
831
+ */
832
+ setUserNotificationsEnabled(enabled) {
833
+ return this.plugin.perform('push#setUserNotificationsEnabled', enabled);
834
+ }
835
+ /**
836
+ * Checks if user notifications are enabled or not on Airship.
837
+ * @returns A promise with the result.
838
+ */
839
+ isUserNotificationsEnabled() {
840
+ return this.plugin.perform('push#isUserNotificationsEnabled');
841
+ }
842
+ /**
843
+ * Enables user notifications.
844
+ * @returns A promise with the permission result.
845
+ */
846
+ enableUserNotifications() {
847
+ return this.plugin.perform('push#enableUserNotifications');
848
+ }
849
+ /**
850
+ * Gets the notification status.
851
+ * @returns A promise with the result.
852
+ */
853
+ getNotificationStatus() {
854
+ return this.plugin.perform('push#getNotificationStatus');
855
+ }
856
+ /**
857
+ * Gets the registration token if generated.
858
+ * Use the event EventType.PushTokenReceived to be notified
859
+ * when available.
860
+ * @returns A promise with the result.
861
+ */
862
+ getPushToken() {
863
+ return this.plugin.perform('push#getPushToken');
864
+ }
865
+ /**
866
+ * Gets the list of active notifications.
867
+ *
868
+ * On Android, this list only includes notifications
869
+ * sent through Airship.
870
+ * @returns A promise with the result.
871
+ */
872
+ getActiveNotifications() {
873
+ return this.plugin.perform('push#getActiveNotifications');
874
+ }
875
+ /**
876
+ * Clears all notifications for the app.
877
+ * @returns A promise with the result.
878
+ */
879
+ clearNotifications() {
880
+ return this.plugin.perform('push#clearNotifications');
881
+ }
882
+ /**
883
+ * Clears a specific notification.
884
+ *
885
+ * On Android, you can use this method to clear
886
+ * notifications outside of Airship, The identifier is in
887
+ * the format of <tag>:<id>.
888
+ * @param identifier The identifier.
889
+ * @returns A promise with the result.
890
+ */
891
+ clearNotification(identifier) {
892
+ return this.plugin.perform('push#clearNotification', identifier);
893
+ }
894
+ /**
895
+ * Adds a notification response event listener.
896
+ */
897
+ onNotificationResponse(listener) {
898
+ return this.plugin.addListener(EventType.NotificationResponse, listener);
899
+ }
900
+ /**
901
+ * Adds a push received event listener.
902
+ */
903
+ onPushReceived(listener) {
904
+ return this.plugin.addListener(EventType.PushReceived, listener);
905
+ }
906
+ /**
907
+ * Adds a notification status changed event listener.
908
+ */
909
+ onNotificationStatusChanged(listener) {
910
+ return this.plugin.addListener(EventType.PushNotificationStatusChangedStatus, listener);
911
+ }
912
+ /**
913
+ * Adds a notification status changed event listener.
914
+ */
915
+ onPushTokenReceived(listener) {
916
+ return this.plugin.addListener(EventType.PushTokenReceived, listener);
917
+ }
918
+ }
919
+ /**
920
+ * iOS Push.
921
+ */
922
+ class AirshipPushIOS {
923
+ constructor(plugin) {
924
+ this.plugin = plugin;
925
+ }
926
+ /**
927
+ * Sets the foreground presentation options.
928
+ * @param options The foreground options.
929
+ * @returns A promise.
930
+ */
931
+ setForegroundPresentationOptions(options) {
932
+ return this.plugin.perform('push#ios#setForegroundPresentationOptions', options);
933
+ }
934
+ /**
935
+ * Sets the notification options.
936
+ * @param options The notification options.
937
+ * @returns A promise.
938
+ */
939
+ setNotificationOptions(options) {
940
+ return this.plugin.perform('push#ios#setNotificationOptions', options);
941
+ }
942
+ /**
943
+ * Checks if autobadge is enabled.
944
+ * @returns A promise with the result.
945
+ */
946
+ isAutobadgeEnabled() {
947
+ return this.plugin.perform('push#ios#isAutobadgeEnabled');
948
+ }
949
+ /**
950
+ * Enables/disables autobadge.
951
+ * @param enabled true to enable, false to disable.
952
+ * @returns A promise.
953
+ */
954
+ setAutobadgeEnabled(enabled) {
955
+ return this.plugin.perform('push#ios#setAutobadgeEnabled', enabled);
956
+ }
957
+ /**
958
+ * Set the badge number.
959
+ * @param badge The badge number.
960
+ * @returns A promise.
961
+ */
962
+ setBadgeNumber(badge) {
963
+ return this.plugin.perform('push#ios#setBadgeNumber', badge);
964
+ }
965
+ /**
966
+ * Gets the badge number.
967
+ * @returns A promise with the result.
968
+ */
969
+ getBadgeNumber() {
970
+ return this.plugin.perform('push#ios#getBadgeNumber');
971
+ }
972
+ /**
973
+ * Enables/disables quiet time.
974
+ *
975
+ * @param enabled true to enable, false to disable
976
+ * @returns A promise with the result.
977
+ */
978
+ setQuietTimeEnabled(enabled) {
979
+ return this.plugin.perform('push#ios#setQuietTimeEnabled', enabled);
980
+ }
981
+ /**
982
+ * Checks if quiet time is enabled or not.
983
+ * @returns A promise with the result.
984
+ */
985
+ isQuietTimeEnabled() {
986
+ return this.plugin.perform('push#ios#isQuietTimeEnabled');
987
+ }
988
+ /**
989
+ * Sets quiet time.
990
+ *
991
+ * @param quietTime The quiet time.
992
+ * @returns A promise with the result.
993
+ */
994
+ setQuietTime(quietTime) {
995
+ return this.plugin.perform('push#ios#setQuietTime', quietTime);
996
+ }
997
+ /**
998
+ * Gets the quiet time settings.
999
+ *
1000
+ * @returns A promise with the result.
1001
+ */
1002
+ getQuietTime() {
1003
+ return this.plugin.perform('push#ios#getQuietTime');
1004
+ }
1005
+ /**
1006
+ * Adds a authorized settings changed event listener.
1007
+ */
1008
+ onAuthorizedSettingsChanged(listener) {
1009
+ return this.plugin.addListener(EventType.IOSAuthorizedNotificationSettingsChanged, listener);
1010
+ }
1011
+ }
1012
+ /**
1013
+ * Android Push.
1014
+ */
1015
+ class AirshipPushAndroid {
1016
+ constructor(plugin) {
1017
+ this.plugin = plugin;
1018
+ }
1019
+ /**
1020
+ * Checks if a notification category/channel is enabled.
1021
+ * @param channel The channel name.
1022
+ * @returns A promise with the result.
1023
+ */
1024
+ isNotificationChannelEnabled(channel) {
1025
+ return this.plugin.perform('push#android#isNotificationChannelEnabled', channel);
1026
+ }
1027
+ /**
1028
+ * Sets the notification config.
1029
+ * @param config The notification config.
1030
+ * @returns A promise with the result.
1031
+ */
1032
+ setNotificationConfig(config) {
1033
+ return this.plugin.perform('push#android#setNotificationConfig', config);
1034
+ }
1035
+ /**
1036
+ * Enables/disables showing notifications in the foreground.
1037
+ * @param enabled true to enable, false to disable.
1038
+ * @returns A promise with the result.
1039
+ */
1040
+ setForegroundNotificationsEnabled(enabled) {
1041
+ return this.plugin.perform('push#android#setForegroundNotificationsEnabled', enabled);
1042
+ }
1043
+ }
1044
+
1045
+ /**
1046
+ * Airship
1047
+ */
1048
+ class AirshipRoot {
1049
+ constructor(plugin) {
1050
+ this.plugin = plugin;
1051
+ this.actions = new AirshipActions(plugin);
1052
+ this.analytics = new AirshipAnalytics(plugin);
1053
+ this.channel = new AirshipChannel(plugin);
1054
+ this.contact = new AirshipContact(plugin);
1055
+ this.inApp = new AirshipInApp(plugin);
1056
+ this.locale = new AirshipLocale(plugin);
1057
+ this.messageCenter = new AirshipMessageCenter(plugin);
1058
+ this.preferenceCenter = new AirshipPreferenceCenter(plugin);
1059
+ this.privacyManager = new AirshipPrivacyManager(plugin);
1060
+ this.push = new AirshipPush(plugin);
1061
+ this.featureFlagManager = new AirshipFeatureFlagManager(plugin);
1062
+ }
1063
+ /**
1064
+ * Calls takeOff. If Airship is already configured for
1065
+ * the app session, the new config will be applied on the next
1066
+ * app init.
1067
+ * @param config The config.
1068
+ * @returns A promise with the result. `true` if airship is ready.
1069
+ */
1070
+ takeOff(config) {
1071
+ return this.plugin.perform('takeOff', config);
1072
+ }
1073
+ /**
1074
+ * Checks if Airship is ready.
1075
+ * @returns A promise with the result.
1076
+ */
1077
+ isFlying() {
1078
+ return this.plugin.perform('isFlying');
1079
+ }
1080
+ /**
1081
+ * Adds a deep link listener.
1082
+ */
1083
+ onDeepLink(listener) {
1084
+ return this.plugin.addListener(EventType.DeepLink, listener);
1085
+ }
1086
+ }
1087
+
1088
+ /// <reference types="@capacitor/cli" />
1089
+ class AirshipPluginWrapper {
1090
+ constructor(plugin) {
1091
+ this.plugin = plugin;
1092
+ }
1093
+ perform(method, value) {
1094
+ return this.plugin.perform({ method: method, value: value }).then(value => {
1095
+ return value.value;
1096
+ });
1097
+ }
1098
+ addListener(eventType, listener) {
1099
+ return this.plugin.addListener(eventType, listener);
1100
+ }
1101
+ }
1102
+
1103
+ /**
1104
+ * iOS options
1105
+ */
1106
+ exports.iOS = void 0;
1107
+ (function (iOS) {
1108
+ (function (NotificationOption) {
1109
+ /**
1110
+ * Alerts.
1111
+ */
1112
+ NotificationOption["Alert"] = "alert";
1113
+ /**
1114
+ * Sounds.
1115
+ */
1116
+ NotificationOption["Sound"] = "sound";
1117
+ /**
1118
+ * Badges.
1119
+ */
1120
+ NotificationOption["Badge"] = "badge";
1121
+ /**
1122
+ * Car play.
1123
+ */
1124
+ NotificationOption["CarPlay"] = "car_play";
1125
+ /**
1126
+ * Critical Alert.
1127
+ */
1128
+ NotificationOption["CriticalAlert"] = "critical_alert";
1129
+ /**
1130
+ * Provides app notification settings.
1131
+ */
1132
+ NotificationOption["ProvidesAppNotificationSettings"] = "provides_app_notification_settings";
1133
+ /**
1134
+ * Provisional.
1135
+ */
1136
+ NotificationOption["Provisional"] = "provisional";
1137
+ })(iOS.NotificationOption || (iOS.NotificationOption = {}));
1138
+ (function (ForegroundPresentationOption) {
1139
+ /**
1140
+ * Play the sound associated with the notification.
1141
+ */
1142
+ ForegroundPresentationOption["Sound"] = "sound";
1143
+ /**
1144
+ * Apply the notification's badge value to the app’s icon.
1145
+ */
1146
+ ForegroundPresentationOption["Badge"] = "badge";
1147
+ /**
1148
+ * Show the notification in Notification Center. On iOS 13 an older,
1149
+ * this will also show the notification as a banner.
1150
+ */
1151
+ ForegroundPresentationOption["List"] = "list";
1152
+ /**
1153
+ * Present the notification as a banner. On iOS 13 an older,
1154
+ * this will also show the notification in the Notification Center.
1155
+ */
1156
+ ForegroundPresentationOption["Banner"] = "banner";
1157
+ })(iOS.ForegroundPresentationOption || (iOS.ForegroundPresentationOption = {}));
1158
+ (function (AuthorizedNotificationSetting) {
1159
+ /**
1160
+ * Alerts.
1161
+ */
1162
+ AuthorizedNotificationSetting["Alert"] = "alert";
1163
+ /**
1164
+ * Sounds.
1165
+ */
1166
+ AuthorizedNotificationSetting["Sound"] = "sound";
1167
+ /**
1168
+ * Badges.
1169
+ */
1170
+ AuthorizedNotificationSetting["Badge"] = "badge";
1171
+ /**
1172
+ * CarPlay.
1173
+ */
1174
+ AuthorizedNotificationSetting["CarPlay"] = "car_play";
1175
+ /**
1176
+ * Lock screen.
1177
+ */
1178
+ AuthorizedNotificationSetting["LockScreen"] = "lock_screen";
1179
+ /**
1180
+ * Notification center.
1181
+ */
1182
+ AuthorizedNotificationSetting["NotificationCenter"] = "notification_center";
1183
+ /**
1184
+ * Critical alert.
1185
+ */
1186
+ AuthorizedNotificationSetting["CriticalAlert"] = "critical_alert";
1187
+ /**
1188
+ * Announcement.
1189
+ */
1190
+ AuthorizedNotificationSetting["Announcement"] = "announcement";
1191
+ /**
1192
+ * Scheduled delivery.
1193
+ */
1194
+ AuthorizedNotificationSetting["ScheduledDelivery"] = "scheduled_delivery";
1195
+ /**
1196
+ * Time sensitive.
1197
+ */
1198
+ AuthorizedNotificationSetting["TimeSensitive"] = "time_sensitive";
1199
+ })(iOS.AuthorizedNotificationSetting || (iOS.AuthorizedNotificationSetting = {}));
1200
+ (function (AuthorizedNotificationStatus) {
1201
+ /**
1202
+ * Not determined.
1203
+ */
1204
+ AuthorizedNotificationStatus["NotDetermined"] = "not_determined";
1205
+ /**
1206
+ * Denied.
1207
+ */
1208
+ AuthorizedNotificationStatus["Denied"] = "denied";
1209
+ /**
1210
+ * Authorized.
1211
+ */
1212
+ AuthorizedNotificationStatus["Authorized"] = "authorized";
1213
+ /**
1214
+ * Provisional.
1215
+ */
1216
+ AuthorizedNotificationStatus["Provisional"] = "provisional";
1217
+ /**
1218
+ * Ephemeral.
1219
+ */
1220
+ AuthorizedNotificationStatus["Ephemeral"] = "ephemeral";
1221
+ })(iOS.AuthorizedNotificationStatus || (iOS.AuthorizedNotificationStatus = {}));
1222
+ })(exports.iOS || (exports.iOS = {}));
1223
+ /**
1224
+ * Enum of authorized Features.
1225
+ */
1226
+ exports.Feature = void 0;
1227
+ (function (Feature) {
1228
+ Feature["InAppAutomation"] = "in_app_automation";
1229
+ Feature["MessageCenter"] = "message_center";
1230
+ Feature["Push"] = "push";
1231
+ // No longer used
1232
+ Feature["Chat"] = "chat";
1233
+ Feature["Analytics"] = "analytics";
1234
+ Feature["TagsAndAttributes"] = "tags_and_attributes";
1235
+ Feature["Contacts"] = "contacts";
1236
+ // No longer used
1237
+ Feature["Location"] = "location";
1238
+ })(exports.Feature || (exports.Feature = {}));
1239
+ /**
1240
+ * All available features.
1241
+ */
1242
+ const FEATURES_ALL = Object.values(exports.Feature);
1243
+ /**
1244
+ * Subscription Scope types.
1245
+ */
1246
+ exports.SubscriptionScope = void 0;
1247
+ (function (SubscriptionScope) {
1248
+ SubscriptionScope["App"] = "app";
1249
+ SubscriptionScope["Web"] = "web";
1250
+ SubscriptionScope["Sms"] = "sms";
1251
+ SubscriptionScope["Email"] = "email";
1252
+ })(exports.SubscriptionScope || (exports.SubscriptionScope = {}));
1253
+
1254
+ const plugin = core.registerPlugin('Airship', {});
1255
+ const sharedAirship = new AirshipRoot(new AirshipPluginWrapper(plugin));
1256
+ const Airship = sharedAirship;
1257
+
1258
+ exports.Airship = Airship;
1259
+ exports.AirshipActions = AirshipActions;
1260
+ exports.AirshipAnalytics = AirshipAnalytics;
1261
+ exports.AirshipChannel = AirshipChannel;
1262
+ exports.AirshipContact = AirshipContact;
1263
+ exports.AirshipFeatureFlagManager = AirshipFeatureFlagManager;
1264
+ exports.AirshipInApp = AirshipInApp;
1265
+ exports.AirshipLocale = AirshipLocale;
1266
+ exports.AirshipMessageCenter = AirshipMessageCenter;
1267
+ exports.AirshipPreferenceCenter = AirshipPreferenceCenter;
1268
+ exports.AirshipPrivacyManager = AirshipPrivacyManager;
1269
+ exports.AirshipPush = AirshipPush;
1270
+ exports.AirshipPushAndroid = AirshipPushAndroid;
1271
+ exports.AirshipPushIOS = AirshipPushIOS;
1272
+ exports.AirshipRoot = AirshipRoot;
1273
+ exports.AttributeEditor = AttributeEditor;
1274
+ exports.FEATURES_ALL = FEATURES_ALL;
1275
+ exports.ScopedSubscriptionListEditor = ScopedSubscriptionListEditor;
1276
+ exports.SubscriptionListEditor = SubscriptionListEditor;
1277
+ exports.TagGroupEditor = TagGroupEditor;
1278
+ //# sourceMappingURL=plugin.cjs.js.map