@voyantjs/notifications-react 0.6.8
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/client.d.ts +14 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +71 -0
- package/dist/hooks/index.d.ts +12 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +12 -0
- package/dist/hooks/use-notification-deliveries.d.ts +39 -0
- package/dist/hooks/use-notification-deliveries.d.ts.map +1 -0
- package/dist/hooks/use-notification-deliveries.js +12 -0
- package/dist/hooks/use-notification-delivery.d.ts +32 -0
- package/dist/hooks/use-notification-delivery.d.ts.map +1 -0
- package/dist/hooks/use-notification-delivery.js +12 -0
- package/dist/hooks/use-notification-reminder-rule-mutation.d.ts +54 -0
- package/dist/hooks/use-notification-reminder-rule-mutation.d.ts.map +1 -0
- package/dist/hooks/use-notification-reminder-rule-mutation.js +31 -0
- package/dist/hooks/use-notification-reminder-rule.d.ts +20 -0
- package/dist/hooks/use-notification-reminder-rule.d.ts.map +1 -0
- package/dist/hooks/use-notification-reminder-rule.js +12 -0
- package/dist/hooks/use-notification-reminder-rules.d.ts +26 -0
- package/dist/hooks/use-notification-reminder-rules.d.ts.map +1 -0
- package/dist/hooks/use-notification-reminder-rules.js +12 -0
- package/dist/hooks/use-notification-reminder-runs.d.ts +57 -0
- package/dist/hooks/use-notification-reminder-runs.d.ts.map +1 -0
- package/dist/hooks/use-notification-reminder-runs.js +12 -0
- package/dist/hooks/use-notification-template-authoring.d.ts +5 -0
- package/dist/hooks/use-notification-template-authoring.d.ts.map +1 -0
- package/dist/hooks/use-notification-template-authoring.js +8 -0
- package/dist/hooks/use-notification-template-mutation.d.ts +54 -0
- package/dist/hooks/use-notification-template-mutation.d.ts.map +1 -0
- package/dist/hooks/use-notification-template-mutation.js +31 -0
- package/dist/hooks/use-notification-template-tools.d.ts +80 -0
- package/dist/hooks/use-notification-template-tools.d.ts.map +1 -0
- package/dist/hooks/use-notification-template-tools.js +21 -0
- package/dist/hooks/use-notification-template.d.ts +20 -0
- package/dist/hooks/use-notification-template.d.ts.map +1 -0
- package/dist/hooks/use-notification-template.js +12 -0
- package/dist/hooks/use-notification-templates.d.ts +26 -0
- package/dist/hooks/use-notification-templates.d.ts.map +1 -0
- package/dist/hooks/use-notification-templates.js +12 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/provider.d.ts +2 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +1 -0
- package/dist/query-keys.d.ts +63 -0
- package/dist/query-keys.d.ts.map +1 -0
- package/dist/query-keys.js +15 -0
- package/dist/query-options.d.ts +979 -0
- package/dist/query-options.d.ts.map +1 -0
- package/dist/query-options.js +79 -0
- package/dist/schemas.d.ts +515 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +89 -0
- package/package.json +79 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { previewNotificationTemplateSchema, sendNotificationSchema } from "@voyantjs/notifications";
|
|
2
|
+
import type { z } from "zod";
|
|
3
|
+
export type PreviewNotificationTemplateInput = z.input<typeof previewNotificationTemplateSchema>;
|
|
4
|
+
export type SendNotificationInput = z.input<typeof sendNotificationSchema>;
|
|
5
|
+
export declare function useNotificationTemplateTools(): {
|
|
6
|
+
preview: import("@tanstack/react-query").UseMutationResult<{
|
|
7
|
+
channel: "email" | "sms";
|
|
8
|
+
provider: string | null;
|
|
9
|
+
fromAddress: string | null;
|
|
10
|
+
subject: string | null;
|
|
11
|
+
html: string | null;
|
|
12
|
+
text: string | null;
|
|
13
|
+
}, Error, {
|
|
14
|
+
channel: "email" | "sms";
|
|
15
|
+
provider?: string | null | undefined;
|
|
16
|
+
subjectTemplate?: string | null | undefined;
|
|
17
|
+
htmlTemplate?: string | null | undefined;
|
|
18
|
+
textTemplate?: string | null | undefined;
|
|
19
|
+
fromAddress?: string | null | undefined;
|
|
20
|
+
data?: Record<string, unknown> | null | undefined;
|
|
21
|
+
}, unknown>;
|
|
22
|
+
testSend: import("@tanstack/react-query").UseMutationResult<{
|
|
23
|
+
id: string;
|
|
24
|
+
templateId: string | null;
|
|
25
|
+
templateSlug: string | null;
|
|
26
|
+
targetType: "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
|
|
27
|
+
targetId: string | null;
|
|
28
|
+
personId: string | null;
|
|
29
|
+
organizationId: string | null;
|
|
30
|
+
bookingId: string | null;
|
|
31
|
+
invoiceId: string | null;
|
|
32
|
+
paymentSessionId: string | null;
|
|
33
|
+
channel: "email" | "sms";
|
|
34
|
+
provider: string;
|
|
35
|
+
providerMessageId: string | null;
|
|
36
|
+
status: "pending" | "sent" | "failed" | "cancelled";
|
|
37
|
+
toAddress: string;
|
|
38
|
+
fromAddress: string | null;
|
|
39
|
+
subject: string | null;
|
|
40
|
+
htmlBody: string | null;
|
|
41
|
+
textBody: string | null;
|
|
42
|
+
payloadData: Record<string, unknown> | null;
|
|
43
|
+
metadata: Record<string, unknown> | null;
|
|
44
|
+
errorMessage: string | null;
|
|
45
|
+
scheduledFor: string | null;
|
|
46
|
+
sentAt: string | null;
|
|
47
|
+
failedAt: string | null;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
updatedAt: string;
|
|
50
|
+
}, Error, {
|
|
51
|
+
to: string;
|
|
52
|
+
templateId?: string | null | undefined;
|
|
53
|
+
templateSlug?: string | null | undefined;
|
|
54
|
+
channel?: "email" | "sms" | undefined;
|
|
55
|
+
provider?: string | null | undefined;
|
|
56
|
+
from?: string | null | undefined;
|
|
57
|
+
subject?: string | null | undefined;
|
|
58
|
+
html?: string | null | undefined;
|
|
59
|
+
text?: string | null | undefined;
|
|
60
|
+
attachments?: {
|
|
61
|
+
filename: string;
|
|
62
|
+
contentBase64?: string | null | undefined;
|
|
63
|
+
path?: string | null | undefined;
|
|
64
|
+
contentType?: string | null | undefined;
|
|
65
|
+
disposition?: "attachment" | "inline" | null | undefined;
|
|
66
|
+
contentId?: string | null | undefined;
|
|
67
|
+
}[] | null | undefined;
|
|
68
|
+
data?: Record<string, unknown> | null | undefined;
|
|
69
|
+
targetType?: "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other" | undefined;
|
|
70
|
+
targetId?: string | null | undefined;
|
|
71
|
+
bookingId?: string | null | undefined;
|
|
72
|
+
invoiceId?: string | null | undefined;
|
|
73
|
+
paymentSessionId?: string | null | undefined;
|
|
74
|
+
personId?: string | null | undefined;
|
|
75
|
+
organizationId?: string | null | undefined;
|
|
76
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
77
|
+
scheduledFor?: string | null | undefined;
|
|
78
|
+
}, unknown>;
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=use-notification-template-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-notification-template-tools.d.ts","sourceRoot":"","sources":["../../src/hooks/use-notification-template-tools.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,iCAAiC,EACjC,sBAAsB,EACvB,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAS5B,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAChG,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE1E,wBAAgB,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B3C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMutation } from "@tanstack/react-query";
|
|
3
|
+
import { fetchWithValidation } from "../client.js";
|
|
4
|
+
import { useVoyantNotificationsContext } from "../provider.js";
|
|
5
|
+
import { notificationDeliverySingleResponse, notificationTemplatePreviewResponse, } from "../schemas.js";
|
|
6
|
+
export function useNotificationTemplateTools() {
|
|
7
|
+
const { baseUrl, fetcher } = useVoyantNotificationsContext();
|
|
8
|
+
const preview = useMutation({
|
|
9
|
+
mutationFn: async (input) => {
|
|
10
|
+
const { data } = await fetchWithValidation("/v1/admin/notifications/preview", notificationTemplatePreviewResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
11
|
+
return data;
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
const testSend = useMutation({
|
|
15
|
+
mutationFn: async (input) => {
|
|
16
|
+
const { data } = await fetchWithValidation("/v1/admin/notifications/send", notificationDeliverySingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
17
|
+
return data;
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
return { preview, testSend };
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface UseNotificationTemplateOptions {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare function useNotificationTemplate(id: string, options?: UseNotificationTemplateOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
5
|
+
id: string;
|
|
6
|
+
slug: string;
|
|
7
|
+
name: string;
|
|
8
|
+
channel: "email" | "sms";
|
|
9
|
+
provider: string | null;
|
|
10
|
+
status: "draft" | "active" | "archived";
|
|
11
|
+
subjectTemplate: string | null;
|
|
12
|
+
htmlTemplate: string | null;
|
|
13
|
+
textTemplate: string | null;
|
|
14
|
+
fromAddress: string | null;
|
|
15
|
+
isSystem: boolean;
|
|
16
|
+
metadata: Record<string, unknown> | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
}, Error>;
|
|
20
|
+
//# sourceMappingURL=use-notification-template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-notification-template.d.ts","sourceRoot":"","sources":["../../src/hooks/use-notification-template.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,8BAAmC;;;;;;;;;;;;;;;UAO/F"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantNotificationsContext } from "../provider.js";
|
|
4
|
+
import { getNotificationTemplateQueryOptions } from "../query-options.js";
|
|
5
|
+
export function useNotificationTemplate(id, options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantNotificationsContext();
|
|
7
|
+
const { enabled = true } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getNotificationTemplateQueryOptions({ baseUrl, fetcher }, id, options),
|
|
10
|
+
enabled: enabled && Boolean(id),
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { NotificationTemplatesListFilters } from "../query-keys.js";
|
|
2
|
+
export interface UseNotificationTemplatesOptions extends NotificationTemplatesListFilters {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function useNotificationTemplates(options?: UseNotificationTemplatesOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
6
|
+
data: {
|
|
7
|
+
id: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
name: string;
|
|
10
|
+
channel: "email" | "sms";
|
|
11
|
+
provider: string | null;
|
|
12
|
+
status: "draft" | "active" | "archived";
|
|
13
|
+
subjectTemplate: string | null;
|
|
14
|
+
htmlTemplate: string | null;
|
|
15
|
+
textTemplate: string | null;
|
|
16
|
+
fromAddress: string | null;
|
|
17
|
+
isSystem: boolean;
|
|
18
|
+
metadata: Record<string, unknown> | null;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
updatedAt: string;
|
|
21
|
+
}[];
|
|
22
|
+
total: number;
|
|
23
|
+
limit: number;
|
|
24
|
+
offset: number;
|
|
25
|
+
}, Error>;
|
|
26
|
+
//# sourceMappingURL=use-notification-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-notification-templates.d.ts","sourceRoot":"","sources":["../../src/hooks/use-notification-templates.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAA;AAGxE,MAAM,WAAW,+BAAgC,SAAQ,gCAAgC;IACvF,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,wBAAwB,CAAC,OAAO,GAAE,+BAAoC;;;;;;;;;;;;;;;;;;;;UAOrF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantNotificationsContext } from "../provider.js";
|
|
4
|
+
import { getNotificationTemplatesQueryOptions } from "../query-options.js";
|
|
5
|
+
export function useNotificationTemplates(options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantNotificationsContext();
|
|
7
|
+
const { enabled = true, ...filters } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getNotificationTemplatesQueryOptions({ baseUrl, fetcher }, filters),
|
|
10
|
+
enabled,
|
|
11
|
+
});
|
|
12
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { defaultFetcher, fetchWithValidation, VoyantApiError, type VoyantFetcher, } from "./client.js";
|
|
2
|
+
export * from "./hooks/index.js";
|
|
3
|
+
export { useVoyantNotificationsContext, type VoyantNotificationsContextValue, VoyantNotificationsProvider, type VoyantNotificationsProviderProps, } from "./provider.js";
|
|
4
|
+
export { notificationsQueryKeys } from "./query-keys.js";
|
|
5
|
+
export { getNotificationDeliveriesQueryOptions, getNotificationDeliveryQueryOptions, getNotificationReminderRuleQueryOptions, getNotificationReminderRulesQueryOptions, getNotificationReminderRunQueryOptions, getNotificationReminderRunsQueryOptions, getNotificationTemplateQueryOptions, getNotificationTemplatesQueryOptions, } from "./query-options.js";
|
|
6
|
+
export * from "./schemas.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,GACnB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,6BAA6B,EAC7B,KAAK,+BAA+B,EACpC,2BAA2B,EAC3B,KAAK,gCAAgC,GACtC,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACnC,uCAAuC,EACvC,wCAAwC,EACxC,sCAAsC,EACtC,uCAAuC,EACvC,mCAAmC,EACnC,oCAAoC,GACrC,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { defaultFetcher, fetchWithValidation, VoyantApiError, } from "./client.js";
|
|
2
|
+
export * from "./hooks/index.js";
|
|
3
|
+
export { useVoyantNotificationsContext, VoyantNotificationsProvider, } from "./provider.js";
|
|
4
|
+
export { notificationsQueryKeys } from "./query-keys.js";
|
|
5
|
+
export { getNotificationDeliveriesQueryOptions, getNotificationDeliveryQueryOptions, getNotificationReminderRuleQueryOptions, getNotificationReminderRulesQueryOptions, getNotificationReminderRunQueryOptions, getNotificationReminderRunsQueryOptions, getNotificationTemplateQueryOptions, getNotificationTemplatesQueryOptions, } from "./query-options.js";
|
|
6
|
+
export * from "./schemas.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { useVoyantReactContext as useVoyantNotificationsContext, type VoyantReactContextValue as VoyantNotificationsContextValue, VoyantReactProvider as VoyantNotificationsProvider, type VoyantReactProviderProps as VoyantNotificationsProviderProps, } from "@voyantjs/react";
|
|
2
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,6BAA6B,EACtD,KAAK,uBAAuB,IAAI,+BAA+B,EAC/D,mBAAmB,IAAI,2BAA2B,EAClD,KAAK,wBAAwB,IAAI,gCAAgC,GAClE,MAAM,iBAAiB,CAAA"}
|
package/dist/provider.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useVoyantReactContext as useVoyantNotificationsContext, VoyantReactProvider as VoyantNotificationsProvider, } from "@voyantjs/react";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export interface NotificationTemplatesListFilters {
|
|
2
|
+
search?: string | undefined;
|
|
3
|
+
channel?: "email" | "sms" | undefined;
|
|
4
|
+
provider?: string | undefined;
|
|
5
|
+
status?: "draft" | "active" | "archived" | undefined;
|
|
6
|
+
limit?: number | undefined;
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
}
|
|
9
|
+
export interface NotificationReminderRulesListFilters {
|
|
10
|
+
search?: string | undefined;
|
|
11
|
+
targetType?: "booking_payment_schedule" | "invoice" | undefined;
|
|
12
|
+
channel?: "email" | "sms" | undefined;
|
|
13
|
+
status?: "draft" | "active" | "archived" | undefined;
|
|
14
|
+
limit?: number | undefined;
|
|
15
|
+
offset?: number | undefined;
|
|
16
|
+
}
|
|
17
|
+
export interface NotificationDeliveriesListFilters {
|
|
18
|
+
channel?: "email" | "sms" | undefined;
|
|
19
|
+
provider?: string | undefined;
|
|
20
|
+
status?: "pending" | "sent" | "failed" | "cancelled" | undefined;
|
|
21
|
+
templateSlug?: string | undefined;
|
|
22
|
+
targetType?: "booking" | "booking_payment_schedule" | "booking_guarantee" | "invoice" | "payment_session" | "person" | "organization" | "other" | undefined;
|
|
23
|
+
targetId?: string | undefined;
|
|
24
|
+
bookingId?: string | undefined;
|
|
25
|
+
invoiceId?: string | undefined;
|
|
26
|
+
paymentSessionId?: string | undefined;
|
|
27
|
+
personId?: string | undefined;
|
|
28
|
+
organizationId?: string | undefined;
|
|
29
|
+
limit?: number | undefined;
|
|
30
|
+
offset?: number | undefined;
|
|
31
|
+
}
|
|
32
|
+
export interface NotificationReminderRunsListFilters {
|
|
33
|
+
reminderRuleId?: string | undefined;
|
|
34
|
+
targetType?: "booking_payment_schedule" | "invoice" | undefined;
|
|
35
|
+
targetId?: string | undefined;
|
|
36
|
+
scheduleId?: string | undefined;
|
|
37
|
+
invoiceId?: string | undefined;
|
|
38
|
+
bookingId?: string | undefined;
|
|
39
|
+
paymentSessionId?: string | undefined;
|
|
40
|
+
notificationDeliveryId?: string | undefined;
|
|
41
|
+
personId?: string | undefined;
|
|
42
|
+
organizationId?: string | undefined;
|
|
43
|
+
recipient?: string | undefined;
|
|
44
|
+
status?: "queued" | "processing" | "sent" | "skipped" | "failed" | undefined;
|
|
45
|
+
limit?: number | undefined;
|
|
46
|
+
offset?: number | undefined;
|
|
47
|
+
}
|
|
48
|
+
export declare const notificationsQueryKeys: {
|
|
49
|
+
all: readonly ["notifications"];
|
|
50
|
+
templates: () => readonly ["notifications", "templates"];
|
|
51
|
+
templatesList: (filters: NotificationTemplatesListFilters) => readonly ["notifications", "templates", NotificationTemplatesListFilters];
|
|
52
|
+
template: (id: string) => readonly ["notifications", "templates", string];
|
|
53
|
+
deliveries: () => readonly ["notifications", "deliveries"];
|
|
54
|
+
deliveriesList: (filters: NotificationDeliveriesListFilters) => readonly ["notifications", "deliveries", NotificationDeliveriesListFilters];
|
|
55
|
+
delivery: (id: string) => readonly ["notifications", "deliveries", string];
|
|
56
|
+
reminderRules: () => readonly ["notifications", "reminder-rules"];
|
|
57
|
+
reminderRulesList: (filters: NotificationReminderRulesListFilters) => readonly ["notifications", "reminder-rules", NotificationReminderRulesListFilters];
|
|
58
|
+
reminderRule: (id: string) => readonly ["notifications", "reminder-rules", string];
|
|
59
|
+
reminderRuns: () => readonly ["notifications", "reminder-runs"];
|
|
60
|
+
reminderRunsList: (filters: NotificationReminderRunsListFilters) => readonly ["notifications", "reminder-runs", NotificationReminderRunsListFilters];
|
|
61
|
+
reminderRun: (id: string) => readonly ["notifications", "reminder-runs", string];
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=query-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const notificationsQueryKeys = {
|
|
2
|
+
all: ["notifications"],
|
|
3
|
+
templates: () => [...notificationsQueryKeys.all, "templates"],
|
|
4
|
+
templatesList: (filters) => [...notificationsQueryKeys.templates(), filters],
|
|
5
|
+
template: (id) => [...notificationsQueryKeys.templates(), id],
|
|
6
|
+
deliveries: () => [...notificationsQueryKeys.all, "deliveries"],
|
|
7
|
+
deliveriesList: (filters) => [...notificationsQueryKeys.deliveries(), filters],
|
|
8
|
+
delivery: (id) => [...notificationsQueryKeys.deliveries(), id],
|
|
9
|
+
reminderRules: () => [...notificationsQueryKeys.all, "reminder-rules"],
|
|
10
|
+
reminderRulesList: (filters) => [...notificationsQueryKeys.reminderRules(), filters],
|
|
11
|
+
reminderRule: (id) => [...notificationsQueryKeys.reminderRules(), id],
|
|
12
|
+
reminderRuns: () => [...notificationsQueryKeys.all, "reminder-runs"],
|
|
13
|
+
reminderRunsList: (filters) => [...notificationsQueryKeys.reminderRuns(), filters],
|
|
14
|
+
reminderRun: (id) => [...notificationsQueryKeys.reminderRuns(), id],
|
|
15
|
+
};
|