@voyantjs/notifications-react 0.28.1 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/hooks/index.d.ts +6 -0
  2. package/dist/hooks/index.d.ts.map +1 -1
  3. package/dist/hooks/index.js +6 -0
  4. package/dist/hooks/use-notification-reminder-rule-mutation.d.ts +2 -3
  5. package/dist/hooks/use-notification-reminder-rule-mutation.d.ts.map +1 -1
  6. package/dist/hooks/use-notification-reminder-rule.d.ts +0 -1
  7. package/dist/hooks/use-notification-reminder-rule.d.ts.map +1 -1
  8. package/dist/hooks/use-notification-reminder-rules.d.ts +0 -1
  9. package/dist/hooks/use-notification-reminder-rules.d.ts.map +1 -1
  10. package/dist/hooks/use-notification-reminder-runs.d.ts +0 -1
  11. package/dist/hooks/use-notification-reminder-runs.d.ts.map +1 -1
  12. package/dist/hooks/use-notification-settings.d.ts +50 -0
  13. package/dist/hooks/use-notification-settings.d.ts.map +1 -0
  14. package/dist/hooks/use-notification-settings.js +26 -0
  15. package/dist/hooks/use-reminder-rule-stage-mutation.d.ts +93 -0
  16. package/dist/hooks/use-reminder-rule-stage-mutation.d.ts.map +1 -0
  17. package/dist/hooks/use-reminder-rule-stage-mutation.js +53 -0
  18. package/dist/hooks/use-reminder-rule-stages.d.ts +25 -0
  19. package/dist/hooks/use-reminder-rule-stages.d.ts.map +1 -0
  20. package/dist/hooks/use-reminder-rule-stages.js +12 -0
  21. package/dist/hooks/use-reminder-stage-channel-mutation.d.ts +48 -0
  22. package/dist/hooks/use-reminder-stage-channel-mutation.d.ts.map +1 -0
  23. package/dist/hooks/use-reminder-stage-channel-mutation.js +42 -0
  24. package/dist/hooks/use-reminder-stage-channels.d.ts +18 -0
  25. package/dist/hooks/use-reminder-stage-channels.d.ts.map +1 -0
  26. package/dist/hooks/use-reminder-stage-channels.js +12 -0
  27. package/dist/hooks/use-reminders-preview.d.ts +21 -0
  28. package/dist/hooks/use-reminders-preview.d.ts.map +1 -0
  29. package/dist/hooks/use-reminders-preview.js +12 -0
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +1 -1
  33. package/dist/query-keys.d.ts +9 -0
  34. package/dist/query-keys.d.ts.map +1 -1
  35. package/dist/query-keys.js +4 -0
  36. package/dist/query-options.d.ts +289 -16
  37. package/dist/query-options.d.ts.map +1 -1
  38. package/dist/query-options.js +42 -1
  39. package/dist/schemas.d.ts +265 -5
  40. package/dist/schemas.d.ts.map +1 -1
  41. package/dist/schemas.js +85 -1
  42. package/package.json +5 -5
@@ -5,9 +5,15 @@ export * from "./use-notification-reminder-rule.js";
5
5
  export * from "./use-notification-reminder-rule-mutation.js";
6
6
  export * from "./use-notification-reminder-rules.js";
7
7
  export * from "./use-notification-reminder-runs.js";
8
+ export * from "./use-notification-settings.js";
8
9
  export * from "./use-notification-template.js";
9
10
  export * from "./use-notification-template-authoring.js";
10
11
  export * from "./use-notification-template-mutation.js";
11
12
  export * from "./use-notification-template-tools.js";
12
13
  export * from "./use-notification-templates.js";
14
+ export * from "./use-reminder-rule-stage-mutation.js";
15
+ export * from "./use-reminder-rule-stages.js";
16
+ export * from "./use-reminder-stage-channel-mutation.js";
17
+ export * from "./use-reminder-stage-channels.js";
18
+ export * from "./use-reminders-preview.js";
13
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAEA,cAAc,kCAAkC,CAAA;AAChD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,yCAAyC,CAAA;AACvD,cAAc,qCAAqC,CAAA;AACnD,cAAc,8CAA8C,CAAA;AAC5D,cAAc,sCAAsC,CAAA;AACpD,cAAc,qCAAqC,CAAA;AACnD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,0CAA0C,CAAA;AACxD,cAAc,yCAAyC,CAAA;AACvD,cAAc,sCAAsC,CAAA;AACpD,cAAc,iCAAiC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAEA,cAAc,kCAAkC,CAAA;AAChD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,yCAAyC,CAAA;AACvD,cAAc,qCAAqC,CAAA;AACnD,cAAc,8CAA8C,CAAA;AAC5D,cAAc,sCAAsC,CAAA;AACpD,cAAc,qCAAqC,CAAA;AACnD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,0CAA0C,CAAA;AACxD,cAAc,yCAAyC,CAAA;AACvD,cAAc,sCAAsC,CAAA;AACpD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,uCAAuC,CAAA;AACrD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,0CAA0C,CAAA;AACxD,cAAc,kCAAkC,CAAA;AAChD,cAAc,4BAA4B,CAAA"}
@@ -6,8 +6,14 @@ export * from "./use-notification-reminder-rule.js";
6
6
  export * from "./use-notification-reminder-rule-mutation.js";
7
7
  export * from "./use-notification-reminder-rules.js";
8
8
  export * from "./use-notification-reminder-runs.js";
9
+ export * from "./use-notification-settings.js";
9
10
  export * from "./use-notification-template.js";
10
11
  export * from "./use-notification-template-authoring.js";
11
12
  export * from "./use-notification-template-mutation.js";
12
13
  export * from "./use-notification-template-tools.js";
13
14
  export * from "./use-notification-templates.js";
15
+ export * from "./use-reminder-rule-stage-mutation.js";
16
+ export * from "./use-reminder-rule-stages.js";
17
+ export * from "./use-reminder-stage-channel-mutation.js";
18
+ export * from "./use-reminder-stage-channels.js";
19
+ export * from "./use-reminders-preview.js";
@@ -13,7 +13,6 @@ export declare function useNotificationReminderRuleMutation(): {
13
13
  provider: string | null;
14
14
  templateId: string | null;
15
15
  templateSlug: string | null;
16
- relativeDaysFromDueDate: number;
17
16
  isSystem: boolean;
18
17
  metadata: Record<string, unknown> | null;
19
18
  createdAt: string;
@@ -27,7 +26,8 @@ export declare function useNotificationReminderRuleMutation(): {
27
26
  provider?: string | null | undefined;
28
27
  templateId?: string | null | undefined;
29
28
  templateSlug?: string | null | undefined;
30
- relativeDaysFromDueDate?: unknown;
29
+ priority?: unknown;
30
+ suppressionGroup?: string | null | undefined;
31
31
  isSystem?: boolean | undefined;
32
32
  metadata?: Record<string, unknown> | null | undefined;
33
33
  }, unknown>;
@@ -41,7 +41,6 @@ export declare function useNotificationReminderRuleMutation(): {
41
41
  provider: string | null;
42
42
  templateId: string | null;
43
43
  templateSlug: string | null;
44
- relativeDaysFromDueDate: number;
45
44
  isSystem: boolean;
46
45
  metadata: Record<string, unknown> | null;
47
46
  createdAt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use-notification-reminder-rule-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-notification-reminder-rule-mutation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,oCAAoC,EACpC,oCAAoC,EACrC,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAO5B,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,oCAAoC,CAC5C,CAAA;AACD,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,oCAAoC,CAC5C,CAAA;AAED,wBAAgB,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyBzC,MAAM;eACH,mCAAmC;;EAiB/C"}
1
+ {"version":3,"file":"use-notification-reminder-rule-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-notification-reminder-rule-mutation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,oCAAoC,EACpC,oCAAoC,EACrC,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAO5B,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,oCAAoC,CAC5C,CAAA;AACD,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,oCAAoC,CAC5C,CAAA;AAED,wBAAgB,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyBzC,MAAM;eACH,mCAAmC;;EAiB/C"}
@@ -11,7 +11,6 @@ export declare function useNotificationReminderRule(id: string, options?: UseNot
11
11
  provider: string | null;
12
12
  templateId: string | null;
13
13
  templateSlug: string | null;
14
- relativeDaysFromDueDate: number;
15
14
  isSystem: boolean;
16
15
  metadata: Record<string, unknown> | null;
17
16
  createdAt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use-notification-reminder-rule.d.ts","sourceRoot":"","sources":["../../src/hooks/use-notification-reminder-rule.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,kCAAkC;IACjD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,2BAA2B,CACzC,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,kCAAuC;;;;;;;;;;;;;;;UAQjD"}
1
+ {"version":3,"file":"use-notification-reminder-rule.d.ts","sourceRoot":"","sources":["../../src/hooks/use-notification-reminder-rule.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,kCAAkC;IACjD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,2BAA2B,CACzC,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,kCAAuC;;;;;;;;;;;;;;UAQjD"}
@@ -13,7 +13,6 @@ export declare function useNotificationReminderRules(options?: UseNotificationRe
13
13
  provider: string | null;
14
14
  templateId: string | null;
15
15
  templateSlug: string | null;
16
- relativeDaysFromDueDate: number;
17
16
  isSystem: boolean;
18
17
  metadata: Record<string, unknown> | null;
19
18
  createdAt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use-notification-reminder-rules.d.ts","sourceRoot":"","sources":["../../src/hooks/use-notification-reminder-rules.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,kBAAkB,CAAA;AAG5E,MAAM,WAAW,mCAAoC,SAAQ,oCAAoC;IAC/F,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,4BAA4B,CAAC,OAAO,GAAE,mCAAwC;;;;;;;;;;;;;;;;;;;;UAO7F"}
1
+ {"version":3,"file":"use-notification-reminder-rules.d.ts","sourceRoot":"","sources":["../../src/hooks/use-notification-reminder-rules.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,kBAAkB,CAAA;AAG5E,MAAM,WAAW,mCAAoC,SAAQ,oCAAoC;IAC/F,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,4BAA4B,CAAC,OAAO,GAAE,mCAAwC;;;;;;;;;;;;;;;;;;;UAO7F"}
@@ -36,7 +36,6 @@ export declare function useNotificationReminderRuns(options?: UseNotificationRem
36
36
  provider: string | null;
37
37
  templateId: string | null;
38
38
  templateSlug: string | null;
39
- relativeDaysFromDueDate: number;
40
39
  };
41
40
  delivery: {
42
41
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use-notification-reminder-runs.d.ts","sourceRoot":"","sources":["../../src/hooks/use-notification-reminder-runs.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,kBAAkB,CAAA;AAG3E,MAAM,WAAW,kCAAmC,SAAQ,mCAAmC;IAC7F,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,2BAA2B,CAAC,OAAO,GAAE,kCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAO3F"}
1
+ {"version":3,"file":"use-notification-reminder-runs.d.ts","sourceRoot":"","sources":["../../src/hooks/use-notification-reminder-runs.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,kBAAkB,CAAA;AAG3E,MAAM,WAAW,kCAAmC,SAAQ,mCAAmC;IAC7F,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,2BAA2B,CAAC,OAAO,GAAE,kCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAO3F"}
@@ -0,0 +1,50 @@
1
+ import type { updateNotificationSettingsSchema } from "@voyantjs/notifications";
2
+ import type { z } from "zod";
3
+ export type UpdateNotificationSettingsInput = z.input<typeof updateNotificationSettingsSchema>;
4
+ export declare function useNotificationSettings(): import("@tanstack/react-query").UseQueryResult<{
5
+ id: string;
6
+ scope: string;
7
+ quietHoursLocal: {
8
+ start: string;
9
+ end: string;
10
+ tz: string;
11
+ } | null;
12
+ blackoutDates: string[] | null;
13
+ skipWeekends: boolean;
14
+ holidayCalendar: string | null;
15
+ recipientRateLimitPerDay: number | null;
16
+ suppressionWindowHours: number;
17
+ metadata: Record<string, unknown> | null;
18
+ createdAt: string;
19
+ updatedAt: string;
20
+ }, Error>;
21
+ export declare function useNotificationSettingsMutation(): import("@tanstack/react-query").UseMutationResult<{
22
+ id: string;
23
+ scope: string;
24
+ quietHoursLocal: {
25
+ start: string;
26
+ end: string;
27
+ tz: string;
28
+ } | null;
29
+ blackoutDates: string[] | null;
30
+ skipWeekends: boolean;
31
+ holidayCalendar: string | null;
32
+ recipientRateLimitPerDay: number | null;
33
+ suppressionWindowHours: number;
34
+ metadata: Record<string, unknown> | null;
35
+ createdAt: string;
36
+ updatedAt: string;
37
+ }, Error, {
38
+ scope?: string | undefined;
39
+ quietHoursLocal?: {
40
+ start: string;
41
+ end: string;
42
+ tz: string;
43
+ } | null | undefined;
44
+ blackoutDates?: string[] | null | undefined;
45
+ skipWeekends?: boolean | undefined;
46
+ recipientRateLimitPerDay?: unknown;
47
+ suppressionWindowHours?: unknown;
48
+ metadata?: Record<string, unknown> | null | undefined;
49
+ }, unknown>;
50
+ //# sourceMappingURL=use-notification-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-notification-settings.d.ts","sourceRoot":"","sources":["../../src/hooks/use-notification-settings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,yBAAyB,CAAA;AAC/E,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQ5B,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAE9F,wBAAgB,uBAAuB;;;;;;;;;;;;;;;;UAGtC;AAED,wBAAgB,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoB9C"}
@@ -0,0 +1,26 @@
1
+ "use client";
2
+ import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
3
+ import { fetchWithValidation } from "../client.js";
4
+ import { useVoyantNotificationsContext } from "../provider.js";
5
+ import { notificationsQueryKeys } from "../query-keys.js";
6
+ import { getNotificationSettingsQueryOptions } from "../query-options.js";
7
+ import { notificationSettingsResponse } from "../schemas.js";
8
+ export function useNotificationSettings() {
9
+ const { baseUrl, fetcher } = useVoyantNotificationsContext();
10
+ return useQuery(getNotificationSettingsQueryOptions({ baseUrl, fetcher }));
11
+ }
12
+ export function useNotificationSettingsMutation() {
13
+ const { baseUrl, fetcher } = useVoyantNotificationsContext();
14
+ const queryClient = useQueryClient();
15
+ return useMutation({
16
+ mutationFn: async (input) => {
17
+ const { data } = await fetchWithValidation("/v1/admin/notifications/notification-settings", notificationSettingsResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
18
+ return data;
19
+ },
20
+ onSuccess: () => {
21
+ void queryClient.invalidateQueries({
22
+ queryKey: notificationsQueryKeys.notificationSettings(),
23
+ });
24
+ },
25
+ });
26
+ }
@@ -0,0 +1,93 @@
1
+ import type { insertNotificationReminderRuleStageSchema, reorderReminderRuleStagesSchema, updateNotificationReminderRuleStageSchema } from "@voyantjs/notifications";
2
+ import type { z } from "zod";
3
+ export type CreateReminderRuleStageInput = z.input<typeof insertNotificationReminderRuleStageSchema>;
4
+ export type UpdateReminderRuleStageInput = z.input<typeof updateNotificationReminderRuleStageSchema>;
5
+ export type ReorderReminderRuleStagesInput = z.input<typeof reorderReminderRuleStagesSchema>;
6
+ export declare function useReminderRuleStageMutation(reminderRuleId: string): {
7
+ create: import("@tanstack/react-query").UseMutationResult<{
8
+ id: string;
9
+ reminderRuleId: string;
10
+ orderIndex: number;
11
+ name: string | null;
12
+ anchor: "due_date" | "booking_created_at" | "departure_date" | "invoice_issued_at" | "last_send_at";
13
+ windowStartDays: number;
14
+ windowEndDays: number;
15
+ cadenceKind: "once" | "every_n_days" | "escalating";
16
+ cadenceEveryDays: number | null;
17
+ cadenceIntervals: {
18
+ repeatEveryDays: number;
19
+ whenDaysUntilDueGT?: number | null | undefined;
20
+ whenDaysUntilDueLT?: number | null | undefined;
21
+ }[] | null;
22
+ maxSendsInStage: number | null;
23
+ respectQuietHours: boolean;
24
+ metadata: Record<string, unknown> | null;
25
+ createdAt: string;
26
+ updatedAt: string;
27
+ }, Error, {
28
+ orderIndex: unknown;
29
+ anchor: "due_date" | "booking_created_at" | "departure_date" | "invoice_issued_at" | "last_send_at";
30
+ windowStartDays: unknown;
31
+ windowEndDays: unknown;
32
+ cadenceKind: "once" | "every_n_days" | "escalating";
33
+ name?: string | null | undefined;
34
+ cadenceEveryDays?: unknown;
35
+ cadenceIntervals?: {
36
+ repeatEveryDays: unknown;
37
+ whenDaysUntilDueGT?: unknown;
38
+ whenDaysUntilDueLT?: unknown;
39
+ }[] | null | undefined;
40
+ maxSendsInStage?: unknown;
41
+ respectQuietHours?: boolean | undefined;
42
+ metadata?: Record<string, unknown> | null | undefined;
43
+ }, unknown>;
44
+ update: import("@tanstack/react-query").UseMutationResult<{
45
+ id: string;
46
+ reminderRuleId: string;
47
+ orderIndex: number;
48
+ name: string | null;
49
+ anchor: "due_date" | "booking_created_at" | "departure_date" | "invoice_issued_at" | "last_send_at";
50
+ windowStartDays: number;
51
+ windowEndDays: number;
52
+ cadenceKind: "once" | "every_n_days" | "escalating";
53
+ cadenceEveryDays: number | null;
54
+ cadenceIntervals: {
55
+ repeatEveryDays: number;
56
+ whenDaysUntilDueGT?: number | null | undefined;
57
+ whenDaysUntilDueLT?: number | null | undefined;
58
+ }[] | null;
59
+ maxSendsInStage: number | null;
60
+ respectQuietHours: boolean;
61
+ metadata: Record<string, unknown> | null;
62
+ createdAt: string;
63
+ updatedAt: string;
64
+ }, Error, {
65
+ stageId: string;
66
+ input: UpdateReminderRuleStageInput;
67
+ }, unknown>;
68
+ remove: import("@tanstack/react-query").UseMutationResult<string, Error, string, unknown>;
69
+ reorder: import("@tanstack/react-query").UseMutationResult<{
70
+ id: string;
71
+ reminderRuleId: string;
72
+ orderIndex: number;
73
+ name: string | null;
74
+ anchor: "due_date" | "booking_created_at" | "departure_date" | "invoice_issued_at" | "last_send_at";
75
+ windowStartDays: number;
76
+ windowEndDays: number;
77
+ cadenceKind: "once" | "every_n_days" | "escalating";
78
+ cadenceEveryDays: number | null;
79
+ cadenceIntervals: {
80
+ repeatEveryDays: number;
81
+ whenDaysUntilDueGT?: number | null | undefined;
82
+ whenDaysUntilDueLT?: number | null | undefined;
83
+ }[] | null;
84
+ maxSendsInStage: number | null;
85
+ respectQuietHours: boolean;
86
+ metadata: Record<string, unknown> | null;
87
+ createdAt: string;
88
+ updatedAt: string;
89
+ }[], Error, {
90
+ stageIds: string[];
91
+ }, unknown>;
92
+ };
93
+ //# sourceMappingURL=use-reminder-rule-stage-mutation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-reminder-rule-stage-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-reminder-rule-stage-mutation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,yCAAyC,EACzC,+BAA+B,EAC/B,yCAAyC,EAC1C,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAO5B,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAA;AACpG,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAA;AACpG,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE5F,wBAAgB,4BAA4B,CAAC,cAAc,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8BpD,MAAM;eACR,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CxC"}
@@ -0,0 +1,53 @@
1
+ "use client";
2
+ import { useMutation, useQueryClient } from "@tanstack/react-query";
3
+ import { fetchWithValidation } from "../client.js";
4
+ import { useVoyantNotificationsContext } from "../provider.js";
5
+ import { notificationsQueryKeys } from "../query-keys.js";
6
+ import { reminderRuleStageSingleResponse, reminderRuleStagesListResponse } from "../schemas.js";
7
+ export function useReminderRuleStageMutation(reminderRuleId) {
8
+ const { baseUrl, fetcher } = useVoyantNotificationsContext();
9
+ const queryClient = useQueryClient();
10
+ const base = `/v1/admin/notifications/reminder-rules/${reminderRuleId}/stages`;
11
+ const invalidate = () => queryClient.invalidateQueries({
12
+ queryKey: notificationsQueryKeys.reminderRuleStages(reminderRuleId),
13
+ });
14
+ const create = useMutation({
15
+ mutationFn: async (input) => {
16
+ const { data } = await fetchWithValidation(base, reminderRuleStageSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
17
+ return data;
18
+ },
19
+ onSuccess: () => {
20
+ void invalidate();
21
+ },
22
+ });
23
+ const update = useMutation({
24
+ mutationFn: async ({ stageId, input, }) => {
25
+ const { data } = await fetchWithValidation(`${base}/${stageId}`, reminderRuleStageSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
26
+ return data;
27
+ },
28
+ onSuccess: () => {
29
+ void invalidate();
30
+ },
31
+ });
32
+ const remove = useMutation({
33
+ mutationFn: async (stageId) => {
34
+ await fetchWithValidation(`${base}/${stageId}`,
35
+ // 204 → empty body; pass-through using a permissive schema
36
+ reminderRuleStagesListResponse.optional(), { baseUrl, fetcher }, { method: "DELETE" }).catch(() => null);
37
+ return stageId;
38
+ },
39
+ onSuccess: () => {
40
+ void invalidate();
41
+ },
42
+ });
43
+ const reorder = useMutation({
44
+ mutationFn: async (input) => {
45
+ const { data } = await fetchWithValidation(`${base}/reorder`, reminderRuleStagesListResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
46
+ return data;
47
+ },
48
+ onSuccess: () => {
49
+ void invalidate();
50
+ },
51
+ });
52
+ return { create, update, remove, reorder };
53
+ }
@@ -0,0 +1,25 @@
1
+ export interface UseReminderRuleStagesOptions {
2
+ enabled?: boolean;
3
+ }
4
+ export declare function useReminderRuleStages(reminderRuleId: string, options?: UseReminderRuleStagesOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ id: string;
6
+ reminderRuleId: string;
7
+ orderIndex: number;
8
+ name: string | null;
9
+ anchor: "due_date" | "booking_created_at" | "departure_date" | "invoice_issued_at" | "last_send_at";
10
+ windowStartDays: number;
11
+ windowEndDays: number;
12
+ cadenceKind: "once" | "every_n_days" | "escalating";
13
+ cadenceEveryDays: number | null;
14
+ cadenceIntervals: {
15
+ repeatEveryDays: number;
16
+ whenDaysUntilDueGT?: number | null | undefined;
17
+ whenDaysUntilDueLT?: number | null | undefined;
18
+ }[] | null;
19
+ maxSendsInStage: number | null;
20
+ respectQuietHours: boolean;
21
+ metadata: Record<string, unknown> | null;
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ }[], Error>;
25
+ //# sourceMappingURL=use-reminder-rule-stages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-reminder-rule-stages.d.ts","sourceRoot":"","sources":["../../src/hooks/use-reminder-rule-stages.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,qBAAqB,CACnC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,4BAAiC;;;;;;;;;;;;;;;;;;;;YAQ3C"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantNotificationsContext } from "../provider.js";
4
+ import { getReminderRuleStagesQueryOptions } from "../query-options.js";
5
+ export function useReminderRuleStages(reminderRuleId, options = {}) {
6
+ const { baseUrl, fetcher } = useVoyantNotificationsContext();
7
+ const { enabled = true } = options;
8
+ return useQuery({
9
+ ...getReminderRuleStagesQueryOptions({ baseUrl, fetcher }, reminderRuleId),
10
+ enabled: enabled && Boolean(reminderRuleId),
11
+ });
12
+ }
@@ -0,0 +1,48 @@
1
+ import type { insertNotificationReminderStageChannelSchema, updateNotificationReminderStageChannelSchema } from "@voyantjs/notifications";
2
+ import type { z } from "zod";
3
+ export type CreateReminderStageChannelInput = z.input<typeof insertNotificationReminderStageChannelSchema>;
4
+ export type UpdateReminderStageChannelInput = z.input<typeof updateNotificationReminderStageChannelSchema>;
5
+ export declare function useReminderStageChannelMutation(reminderRuleId: string, stageId: string): {
6
+ create: import("@tanstack/react-query").UseMutationResult<{
7
+ id: string;
8
+ stageId: string;
9
+ orderIndex: number;
10
+ channel: "email" | "sms";
11
+ provider: string | null;
12
+ templateId: string | null;
13
+ templateSlug: string | null;
14
+ recipientKind: "primary" | "cc" | "bcc";
15
+ recipientRole: string | null;
16
+ metadata: Record<string, unknown> | null;
17
+ createdAt: string;
18
+ updatedAt: string;
19
+ }, Error, {
20
+ channel: "email" | "sms";
21
+ orderIndex?: unknown;
22
+ provider?: string | null | undefined;
23
+ templateId?: string | null | undefined;
24
+ templateSlug?: string | null | undefined;
25
+ recipientKind?: "primary" | "cc" | "bcc" | undefined;
26
+ recipientRole?: string | null | undefined;
27
+ metadata?: Record<string, unknown> | null | undefined;
28
+ }, unknown>;
29
+ update: import("@tanstack/react-query").UseMutationResult<{
30
+ id: string;
31
+ stageId: string;
32
+ orderIndex: number;
33
+ channel: "email" | "sms";
34
+ provider: string | null;
35
+ templateId: string | null;
36
+ templateSlug: string | null;
37
+ recipientKind: "primary" | "cc" | "bcc";
38
+ recipientRole: string | null;
39
+ metadata: Record<string, unknown> | null;
40
+ createdAt: string;
41
+ updatedAt: string;
42
+ }, Error, {
43
+ channelId: string;
44
+ input: UpdateReminderStageChannelInput;
45
+ }, unknown>;
46
+ remove: import("@tanstack/react-query").UseMutationResult<string, Error, string, unknown>;
47
+ };
48
+ //# sourceMappingURL=use-reminder-stage-channel-mutation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-reminder-stage-channel-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-reminder-stage-channel-mutation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,4CAA4C,EAC5C,4CAA4C,EAC7C,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAO5B,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,4CAA4C,CACpD,CAAA;AACD,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,4CAA4C,CACpD,CAAA;AAED,wBAAgB,+BAA+B,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA8BtE,MAAM;eACV,+BAA+B;;;EA+B3C"}
@@ -0,0 +1,42 @@
1
+ "use client";
2
+ import { useMutation, useQueryClient } from "@tanstack/react-query";
3
+ import { fetchWithValidation } from "../client.js";
4
+ import { useVoyantNotificationsContext } from "../provider.js";
5
+ import { notificationsQueryKeys } from "../query-keys.js";
6
+ import { reminderStageChannelSingleResponse } from "../schemas.js";
7
+ export function useReminderStageChannelMutation(reminderRuleId, stageId) {
8
+ const { baseUrl, fetcher } = useVoyantNotificationsContext();
9
+ const queryClient = useQueryClient();
10
+ const base = `/v1/admin/notifications/reminder-rules/${reminderRuleId}/stages/${stageId}/channels`;
11
+ const invalidate = () => queryClient.invalidateQueries({
12
+ queryKey: notificationsQueryKeys.reminderStageChannels(stageId),
13
+ });
14
+ const create = useMutation({
15
+ mutationFn: async (input) => {
16
+ const { data } = await fetchWithValidation(base, reminderStageChannelSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
17
+ return data;
18
+ },
19
+ onSuccess: () => {
20
+ void invalidate();
21
+ },
22
+ });
23
+ const update = useMutation({
24
+ mutationFn: async ({ channelId, input, }) => {
25
+ const { data } = await fetchWithValidation(`${base}/${channelId}`, reminderStageChannelSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
26
+ return data;
27
+ },
28
+ onSuccess: () => {
29
+ void invalidate();
30
+ },
31
+ });
32
+ const remove = useMutation({
33
+ mutationFn: async (channelId) => {
34
+ await fetchWithValidation(`${base}/${channelId}`, reminderStageChannelSingleResponse.optional(), { baseUrl, fetcher }, { method: "DELETE" }).catch(() => null);
35
+ return channelId;
36
+ },
37
+ onSuccess: () => {
38
+ void invalidate();
39
+ },
40
+ });
41
+ return { create, update, remove };
42
+ }
@@ -0,0 +1,18 @@
1
+ export interface UseReminderStageChannelsOptions {
2
+ enabled?: boolean;
3
+ }
4
+ export declare function useReminderStageChannels(reminderRuleId: string, stageId: string, options?: UseReminderStageChannelsOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ id: string;
6
+ stageId: string;
7
+ orderIndex: number;
8
+ channel: "email" | "sms";
9
+ provider: string | null;
10
+ templateId: string | null;
11
+ templateSlug: string | null;
12
+ recipientKind: "primary" | "cc" | "bcc";
13
+ recipientRole: string | null;
14
+ metadata: Record<string, unknown> | null;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ }[], Error>;
18
+ //# sourceMappingURL=use-reminder-stage-channels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-reminder-stage-channels.d.ts","sourceRoot":"","sources":["../../src/hooks/use-reminder-stage-channels.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,wBAAwB,CACtC,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,+BAAoC;;;;;;;;;;;;;YAQ9C"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantNotificationsContext } from "../provider.js";
4
+ import { getReminderStageChannelsQueryOptions } from "../query-options.js";
5
+ export function useReminderStageChannels(reminderRuleId, stageId, options = {}) {
6
+ const { baseUrl, fetcher } = useVoyantNotificationsContext();
7
+ const { enabled = true } = options;
8
+ return useQuery({
9
+ ...getReminderStageChannelsQueryOptions({ baseUrl, fetcher }, reminderRuleId, stageId),
10
+ enabled: enabled && Boolean(reminderRuleId) && Boolean(stageId),
11
+ });
12
+ }
@@ -0,0 +1,21 @@
1
+ import type { RemindersPreviewFilters } from "../query-keys.js";
2
+ export interface UseRemindersPreviewOptions extends RemindersPreviewFilters {
3
+ enabled?: boolean;
4
+ }
5
+ export declare function useRemindersPreview(options?: UseRemindersPreviewOptions): import("@tanstack/react-query").UseQueryResult<{
6
+ ruleId: string;
7
+ ruleName: string;
8
+ ruleSlug: string;
9
+ targetType: string;
10
+ targetId: string;
11
+ bookingId: string | null;
12
+ stageId: string;
13
+ stageName: string | null;
14
+ stageOrderIndex: number;
15
+ anchor: string;
16
+ anchorDate: string;
17
+ scheduledAt: string;
18
+ sendCountAtFire: number;
19
+ reasoning: string;
20
+ }[], Error>;
21
+ //# sourceMappingURL=use-reminders-preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-reminders-preview.d.ts","sourceRoot":"","sources":["../../src/hooks/use-reminders-preview.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAG/D,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA+B;;;;;;;;;;;;;;;YAO3E"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantNotificationsContext } from "../provider.js";
4
+ import { getRemindersPreviewQueryOptions } from "../query-options.js";
5
+ export function useRemindersPreview(options = {}) {
6
+ const { baseUrl, fetcher } = useVoyantNotificationsContext();
7
+ const { enabled = true, ...filters } = options;
8
+ return useQuery({
9
+ ...getRemindersPreviewQueryOptions({ baseUrl, fetcher }, filters),
10
+ enabled,
11
+ });
12
+ }
package/dist/index.d.ts CHANGED
@@ -2,6 +2,6 @@ export { defaultFetcher, fetchWithValidation, VoyantApiError, type VoyantFetcher
2
2
  export * from "./hooks/index.js";
3
3
  export { useVoyantNotificationsContext, type VoyantNotificationsContextValue, VoyantNotificationsProvider, type VoyantNotificationsProviderProps, } from "./provider.js";
4
4
  export { notificationsQueryKeys } from "./query-keys.js";
5
- export { getNotificationDeliveriesQueryOptions, getNotificationDeliveryQueryOptions, getNotificationReminderRuleQueryOptions, getNotificationReminderRulesQueryOptions, getNotificationReminderRunQueryOptions, getNotificationReminderRunsQueryOptions, getNotificationTemplateQueryOptions, getNotificationTemplatesQueryOptions, } from "./query-options.js";
5
+ export { getNotificationDeliveriesQueryOptions, getNotificationDeliveryQueryOptions, getNotificationReminderRuleQueryOptions, getNotificationReminderRulesQueryOptions, getNotificationReminderRunQueryOptions, getNotificationReminderRunsQueryOptions, getNotificationSettingsQueryOptions, getNotificationTemplateQueryOptions, getNotificationTemplatesQueryOptions, getReminderRuleStagesQueryOptions, getReminderStageChannelsQueryOptions, getRemindersPreviewQueryOptions, } from "./query-options.js";
6
6
  export * from "./schemas.js";
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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,mCAAmC,EACnC,oCAAoC,EACpC,iCAAiC,EACjC,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
package/dist/index.js CHANGED
@@ -2,5 +2,5 @@ export { defaultFetcher, fetchWithValidation, VoyantApiError, } from "./client.j
2
2
  export * from "./hooks/index.js";
3
3
  export { useVoyantNotificationsContext, VoyantNotificationsProvider, } from "./provider.js";
4
4
  export { notificationsQueryKeys } from "./query-keys.js";
5
- export { getNotificationDeliveriesQueryOptions, getNotificationDeliveryQueryOptions, getNotificationReminderRuleQueryOptions, getNotificationReminderRulesQueryOptions, getNotificationReminderRunQueryOptions, getNotificationReminderRunsQueryOptions, getNotificationTemplateQueryOptions, getNotificationTemplatesQueryOptions, } from "./query-options.js";
5
+ export { getNotificationDeliveriesQueryOptions, getNotificationDeliveryQueryOptions, getNotificationReminderRuleQueryOptions, getNotificationReminderRulesQueryOptions, getNotificationReminderRunQueryOptions, getNotificationReminderRunsQueryOptions, getNotificationSettingsQueryOptions, getNotificationTemplateQueryOptions, getNotificationTemplatesQueryOptions, getReminderRuleStagesQueryOptions, getReminderStageChannelsQueryOptions, getRemindersPreviewQueryOptions, } from "./query-options.js";
6
6
  export * from "./schemas.js";
@@ -45,6 +45,11 @@ export interface NotificationReminderRunsListFilters {
45
45
  limit?: number | undefined;
46
46
  offset?: number | undefined;
47
47
  }
48
+ export interface RemindersPreviewFilters {
49
+ date?: string | undefined;
50
+ ruleId?: string | undefined;
51
+ targetId?: string | undefined;
52
+ }
48
53
  export declare const notificationsQueryKeys: {
49
54
  all: readonly ["notifications"];
50
55
  templates: () => readonly ["notifications", "templates"];
@@ -56,8 +61,12 @@ export declare const notificationsQueryKeys: {
56
61
  reminderRules: () => readonly ["notifications", "reminder-rules"];
57
62
  reminderRulesList: (filters: NotificationReminderRulesListFilters) => readonly ["notifications", "reminder-rules", NotificationReminderRulesListFilters];
58
63
  reminderRule: (id: string) => readonly ["notifications", "reminder-rules", string];
64
+ reminderRuleStages: (reminderRuleId: string) => readonly ["notifications", "reminder-rules", string, "stages"];
65
+ reminderStageChannels: (stageId: string) => readonly ["notifications", "stage-channels", string];
59
66
  reminderRuns: () => readonly ["notifications", "reminder-runs"];
60
67
  reminderRunsList: (filters: NotificationReminderRunsListFilters) => readonly ["notifications", "reminder-runs", NotificationReminderRunsListFilters];
61
68
  reminderRun: (id: string) => readonly ["notifications", "reminder-runs", string];
69
+ remindersPreview: (filters: RemindersPreviewFilters) => readonly ["notifications", "preview", RemindersPreviewFilters];
70
+ notificationSettings: () => readonly ["notifications", "settings"];
62
71
  };
63
72
  //# sourceMappingURL=query-keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gCAAgC;IAC/C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,OAAO,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA;IACrC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAA;IACpD,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,oCAAoC;IACnD,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,UAAU,CAAC,EACP,mBAAmB,GACnB,0BAA0B,GAC1B,kBAAkB,GAClB,+BAA+B,GAC/B,SAAS,GACT,SAAS,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA;IACrC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAA;IACpD,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,iCAAiC;IAChD,OAAO,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA;IACrC,QAAQ,CAAC,E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