@burdenoff/microfe-notification 2026.424.101 → 2026.513.2
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/dist/components/NotificationCard.d.ts.map +1 -1
- package/dist/components/NotificationCard.js +62 -57
- package/dist/components/NotificationCard.js.map +1 -1
- package/dist/generated/global-operations.d.ts +556 -8
- package/dist/generated/global-operations.d.ts.map +1 -1
- package/dist/generated/global-operations.js +198 -155
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +2907 -153
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.d.ts +4605 -117
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/graphql/global-client.d.ts.map +1 -1
- package/dist/graphql/global-client.js +41 -23
- package/dist/graphql/global-client.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useNotificationAdmin.d.ts.map +1 -1
- package/dist/hooks/useNotificationPreferences.d.ts +12 -0
- package/dist/hooks/useNotificationPreferences.d.ts.map +1 -0
- package/dist/hooks/useNotificationPreferences.js +114 -0
- package/dist/hooks/useNotificationPreferences.js.map +1 -0
- package/dist/hooks/useNotifications.d.ts +6 -1
- package/dist/hooks/useNotifications.d.ts.map +1 -1
- package/dist/hooks/useNotifications.js +148 -99
- package/dist/hooks/useNotifications.js.map +1 -1
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +24 -0
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -0
- package/dist/node_modules/@apollo/client/errors/utils.js +16 -0
- package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -0
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +52 -0
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -0
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js +41 -0
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -0
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js +34 -0
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +6 -0
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js +16 -0
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js +19 -0
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +21 -0
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +17 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +9 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +9 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +8 -0
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +9 -0
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +10 -0
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +8 -0
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +10 -0
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +23 -0
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +10 -0
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -0
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js +57 -0
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -0
- package/dist/node_modules/@apollo/client/version.js +6 -0
- package/dist/node_modules/@apollo/client/version.js.map +1 -0
- package/dist/node_modules/@wry/caches/lib/weak.js +67 -0
- package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -0
- package/dist/node_modules/@wry/trie/lib/index.js +53 -0
- package/dist/node_modules/@wry/trie/lib/index.js.map +1 -0
- package/dist/node_modules/graphql-ws/dist/client.js +272 -0
- package/dist/node_modules/graphql-ws/dist/client.js.map +1 -0
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +62 -0
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +21 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +78 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +117 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +93 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js +12 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +9 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +16 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +8 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +13 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +11 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +11 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +22 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +8 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +8 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +6 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +13 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +14 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
- package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js +52 -0
- package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/pages/CreateNotificationPage.d.ts.map +1 -1
- package/dist/pages/CreateNotificationPage.js +449 -448
- package/dist/pages/CreateNotificationPage.js.map +1 -1
- package/dist/pages/NotificationCenterPage.d.ts.map +1 -1
- package/dist/pages/NotificationCenterPage.js +128 -123
- package/dist/pages/NotificationCenterPage.js.map +1 -1
- package/dist/pages/NotificationHistoryAdminPage.js +1 -1
- package/dist/pages/NotificationHistoryAdminPage.js.map +1 -1
- package/dist/pages/NotificationHistoryPage.d.ts.map +1 -1
- package/dist/pages/NotificationHistoryPage.js +35 -37
- package/dist/pages/NotificationHistoryPage.js.map +1 -1
- package/dist/pages/NotificationPreferencesPage.d.ts.map +1 -1
- package/dist/pages/NotificationPreferencesPage.js +224 -79
- package/dist/pages/NotificationPreferencesPage.js.map +1 -1
- package/dist/pages/NotificationTemplatesPage.d.ts.map +1 -1
- package/dist/pages/NotificationTemplatesPage.js +155 -141
- package/dist/pages/NotificationTemplatesPage.js.map +1 -1
- package/dist/providers/NotificationProvider.d.ts.map +1 -1
- package/dist/providers/NotificationProvider.js +6 -5
- package/dist/providers/NotificationProvider.js.map +1 -1
- package/dist/types/index.d.ts +36 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +5 -3
|
@@ -1,6 +1,151 @@
|
|
|
1
1
|
import * as Types from './global-types';
|
|
2
2
|
import * as Apollo from '@apollo/client';
|
|
3
3
|
import * as ApolloReactHooks from '@apollo/client/react';
|
|
4
|
+
export type NotificationTopicSummaryFieldsFragment = {
|
|
5
|
+
__typename?: 'NotificationTopic';
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
type: Types.NotificationType;
|
|
10
|
+
description?: string | null;
|
|
11
|
+
};
|
|
12
|
+
export type ScheduledNotificationSummaryFieldsFragment = {
|
|
13
|
+
__typename?: 'ScheduledNotification';
|
|
14
|
+
id: string;
|
|
15
|
+
scheduledFor: string;
|
|
16
|
+
status: Types.ScheduledNotificationStatus;
|
|
17
|
+
timezone?: string | null;
|
|
18
|
+
retryCount: number;
|
|
19
|
+
errorMessage?: string | null;
|
|
20
|
+
};
|
|
21
|
+
export type NotificationActionFieldsFragment = {
|
|
22
|
+
__typename?: 'NotificationAction';
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
url: string;
|
|
26
|
+
style?: string | null;
|
|
27
|
+
actionType?: string | null;
|
|
28
|
+
metadata?: Record<string, unknown> | null;
|
|
29
|
+
};
|
|
30
|
+
export type NotificationMediaFieldsFragment = {
|
|
31
|
+
__typename?: 'NotificationMedia';
|
|
32
|
+
url: string;
|
|
33
|
+
label?: string | null;
|
|
34
|
+
kind?: string | null;
|
|
35
|
+
contentType?: string | null;
|
|
36
|
+
thumbnailUrl?: string | null;
|
|
37
|
+
};
|
|
38
|
+
export type NotificationFieldsFragment = {
|
|
39
|
+
__typename?: 'Notification';
|
|
40
|
+
id: string;
|
|
41
|
+
type: Types.NotificationType;
|
|
42
|
+
priority: Types.NotificationPriority;
|
|
43
|
+
title: string;
|
|
44
|
+
message: string;
|
|
45
|
+
channel: Types.NotificationChannel;
|
|
46
|
+
status: Types.NotificationStatus;
|
|
47
|
+
deliveryStatus?: Types.NotificationDeliveryStatus | null;
|
|
48
|
+
isRead: boolean;
|
|
49
|
+
readAt?: string | null;
|
|
50
|
+
archivedAt?: string | null;
|
|
51
|
+
openedAt?: string | null;
|
|
52
|
+
clickedAt?: string | null;
|
|
53
|
+
deliveredAt?: string | null;
|
|
54
|
+
failedAt?: string | null;
|
|
55
|
+
sentAt?: string | null;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
redirectUrl?: string | null;
|
|
59
|
+
subject?: string | null;
|
|
60
|
+
htmlMessage?: string | null;
|
|
61
|
+
data?: Record<string, unknown> | null;
|
|
62
|
+
metadata?: Record<string, unknown> | null;
|
|
63
|
+
expiresAt?: string | null;
|
|
64
|
+
scheduledFor?: string | null;
|
|
65
|
+
templateId?: string | null;
|
|
66
|
+
templateVersion?: number | null;
|
|
67
|
+
appName?: string | null;
|
|
68
|
+
recipientEmail?: string | null;
|
|
69
|
+
recipientPhone?: string | null;
|
|
70
|
+
errorCode?: string | null;
|
|
71
|
+
errorMessage?: string | null;
|
|
72
|
+
userId: string;
|
|
73
|
+
topicId?: string | null;
|
|
74
|
+
topic?: {
|
|
75
|
+
__typename?: 'NotificationTopic';
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
slug: string;
|
|
79
|
+
type: Types.NotificationType;
|
|
80
|
+
description?: string | null;
|
|
81
|
+
} | null;
|
|
82
|
+
actions: Array<{
|
|
83
|
+
__typename?: 'NotificationAction';
|
|
84
|
+
id: string;
|
|
85
|
+
label: string;
|
|
86
|
+
url: string;
|
|
87
|
+
style?: string | null;
|
|
88
|
+
actionType?: string | null;
|
|
89
|
+
metadata?: Record<string, unknown> | null;
|
|
90
|
+
}>;
|
|
91
|
+
media: Array<{
|
|
92
|
+
__typename?: 'NotificationMedia';
|
|
93
|
+
url: string;
|
|
94
|
+
label?: string | null;
|
|
95
|
+
kind?: string | null;
|
|
96
|
+
contentType?: string | null;
|
|
97
|
+
thumbnailUrl?: string | null;
|
|
98
|
+
}>;
|
|
99
|
+
scheduledNotification?: {
|
|
100
|
+
__typename?: 'ScheduledNotification';
|
|
101
|
+
id: string;
|
|
102
|
+
scheduledFor: string;
|
|
103
|
+
status: Types.ScheduledNotificationStatus;
|
|
104
|
+
timezone?: string | null;
|
|
105
|
+
retryCount: number;
|
|
106
|
+
errorMessage?: string | null;
|
|
107
|
+
} | null;
|
|
108
|
+
};
|
|
109
|
+
export type NotificationHistoryFieldsFragment = {
|
|
110
|
+
__typename?: 'NotificationHistory';
|
|
111
|
+
id: string;
|
|
112
|
+
notificationId: string;
|
|
113
|
+
eventType: Types.NotificationEventType;
|
|
114
|
+
deliveryStatus?: Types.NotificationDeliveryStatus | null;
|
|
115
|
+
channelServiceEventId?: string | null;
|
|
116
|
+
externalId?: string | null;
|
|
117
|
+
timestamp: string;
|
|
118
|
+
details?: Record<string, unknown> | null;
|
|
119
|
+
metadata?: Record<string, unknown> | null;
|
|
120
|
+
createdAt: string;
|
|
121
|
+
updatedAt: string;
|
|
122
|
+
};
|
|
123
|
+
export type NotificationPreferenceFieldsFragment = {
|
|
124
|
+
__typename?: 'NotificationPreference';
|
|
125
|
+
id: string;
|
|
126
|
+
userId: string;
|
|
127
|
+
preferenceKey: string;
|
|
128
|
+
scope: Types.NotificationPreferenceScope;
|
|
129
|
+
channel?: Types.NotificationChannel | null;
|
|
130
|
+
type?: Types.NotificationType | null;
|
|
131
|
+
topicId?: string | null;
|
|
132
|
+
enabled: boolean;
|
|
133
|
+
frequency: Types.NotificationPreferenceFrequency;
|
|
134
|
+
quietHoursStart?: string | null;
|
|
135
|
+
quietHoursEnd?: string | null;
|
|
136
|
+
timezone?: string | null;
|
|
137
|
+
metadata?: Record<string, unknown> | null;
|
|
138
|
+
createdAt: string;
|
|
139
|
+
updatedAt: string;
|
|
140
|
+
topic?: {
|
|
141
|
+
__typename?: 'NotificationTopic';
|
|
142
|
+
id: string;
|
|
143
|
+
name: string;
|
|
144
|
+
slug: string;
|
|
145
|
+
type: Types.NotificationType;
|
|
146
|
+
description?: string | null;
|
|
147
|
+
} | null;
|
|
148
|
+
};
|
|
4
149
|
export type ArchiveNotificationMutationVariables = Types.Exact<{
|
|
5
150
|
id: Types.Scalars['ID']['input'];
|
|
6
151
|
}>;
|
|
@@ -32,6 +177,38 @@ export type CancelScheduledNotificationMutation = {
|
|
|
32
177
|
__typename?: 'Mutation';
|
|
33
178
|
cancelScheduledNotification: boolean;
|
|
34
179
|
};
|
|
180
|
+
export type CreateNotificationPreferenceMutationVariables = Types.Exact<{
|
|
181
|
+
input: Types.CreateNotificationPreferenceInput;
|
|
182
|
+
}>;
|
|
183
|
+
export type CreateNotificationPreferenceMutation = {
|
|
184
|
+
__typename?: 'Mutation';
|
|
185
|
+
createNotificationPreference: {
|
|
186
|
+
__typename?: 'NotificationPreference';
|
|
187
|
+
id: string;
|
|
188
|
+
userId: string;
|
|
189
|
+
preferenceKey: string;
|
|
190
|
+
scope: Types.NotificationPreferenceScope;
|
|
191
|
+
channel?: Types.NotificationChannel | null;
|
|
192
|
+
type?: Types.NotificationType | null;
|
|
193
|
+
topicId?: string | null;
|
|
194
|
+
enabled: boolean;
|
|
195
|
+
frequency: Types.NotificationPreferenceFrequency;
|
|
196
|
+
quietHoursStart?: string | null;
|
|
197
|
+
quietHoursEnd?: string | null;
|
|
198
|
+
timezone?: string | null;
|
|
199
|
+
metadata?: Record<string, unknown> | null;
|
|
200
|
+
createdAt: string;
|
|
201
|
+
updatedAt: string;
|
|
202
|
+
topic?: {
|
|
203
|
+
__typename?: 'NotificationTopic';
|
|
204
|
+
id: string;
|
|
205
|
+
name: string;
|
|
206
|
+
slug: string;
|
|
207
|
+
type: Types.NotificationType;
|
|
208
|
+
description?: string | null;
|
|
209
|
+
} | null;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
35
212
|
export type CreateNotificationTemplateMutationVariables = Types.Exact<{
|
|
36
213
|
input: Types.CreateTemplateInput;
|
|
37
214
|
}>;
|
|
@@ -81,6 +258,13 @@ export type DeleteNotificationMutation = {
|
|
|
81
258
|
__typename?: 'Mutation';
|
|
82
259
|
deleteNotification: boolean;
|
|
83
260
|
};
|
|
261
|
+
export type DeleteNotificationPreferenceMutationVariables = Types.Exact<{
|
|
262
|
+
id: Types.Scalars['ID']['input'];
|
|
263
|
+
}>;
|
|
264
|
+
export type DeleteNotificationPreferenceMutation = {
|
|
265
|
+
__typename?: 'Mutation';
|
|
266
|
+
deleteNotificationPreference: boolean;
|
|
267
|
+
};
|
|
84
268
|
export type DeleteNotificationTemplateMutationVariables = Types.Exact<{
|
|
85
269
|
id: Types.Scalars['ID']['input'];
|
|
86
270
|
}>;
|
|
@@ -242,6 +426,39 @@ export type UnarchiveNotificationMutation = {
|
|
|
242
426
|
status: Types.NotificationStatus;
|
|
243
427
|
};
|
|
244
428
|
};
|
|
429
|
+
export type UpdateNotificationPreferenceMutationVariables = Types.Exact<{
|
|
430
|
+
id: Types.Scalars['ID']['input'];
|
|
431
|
+
input: Types.UpdateNotificationPreferenceInput;
|
|
432
|
+
}>;
|
|
433
|
+
export type UpdateNotificationPreferenceMutation = {
|
|
434
|
+
__typename?: 'Mutation';
|
|
435
|
+
updateNotificationPreference: {
|
|
436
|
+
__typename?: 'NotificationPreference';
|
|
437
|
+
id: string;
|
|
438
|
+
userId: string;
|
|
439
|
+
preferenceKey: string;
|
|
440
|
+
scope: Types.NotificationPreferenceScope;
|
|
441
|
+
channel?: Types.NotificationChannel | null;
|
|
442
|
+
type?: Types.NotificationType | null;
|
|
443
|
+
topicId?: string | null;
|
|
444
|
+
enabled: boolean;
|
|
445
|
+
frequency: Types.NotificationPreferenceFrequency;
|
|
446
|
+
quietHoursStart?: string | null;
|
|
447
|
+
quietHoursEnd?: string | null;
|
|
448
|
+
timezone?: string | null;
|
|
449
|
+
metadata?: Record<string, unknown> | null;
|
|
450
|
+
createdAt: string;
|
|
451
|
+
updatedAt: string;
|
|
452
|
+
topic?: {
|
|
453
|
+
__typename?: 'NotificationTopic';
|
|
454
|
+
id: string;
|
|
455
|
+
name: string;
|
|
456
|
+
slug: string;
|
|
457
|
+
type: Types.NotificationType;
|
|
458
|
+
description?: string | null;
|
|
459
|
+
} | null;
|
|
460
|
+
};
|
|
461
|
+
};
|
|
245
462
|
export type UpdateNotificationTemplateMutationVariables = Types.Exact<{
|
|
246
463
|
id: Types.Scalars['ID']['input'];
|
|
247
464
|
input: Types.UpdateTemplateInput;
|
|
@@ -334,6 +551,14 @@ export type GetNotificationQuery = {
|
|
|
334
551
|
errorMessage?: string | null;
|
|
335
552
|
userId: string;
|
|
336
553
|
topicId?: string | null;
|
|
554
|
+
events: Array<{
|
|
555
|
+
__typename?: 'NotificationEvent';
|
|
556
|
+
id: string;
|
|
557
|
+
eventType: Types.NotificationEventType;
|
|
558
|
+
deliveryStatus?: Types.NotificationDeliveryStatus | null;
|
|
559
|
+
timestamp: string;
|
|
560
|
+
details?: Record<string, unknown> | null;
|
|
561
|
+
}>;
|
|
337
562
|
topic?: {
|
|
338
563
|
__typename?: 'NotificationTopic';
|
|
339
564
|
id: string;
|
|
@@ -368,14 +593,6 @@ export type GetNotificationQuery = {
|
|
|
368
593
|
retryCount: number;
|
|
369
594
|
errorMessage?: string | null;
|
|
370
595
|
} | null;
|
|
371
|
-
events: Array<{
|
|
372
|
-
__typename?: 'NotificationEvent';
|
|
373
|
-
id: string;
|
|
374
|
-
eventType: Types.NotificationEventType;
|
|
375
|
-
deliveryStatus?: Types.NotificationDeliveryStatus | null;
|
|
376
|
-
timestamp: string;
|
|
377
|
-
details?: Record<string, unknown> | null;
|
|
378
|
-
}>;
|
|
379
596
|
} | null;
|
|
380
597
|
};
|
|
381
598
|
export type GetNotificationEventsQueryVariables = Types.Exact<{
|
|
@@ -396,6 +613,72 @@ export type GetNotificationEventsQuery = {
|
|
|
396
613
|
metadata?: Record<string, unknown> | null;
|
|
397
614
|
}>;
|
|
398
615
|
};
|
|
616
|
+
export type GetNotificationHistoriesQueryVariables = Types.Exact<{
|
|
617
|
+
filter?: Types.InputMaybe<Types.NotificationHistoryFilterInput>;
|
|
618
|
+
limit?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
619
|
+
offset?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
620
|
+
}>;
|
|
621
|
+
export type GetNotificationHistoriesQuery = {
|
|
622
|
+
__typename?: 'Query';
|
|
623
|
+
notificationHistories: {
|
|
624
|
+
__typename?: 'NotificationHistoryList';
|
|
625
|
+
total: number;
|
|
626
|
+
hasMore: boolean;
|
|
627
|
+
items: Array<{
|
|
628
|
+
__typename?: 'NotificationHistory';
|
|
629
|
+
id: string;
|
|
630
|
+
notificationId: string;
|
|
631
|
+
eventType: Types.NotificationEventType;
|
|
632
|
+
deliveryStatus?: Types.NotificationDeliveryStatus | null;
|
|
633
|
+
channelServiceEventId?: string | null;
|
|
634
|
+
externalId?: string | null;
|
|
635
|
+
timestamp: string;
|
|
636
|
+
details?: Record<string, unknown> | null;
|
|
637
|
+
metadata?: Record<string, unknown> | null;
|
|
638
|
+
createdAt: string;
|
|
639
|
+
updatedAt: string;
|
|
640
|
+
}>;
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
export type GetNotificationPreferencesQueryVariables = Types.Exact<{
|
|
644
|
+
filter?: Types.InputMaybe<Types.NotificationPreferenceFilterInput>;
|
|
645
|
+
limit?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
646
|
+
offset?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
647
|
+
}>;
|
|
648
|
+
export type GetNotificationPreferencesQuery = {
|
|
649
|
+
__typename?: 'Query';
|
|
650
|
+
notificationPreferences: {
|
|
651
|
+
__typename?: 'NotificationPreferenceList';
|
|
652
|
+
total: number;
|
|
653
|
+
hasMore: boolean;
|
|
654
|
+
items: Array<{
|
|
655
|
+
__typename?: 'NotificationPreference';
|
|
656
|
+
id: string;
|
|
657
|
+
userId: string;
|
|
658
|
+
preferenceKey: string;
|
|
659
|
+
scope: Types.NotificationPreferenceScope;
|
|
660
|
+
channel?: Types.NotificationChannel | null;
|
|
661
|
+
type?: Types.NotificationType | null;
|
|
662
|
+
topicId?: string | null;
|
|
663
|
+
enabled: boolean;
|
|
664
|
+
frequency: Types.NotificationPreferenceFrequency;
|
|
665
|
+
quietHoursStart?: string | null;
|
|
666
|
+
quietHoursEnd?: string | null;
|
|
667
|
+
timezone?: string | null;
|
|
668
|
+
metadata?: Record<string, unknown> | null;
|
|
669
|
+
createdAt: string;
|
|
670
|
+
updatedAt: string;
|
|
671
|
+
topic?: {
|
|
672
|
+
__typename?: 'NotificationTopic';
|
|
673
|
+
id: string;
|
|
674
|
+
name: string;
|
|
675
|
+
slug: string;
|
|
676
|
+
type: Types.NotificationType;
|
|
677
|
+
description?: string | null;
|
|
678
|
+
} | null;
|
|
679
|
+
}>;
|
|
680
|
+
};
|
|
681
|
+
};
|
|
399
682
|
export type GetNotificationStatsQueryVariables = Types.Exact<{
|
|
400
683
|
filter?: Types.InputMaybe<Types.NotificationFilterInput>;
|
|
401
684
|
}>;
|
|
@@ -646,6 +929,97 @@ export type SearchUsersQuery = {
|
|
|
646
929
|
}>;
|
|
647
930
|
};
|
|
648
931
|
};
|
|
932
|
+
export type NotificationReceivedSubscriptionVariables = Types.Exact<{
|
|
933
|
+
userId: Types.Scalars['ID']['input'];
|
|
934
|
+
}>;
|
|
935
|
+
export type NotificationReceivedSubscription = {
|
|
936
|
+
__typename?: 'Subscription';
|
|
937
|
+
notificationReceived?: {
|
|
938
|
+
__typename?: 'Notification';
|
|
939
|
+
id: string;
|
|
940
|
+
type: Types.NotificationType;
|
|
941
|
+
priority: Types.NotificationPriority;
|
|
942
|
+
title: string;
|
|
943
|
+
message: string;
|
|
944
|
+
channel: Types.NotificationChannel;
|
|
945
|
+
status: Types.NotificationStatus;
|
|
946
|
+
deliveryStatus?: Types.NotificationDeliveryStatus | null;
|
|
947
|
+
isRead: boolean;
|
|
948
|
+
readAt?: string | null;
|
|
949
|
+
archivedAt?: string | null;
|
|
950
|
+
openedAt?: string | null;
|
|
951
|
+
clickedAt?: string | null;
|
|
952
|
+
deliveredAt?: string | null;
|
|
953
|
+
failedAt?: string | null;
|
|
954
|
+
sentAt?: string | null;
|
|
955
|
+
createdAt: string;
|
|
956
|
+
updatedAt: string;
|
|
957
|
+
redirectUrl?: string | null;
|
|
958
|
+
subject?: string | null;
|
|
959
|
+
htmlMessage?: string | null;
|
|
960
|
+
data?: Record<string, unknown> | null;
|
|
961
|
+
metadata?: Record<string, unknown> | null;
|
|
962
|
+
expiresAt?: string | null;
|
|
963
|
+
scheduledFor?: string | null;
|
|
964
|
+
templateId?: string | null;
|
|
965
|
+
templateVersion?: number | null;
|
|
966
|
+
appName?: string | null;
|
|
967
|
+
recipientEmail?: string | null;
|
|
968
|
+
recipientPhone?: string | null;
|
|
969
|
+
errorCode?: string | null;
|
|
970
|
+
errorMessage?: string | null;
|
|
971
|
+
userId: string;
|
|
972
|
+
topicId?: string | null;
|
|
973
|
+
topic?: {
|
|
974
|
+
__typename?: 'NotificationTopic';
|
|
975
|
+
id: string;
|
|
976
|
+
name: string;
|
|
977
|
+
slug: string;
|
|
978
|
+
type: Types.NotificationType;
|
|
979
|
+
description?: string | null;
|
|
980
|
+
} | null;
|
|
981
|
+
actions: Array<{
|
|
982
|
+
__typename?: 'NotificationAction';
|
|
983
|
+
id: string;
|
|
984
|
+
label: string;
|
|
985
|
+
url: string;
|
|
986
|
+
style?: string | null;
|
|
987
|
+
actionType?: string | null;
|
|
988
|
+
metadata?: Record<string, unknown> | null;
|
|
989
|
+
}>;
|
|
990
|
+
media: Array<{
|
|
991
|
+
__typename?: 'NotificationMedia';
|
|
992
|
+
url: string;
|
|
993
|
+
label?: string | null;
|
|
994
|
+
kind?: string | null;
|
|
995
|
+
contentType?: string | null;
|
|
996
|
+
thumbnailUrl?: string | null;
|
|
997
|
+
}>;
|
|
998
|
+
scheduledNotification?: {
|
|
999
|
+
__typename?: 'ScheduledNotification';
|
|
1000
|
+
id: string;
|
|
1001
|
+
scheduledFor: string;
|
|
1002
|
+
status: Types.ScheduledNotificationStatus;
|
|
1003
|
+
timezone?: string | null;
|
|
1004
|
+
retryCount: number;
|
|
1005
|
+
errorMessage?: string | null;
|
|
1006
|
+
} | null;
|
|
1007
|
+
} | null;
|
|
1008
|
+
};
|
|
1009
|
+
export type UnreadCountUpdatedSubscriptionVariables = Types.Exact<{
|
|
1010
|
+
userId: Types.Scalars['ID']['input'];
|
|
1011
|
+
}>;
|
|
1012
|
+
export type UnreadCountUpdatedSubscription = {
|
|
1013
|
+
__typename?: 'Subscription';
|
|
1014
|
+
unreadCountUpdated?: number | null;
|
|
1015
|
+
};
|
|
1016
|
+
export declare const NotificationTopicSummaryFieldsFragmentDoc: Apollo.DocumentNode;
|
|
1017
|
+
export declare const NotificationActionFieldsFragmentDoc: Apollo.DocumentNode;
|
|
1018
|
+
export declare const NotificationMediaFieldsFragmentDoc: Apollo.DocumentNode;
|
|
1019
|
+
export declare const ScheduledNotificationSummaryFieldsFragmentDoc: Apollo.DocumentNode;
|
|
1020
|
+
export declare const NotificationFieldsFragmentDoc: Apollo.DocumentNode;
|
|
1021
|
+
export declare const NotificationHistoryFieldsFragmentDoc: Apollo.DocumentNode;
|
|
1022
|
+
export declare const NotificationPreferenceFieldsFragmentDoc: Apollo.DocumentNode;
|
|
649
1023
|
export declare const ArchiveNotificationDocument: Apollo.DocumentNode;
|
|
650
1024
|
export type ArchiveNotificationMutationFn = Apollo.MutationFunction<Types.ArchiveNotificationMutation, Types.ArchiveNotificationMutationVariables>;
|
|
651
1025
|
/**
|
|
@@ -715,6 +1089,29 @@ export declare function useCancelScheduledNotificationMutation(baseOptions?: Apo
|
|
|
715
1089
|
export type CancelScheduledNotificationMutationHookResult = ReturnType<typeof useCancelScheduledNotificationMutation>;
|
|
716
1090
|
export type CancelScheduledNotificationMutationResult = Apollo.MutationResult<Types.CancelScheduledNotificationMutation>;
|
|
717
1091
|
export type CancelScheduledNotificationMutationOptions = Apollo.BaseMutationOptions<Types.CancelScheduledNotificationMutation, Types.CancelScheduledNotificationMutationVariables>;
|
|
1092
|
+
export declare const CreateNotificationPreferenceDocument: Apollo.DocumentNode;
|
|
1093
|
+
export type CreateNotificationPreferenceMutationFn = Apollo.MutationFunction<Types.CreateNotificationPreferenceMutation, Types.CreateNotificationPreferenceMutationVariables>;
|
|
1094
|
+
/**
|
|
1095
|
+
* __useCreateNotificationPreferenceMutation__
|
|
1096
|
+
*
|
|
1097
|
+
* To run a mutation, you first call `useCreateNotificationPreferenceMutation` within a React component and pass it any options that fit your needs.
|
|
1098
|
+
* When your component renders, `useCreateNotificationPreferenceMutation` returns a tuple that includes:
|
|
1099
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1100
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1101
|
+
*
|
|
1102
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
1103
|
+
*
|
|
1104
|
+
* @example
|
|
1105
|
+
* const [createNotificationPreferenceMutation, { data, loading, error }] = useCreateNotificationPreferenceMutation({
|
|
1106
|
+
* variables: {
|
|
1107
|
+
* input: // value for 'input'
|
|
1108
|
+
* },
|
|
1109
|
+
* });
|
|
1110
|
+
*/
|
|
1111
|
+
export declare function useCreateNotificationPreferenceMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CreateNotificationPreferenceMutation, Types.CreateNotificationPreferenceMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.CreateNotificationPreferenceMutation, any, Apollo.ApolloCache>;
|
|
1112
|
+
export type CreateNotificationPreferenceMutationHookResult = ReturnType<typeof useCreateNotificationPreferenceMutation>;
|
|
1113
|
+
export type CreateNotificationPreferenceMutationResult = Apollo.MutationResult<Types.CreateNotificationPreferenceMutation>;
|
|
1114
|
+
export type CreateNotificationPreferenceMutationOptions = Apollo.BaseMutationOptions<Types.CreateNotificationPreferenceMutation, Types.CreateNotificationPreferenceMutationVariables>;
|
|
718
1115
|
export declare const CreateNotificationTemplateDocument: Apollo.DocumentNode;
|
|
719
1116
|
export type CreateNotificationTemplateMutationFn = Apollo.MutationFunction<Types.CreateNotificationTemplateMutation, Types.CreateNotificationTemplateMutationVariables>;
|
|
720
1117
|
/**
|
|
@@ -784,6 +1181,29 @@ export declare function useDeleteNotificationMutation(baseOptions?: ApolloReactH
|
|
|
784
1181
|
export type DeleteNotificationMutationHookResult = ReturnType<typeof useDeleteNotificationMutation>;
|
|
785
1182
|
export type DeleteNotificationMutationResult = Apollo.MutationResult<Types.DeleteNotificationMutation>;
|
|
786
1183
|
export type DeleteNotificationMutationOptions = Apollo.BaseMutationOptions<Types.DeleteNotificationMutation, Types.DeleteNotificationMutationVariables>;
|
|
1184
|
+
export declare const DeleteNotificationPreferenceDocument: Apollo.DocumentNode;
|
|
1185
|
+
export type DeleteNotificationPreferenceMutationFn = Apollo.MutationFunction<Types.DeleteNotificationPreferenceMutation, Types.DeleteNotificationPreferenceMutationVariables>;
|
|
1186
|
+
/**
|
|
1187
|
+
* __useDeleteNotificationPreferenceMutation__
|
|
1188
|
+
*
|
|
1189
|
+
* To run a mutation, you first call `useDeleteNotificationPreferenceMutation` within a React component and pass it any options that fit your needs.
|
|
1190
|
+
* When your component renders, `useDeleteNotificationPreferenceMutation` returns a tuple that includes:
|
|
1191
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1192
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1193
|
+
*
|
|
1194
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
1195
|
+
*
|
|
1196
|
+
* @example
|
|
1197
|
+
* const [deleteNotificationPreferenceMutation, { data, loading, error }] = useDeleteNotificationPreferenceMutation({
|
|
1198
|
+
* variables: {
|
|
1199
|
+
* id: // value for 'id'
|
|
1200
|
+
* },
|
|
1201
|
+
* });
|
|
1202
|
+
*/
|
|
1203
|
+
export declare function useDeleteNotificationPreferenceMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.DeleteNotificationPreferenceMutation, Types.DeleteNotificationPreferenceMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.DeleteNotificationPreferenceMutation, any, Apollo.ApolloCache>;
|
|
1204
|
+
export type DeleteNotificationPreferenceMutationHookResult = ReturnType<typeof useDeleteNotificationPreferenceMutation>;
|
|
1205
|
+
export type DeleteNotificationPreferenceMutationResult = Apollo.MutationResult<Types.DeleteNotificationPreferenceMutation>;
|
|
1206
|
+
export type DeleteNotificationPreferenceMutationOptions = Apollo.BaseMutationOptions<Types.DeleteNotificationPreferenceMutation, Types.DeleteNotificationPreferenceMutationVariables>;
|
|
787
1207
|
export declare const DeleteNotificationTemplateDocument: Apollo.DocumentNode;
|
|
788
1208
|
export type DeleteNotificationTemplateMutationFn = Apollo.MutationFunction<Types.DeleteNotificationTemplateMutation, Types.DeleteNotificationTemplateMutationVariables>;
|
|
789
1209
|
/**
|
|
@@ -1082,6 +1502,30 @@ export declare function useUnarchiveNotificationMutation(baseOptions?: ApolloRea
|
|
|
1082
1502
|
export type UnarchiveNotificationMutationHookResult = ReturnType<typeof useUnarchiveNotificationMutation>;
|
|
1083
1503
|
export type UnarchiveNotificationMutationResult = Apollo.MutationResult<Types.UnarchiveNotificationMutation>;
|
|
1084
1504
|
export type UnarchiveNotificationMutationOptions = Apollo.BaseMutationOptions<Types.UnarchiveNotificationMutation, Types.UnarchiveNotificationMutationVariables>;
|
|
1505
|
+
export declare const UpdateNotificationPreferenceDocument: Apollo.DocumentNode;
|
|
1506
|
+
export type UpdateNotificationPreferenceMutationFn = Apollo.MutationFunction<Types.UpdateNotificationPreferenceMutation, Types.UpdateNotificationPreferenceMutationVariables>;
|
|
1507
|
+
/**
|
|
1508
|
+
* __useUpdateNotificationPreferenceMutation__
|
|
1509
|
+
*
|
|
1510
|
+
* To run a mutation, you first call `useUpdateNotificationPreferenceMutation` within a React component and pass it any options that fit your needs.
|
|
1511
|
+
* When your component renders, `useUpdateNotificationPreferenceMutation` returns a tuple that includes:
|
|
1512
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1513
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1514
|
+
*
|
|
1515
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
1516
|
+
*
|
|
1517
|
+
* @example
|
|
1518
|
+
* const [updateNotificationPreferenceMutation, { data, loading, error }] = useUpdateNotificationPreferenceMutation({
|
|
1519
|
+
* variables: {
|
|
1520
|
+
* id: // value for 'id'
|
|
1521
|
+
* input: // value for 'input'
|
|
1522
|
+
* },
|
|
1523
|
+
* });
|
|
1524
|
+
*/
|
|
1525
|
+
export declare function useUpdateNotificationPreferenceMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateNotificationPreferenceMutation, Types.UpdateNotificationPreferenceMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.UpdateNotificationPreferenceMutation, any, Apollo.ApolloCache>;
|
|
1526
|
+
export type UpdateNotificationPreferenceMutationHookResult = ReturnType<typeof useUpdateNotificationPreferenceMutation>;
|
|
1527
|
+
export type UpdateNotificationPreferenceMutationResult = Apollo.MutationResult<Types.UpdateNotificationPreferenceMutation>;
|
|
1528
|
+
export type UpdateNotificationPreferenceMutationOptions = Apollo.BaseMutationOptions<Types.UpdateNotificationPreferenceMutation, Types.UpdateNotificationPreferenceMutationVariables>;
|
|
1085
1529
|
export declare const UpdateNotificationTemplateDocument: Apollo.DocumentNode;
|
|
1086
1530
|
export type UpdateNotificationTemplateMutationFn = Apollo.MutationFunction<Types.UpdateNotificationTemplateMutation, Types.UpdateNotificationTemplateMutationVariables>;
|
|
1087
1531
|
/**
|
|
@@ -1215,6 +1659,60 @@ export type GetNotificationEventsQueryHookResult = ReturnType<typeof useGetNotif
|
|
|
1215
1659
|
export type GetNotificationEventsLazyQueryHookResult = ReturnType<typeof useGetNotificationEventsLazyQuery>;
|
|
1216
1660
|
export type GetNotificationEventsSuspenseQueryHookResult = ReturnType<typeof useGetNotificationEventsSuspenseQuery>;
|
|
1217
1661
|
export type GetNotificationEventsQueryResult = Apollo.QueryResult<Types.GetNotificationEventsQuery, Types.GetNotificationEventsQueryVariables>;
|
|
1662
|
+
export declare const GetNotificationHistoriesDocument: Apollo.DocumentNode;
|
|
1663
|
+
/**
|
|
1664
|
+
* __useGetNotificationHistoriesQuery__
|
|
1665
|
+
*
|
|
1666
|
+
* To run a query within a React component, call `useGetNotificationHistoriesQuery` and pass it any options that fit your needs.
|
|
1667
|
+
* When your component renders, `useGetNotificationHistoriesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1668
|
+
* you can use to render your UI.
|
|
1669
|
+
*
|
|
1670
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1671
|
+
*
|
|
1672
|
+
* @example
|
|
1673
|
+
* const { data, loading, error } = useGetNotificationHistoriesQuery({
|
|
1674
|
+
* variables: {
|
|
1675
|
+
* filter: // value for 'filter'
|
|
1676
|
+
* limit: // value for 'limit'
|
|
1677
|
+
* offset: // value for 'offset'
|
|
1678
|
+
* },
|
|
1679
|
+
* });
|
|
1680
|
+
*/
|
|
1681
|
+
export declare function useGetNotificationHistoriesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.GetNotificationHistoriesQuery, Types.GetNotificationHistoriesQueryVariables>): ApolloReactHooks.useQuery.Result<Types.GetNotificationHistoriesQuery, Types.GetNotificationHistoriesQueryVariables, "empty" | "complete" | "streaming", Types.GetNotificationHistoriesQueryVariables>;
|
|
1682
|
+
export declare function useGetNotificationHistoriesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetNotificationHistoriesQuery, Types.GetNotificationHistoriesQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetNotificationHistoriesQuery, Types.GetNotificationHistoriesQueryVariables, "empty" | "complete" | "streaming">;
|
|
1683
|
+
export declare function useGetNotificationHistoriesSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetNotificationHistoriesQuery, Types.GetNotificationHistoriesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetNotificationHistoriesQuery, Types.GetNotificationHistoriesQueryVariables>;
|
|
1684
|
+
export declare function useGetNotificationHistoriesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetNotificationHistoriesQuery, Types.GetNotificationHistoriesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetNotificationHistoriesQuery | undefined, Types.GetNotificationHistoriesQueryVariables>;
|
|
1685
|
+
export type GetNotificationHistoriesQueryHookResult = ReturnType<typeof useGetNotificationHistoriesQuery>;
|
|
1686
|
+
export type GetNotificationHistoriesLazyQueryHookResult = ReturnType<typeof useGetNotificationHistoriesLazyQuery>;
|
|
1687
|
+
export type GetNotificationHistoriesSuspenseQueryHookResult = ReturnType<typeof useGetNotificationHistoriesSuspenseQuery>;
|
|
1688
|
+
export type GetNotificationHistoriesQueryResult = Apollo.QueryResult<Types.GetNotificationHistoriesQuery, Types.GetNotificationHistoriesQueryVariables>;
|
|
1689
|
+
export declare const GetNotificationPreferencesDocument: Apollo.DocumentNode;
|
|
1690
|
+
/**
|
|
1691
|
+
* __useGetNotificationPreferencesQuery__
|
|
1692
|
+
*
|
|
1693
|
+
* To run a query within a React component, call `useGetNotificationPreferencesQuery` and pass it any options that fit your needs.
|
|
1694
|
+
* When your component renders, `useGetNotificationPreferencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1695
|
+
* you can use to render your UI.
|
|
1696
|
+
*
|
|
1697
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1698
|
+
*
|
|
1699
|
+
* @example
|
|
1700
|
+
* const { data, loading, error } = useGetNotificationPreferencesQuery({
|
|
1701
|
+
* variables: {
|
|
1702
|
+
* filter: // value for 'filter'
|
|
1703
|
+
* limit: // value for 'limit'
|
|
1704
|
+
* offset: // value for 'offset'
|
|
1705
|
+
* },
|
|
1706
|
+
* });
|
|
1707
|
+
*/
|
|
1708
|
+
export declare function useGetNotificationPreferencesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.GetNotificationPreferencesQuery, Types.GetNotificationPreferencesQueryVariables>): ApolloReactHooks.useQuery.Result<Types.GetNotificationPreferencesQuery, Types.GetNotificationPreferencesQueryVariables, "empty" | "complete" | "streaming", Types.GetNotificationPreferencesQueryVariables>;
|
|
1709
|
+
export declare function useGetNotificationPreferencesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetNotificationPreferencesQuery, Types.GetNotificationPreferencesQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetNotificationPreferencesQuery, Types.GetNotificationPreferencesQueryVariables, "empty" | "complete" | "streaming">;
|
|
1710
|
+
export declare function useGetNotificationPreferencesSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetNotificationPreferencesQuery, Types.GetNotificationPreferencesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetNotificationPreferencesQuery, Types.GetNotificationPreferencesQueryVariables>;
|
|
1711
|
+
export declare function useGetNotificationPreferencesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetNotificationPreferencesQuery, Types.GetNotificationPreferencesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetNotificationPreferencesQuery | undefined, Types.GetNotificationPreferencesQueryVariables>;
|
|
1712
|
+
export type GetNotificationPreferencesQueryHookResult = ReturnType<typeof useGetNotificationPreferencesQuery>;
|
|
1713
|
+
export type GetNotificationPreferencesLazyQueryHookResult = ReturnType<typeof useGetNotificationPreferencesLazyQuery>;
|
|
1714
|
+
export type GetNotificationPreferencesSuspenseQueryHookResult = ReturnType<typeof useGetNotificationPreferencesSuspenseQuery>;
|
|
1715
|
+
export type GetNotificationPreferencesQueryResult = Apollo.QueryResult<Types.GetNotificationPreferencesQuery, Types.GetNotificationPreferencesQueryVariables>;
|
|
1218
1716
|
export declare const GetNotificationStatsDocument: Apollo.DocumentNode;
|
|
1219
1717
|
/**
|
|
1220
1718
|
* __useGetNotificationStatsQuery__
|
|
@@ -1405,4 +1903,54 @@ export type SearchUsersQueryHookResult = ReturnType<typeof useSearchUsersQuery>;
|
|
|
1405
1903
|
export type SearchUsersLazyQueryHookResult = ReturnType<typeof useSearchUsersLazyQuery>;
|
|
1406
1904
|
export type SearchUsersSuspenseQueryHookResult = ReturnType<typeof useSearchUsersSuspenseQuery>;
|
|
1407
1905
|
export type SearchUsersQueryResult = Apollo.QueryResult<Types.SearchUsersQuery, Types.SearchUsersQueryVariables>;
|
|
1906
|
+
export declare const NotificationReceivedDocument: Apollo.DocumentNode;
|
|
1907
|
+
/**
|
|
1908
|
+
* __useNotificationReceivedSubscription__
|
|
1909
|
+
*
|
|
1910
|
+
* To run a query within a React component, call `useNotificationReceivedSubscription` and pass it any options that fit your needs.
|
|
1911
|
+
* When your component renders, `useNotificationReceivedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1912
|
+
* you can use to render your UI.
|
|
1913
|
+
*
|
|
1914
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1915
|
+
*
|
|
1916
|
+
* @example
|
|
1917
|
+
* const { data, loading, error } = useNotificationReceivedSubscription({
|
|
1918
|
+
* variables: {
|
|
1919
|
+
* userId: // value for 'userId'
|
|
1920
|
+
* },
|
|
1921
|
+
* });
|
|
1922
|
+
*/
|
|
1923
|
+
export declare function useNotificationReceivedSubscription(baseOptions: ApolloReactHooks.SubscriptionHookOptions<Types.NotificationReceivedSubscription, Types.NotificationReceivedSubscriptionVariables> & ({
|
|
1924
|
+
variables: Types.NotificationReceivedSubscriptionVariables;
|
|
1925
|
+
skip?: boolean;
|
|
1926
|
+
} | {
|
|
1927
|
+
skip: boolean;
|
|
1928
|
+
})): ApolloReactHooks.useSubscription.Result<Types.NotificationReceivedSubscription>;
|
|
1929
|
+
export type NotificationReceivedSubscriptionHookResult = ReturnType<typeof useNotificationReceivedSubscription>;
|
|
1930
|
+
export type NotificationReceivedSubscriptionResult = Apollo.SubscriptionResult<Types.NotificationReceivedSubscription>;
|
|
1931
|
+
export declare const UnreadCountUpdatedDocument: Apollo.DocumentNode;
|
|
1932
|
+
/**
|
|
1933
|
+
* __useUnreadCountUpdatedSubscription__
|
|
1934
|
+
*
|
|
1935
|
+
* To run a query within a React component, call `useUnreadCountUpdatedSubscription` and pass it any options that fit your needs.
|
|
1936
|
+
* When your component renders, `useUnreadCountUpdatedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1937
|
+
* you can use to render your UI.
|
|
1938
|
+
*
|
|
1939
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1940
|
+
*
|
|
1941
|
+
* @example
|
|
1942
|
+
* const { data, loading, error } = useUnreadCountUpdatedSubscription({
|
|
1943
|
+
* variables: {
|
|
1944
|
+
* userId: // value for 'userId'
|
|
1945
|
+
* },
|
|
1946
|
+
* });
|
|
1947
|
+
*/
|
|
1948
|
+
export declare function useUnreadCountUpdatedSubscription(baseOptions: ApolloReactHooks.SubscriptionHookOptions<Types.UnreadCountUpdatedSubscription, Types.UnreadCountUpdatedSubscriptionVariables> & ({
|
|
1949
|
+
variables: Types.UnreadCountUpdatedSubscriptionVariables;
|
|
1950
|
+
skip?: boolean;
|
|
1951
|
+
} | {
|
|
1952
|
+
skip: boolean;
|
|
1953
|
+
})): ApolloReactHooks.useSubscription.Result<Types.UnreadCountUpdatedSubscription>;
|
|
1954
|
+
export type UnreadCountUpdatedSubscriptionHookResult = ReturnType<typeof useUnreadCountUpdatedSubscription>;
|
|
1955
|
+
export type UnreadCountUpdatedSubscriptionResult = Apollo.SubscriptionResult<Types.UnreadCountUpdatedSubscription>;
|
|
1408
1956
|
//# sourceMappingURL=global-operations.d.ts.map
|