@trycourier/courier-react-native 3.2.2 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -3
- package/android/build.gradle +4 -1
- package/android/src/main/java/com/courierreactnative/CourierClientModule.kt +441 -0
- package/android/src/main/java/com/courierreactnative/CourierInboxViewManager.kt +2 -2
- package/android/src/main/java/com/courierreactnative/CourierReactNativeActivity.kt +4 -0
- package/android/src/main/java/com/courierreactnative/CourierReactNativePackage.kt +9 -3
- package/android/src/main/java/com/courierreactnative/CourierSharedModule.kt +312 -0
- package/android/src/main/java/com/courierreactnative/CourierSystemModule.kt +91 -0
- package/android/src/main/java/com/courierreactnative/ReactNativeModule.kt +36 -0
- package/android/src/main/java/com/courierreactnative/{Extensions.kt → Utils.kt} +5 -5
- package/courier-react-native.podspec +1 -1
- package/ios/CourierClientModule.swift +450 -0
- package/ios/CourierInboxReactNativeManager.swift +17 -9
- package/ios/CourierReactNativeDelegate.m +21 -35
- package/ios/CourierReactNativeEventEmitter.swift +25 -0
- package/ios/CourierReactNativeModule.m +192 -23
- package/ios/CourierSharedModule.swift +412 -0
- package/ios/CourierSystemModule.swift +136 -0
- package/ios/Utils.swift +103 -115
- package/lib/commonjs/Broadcaster.js +30 -0
- package/lib/commonjs/Broadcaster.js.map +1 -0
- package/lib/commonjs/Modules.js +25 -0
- package/lib/commonjs/Modules.js.map +1 -0
- package/lib/commonjs/client/BrandClient.js +25 -0
- package/lib/commonjs/client/BrandClient.js.map +1 -0
- package/lib/commonjs/client/ClientModule.js +21 -0
- package/lib/commonjs/client/ClientModule.js.map +1 -0
- package/lib/commonjs/client/CourierClient.js +33 -0
- package/lib/commonjs/client/CourierClient.js.map +1 -0
- package/lib/commonjs/client/InboxClient.js +116 -0
- package/lib/commonjs/client/InboxClient.js.map +1 -0
- package/lib/commonjs/client/PreferenceClient.js +73 -0
- package/lib/commonjs/client/PreferenceClient.js.map +1 -0
- package/lib/commonjs/client/TokenClient.js +36 -0
- package/lib/commonjs/client/TokenClient.js.map +1 -0
- package/lib/commonjs/client/TrackingClient.js +25 -0
- package/lib/commonjs/client/TrackingClient.js.map +1 -0
- package/lib/commonjs/index.js +418 -186
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/Android_CourierSheet.js.map +1 -1
- package/lib/commonjs/models/CourierAuthenticationListener.js.map +1 -1
- package/lib/commonjs/models/CourierBrand.js +2 -0
- package/lib/commonjs/models/{CourierUserPreferencesTopic.js.map → CourierBrand.js.map} +1 -1
- package/lib/commonjs/models/CourierButton.js.map +1 -1
- package/lib/commonjs/models/CourierDevice.js +2 -0
- package/lib/commonjs/models/CourierDevice.js.map +1 -0
- package/lib/commonjs/models/CourierFont.js.map +1 -1
- package/lib/commonjs/models/CourierInboxListener.js +2 -2
- package/lib/commonjs/models/CourierInboxListener.js.map +1 -1
- package/lib/commonjs/models/{CourierUserPreferencesTopic.js → CourierInboxMessages.js} +1 -1
- package/lib/commonjs/models/CourierInboxMessages.js.map +1 -0
- package/lib/commonjs/models/CourierInboxTheme.js.map +1 -1
- package/lib/commonjs/models/CourierInfoViewStyle.js.map +1 -1
- package/lib/commonjs/models/CourierPaging.js.map +1 -1
- package/lib/commonjs/models/CourierPreferencesTheme.js.map +1 -1
- package/lib/commonjs/models/CourierPushListener.js +7 -3
- package/lib/commonjs/models/CourierPushListener.js.map +1 -1
- package/lib/commonjs/models/CourierPushProvider.js.map +1 -1
- package/lib/commonjs/models/CourierTrackingEvent.js +16 -0
- package/lib/commonjs/models/CourierTrackingEvent.js.map +1 -0
- package/lib/commonjs/models/CourierUserPreferences.js +54 -0
- package/lib/commonjs/models/CourierUserPreferences.js.map +1 -1
- package/lib/commonjs/models/InboxAction.js.map +1 -1
- package/lib/commonjs/models/InboxMessage.js.map +1 -1
- package/lib/commonjs/models/iOS_CourierCell.js.map +1 -1
- package/lib/commonjs/models/iOS_CourierSheet.js.map +1 -1
- package/lib/commonjs/utils.js +9 -17
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/commonjs/views/CourierInboxView.js +3 -3
- package/lib/commonjs/views/CourierInboxView.js.map +1 -1
- package/lib/commonjs/views/CourierPreferencesView.js.map +1 -1
- package/lib/module/Broadcaster.js +23 -0
- package/lib/module/Broadcaster.js.map +1 -0
- package/lib/module/Modules.js +18 -0
- package/lib/module/Modules.js.map +1 -0
- package/lib/module/client/BrandClient.js +18 -0
- package/lib/module/client/BrandClient.js.map +1 -0
- package/lib/module/client/ClientModule.js +14 -0
- package/lib/module/client/ClientModule.js.map +1 -0
- package/lib/module/client/CourierClient.js +26 -0
- package/lib/module/client/CourierClient.js.map +1 -0
- package/lib/module/client/InboxClient.js +109 -0
- package/lib/module/client/InboxClient.js.map +1 -0
- package/lib/module/client/PreferenceClient.js +66 -0
- package/lib/module/client/PreferenceClient.js.map +1 -0
- package/lib/module/client/TokenClient.js +29 -0
- package/lib/module/client/TokenClient.js.map +1 -0
- package/lib/module/client/TrackingClient.js +18 -0
- package/lib/module/client/TrackingClient.js.map +1 -0
- package/lib/module/index.js +383 -185
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/Android_CourierSheet.js.map +1 -1
- package/lib/module/models/CourierAuthenticationListener.js.map +1 -1
- package/lib/module/models/CourierBrand.js +2 -0
- package/lib/module/models/{CourierUserPreferencesTopic.js.map → CourierBrand.js.map} +1 -1
- package/lib/module/models/CourierButton.js.map +1 -1
- package/lib/module/models/CourierDevice.js +2 -0
- package/lib/module/models/CourierDevice.js.map +1 -0
- package/lib/module/models/CourierFont.js.map +1 -1
- package/lib/module/models/CourierInboxListener.js +1 -1
- package/lib/module/models/CourierInboxListener.js.map +1 -1
- package/lib/module/models/CourierInboxMessages.js +2 -0
- package/lib/module/models/CourierInboxMessages.js.map +1 -0
- package/lib/module/models/CourierInboxTheme.js.map +1 -1
- package/lib/module/models/CourierInfoViewStyle.js.map +1 -1
- package/lib/module/models/CourierPaging.js.map +1 -1
- package/lib/module/models/CourierPreferencesTheme.js.map +1 -1
- package/lib/module/models/CourierPushListener.js +7 -3
- package/lib/module/models/CourierPushListener.js.map +1 -1
- package/lib/module/models/CourierPushProvider.js.map +1 -1
- package/lib/module/models/CourierTrackingEvent.js +9 -0
- package/lib/module/models/CourierTrackingEvent.js.map +1 -0
- package/lib/module/models/CourierUserPreferences.js +53 -1
- package/lib/module/models/CourierUserPreferences.js.map +1 -1
- package/lib/module/models/InboxAction.js.map +1 -1
- package/lib/module/models/InboxMessage.js.map +1 -1
- package/lib/module/models/iOS_CourierCell.js.map +1 -1
- package/lib/module/models/iOS_CourierSheet.js.map +1 -1
- package/lib/module/utils.js +7 -16
- package/lib/module/utils.js.map +1 -1
- package/lib/module/views/CourierInboxView.js +3 -3
- package/lib/module/views/CourierInboxView.js.map +1 -1
- package/lib/module/views/CourierPreferencesView.js.map +1 -1
- package/lib/typescript/src/Broadcaster.d.ts +14 -0
- package/lib/typescript/src/Broadcaster.d.ts.map +1 -0
- package/lib/typescript/src/Modules.d.ts +8 -0
- package/lib/typescript/src/Modules.d.ts.map +1 -0
- package/lib/typescript/src/client/BrandClient.d.ts +15 -0
- package/lib/typescript/src/client/BrandClient.d.ts.map +1 -0
- package/lib/typescript/src/client/ClientModule.d.ts +8 -0
- package/lib/typescript/src/client/ClientModule.d.ts.map +1 -0
- package/lib/typescript/src/client/CourierClient.d.ts +31 -0
- package/lib/typescript/src/client/CourierClient.d.ts.map +1 -0
- package/lib/typescript/src/client/InboxClient.d.ts +94 -0
- package/lib/typescript/src/client/InboxClient.d.ts.map +1 -0
- package/lib/typescript/src/client/PreferenceClient.d.ts +39 -0
- package/lib/typescript/src/client/PreferenceClient.d.ts.map +1 -0
- package/lib/typescript/src/client/TokenClient.d.ts +28 -0
- package/lib/typescript/src/client/TokenClient.d.ts.map +1 -0
- package/lib/typescript/src/client/TrackingClient.d.ts +17 -0
- package/lib/typescript/src/client/TrackingClient.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +300 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/models/Android_CourierSheet.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierAuthenticationListener.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierBrand.d.ts +20 -0
- package/lib/typescript/src/models/CourierBrand.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierButton.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierDevice.d.ts +9 -0
- package/lib/typescript/src/models/CourierDevice.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierFont.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierInboxListener.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierInboxMessages.d.ts +23 -0
- package/lib/typescript/src/models/CourierInboxMessages.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierInboxTheme.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierInfoViewStyle.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierPaging.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierPreferencesTheme.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierPushListener.d.ts +8 -0
- package/lib/typescript/src/models/CourierPushListener.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierPushProvider.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierTrackingEvent.d.ts +8 -0
- package/lib/typescript/src/models/CourierTrackingEvent.d.ts.map +1 -0
- package/lib/typescript/src/models/CourierUserPreferences.d.ts +35 -0
- package/lib/typescript/src/models/CourierUserPreferences.d.ts.map +1 -0
- package/lib/typescript/src/models/InboxAction.d.ts.map +1 -0
- package/lib/typescript/src/models/InboxMessage.d.ts.map +1 -0
- package/lib/typescript/src/models/iOS_CourierCell.d.ts.map +1 -0
- package/lib/typescript/src/models/iOS_CourierSheet.d.ts.map +1 -0
- package/lib/typescript/src/utils.d.ts +14 -0
- package/lib/typescript/src/utils.d.ts.map +1 -0
- package/lib/typescript/src/views/CourierInboxView.d.ts.map +1 -0
- package/lib/typescript/src/views/CourierPreferencesView.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/Broadcaster.tsx +32 -0
- package/src/Modules.tsx +28 -0
- package/src/client/BrandClient.tsx +23 -0
- package/src/client/ClientModule.tsx +21 -0
- package/src/client/CourierClient.tsx +49 -0
- package/src/client/InboxClient.tsx +114 -0
- package/src/client/PreferenceClient.tsx +77 -0
- package/src/client/TokenClient.tsx +34 -0
- package/src/client/TrackingClient.tsx +23 -0
- package/src/index.tsx +398 -205
- package/src/models/CourierBrand.tsx +24 -0
- package/src/models/CourierDevice.tsx +8 -0
- package/src/models/CourierInboxListener.tsx +1 -1
- package/src/models/CourierInboxMessages.tsx +28 -0
- package/src/models/CourierPushListener.tsx +11 -6
- package/src/models/CourierTrackingEvent.tsx +7 -0
- package/src/models/CourierUserPreferences.tsx +70 -3
- package/src/utils.tsx +7 -23
- package/src/views/CourierInboxView.tsx +3 -3
- package/android/src/main/java/com/courierreactnative/CourierReactNativeModule.kt +0 -393
- package/ios/CourierReactNativeModule.swift +0 -524
- package/lib/commonjs/models/CourierUserPreferencesChannel.js +0 -17
- package/lib/commonjs/models/CourierUserPreferencesChannel.js.map +0 -1
- package/lib/commonjs/models/CourierUserPreferencesStatus.js +0 -15
- package/lib/commonjs/models/CourierUserPreferencesStatus.js.map +0 -1
- package/lib/module/models/CourierUserPreferencesChannel.js +0 -10
- package/lib/module/models/CourierUserPreferencesChannel.js.map +0 -1
- package/lib/module/models/CourierUserPreferencesStatus.js +0 -8
- package/lib/module/models/CourierUserPreferencesStatus.js.map +0 -1
- package/lib/module/models/CourierUserPreferencesTopic.js +0 -2
- package/lib/typescript/index.d.ts +0 -199
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/models/Android_CourierSheet.d.ts.map +0 -1
- package/lib/typescript/models/CourierAuthenticationListener.d.ts.map +0 -1
- package/lib/typescript/models/CourierButton.d.ts.map +0 -1
- package/lib/typescript/models/CourierFont.d.ts.map +0 -1
- package/lib/typescript/models/CourierInboxListener.d.ts.map +0 -1
- package/lib/typescript/models/CourierInboxTheme.d.ts.map +0 -1
- package/lib/typescript/models/CourierInfoViewStyle.d.ts.map +0 -1
- package/lib/typescript/models/CourierPaging.d.ts.map +0 -1
- package/lib/typescript/models/CourierPreferencesTheme.d.ts.map +0 -1
- package/lib/typescript/models/CourierPushListener.d.ts +0 -7
- package/lib/typescript/models/CourierPushListener.d.ts.map +0 -1
- package/lib/typescript/models/CourierPushProvider.d.ts.map +0 -1
- package/lib/typescript/models/CourierUserPreferences.d.ts +0 -7
- package/lib/typescript/models/CourierUserPreferences.d.ts.map +0 -1
- package/lib/typescript/models/CourierUserPreferencesChannel.d.ts +0 -9
- package/lib/typescript/models/CourierUserPreferencesChannel.d.ts.map +0 -1
- package/lib/typescript/models/CourierUserPreferencesStatus.d.ts +0 -7
- package/lib/typescript/models/CourierUserPreferencesStatus.d.ts.map +0 -1
- package/lib/typescript/models/CourierUserPreferencesTopic.d.ts +0 -13
- package/lib/typescript/models/CourierUserPreferencesTopic.d.ts.map +0 -1
- package/lib/typescript/models/InboxAction.d.ts.map +0 -1
- package/lib/typescript/models/InboxMessage.d.ts.map +0 -1
- package/lib/typescript/models/iOS_CourierCell.d.ts.map +0 -1
- package/lib/typescript/models/iOS_CourierSheet.d.ts.map +0 -1
- package/lib/typescript/utils.d.ts +0 -21
- package/lib/typescript/utils.d.ts.map +0 -1
- package/lib/typescript/views/CourierInboxView.d.ts.map +0 -1
- package/lib/typescript/views/CourierPreferencesView.d.ts.map +0 -1
- package/src/models/CourierUserPreferencesChannel.tsx +0 -8
- package/src/models/CourierUserPreferencesStatus.tsx +0 -6
- package/src/models/CourierUserPreferencesTopic.tsx +0 -13
- /package/lib/typescript/{models → src/models}/Android_CourierSheet.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/CourierAuthenticationListener.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/CourierButton.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/CourierFont.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/CourierInboxListener.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/CourierInboxTheme.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/CourierInfoViewStyle.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/CourierPaging.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/CourierPreferencesTheme.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/CourierPushProvider.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/InboxAction.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/InboxMessage.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/iOS_CourierCell.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/iOS_CourierSheet.d.ts +0 -0
- /package/lib/typescript/{views → src/views}/CourierInboxView.d.ts +0 -0
- /package/lib/typescript/{views → src/views}/CourierPreferencesView.d.ts +0 -0
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import { CourierInboxListener } from './models/CourierInboxListener';
|
|
2
|
-
import { CourierPushListener } from './models/CourierPushListener';
|
|
3
|
-
import { CourierAuthenticationListener } from './models/CourierAuthenticationListener';
|
|
4
|
-
import { InboxMessage } from './models/InboxMessage';
|
|
5
|
-
import { CourierUserPreferences } from './models/CourierUserPreferences';
|
|
6
|
-
import { CourierUserPreferencesTopic } from './models/CourierUserPreferencesTopic';
|
|
7
|
-
import { CourierUserPreferencesChannel } from './models/CourierUserPreferencesChannel';
|
|
8
|
-
import { CourierUserPreferencesStatus } from './models/CourierUserPreferencesStatus';
|
|
9
|
-
import { CourierPushProvider } from './models/CourierPushProvider';
|
|
10
|
-
export { CourierInboxView } from './views/CourierInboxView';
|
|
11
|
-
export { CourierPreferencesView } from './views/CourierPreferencesView';
|
|
12
|
-
export { CourierInboxListener } from './models/CourierInboxListener';
|
|
13
|
-
export { CourierPushListener } from './models/CourierPushListener';
|
|
14
|
-
export { CourierAuthenticationListener } from './models/CourierAuthenticationListener';
|
|
15
|
-
export { CourierUserPreferencesChannel } from './models/CourierUserPreferencesChannel';
|
|
16
|
-
export { CourierUserPreferencesStatus } from './models/CourierUserPreferencesStatus';
|
|
17
|
-
export { CourierPushProvider } from './models/CourierPushProvider';
|
|
18
|
-
export { CourierFont } from './models/CourierFont';
|
|
19
|
-
export { CourierButton } from './models/CourierButton';
|
|
20
|
-
export { CourierInfoViewStyle } from './models/CourierInfoViewStyle';
|
|
21
|
-
export { iOS_CourierCell } from './models/iOS_CourierCell';
|
|
22
|
-
export { iOS_CourierSheet } from './models/iOS_CourierSheet';
|
|
23
|
-
export { CourierInboxButtonStyle, CourierInboxTextStyle, CourierInboxUnreadIndicatorStyle, CourierInboxTheme } from './models/CourierInboxTheme';
|
|
24
|
-
export { CourierPreferencesTheme, CourierPreferencesMode, CourierPreferencesChannel } from './models/CourierPreferencesTheme';
|
|
25
|
-
export type iOSForegroundPresentationOptions = 'sound' | 'badge' | 'list' | 'banner';
|
|
26
|
-
declare class Courier {
|
|
27
|
-
private static _sharedInstance;
|
|
28
|
-
private _isDebugging;
|
|
29
|
-
private debugListener;
|
|
30
|
-
private authListeners;
|
|
31
|
-
private inboxListeners;
|
|
32
|
-
constructor();
|
|
33
|
-
static get shared(): Courier;
|
|
34
|
-
private setDefaults;
|
|
35
|
-
/**
|
|
36
|
-
* Tells native Courier SDKs to show or hide logs.
|
|
37
|
-
* Defaults to the React __DEV__ mode
|
|
38
|
-
*/
|
|
39
|
-
setIsDebugging(isDebugging: boolean): boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Returns the status of debugging
|
|
42
|
-
*/
|
|
43
|
-
get isDebugging(): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Sets the notification presentation options for iOS
|
|
46
|
-
*/
|
|
47
|
-
iOSForegroundPresentationOptions(props: {
|
|
48
|
-
options: iOSForegroundPresentationOptions[];
|
|
49
|
-
}): string;
|
|
50
|
-
/**
|
|
51
|
-
* Gets a token for key
|
|
52
|
-
*/
|
|
53
|
-
getToken(props: {
|
|
54
|
-
key: string;
|
|
55
|
-
}): Promise<string | undefined>;
|
|
56
|
-
getTokenForProvider(props: {
|
|
57
|
-
provider: CourierPushProvider;
|
|
58
|
-
}): Promise<string | undefined>;
|
|
59
|
-
/**
|
|
60
|
-
* Sets the fcm token to be used by Courier
|
|
61
|
-
*/
|
|
62
|
-
setToken(props: {
|
|
63
|
-
key: string;
|
|
64
|
-
token: string;
|
|
65
|
-
}): Promise<void>;
|
|
66
|
-
setTokenForProvider(props: {
|
|
67
|
-
provider: CourierPushProvider;
|
|
68
|
-
token: string;
|
|
69
|
-
}): Promise<void>;
|
|
70
|
-
/**
|
|
71
|
-
* Returns the notification permission status
|
|
72
|
-
* Only supported on iOS
|
|
73
|
-
*/
|
|
74
|
-
getNotificationPermissionStatus(): Promise<string>;
|
|
75
|
-
/**
|
|
76
|
-
* Requests notification permissions
|
|
77
|
-
* This will show a dialog asking the user for permission
|
|
78
|
-
* Only supported on iOS
|
|
79
|
-
*/
|
|
80
|
-
requestNotificationPermission(): Promise<string>;
|
|
81
|
-
/**
|
|
82
|
-
* Listens to push notification clicked and delivered messages
|
|
83
|
-
*/
|
|
84
|
-
addPushNotificationListener(props: {
|
|
85
|
-
onPushNotificationClicked?: (push: any) => void;
|
|
86
|
-
onPushNotificationDelivered?: (push: any) => void;
|
|
87
|
-
}): CourierPushListener;
|
|
88
|
-
/**
|
|
89
|
-
* Gets the user id that is currently being used.
|
|
90
|
-
* This is the user id associated with the network requests the sdk does.
|
|
91
|
-
*/
|
|
92
|
-
get userId(): string | undefined;
|
|
93
|
-
/**
|
|
94
|
-
* Gets the tenant id that is currently being used
|
|
95
|
-
*/
|
|
96
|
-
get tenantId(): string | undefined;
|
|
97
|
-
/**
|
|
98
|
-
* Registers the auth token, client key and user id the sdk should use for requests
|
|
99
|
-
*/
|
|
100
|
-
signIn(props: {
|
|
101
|
-
accessToken: string;
|
|
102
|
-
clientKey?: string;
|
|
103
|
-
userId: string;
|
|
104
|
-
tenantId?: string;
|
|
105
|
-
}): Promise<void>;
|
|
106
|
-
/**
|
|
107
|
-
* Removes the current user and credentials from the sdk
|
|
108
|
-
*/
|
|
109
|
-
signOut(): Promise<void>;
|
|
110
|
-
/**
|
|
111
|
-
* Listens to authentication changes for the current user
|
|
112
|
-
*/
|
|
113
|
-
addAuthenticationListener(props: {
|
|
114
|
-
onUserChanged: (userId?: string) => void;
|
|
115
|
-
}): CourierAuthenticationListener;
|
|
116
|
-
/**
|
|
117
|
-
* Removes an authentication listener
|
|
118
|
-
*/
|
|
119
|
-
removeAuthenticationListener(props: {
|
|
120
|
-
listenerId: string;
|
|
121
|
-
}): string;
|
|
122
|
-
/**
|
|
123
|
-
* Click an inbox message
|
|
124
|
-
*/
|
|
125
|
-
clickMessage(props: {
|
|
126
|
-
messageId: string;
|
|
127
|
-
}): string;
|
|
128
|
-
/**
|
|
129
|
-
* Reads an inbox message
|
|
130
|
-
*/
|
|
131
|
-
readMessage(props: {
|
|
132
|
-
messageId: string;
|
|
133
|
-
}): string;
|
|
134
|
-
/**
|
|
135
|
-
* Unreads an inbox message
|
|
136
|
-
*/
|
|
137
|
-
unreadMessage(props: {
|
|
138
|
-
messageId: string;
|
|
139
|
-
}): string;
|
|
140
|
-
/**
|
|
141
|
-
* Reads all the inbox messages
|
|
142
|
-
*/
|
|
143
|
-
readAllInboxMessages(): Promise<void>;
|
|
144
|
-
/**
|
|
145
|
-
* Listens to changes for the inbox itself
|
|
146
|
-
*/
|
|
147
|
-
addInboxListener(props: {
|
|
148
|
-
onInitialLoad?: () => void;
|
|
149
|
-
onError?: (error: string) => void;
|
|
150
|
-
onMessagesChanged?: (messages: InboxMessage[], unreadMessageCount: number, totalMessageCount: number, canPaginate: boolean) => void;
|
|
151
|
-
}): CourierInboxListener;
|
|
152
|
-
/**
|
|
153
|
-
* Removes an inbox listener
|
|
154
|
-
*/
|
|
155
|
-
removeInboxListener(props: {
|
|
156
|
-
listenerId: string;
|
|
157
|
-
}): string;
|
|
158
|
-
/**
|
|
159
|
-
* Refreshes the inbox
|
|
160
|
-
* Useful for pull to refresh
|
|
161
|
-
*/
|
|
162
|
-
refreshInbox(): Promise<void>;
|
|
163
|
-
/**
|
|
164
|
-
* Fetches the next page of inbox messages
|
|
165
|
-
* Returns the fetched inbox messages
|
|
166
|
-
*/
|
|
167
|
-
fetchNextPageOfMessages(): Promise<InboxMessage[]>;
|
|
168
|
-
/**
|
|
169
|
-
* Sets the pagination limit
|
|
170
|
-
* Min = 1
|
|
171
|
-
* Max = 100
|
|
172
|
-
*/
|
|
173
|
-
setInboxPaginationLimit(props: {
|
|
174
|
-
limit: number;
|
|
175
|
-
}): void;
|
|
176
|
-
/**
|
|
177
|
-
* Get all available preferences
|
|
178
|
-
*/
|
|
179
|
-
getUserPreferences(props?: {
|
|
180
|
-
paginationCursor: string;
|
|
181
|
-
}): Promise<CourierUserPreferences>;
|
|
182
|
-
/**
|
|
183
|
-
* Get individual preferences topic
|
|
184
|
-
*/
|
|
185
|
-
getUserPreferencesTopic(props: {
|
|
186
|
-
topicId: string;
|
|
187
|
-
}): Promise<CourierUserPreferencesTopic>;
|
|
188
|
-
/**
|
|
189
|
-
* Update individual preferences topic
|
|
190
|
-
*/
|
|
191
|
-
putUserPreferencesTopic(props: {
|
|
192
|
-
topicId: string;
|
|
193
|
-
status: CourierUserPreferencesStatus;
|
|
194
|
-
hasCustomRouting: boolean;
|
|
195
|
-
customRouting: CourierUserPreferencesChannel[];
|
|
196
|
-
}): Promise<void>;
|
|
197
|
-
}
|
|
198
|
-
export default Courier;
|
|
199
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,YAAY,EAA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 -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierAuthenticationListener.d.ts","sourceRoot":"","sources":["../../../src/models/CourierAuthenticationListener.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,qBAAa,6BAA6B;IAExC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAA;gBAE9B,EAAE,EAAE,MAAM;IAIf,MAAM;CAUd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierButton.d.ts","sourceRoot":"","sources":["../../../src/models/CourierButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierFont.d.ts","sourceRoot":"","sources":["../../../src/models/CourierFont.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierInboxListener.d.ts","sourceRoot":"","sources":["../../../src/models/CourierInboxListener.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,qBAAa,oBAAoB;IAE/B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAC7B,iBAAiB,CAAC,EAAE,mBAAmB,CAAA;gB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EAAE;gBAAE,GAAG,CAAC,EAAE,MAAM,CAAC;gBAAC,IAAI,CAAC,EAAE,MAAM,CAAC;gBAAC,MAAM,CAAC,EAAE,MAAM,CAAC;gBAAC,KAAK,CAAC,EAAE,MAAM,CAAA;aAAE,CAAC;YACnF,cAAc,CAAC,EAAE,MAAM,CAAC;YACxB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;SACvD,CAAA;KACF,CAAC;IACF,OAAO,CAAC,EAAE;QACR,qBAAqB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;KAC7C,CAAA;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierInfoViewStyle.d.ts","sourceRoot":"","sources":["../../../src/models/CourierInfoViewStyle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,MAAM,CAAC,EAAE,aAAa,CAAA;CACvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierPaging.d.ts","sourceRoot":"","sources":["../../../src/models/CourierPaging.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;CACf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierPreferencesTheme.d.ts","sourceRoot":"","sources":["../../../src/models/CourierPreferencesTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,yBAAyB,GAAG,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;AAEhG,MAAM,MAAM,sBAAsB,GAC9B;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,yBAAyB,EAAE,CAAA;CAAE,CAAC;AAEhE,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,gBAAgB,CAAC,EAAE,WAAW,CAAA;IAC9B,cAAc,CAAC,EAAE,WAAW,CAAA;IAC5B,iBAAiB,CAAC,EAAE,WAAW,CAAA;IAC/B,WAAW,CAAC,EAAE,aAAa,CAAA;IAC3B,cAAc,CAAC,EAAE,WAAW,CAAA;IAC5B,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,GAAG,CAAC,EAAE;QACJ,eAAe,CAAC,EAAE,eAAe,CAAA;QACjC,kBAAkB,CAAC,EAAE,gBAAgB,CAAA;QACrC,iBAAiB,CAAC,EAAE,MAAM,CAAA;QAC1B,eAAe,CAAC,EAAE,eAAe,CAAA;KAClC,CAAC;IACF,OAAO,CAAC,EAAE;QACR,0BAA0B,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;QAChD,0BAA0B,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;QAChD,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;KAC1C,CAAA;CACF"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { EmitterSubscription } from "react-native";
|
|
2
|
-
export declare class CourierPushListener {
|
|
3
|
-
onNotificationClickedListener?: EmitterSubscription;
|
|
4
|
-
onNotificationDeliveredListener?: EmitterSubscription;
|
|
5
|
-
remove(): void;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=CourierPushListener.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierPushListener.d.ts","sourceRoot":"","sources":["../../../src/models/CourierPushListener.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,qBAAa,mBAAmB;IAEvB,6BAA6B,CAAC,EAAE,mBAAmB,CAAA;IACnD,+BAA+B,CAAC,EAAE,mBAAmB,CAAA;IAErD,MAAM;CAKd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierPushProvider.d.ts","sourceRoot":"","sources":["../../../src/models/CourierPushProvider.tsx"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,GAAG,QAAQ;IACX,YAAY,iBAAiB;IAC7B,IAAI,SAAS;IACb,UAAU,cAAc;IACxB,YAAY,iBAAiB;CAC9B"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CourierPaging } from "./CourierPaging";
|
|
2
|
-
import { CourierUserPreferencesTopic } from "./CourierUserPreferencesTopic";
|
|
3
|
-
export interface CourierUserPreferences {
|
|
4
|
-
items?: CourierUserPreferencesTopic[];
|
|
5
|
-
paging?: CourierPaging;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=CourierUserPreferences.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierUserPreferences.d.ts","sourceRoot":"","sources":["../../../src/models/CourierUserPreferences.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,2BAA2B,EAAE,CAAC;IACtC,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierUserPreferencesChannel.d.ts","sourceRoot":"","sources":["../../../src/models/CourierUserPreferencesChannel.tsx"],"names":[],"mappings":"AAAA,oBAAY,6BAA6B;IACvC,aAAa,mBAAmB;IAChC,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierUserPreferencesStatus.d.ts","sourceRoot":"","sources":["../../../src/models/CourierUserPreferencesStatus.tsx"],"names":[],"mappings":"AAAA,oBAAY,4BAA4B;IACtC,OAAO,aAAa;IACpB,QAAQ,cAAc;IACtB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CourierUserPreferencesChannel } from "./CourierUserPreferencesChannel";
|
|
2
|
-
import { CourierUserPreferencesStatus } from "./CourierUserPreferencesStatus";
|
|
3
|
-
export interface CourierUserPreferencesTopic {
|
|
4
|
-
defaultStatus?: string;
|
|
5
|
-
hasCustomRouting?: boolean;
|
|
6
|
-
customRouting?: CourierUserPreferencesChannel[];
|
|
7
|
-
status?: CourierUserPreferencesStatus;
|
|
8
|
-
setionName?: string;
|
|
9
|
-
setionId?: string;
|
|
10
|
-
topicId?: string;
|
|
11
|
-
topicName?: string;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=CourierUserPreferencesTopic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierUserPreferencesTopic.d.ts","sourceRoot":"","sources":["../../../src/models/CourierUserPreferencesTopic.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E,MAAM,WAAW,2BAA2B;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,6BAA6B,EAAE,CAAC;IAChD,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InboxAction.d.ts","sourceRoot":"","sources":["../../../src/models/InboxAction.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,CAAC;CACtC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InboxMessage.d.ts","sourceRoot":"","sources":["../../../src/models/InboxMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IAC/B,IAAI,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,CAAC;IACrC,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,CAAA;CAC5C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iOS_CourierCell.d.ts","sourceRoot":"","sources":["../../../src/models/iOS_CourierCell.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,cAAc,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,kBAAkB,CAAA;IAC3D,eAAe,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAClF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CACtD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iOS_CourierSheet.d.ts","sourceRoot":"","sources":["../../../src/models/iOS_CourierSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { EmitterSubscription, NativeEventEmitter } from "react-native";
|
|
2
|
-
export declare namespace Events {
|
|
3
|
-
namespace Log {
|
|
4
|
-
const DEBUG_LOG = "courierDebugEvent";
|
|
5
|
-
}
|
|
6
|
-
namespace Push {
|
|
7
|
-
const CLICKED = "pushNotificationClicked";
|
|
8
|
-
const DELIVERED = "pushNotificationDelivered";
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare namespace Utils {
|
|
12
|
-
/**
|
|
13
|
-
* Creates an event listener for the native function
|
|
14
|
-
* @param key Key for the listener
|
|
15
|
-
* @param callback Value returned for the listener callback
|
|
16
|
-
* @returns Subscription
|
|
17
|
-
*/
|
|
18
|
-
function addEventListener(key: string, emitter: NativeEventEmitter, callback: (value: any) => void): EmitterSubscription | undefined;
|
|
19
|
-
function generateUUID(): string;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAgC,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAErG,yBAAiB,MAAM,CAAC;IAEtB,UAAiB,GAAG,CAAC;QACZ,MAAM,SAAS,sBAAsB,CAAC;KAC9C;IAED,UAAiB,IAAI,CAAC;QACb,MAAM,OAAO,4BAA4B,CAAC;QAC1C,MAAM,SAAS,8BAA8B,CAAC;KACtD;CAEF;AAED,yBAAiB,KAAK,CAAC;IAErB;;;;;MAKE;IACF,SAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,GAAG,mBAAmB,GAAG,SAAS,CAY1I;IAED,SAAgB,YAAY,IAAI,MAAM,CAQrC;CAEF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CourierInboxView.d.ts","sourceRoot":"","sources":["../../../src/views/CourierInboxView.tsx"],"names":[],"mappings":"AAAA,OA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AC/B,CAAC;IACF,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAiBF,eAAO,MAAM,sBAAsB,UAAW,uBAAuB,sBAwDpE,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CourierUserPreferencesChannel } from "./CourierUserPreferencesChannel";
|
|
2
|
-
import { CourierUserPreferencesStatus } from "./CourierUserPreferencesStatus";
|
|
3
|
-
|
|
4
|
-
export interface CourierUserPreferencesTopic {
|
|
5
|
-
defaultStatus?: string;
|
|
6
|
-
hasCustomRouting?: boolean;
|
|
7
|
-
customRouting?: CourierUserPreferencesChannel[];
|
|
8
|
-
status?: CourierUserPreferencesStatus;
|
|
9
|
-
setionName?: string;
|
|
10
|
-
setionId?: string;
|
|
11
|
-
topicId?: string;
|
|
12
|
-
topicName?: string;
|
|
13
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|