@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.
- 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,938 +0,0 @@
|
|
|
1
|
-
export type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
|
|
2
|
-
export type JsonObject = {
|
|
3
|
-
[key: string]: JsonValue | undefined;
|
|
4
|
-
};
|
|
5
|
-
export type JsonArray = JsonValue[];
|
|
6
|
-
export interface ChannelCreatedEvent {
|
|
7
|
-
/**
|
|
8
|
-
* The channel ID.
|
|
9
|
-
*/
|
|
10
|
-
channelId: string;
|
|
11
|
-
}
|
|
12
|
-
export interface PushTokenReceivedEvent {
|
|
13
|
-
/**
|
|
14
|
-
* The push token.
|
|
15
|
-
*/
|
|
16
|
-
pushToken: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Event fired when a push is received.
|
|
20
|
-
*/
|
|
21
|
-
export interface PushReceivedEvent {
|
|
22
|
-
pushPayload: PushPayload;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Event fired whenever any of the Live Activities update, create, or end.
|
|
26
|
-
*/
|
|
27
|
-
export interface LiveActivitiesUpdatedEvent {
|
|
28
|
-
/**
|
|
29
|
-
* The Live Activities.
|
|
30
|
-
*/
|
|
31
|
-
activities: LiveActivity[];
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* The push payload.
|
|
35
|
-
*/
|
|
36
|
-
export interface PushPayload {
|
|
37
|
-
/**
|
|
38
|
-
* The alert.
|
|
39
|
-
*/
|
|
40
|
-
alert?: string;
|
|
41
|
-
/**
|
|
42
|
-
* The title.
|
|
43
|
-
*/
|
|
44
|
-
title?: string;
|
|
45
|
-
/**
|
|
46
|
-
* The subtitle.
|
|
47
|
-
*/
|
|
48
|
-
subtitle?: string;
|
|
49
|
-
/**
|
|
50
|
-
* The notification ID.
|
|
51
|
-
*/
|
|
52
|
-
notificationId?: string;
|
|
53
|
-
/**
|
|
54
|
-
* The notification extras.
|
|
55
|
-
*/
|
|
56
|
-
extras: JsonObject;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Event fired when the user initiates a notification response.
|
|
60
|
-
*/
|
|
61
|
-
export interface NotificationResponseEvent {
|
|
62
|
-
/**
|
|
63
|
-
* The push notification.
|
|
64
|
-
*/
|
|
65
|
-
pushPayload: PushPayload;
|
|
66
|
-
/**
|
|
67
|
-
* The action button ID, if available.
|
|
68
|
-
*/
|
|
69
|
-
actionId?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Indicates whether the response was a foreground action.
|
|
72
|
-
* This value is always if the user taps the main notification,
|
|
73
|
-
* otherwise it is defined by the notification action button.
|
|
74
|
-
*/
|
|
75
|
-
isForeground: boolean;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Push notification status.
|
|
79
|
-
*/
|
|
80
|
-
export interface PushNotificationStatus {
|
|
81
|
-
/**
|
|
82
|
-
* If user notifications are enabled on [Airship.push].
|
|
83
|
-
*/
|
|
84
|
-
isUserNotificationsEnabled: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* If notifications are allowed at the system level for the application.
|
|
87
|
-
*/
|
|
88
|
-
areNotificationsAllowed: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* If the push feature is enabled on [Airship.privacyManager].
|
|
91
|
-
*/
|
|
92
|
-
isPushPrivacyFeatureEnabled: boolean;
|
|
93
|
-
isPushTokenRegistered: boolean;
|
|
94
|
-
isOptedIn: boolean;
|
|
95
|
-
isUserOptedIn: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* The notification permission status.
|
|
98
|
-
*/
|
|
99
|
-
notificationPermissionStatus: PermissionStatus;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Enum of permission status.
|
|
103
|
-
*/
|
|
104
|
-
export declare enum PermissionStatus {
|
|
105
|
-
/**
|
|
106
|
-
* Permission is granted.
|
|
107
|
-
*/
|
|
108
|
-
Granted = "granted",
|
|
109
|
-
/**
|
|
110
|
-
* Permission is denied.
|
|
111
|
-
*/
|
|
112
|
-
Denied = "denied",
|
|
113
|
-
/**
|
|
114
|
-
* Permission has not yet been requested.
|
|
115
|
-
*/
|
|
116
|
-
NotDetermined = "not_determined"
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Fallback when prompting for permission and the permission is
|
|
120
|
-
* already denied on iOS or is denied silently on Android.
|
|
121
|
-
*/
|
|
122
|
-
export declare enum PromptPermissionFallback {
|
|
123
|
-
/**
|
|
124
|
-
* Take the user to the system settings to enable the permission.
|
|
125
|
-
*/
|
|
126
|
-
SystemSettings = "systemSettings"
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Event fired when the notification status changes.
|
|
130
|
-
*/
|
|
131
|
-
export interface PushNotificationStatusChangedEvent {
|
|
132
|
-
/**
|
|
133
|
-
* The push notification status.
|
|
134
|
-
*/
|
|
135
|
-
status: PushNotificationStatus;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Event fired when the Message Center is updated.
|
|
139
|
-
*/
|
|
140
|
-
export interface MessageCenterUpdatedEvent {
|
|
141
|
-
/**
|
|
142
|
-
* The unread message count.
|
|
143
|
-
*/
|
|
144
|
-
messageUnreadCount: number;
|
|
145
|
-
/**
|
|
146
|
-
* The total message count.
|
|
147
|
-
*/
|
|
148
|
-
messageCount: number;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Event fired when the Message Center is requested to be displayed.
|
|
152
|
-
*/
|
|
153
|
-
export interface DisplayMessageCenterEvent {
|
|
154
|
-
/**
|
|
155
|
-
* The message ID, if available.
|
|
156
|
-
*/
|
|
157
|
-
messageId?: string;
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Event fired when a deep link is opened.
|
|
161
|
-
*/
|
|
162
|
-
export interface DeepLinkEvent {
|
|
163
|
-
/**
|
|
164
|
-
* The deep link string.
|
|
165
|
-
*/
|
|
166
|
-
deepLink: string;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Event fired when a preference center is requested to be displayed.
|
|
170
|
-
*/
|
|
171
|
-
export interface DisplayPreferenceCenterEvent {
|
|
172
|
-
/**
|
|
173
|
-
* The preference center Id.
|
|
174
|
-
*/
|
|
175
|
-
preferenceCenterId: string;
|
|
176
|
-
}
|
|
177
|
-
export declare enum EventType {
|
|
178
|
-
ChannelCreated = "com.airship.channel_created",
|
|
179
|
-
NotificationResponse = "com.airship.notification_response",
|
|
180
|
-
PushReceived = "com.airship.push_received",
|
|
181
|
-
DeepLink = "com.airship.deep_link",
|
|
182
|
-
MessageCenterUpdated = "com.airship.message_center_updated",
|
|
183
|
-
PushNotificationStatusChangedStatus = "com.airship.notification_status_changed",
|
|
184
|
-
DisplayMessageCenter = "com.airship.display_message_center",
|
|
185
|
-
DisplayPreferenceCenter = "com.airship.display_preference_center",
|
|
186
|
-
PushTokenReceived = "com.airship.push_token_received",
|
|
187
|
-
IOSAuthorizedNotificationSettingsChanged = "com.airship.authorized_notification_settings_changed",
|
|
188
|
-
IOSLiveActivitiesUpdated = "com.airship.live_activities_updated"
|
|
189
|
-
}
|
|
190
|
-
export interface EventTypeMap {
|
|
191
|
-
[EventType.ChannelCreated]: ChannelCreatedEvent;
|
|
192
|
-
[EventType.NotificationResponse]: NotificationResponseEvent;
|
|
193
|
-
[EventType.PushReceived]: PushReceivedEvent;
|
|
194
|
-
[EventType.DeepLink]: DeepLinkEvent;
|
|
195
|
-
[EventType.MessageCenterUpdated]: MessageCenterUpdatedEvent;
|
|
196
|
-
[EventType.PushNotificationStatusChangedStatus]: PushNotificationStatusChangedEvent;
|
|
197
|
-
[EventType.IOSAuthorizedNotificationSettingsChanged]: iOS.AuthorizedNotificationSettingsChangedEvent;
|
|
198
|
-
[EventType.DisplayMessageCenter]: DisplayMessageCenterEvent;
|
|
199
|
-
[EventType.DisplayPreferenceCenter]: DisplayPreferenceCenterEvent;
|
|
200
|
-
[EventType.PushTokenReceived]: PushTokenReceivedEvent;
|
|
201
|
-
[EventType.IOSLiveActivitiesUpdated]: LiveActivitiesUpdatedEvent;
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* iOS options
|
|
205
|
-
*/
|
|
206
|
-
export declare namespace iOS {
|
|
207
|
-
/**
|
|
208
|
-
* Enum of notification options. iOS only.
|
|
209
|
-
*/
|
|
210
|
-
enum NotificationOption {
|
|
211
|
-
/**
|
|
212
|
-
* Alerts.
|
|
213
|
-
*/
|
|
214
|
-
Alert = "alert",
|
|
215
|
-
/**
|
|
216
|
-
* Sounds.
|
|
217
|
-
*/
|
|
218
|
-
Sound = "sound",
|
|
219
|
-
/**
|
|
220
|
-
* Badges.
|
|
221
|
-
*/
|
|
222
|
-
Badge = "badge",
|
|
223
|
-
/**
|
|
224
|
-
* Car play.
|
|
225
|
-
*/
|
|
226
|
-
CarPlay = "car_play",
|
|
227
|
-
/**
|
|
228
|
-
* Critical Alert.
|
|
229
|
-
*/
|
|
230
|
-
CriticalAlert = "critical_alert",
|
|
231
|
-
/**
|
|
232
|
-
* Provides app notification settings.
|
|
233
|
-
*/
|
|
234
|
-
ProvidesAppNotificationSettings = "provides_app_notification_settings",
|
|
235
|
-
/**
|
|
236
|
-
* Provisional.
|
|
237
|
-
*/
|
|
238
|
-
Provisional = "provisional"
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Enum of foreground notification options.
|
|
242
|
-
*/
|
|
243
|
-
enum ForegroundPresentationOption {
|
|
244
|
-
/**
|
|
245
|
-
* Play the sound associated with the notification.
|
|
246
|
-
*/
|
|
247
|
-
Sound = "sound",
|
|
248
|
-
/**
|
|
249
|
-
* Apply the notification's badge value to the app’s icon.
|
|
250
|
-
*/
|
|
251
|
-
Badge = "badge",
|
|
252
|
-
/**
|
|
253
|
-
* Show the notification in Notification Center. On iOS 13 an older,
|
|
254
|
-
* this will also show the notification as a banner.
|
|
255
|
-
*/
|
|
256
|
-
List = "list",
|
|
257
|
-
/**
|
|
258
|
-
* Present the notification as a banner. On iOS 13 an older,
|
|
259
|
-
* this will also show the notification in the Notification Center.
|
|
260
|
-
*/
|
|
261
|
-
Banner = "banner"
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Enum of authorized notification options.
|
|
265
|
-
*/
|
|
266
|
-
enum AuthorizedNotificationSetting {
|
|
267
|
-
/**
|
|
268
|
-
* Alerts.
|
|
269
|
-
*/
|
|
270
|
-
Alert = "alert",
|
|
271
|
-
/**
|
|
272
|
-
* Sounds.
|
|
273
|
-
*/
|
|
274
|
-
Sound = "sound",
|
|
275
|
-
/**
|
|
276
|
-
* Badges.
|
|
277
|
-
*/
|
|
278
|
-
Badge = "badge",
|
|
279
|
-
/**
|
|
280
|
-
* CarPlay.
|
|
281
|
-
*/
|
|
282
|
-
CarPlay = "car_play",
|
|
283
|
-
/**
|
|
284
|
-
* Lock screen.
|
|
285
|
-
*/
|
|
286
|
-
LockScreen = "lock_screen",
|
|
287
|
-
/**
|
|
288
|
-
* Notification center.
|
|
289
|
-
*/
|
|
290
|
-
NotificationCenter = "notification_center",
|
|
291
|
-
/**
|
|
292
|
-
* Critical alert.
|
|
293
|
-
*/
|
|
294
|
-
CriticalAlert = "critical_alert",
|
|
295
|
-
/**
|
|
296
|
-
* Announcement.
|
|
297
|
-
*/
|
|
298
|
-
Announcement = "announcement",
|
|
299
|
-
/**
|
|
300
|
-
* Scheduled delivery.
|
|
301
|
-
*/
|
|
302
|
-
ScheduledDelivery = "scheduled_delivery",
|
|
303
|
-
/**
|
|
304
|
-
* Time sensitive.
|
|
305
|
-
*/
|
|
306
|
-
TimeSensitive = "time_sensitive"
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Enum of authorized status.
|
|
310
|
-
*/
|
|
311
|
-
enum AuthorizedNotificationStatus {
|
|
312
|
-
/**
|
|
313
|
-
* Not determined.
|
|
314
|
-
*/
|
|
315
|
-
NotDetermined = "not_determined",
|
|
316
|
-
/**
|
|
317
|
-
* Denied.
|
|
318
|
-
*/
|
|
319
|
-
Denied = "denied",
|
|
320
|
-
/**
|
|
321
|
-
* Authorized.
|
|
322
|
-
*/
|
|
323
|
-
Authorized = "authorized",
|
|
324
|
-
/**
|
|
325
|
-
* Provisional.
|
|
326
|
-
*/
|
|
327
|
-
Provisional = "provisional",
|
|
328
|
-
/**
|
|
329
|
-
* Ephemeral.
|
|
330
|
-
*/
|
|
331
|
-
Ephemeral = "ephemeral"
|
|
332
|
-
}
|
|
333
|
-
interface AuthorizedNotificationSettingsChangedEvent {
|
|
334
|
-
/**
|
|
335
|
-
* Authorized settings.
|
|
336
|
-
*/
|
|
337
|
-
authorizedSettings: AuthorizedNotificationSetting[];
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
* Airship config environment
|
|
342
|
-
*/
|
|
343
|
-
export interface ConfigEnvironment {
|
|
344
|
-
/**
|
|
345
|
-
* App key.
|
|
346
|
-
*/
|
|
347
|
-
appKey: string;
|
|
348
|
-
/**
|
|
349
|
-
* App secret.
|
|
350
|
-
*/
|
|
351
|
-
appSecret: string;
|
|
352
|
-
/**
|
|
353
|
-
* Optional log level.
|
|
354
|
-
*/
|
|
355
|
-
logLevel?: LogLevel;
|
|
356
|
-
/**
|
|
357
|
-
* Optional iOS config
|
|
358
|
-
*/
|
|
359
|
-
ios?: {
|
|
360
|
-
/**
|
|
361
|
-
* Log privacy level. By default it logs at `private`, not logging anything lower than info to the console
|
|
362
|
-
* and redacting logs with string interpolation. `public` will log all configured log levels to the console
|
|
363
|
-
* without redacting any of the log lines.
|
|
364
|
-
*/
|
|
365
|
-
logPrivacyLevel?: 'private' | 'public';
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* Possible sites.
|
|
370
|
-
*/
|
|
371
|
-
export type Site = 'us' | 'eu';
|
|
372
|
-
/**
|
|
373
|
-
* Log levels.
|
|
374
|
-
*/
|
|
375
|
-
export type LogLevel = 'verbose' | 'debug' | 'info' | 'warning' | 'error' | 'none';
|
|
376
|
-
/**
|
|
377
|
-
* Airship config
|
|
378
|
-
*/
|
|
379
|
-
export interface AirshipConfig {
|
|
380
|
-
/**
|
|
381
|
-
* Default environment.
|
|
382
|
-
*/
|
|
383
|
-
default?: ConfigEnvironment;
|
|
384
|
-
/**
|
|
385
|
-
* Development environment. Overrides default environment if inProduction is false.
|
|
386
|
-
*/
|
|
387
|
-
development?: ConfigEnvironment;
|
|
388
|
-
/**
|
|
389
|
-
* Production environment. Overrides default environment if inProduction is true.
|
|
390
|
-
*/
|
|
391
|
-
production?: ConfigEnvironment;
|
|
392
|
-
/**
|
|
393
|
-
* Cloud site.
|
|
394
|
-
*/
|
|
395
|
-
site?: Site;
|
|
396
|
-
/**
|
|
397
|
-
* Switches the environment from development or production. If the value is not
|
|
398
|
-
* set, Airship will determine the value at runtime.
|
|
399
|
-
*/
|
|
400
|
-
inProduction?: boolean;
|
|
401
|
-
/**
|
|
402
|
-
* URL allow list.
|
|
403
|
-
*/
|
|
404
|
-
urlAllowList?: string[];
|
|
405
|
-
/**
|
|
406
|
-
* URL allow list for open URL scope.
|
|
407
|
-
*/
|
|
408
|
-
urlAllowListScopeOpenUrl?: string[];
|
|
409
|
-
/**
|
|
410
|
-
* URL allow list for JS bridge injection.
|
|
411
|
-
*/
|
|
412
|
-
urlAllowListScopeJavaScriptInterface?: string[];
|
|
413
|
-
/**
|
|
414
|
-
* Enables delayed channel creation.
|
|
415
|
-
* Deprecated. Use the Private Manager to disable all features instead.
|
|
416
|
-
*/
|
|
417
|
-
isChannelCreationDelayEnabled?: boolean;
|
|
418
|
-
/**
|
|
419
|
-
* Initial config URL for custom Airship domains. The URL
|
|
420
|
-
* should also be added to the urlAllowList.
|
|
421
|
-
*/
|
|
422
|
-
initialConfigUrl?: string;
|
|
423
|
-
/**
|
|
424
|
-
* Enabled features. Defaults to all.
|
|
425
|
-
*/
|
|
426
|
-
enabledFeatures?: Feature[];
|
|
427
|
-
/**
|
|
428
|
-
* Enables channel capture feature.
|
|
429
|
-
* This config is enabled by default.
|
|
430
|
-
*/
|
|
431
|
-
isChannelCaptureEnabled?: boolean;
|
|
432
|
-
/**
|
|
433
|
-
* Whether to suppress console error messages about missing allow list entries during takeOff.
|
|
434
|
-
* This config is disabled by default.
|
|
435
|
-
*/
|
|
436
|
-
suppressAllowListError?: boolean;
|
|
437
|
-
/**
|
|
438
|
-
* Pauses In-App Automation on launch.
|
|
439
|
-
*/
|
|
440
|
-
autoPauseInAppAutomationOnLaunch?: boolean;
|
|
441
|
-
/**
|
|
442
|
-
* iOS config.
|
|
443
|
-
*/
|
|
444
|
-
ios?: {
|
|
445
|
-
/**
|
|
446
|
-
* itunesId for rate app and app store deep links.
|
|
447
|
-
*/
|
|
448
|
-
itunesId?: string;
|
|
449
|
-
/**
|
|
450
|
-
* If set to `true`, the SDK will use the preferred locale. Otherwise it will use the app's locale.
|
|
451
|
-
*/
|
|
452
|
-
useUserPreferredLocale?: boolean;
|
|
453
|
-
/**
|
|
454
|
-
* Allows the WebViews to be inspected in Safari.
|
|
455
|
-
*/
|
|
456
|
-
isWebViewInspectionEnabled?: boolean;
|
|
457
|
-
};
|
|
458
|
-
/**
|
|
459
|
-
* Android config.
|
|
460
|
-
*/
|
|
461
|
-
android?: {
|
|
462
|
-
/**
|
|
463
|
-
* App store URI
|
|
464
|
-
*/
|
|
465
|
-
appStoreUri?: string;
|
|
466
|
-
/**
|
|
467
|
-
* Fcm app name if using multiple FCM projects.
|
|
468
|
-
*/
|
|
469
|
-
fcmFirebaseAppName?: string;
|
|
470
|
-
/**
|
|
471
|
-
* Notification config.
|
|
472
|
-
*/
|
|
473
|
-
notificationConfig?: Android.NotificationConfig;
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
export declare namespace Android {
|
|
477
|
-
/**
|
|
478
|
-
* Android notification config.
|
|
479
|
-
*/
|
|
480
|
-
interface NotificationConfig {
|
|
481
|
-
/**
|
|
482
|
-
* The icon resource name.
|
|
483
|
-
*/
|
|
484
|
-
icon?: string;
|
|
485
|
-
/**
|
|
486
|
-
* The large icon resource name.
|
|
487
|
-
*/
|
|
488
|
-
largeIcon?: string;
|
|
489
|
-
/**
|
|
490
|
-
* The default android notification channel ID.
|
|
491
|
-
*/
|
|
492
|
-
defaultChannelId?: string;
|
|
493
|
-
/**
|
|
494
|
-
* The accent color. Must be a hex value #AARRGGBB.
|
|
495
|
-
*/
|
|
496
|
-
accentColor?: string;
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* Enum of authorized Features.
|
|
501
|
-
*/
|
|
502
|
-
export declare enum Feature {
|
|
503
|
-
InAppAutomation = "in_app_automation",
|
|
504
|
-
MessageCenter = "message_center",
|
|
505
|
-
Push = "push",
|
|
506
|
-
Analytics = "analytics",
|
|
507
|
-
TagsAndAttributes = "tags_and_attributes",
|
|
508
|
-
Contacts = "contacts",
|
|
509
|
-
FeatureFlags = "feature_flags",
|
|
510
|
-
Location = "location",// No longer used. To be removed in version 20.0.0.
|
|
511
|
-
Chat = "chat"
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
* All available features.
|
|
515
|
-
*/
|
|
516
|
-
export declare const FEATURES_ALL: (Feature.InAppAutomation | Feature.MessageCenter | Feature.Push | Feature.Analytics | Feature.TagsAndAttributes | Feature.Contacts | Feature.FeatureFlags)[];
|
|
517
|
-
/**
|
|
518
|
-
* Subscription Scope types.
|
|
519
|
-
*/
|
|
520
|
-
export declare enum SubscriptionScope {
|
|
521
|
-
App = "app",
|
|
522
|
-
Web = "web",
|
|
523
|
-
Sms = "sms",
|
|
524
|
-
Email = "email"
|
|
525
|
-
}
|
|
526
|
-
/**
|
|
527
|
-
* Custom event
|
|
528
|
-
*/
|
|
529
|
-
export interface CustomEvent {
|
|
530
|
-
/**
|
|
531
|
-
* Event name
|
|
532
|
-
*/
|
|
533
|
-
eventName: string;
|
|
534
|
-
/**
|
|
535
|
-
* Event value
|
|
536
|
-
*/
|
|
537
|
-
eventValue?: number;
|
|
538
|
-
/**
|
|
539
|
-
* Event properties
|
|
540
|
-
*/
|
|
541
|
-
properties: JsonObject;
|
|
542
|
-
/**
|
|
543
|
-
* Transaction ID
|
|
544
|
-
*/
|
|
545
|
-
transactionId?: string;
|
|
546
|
-
/**
|
|
547
|
-
* Interaction ID
|
|
548
|
-
*/
|
|
549
|
-
interactionId?: string;
|
|
550
|
-
/**
|
|
551
|
-
* Interaction type
|
|
552
|
-
*/
|
|
553
|
-
interactionType?: string;
|
|
554
|
-
}
|
|
555
|
-
export interface InboxMessage {
|
|
556
|
-
/**
|
|
557
|
-
* The message ID. Needed to display, mark as read, or delete the message.
|
|
558
|
-
*/
|
|
559
|
-
id: string;
|
|
560
|
-
/**
|
|
561
|
-
* The message title.
|
|
562
|
-
*/
|
|
563
|
-
title: string;
|
|
564
|
-
/**
|
|
565
|
-
* The message sent date in milliseconds.
|
|
566
|
-
*/
|
|
567
|
-
sentDate: number;
|
|
568
|
-
/**
|
|
569
|
-
* Optional - The message expiration date in milliseconds.
|
|
570
|
-
*/
|
|
571
|
-
expirationDate?: number;
|
|
572
|
-
/**
|
|
573
|
-
* Optional - The icon url for the message.
|
|
574
|
-
*/
|
|
575
|
-
listIconUrl?: string;
|
|
576
|
-
/**
|
|
577
|
-
* The unread / read status of the message.
|
|
578
|
-
*/
|
|
579
|
-
isRead: boolean;
|
|
580
|
-
/**
|
|
581
|
-
* String to String map of any message extras.
|
|
582
|
-
*/
|
|
583
|
-
extras: Record<string, string>;
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* A preference center definition.
|
|
587
|
-
*
|
|
588
|
-
* @typedef {object} PreferenceCenter
|
|
589
|
-
* @property {string} id the ID of the preference center
|
|
590
|
-
* @property {Array<PreferenceCenter.CommonSection>} sections a list of sections
|
|
591
|
-
* @property {?CommonDisplay} display display information
|
|
592
|
-
*/
|
|
593
|
-
export type PreferenceCenter = {
|
|
594
|
-
id: string;
|
|
595
|
-
sections: Section[];
|
|
596
|
-
display?: CommonDisplay;
|
|
597
|
-
};
|
|
598
|
-
/**
|
|
599
|
-
* Preference center display information.
|
|
600
|
-
* @typedef {object} CommonDisplay
|
|
601
|
-
* @property {string} name
|
|
602
|
-
* @property {?string} description
|
|
603
|
-
*/
|
|
604
|
-
export type CommonDisplay = {
|
|
605
|
-
name: string;
|
|
606
|
-
description?: string;
|
|
607
|
-
};
|
|
608
|
-
export type Icon = {
|
|
609
|
-
icon: string;
|
|
610
|
-
};
|
|
611
|
-
export type IconDisplay = CommonDisplay & Partial<Icon>;
|
|
612
|
-
export interface ItemBase {
|
|
613
|
-
type: unknown;
|
|
614
|
-
id: string;
|
|
615
|
-
display: CommonDisplay;
|
|
616
|
-
conditions?: Condition[];
|
|
617
|
-
}
|
|
618
|
-
/**
|
|
619
|
-
* A channel subscription item.
|
|
620
|
-
* @typedef {object} ChannelSubscriptionItem
|
|
621
|
-
* @memberof PreferenceCenter
|
|
622
|
-
* @property {"channel_subscription"} type
|
|
623
|
-
* @property {string} id the item identifier
|
|
624
|
-
* @property {?CommonDisplay} display display information
|
|
625
|
-
* @property {string} subscription_id the subscription list id
|
|
626
|
-
*/
|
|
627
|
-
export interface ChannelSubscriptionItem extends ItemBase {
|
|
628
|
-
type: 'channel_subscription';
|
|
629
|
-
subscription_id: string;
|
|
630
|
-
}
|
|
631
|
-
export interface ContactSubscriptionGroupItem extends ItemBase {
|
|
632
|
-
type: 'contact_subscription_group';
|
|
633
|
-
id: string;
|
|
634
|
-
subscription_id: string;
|
|
635
|
-
components: ContactSubscriptionGroupItemComponent[];
|
|
636
|
-
}
|
|
637
|
-
export interface ContactSubscriptionGroupItemComponent {
|
|
638
|
-
scopes: SubscriptionScope[];
|
|
639
|
-
display: Omit<CommonDisplay, 'description'>;
|
|
640
|
-
}
|
|
641
|
-
export interface ContactSubscriptionItem extends ItemBase {
|
|
642
|
-
type: 'contact_subscription';
|
|
643
|
-
scopes: SubscriptionScope[];
|
|
644
|
-
subscription_id: string;
|
|
645
|
-
}
|
|
646
|
-
export interface AlertItem extends ItemBase {
|
|
647
|
-
type: 'alert';
|
|
648
|
-
display: IconDisplay;
|
|
649
|
-
button?: Button;
|
|
650
|
-
}
|
|
651
|
-
export interface ConditionBase {
|
|
652
|
-
type: unknown;
|
|
653
|
-
}
|
|
654
|
-
export interface NotificationOptInCondition extends ConditionBase {
|
|
655
|
-
type: 'notification_opt_in';
|
|
656
|
-
when_status: 'opt_in' | 'opt_out';
|
|
657
|
-
}
|
|
658
|
-
export type Condition = NotificationOptInCondition;
|
|
659
|
-
export type Actions = {
|
|
660
|
-
[key: string]: JsonValue;
|
|
661
|
-
};
|
|
662
|
-
export interface Button {
|
|
663
|
-
text: string;
|
|
664
|
-
content_description?: string;
|
|
665
|
-
actions: Actions;
|
|
666
|
-
}
|
|
667
|
-
export interface SectionBase {
|
|
668
|
-
type: unknown;
|
|
669
|
-
id: string;
|
|
670
|
-
display?: CommonDisplay;
|
|
671
|
-
items: Item[];
|
|
672
|
-
}
|
|
673
|
-
/**
|
|
674
|
-
* @typedef {object} CommonSection
|
|
675
|
-
* @memberof PreferenceCenter
|
|
676
|
-
* @property {"section"} type
|
|
677
|
-
* @property {string} id the section identifier
|
|
678
|
-
* @property {?CommonDisplay} display display information
|
|
679
|
-
* @property {Array<PreferenceCenter.ChannelSubscriptionItem>} items list of
|
|
680
|
-
* section items
|
|
681
|
-
*/
|
|
682
|
-
export interface CommonSection extends SectionBase {
|
|
683
|
-
type: 'section';
|
|
684
|
-
}
|
|
685
|
-
export interface LabeledSectionBreak extends SectionBase {
|
|
686
|
-
type: 'labeled_section_break';
|
|
687
|
-
items: never;
|
|
688
|
-
}
|
|
689
|
-
export type Item = ChannelSubscriptionItem | ContactSubscriptionGroupItem | ContactSubscriptionItem | AlertItem;
|
|
690
|
-
export type Section = CommonSection | LabeledSectionBreak;
|
|
691
|
-
/**
|
|
692
|
-
* An interface representing the eligibility status of a flag, and optional
|
|
693
|
-
* variables associated with the flag.
|
|
694
|
-
*/
|
|
695
|
-
export interface FeatureFlag {
|
|
696
|
-
/**
|
|
697
|
-
* A boolean representing flag eligibility; will be `true` if the current
|
|
698
|
-
* contact is eligible for the flag.
|
|
699
|
-
*/
|
|
700
|
-
readonly isEligible: boolean;
|
|
701
|
-
/**
|
|
702
|
-
* A variables associated with the flag, if any. Will be `null` if no data
|
|
703
|
-
* is associated with the flag, or if the flag does not exist.
|
|
704
|
-
*/
|
|
705
|
-
readonly variables: unknown | null;
|
|
706
|
-
/**
|
|
707
|
-
* A boolean representing if the flag exists or not. For ease of use and
|
|
708
|
-
* deployment, asking for a flag by any name will return a `FeatureFlag`
|
|
709
|
-
* interface, even if the flag was not found to exist. However this property
|
|
710
|
-
* may be checked to determine if the flag was actually resolved to a known
|
|
711
|
-
* flag name.
|
|
712
|
-
*/
|
|
713
|
-
readonly exists: boolean;
|
|
714
|
-
/**
|
|
715
|
-
* Reporting Metadata, the shape of which is private and not to be relied
|
|
716
|
-
* upon. When not provided, an interaction cannot be tracked on the flag.
|
|
717
|
-
* @ignore
|
|
718
|
-
*/
|
|
719
|
-
readonly _internal: unknown;
|
|
720
|
-
}
|
|
721
|
-
/**
|
|
722
|
-
* Live Activity info.
|
|
723
|
-
*/
|
|
724
|
-
export interface LiveActivity {
|
|
725
|
-
/**
|
|
726
|
-
* The activity ID.
|
|
727
|
-
*/
|
|
728
|
-
id: string;
|
|
729
|
-
/**
|
|
730
|
-
* The attribute types.
|
|
731
|
-
*/
|
|
732
|
-
attributeTypes: string;
|
|
733
|
-
/**
|
|
734
|
-
* The content.
|
|
735
|
-
*/
|
|
736
|
-
content: LiveActivityContent;
|
|
737
|
-
/**
|
|
738
|
-
* The attributes.
|
|
739
|
-
*/
|
|
740
|
-
attributes: JsonObject;
|
|
741
|
-
}
|
|
742
|
-
/**
|
|
743
|
-
* Live Activity content.
|
|
744
|
-
*/
|
|
745
|
-
export interface LiveActivityContent {
|
|
746
|
-
/**
|
|
747
|
-
* The content state.
|
|
748
|
-
*/
|
|
749
|
-
state: JsonObject;
|
|
750
|
-
/**
|
|
751
|
-
* Optional ISO 8601 date string that defines when the Live Activity will be stale.
|
|
752
|
-
*/
|
|
753
|
-
staleDate?: string;
|
|
754
|
-
/**
|
|
755
|
-
* The relevance score.
|
|
756
|
-
*/
|
|
757
|
-
relevanceScore: number;
|
|
758
|
-
}
|
|
759
|
-
/**
|
|
760
|
-
* Base Live Activity request.
|
|
761
|
-
*/
|
|
762
|
-
export interface LiveActivityRequest {
|
|
763
|
-
/**
|
|
764
|
-
* Attributes types. This should match the Activity type of your Live Activity.
|
|
765
|
-
*/
|
|
766
|
-
attributesType: string;
|
|
767
|
-
}
|
|
768
|
-
/**
|
|
769
|
-
* Live Activity list request.
|
|
770
|
-
*/
|
|
771
|
-
export interface LiveActivityListRequest extends LiveActivityRequest {
|
|
772
|
-
}
|
|
773
|
-
/**
|
|
774
|
-
* Live Activity start request.
|
|
775
|
-
*/
|
|
776
|
-
export interface LiveActivityStartRequest extends LiveActivityRequest {
|
|
777
|
-
/**
|
|
778
|
-
* Dynamic content.
|
|
779
|
-
*/
|
|
780
|
-
content: LiveActivityContent;
|
|
781
|
-
/**
|
|
782
|
-
* Fixed attributes.
|
|
783
|
-
*/
|
|
784
|
-
attributes: JsonObject;
|
|
785
|
-
}
|
|
786
|
-
/**
|
|
787
|
-
* Live Activity update request.
|
|
788
|
-
*/
|
|
789
|
-
export interface LiveActivityUpdateRequest extends LiveActivityRequest {
|
|
790
|
-
/**
|
|
791
|
-
* The Live Activity ID to update.
|
|
792
|
-
*/
|
|
793
|
-
activityId: string;
|
|
794
|
-
/**
|
|
795
|
-
* Dynamic content.
|
|
796
|
-
*/
|
|
797
|
-
content: LiveActivityContent;
|
|
798
|
-
}
|
|
799
|
-
/**
|
|
800
|
-
* Live Activity end request.
|
|
801
|
-
*/
|
|
802
|
-
export interface LiveActivityEndRequest extends LiveActivityRequest {
|
|
803
|
-
/**
|
|
804
|
-
* The Live Activity ID to update.
|
|
805
|
-
*/
|
|
806
|
-
activityId: string;
|
|
807
|
-
/**
|
|
808
|
-
* Dynamic content.
|
|
809
|
-
*/
|
|
810
|
-
content?: LiveActivityContent;
|
|
811
|
-
/**
|
|
812
|
-
* Dismissal policy. Defaults to `LiveActivityDismissalPolicyDefault`.
|
|
813
|
-
*/
|
|
814
|
-
dismissalPolicy?: LiveActivityDismissalPolicy;
|
|
815
|
-
}
|
|
816
|
-
export type LiveActivityDismissalPolicy = LiveActivityDismissalPolicyImmediate | LiveActivityDismissalPolicyDefault | LiveActivityDismissalPolicyAfterDate;
|
|
817
|
-
/**
|
|
818
|
-
* Dismissal policy to immediately dismiss the Live Activity on end.
|
|
819
|
-
*/
|
|
820
|
-
export interface LiveActivityDismissalPolicyImmediate {
|
|
821
|
-
type: 'immediate';
|
|
822
|
-
}
|
|
823
|
-
/**
|
|
824
|
-
* Dismissal policy to dismiss the Live Activity after the expiration.
|
|
825
|
-
*/
|
|
826
|
-
export interface LiveActivityDismissalPolicyDefault {
|
|
827
|
-
type: 'default';
|
|
828
|
-
}
|
|
829
|
-
/**
|
|
830
|
-
* Dismissal policy to dismiss the Live Activity after a given date.
|
|
831
|
-
*/
|
|
832
|
-
export interface LiveActivityDismissalPolicyAfterDate {
|
|
833
|
-
type: 'after';
|
|
834
|
-
date: string;
|
|
835
|
-
}
|
|
836
|
-
/**
|
|
837
|
-
* Live Update info.
|
|
838
|
-
*/
|
|
839
|
-
export interface LiveUpdate {
|
|
840
|
-
/**
|
|
841
|
-
* The Live Update name.
|
|
842
|
-
*/
|
|
843
|
-
name: string;
|
|
844
|
-
/**
|
|
845
|
-
* The Live Update type.
|
|
846
|
-
*/
|
|
847
|
-
type: string;
|
|
848
|
-
/**
|
|
849
|
-
* Dynamic content.
|
|
850
|
-
*/
|
|
851
|
-
content: JsonObject;
|
|
852
|
-
/**
|
|
853
|
-
* ISO 8601 date string of the last content update.
|
|
854
|
-
*/
|
|
855
|
-
lastContentUpdateTimestamp: string;
|
|
856
|
-
/**
|
|
857
|
-
* ISO 8601 date string of the last state update.
|
|
858
|
-
*/
|
|
859
|
-
lastStateChangeTimestamp: string;
|
|
860
|
-
/**
|
|
861
|
-
* Optional ISO 8601 date string that defines when to end this Live Update.
|
|
862
|
-
*/
|
|
863
|
-
dismissTimestamp?: string;
|
|
864
|
-
}
|
|
865
|
-
/**
|
|
866
|
-
* Live Update list request.
|
|
867
|
-
*/
|
|
868
|
-
export interface LiveUpdateListRequest {
|
|
869
|
-
type: string;
|
|
870
|
-
}
|
|
871
|
-
/**
|
|
872
|
-
* Live Update update request.
|
|
873
|
-
*/
|
|
874
|
-
export interface LiveUpdateUpdateRequest {
|
|
875
|
-
/**
|
|
876
|
-
* The Live Update name.
|
|
877
|
-
*/
|
|
878
|
-
name: string;
|
|
879
|
-
/**
|
|
880
|
-
* Dynamic content.
|
|
881
|
-
*/
|
|
882
|
-
content: JsonObject;
|
|
883
|
-
/**
|
|
884
|
-
* Optional ISO 8601 date string, used to filter out of order updates/
|
|
885
|
-
*/
|
|
886
|
-
timestamp?: string;
|
|
887
|
-
/**
|
|
888
|
-
* Optional ISO 8601 date string that defines when to end this Live Update.
|
|
889
|
-
*/
|
|
890
|
-
dismissTimestamp?: string;
|
|
891
|
-
}
|
|
892
|
-
/**
|
|
893
|
-
* Live Update end request.
|
|
894
|
-
*/
|
|
895
|
-
export interface LiveUpdateEndRequest {
|
|
896
|
-
/**
|
|
897
|
-
* The Live Update name.
|
|
898
|
-
*/
|
|
899
|
-
name: string;
|
|
900
|
-
/**
|
|
901
|
-
* Dynamic content.
|
|
902
|
-
*/
|
|
903
|
-
content?: JsonObject;
|
|
904
|
-
/**
|
|
905
|
-
* Optional ISO 8601 date string, used to filter out of order updates/
|
|
906
|
-
*/
|
|
907
|
-
timestamp?: string;
|
|
908
|
-
/**
|
|
909
|
-
* Optional ISO 8601 date string that defines when to end this Live Update.
|
|
910
|
-
*/
|
|
911
|
-
dismissTimestamp?: string;
|
|
912
|
-
}
|
|
913
|
-
/**
|
|
914
|
-
* Live Update start request.
|
|
915
|
-
*/
|
|
916
|
-
export interface LiveUpdateStartRequest {
|
|
917
|
-
/**
|
|
918
|
-
* The Live Update name.
|
|
919
|
-
*/
|
|
920
|
-
name: string;
|
|
921
|
-
/**
|
|
922
|
-
* The Live Update type.
|
|
923
|
-
*/
|
|
924
|
-
type: string;
|
|
925
|
-
/**
|
|
926
|
-
* Dynamic content.
|
|
927
|
-
*/
|
|
928
|
-
content: JsonObject;
|
|
929
|
-
/**
|
|
930
|
-
* Optional ISO 8601 date string, used to filter out of order updates/
|
|
931
|
-
*/
|
|
932
|
-
timestamp?: string;
|
|
933
|
-
/**
|
|
934
|
-
* Optional ISO 8601 date string that defines when to end this Live Update.
|
|
935
|
-
*/
|
|
936
|
-
dismissTimestamp?: string;
|
|
937
|
-
}
|
|
938
|
-
//# sourceMappingURL=types.d.ts.map
|