@timothyw/pat-common 1.0.113 → 1.0.116

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 (246) hide show
  1. package/dist/types/id-types.d.ts +2 -2
  2. package/dist/types/index.d.ts +1 -3
  3. package/dist/types/index.js +4 -3
  4. package/dist/types/new/agenda-types.d.ts +116 -0
  5. package/dist/types/new/agenda-types.js +37 -0
  6. package/dist/types/new/auth-types.d.ts +153 -0
  7. package/dist/types/new/auth-types.js +48 -0
  8. package/dist/types/new/habits-types.d.ts +317 -0
  9. package/dist/types/new/habits-types.js +70 -0
  10. package/dist/types/new/index.d.ts +10 -0
  11. package/dist/types/new/index.js +26 -0
  12. package/dist/types/new/lists-types.d.ts +164 -0
  13. package/dist/types/new/lists-types.js +50 -0
  14. package/dist/types/new/misc/index.d.ts +1 -0
  15. package/dist/types/new/misc/index.js +17 -0
  16. package/dist/types/new/misc/version-types.d.ts +26 -0
  17. package/dist/types/new/misc/version-types.js +13 -0
  18. package/dist/types/new/notifications-types.d.ts +407 -0
  19. package/dist/types/new/notifications-types.js +91 -0
  20. package/dist/types/new/people-types.d.ts +285 -0
  21. package/dist/types/new/people-types.js +58 -0
  22. package/dist/types/new/program-config-types.d.ts +105 -0
  23. package/dist/types/new/program-config-types.js +29 -0
  24. package/dist/types/new/thoughts-types.d.ts +57 -0
  25. package/dist/types/new/thoughts-types.js +18 -0
  26. package/dist/types/new/user-types.d.ts +283 -0
  27. package/dist/types/new/user-types.js +46 -0
  28. package/dist/types/old/api/account/get-user-types.d.ts +5 -0
  29. package/dist/types/old/api/account/get-user-types.js +2 -0
  30. package/dist/types/old/api/account/index.d.ts +2 -0
  31. package/dist/types/old/api/account/index.js +18 -0
  32. package/dist/types/old/api/account/update-user-types.d.ts +128 -0
  33. package/dist/types/old/api/account/update-user-types.js +8 -0
  34. package/dist/types/old/api/auth/create-account-types.d.ts +24 -0
  35. package/dist/types/old/api/auth/create-account-types.js +10 -0
  36. package/dist/types/old/api/auth/index.d.ts +5 -0
  37. package/dist/types/old/api/auth/index.js +21 -0
  38. package/dist/types/old/api/auth/refresh-auth-types.d.ts +15 -0
  39. package/dist/types/old/api/auth/refresh-auth-types.js +7 -0
  40. package/dist/types/old/api/auth/resend-verification-types.d.ts +3 -0
  41. package/dist/types/old/api/auth/resend-verification-types.js +2 -0
  42. package/dist/types/old/api/auth/sign-in-types.d.ts +19 -0
  43. package/dist/types/old/api/auth/sign-in-types.js +8 -0
  44. package/dist/types/old/api/auth/verify-email-types.d.ts +3 -0
  45. package/dist/types/old/api/auth/verify-email-types.js +2 -0
  46. package/dist/types/old/api/habits/create-habit-entry-types.d.ts +19 -0
  47. package/dist/types/old/api/habits/create-habit-entry-types.js +10 -0
  48. package/dist/types/old/api/habits/create-habit-types.d.ts +26 -0
  49. package/dist/types/old/api/habits/create-habit-types.js +12 -0
  50. package/dist/types/old/api/habits/delete-habit-entry-types.d.ts +5 -0
  51. package/dist/types/old/api/habits/delete-habit-entry-types.js +2 -0
  52. package/dist/types/old/api/habits/delete-habit-types.d.ts +3 -0
  53. package/dist/types/old/api/habits/delete-habit-types.js +2 -0
  54. package/dist/types/old/api/habits/get-habits-types.d.ts +5 -0
  55. package/dist/types/old/api/habits/get-habits-types.js +2 -0
  56. package/dist/types/old/api/habits/index.d.ts +6 -0
  57. package/dist/types/old/api/habits/index.js +22 -0
  58. package/dist/types/old/api/habits/update-habit-types.d.ts +26 -0
  59. package/dist/types/old/api/habits/update-habit-types.js +12 -0
  60. package/dist/types/old/api/index.d.ts +9 -0
  61. package/dist/types/old/api/index.js +25 -0
  62. package/dist/types/old/api/items/complete-item-types.d.ts +14 -0
  63. package/dist/types/old/api/items/complete-item-types.js +7 -0
  64. package/dist/types/old/api/items/create-item-types.d.ts +29 -0
  65. package/dist/types/old/api/items/create-item-types.js +12 -0
  66. package/dist/types/old/api/items/delete-item-types.d.ts +3 -0
  67. package/dist/types/old/api/items/delete-item-types.js +2 -0
  68. package/dist/types/old/api/items/get-items-types.d.ts +5 -0
  69. package/dist/types/old/api/items/get-items-types.js +2 -0
  70. package/dist/types/old/api/items/index.d.ts +5 -0
  71. package/dist/types/old/api/items/index.js +21 -0
  72. package/dist/types/old/api/items/update-item-types.d.ts +29 -0
  73. package/dist/types/old/api/items/update-item-types.js +12 -0
  74. package/dist/types/old/api/lists/complete-list-item-types.d.ts +14 -0
  75. package/dist/types/old/api/lists/complete-list-item-types.js +7 -0
  76. package/dist/types/old/api/lists/create-list-item-types.d.ts +22 -0
  77. package/dist/types/old/api/lists/create-list-item-types.js +10 -0
  78. package/dist/types/old/api/lists/create-list-types.d.ts +17 -0
  79. package/dist/types/old/api/lists/create-list-types.js +9 -0
  80. package/dist/types/old/api/lists/get-list-item-types.d.ts +5 -0
  81. package/dist/types/old/api/lists/get-list-item-types.js +2 -0
  82. package/dist/types/old/api/lists/get-lists-types.d.ts +5 -0
  83. package/dist/types/old/api/lists/get-lists-types.js +2 -0
  84. package/dist/types/old/api/lists/index.d.ts +7 -0
  85. package/dist/types/old/api/lists/index.js +23 -0
  86. package/dist/types/old/api/lists/update-list-item-types.d.ts +23 -0
  87. package/dist/types/old/api/lists/update-list-item-types.js +11 -0
  88. package/dist/types/old/api/lists/update-list-types.d.ts +17 -0
  89. package/dist/types/old/api/lists/update-list-types.js +9 -0
  90. package/dist/types/old/api/misc/index.d.ts +1 -0
  91. package/dist/types/old/api/misc/index.js +17 -0
  92. package/dist/types/old/api/misc/version-types.d.ts +9 -0
  93. package/dist/types/old/api/misc/version-types.js +2 -0
  94. package/dist/types/old/api/notifications/create-notification-template-types.d.ts +78 -0
  95. package/dist/types/old/api/notifications/create-notification-template-types.js +25 -0
  96. package/dist/types/old/api/notifications/delete-notification-template-types.d.ts +5 -0
  97. package/dist/types/old/api/notifications/delete-notification-template-types.js +6 -0
  98. package/dist/types/old/api/notifications/get-notification-templates-types.d.ts +8 -0
  99. package/dist/types/old/api/notifications/get-notification-templates-types.js +6 -0
  100. package/dist/types/old/api/notifications/index.d.ts +6 -0
  101. package/dist/types/old/api/notifications/index.js +22 -0
  102. package/dist/types/old/api/notifications/preview-notification-template-types.d.ts +29 -0
  103. package/dist/types/old/api/notifications/preview-notification-template-types.js +12 -0
  104. package/dist/types/old/api/notifications/sync-notification-template-types.d.ts +14 -0
  105. package/dist/types/old/api/notifications/sync-notification-template-types.js +8 -0
  106. package/dist/types/old/api/notifications/update-notification-template-types.d.ts +69 -0
  107. package/dist/types/old/api/notifications/update-notification-template-types.js +22 -0
  108. package/dist/types/old/api/people/create-person-note-types.d.ts +19 -0
  109. package/dist/types/old/api/people/create-person-note-types.js +9 -0
  110. package/dist/types/old/api/people/create-person-types.d.ts +35 -0
  111. package/dist/types/old/api/people/create-person-types.js +13 -0
  112. package/dist/types/old/api/people/delete-person-notes-types.d.ts +3 -0
  113. package/dist/types/old/api/people/delete-person-notes-types.js +2 -0
  114. package/dist/types/old/api/people/delete-person-types.d.ts +3 -0
  115. package/dist/types/old/api/people/delete-person-types.js +2 -0
  116. package/dist/types/old/api/people/get-people-types.d.ts +5 -0
  117. package/dist/types/old/api/people/get-people-types.js +2 -0
  118. package/dist/types/old/api/people/get-person-notes-types.d.ts +5 -0
  119. package/dist/types/old/api/people/get-person-notes-types.js +2 -0
  120. package/dist/types/old/api/people/index.d.ts +8 -0
  121. package/dist/types/old/api/people/index.js +24 -0
  122. package/dist/types/old/api/people/update-person-note-types.d.ts +14 -0
  123. package/dist/types/old/api/people/update-person-note-types.js +7 -0
  124. package/dist/types/old/api/people/update-person-types.d.ts +35 -0
  125. package/dist/types/old/api/people/update-person-types.js +13 -0
  126. package/dist/types/old/api/thoughts/create-thought-types.d.ts +14 -0
  127. package/dist/types/old/api/thoughts/create-thought-types.js +7 -0
  128. package/dist/types/old/api/thoughts/delete-thought-types.d.ts +3 -0
  129. package/dist/types/old/api/thoughts/delete-thought-types.js +2 -0
  130. package/dist/types/old/api/thoughts/get-thoughts-types.d.ts +5 -0
  131. package/dist/types/old/api/thoughts/get-thoughts-types.js +2 -0
  132. package/dist/types/old/api/thoughts/index.d.ts +4 -0
  133. package/dist/types/old/api/thoughts/index.js +20 -0
  134. package/dist/types/old/api/thoughts/update-thought-types.d.ts +14 -0
  135. package/dist/types/old/api/thoughts/update-thought-types.js +7 -0
  136. package/dist/types/old/auth-tokens.d.ts +11 -0
  137. package/dist/types/old/auth-tokens.js +2 -0
  138. package/dist/types/old/models/auth-data.d.ts +14 -0
  139. package/dist/types/old/models/auth-data.js +9 -0
  140. package/dist/types/old/models/habit-data.d.ts +48 -0
  141. package/dist/types/old/models/habit-data.js +25 -0
  142. package/dist/types/old/models/index.d.ts +10 -0
  143. package/dist/types/old/models/index.js +26 -0
  144. package/dist/types/old/models/item-data.d.ts +14 -0
  145. package/dist/types/old/models/item-data.js +2 -0
  146. package/dist/types/old/models/list-data.d.ts +23 -0
  147. package/dist/types/old/models/list-data.js +8 -0
  148. package/dist/types/old/models/notifiable.d.ts +42 -0
  149. package/dist/types/old/models/notifiable.js +2 -0
  150. package/dist/types/old/models/notification-template-data.d.ts +224 -0
  151. package/dist/types/old/models/notification-template-data.js +52 -0
  152. package/dist/types/old/models/person-data.d.ts +31 -0
  153. package/dist/types/old/models/person-data.js +2 -0
  154. package/dist/types/old/models/program-config.d.ts +25 -0
  155. package/dist/types/old/models/program-config.js +2 -0
  156. package/dist/types/old/models/thought-data.d.ts +8 -0
  157. package/dist/types/old/models/thought-data.js +2 -0
  158. package/dist/types/old/models/user-data.d.ts +147 -0
  159. package/dist/types/old/models/user-data.js +42 -0
  160. package/dist/utils/index.d.ts +1 -0
  161. package/dist/utils/index.js +1 -0
  162. package/dist/utils/type-helpers.d.ts +4 -0
  163. package/dist/utils/type-helpers.js +19 -0
  164. package/package.json +1 -1
  165. package/src/types/id-types.ts +2 -2
  166. package/src/types/index.ts +4 -3
  167. package/src/types/new/agenda-types.ts +69 -0
  168. package/src/types/new/auth-types.ts +92 -0
  169. package/src/types/new/habits-types.ts +112 -0
  170. package/src/types/new/index.ts +10 -0
  171. package/src/types/new/lists-types.ts +108 -0
  172. package/src/types/new/misc/index.ts +1 -0
  173. package/src/types/new/misc/version-types.ts +15 -0
  174. package/src/types/new/notifications-types.ts +144 -0
  175. package/src/types/new/people-types.ts +110 -0
  176. package/src/types/new/program-config-types.ts +29 -0
  177. package/src/types/new/thoughts-types.ts +44 -0
  178. package/src/types/new/user-types.ts +61 -0
  179. package/src/types/{api → old/api}/account/get-user-types.ts +1 -1
  180. package/src/types/{api → old/api}/account/update-user-types.ts +1 -1
  181. package/src/types/{api → old/api}/auth/create-account-types.ts +1 -1
  182. package/src/types/{api → old/api}/habits/create-habit-entry-types.ts +2 -2
  183. package/src/types/{api → old/api}/habits/create-habit-types.ts +1 -1
  184. package/src/types/{api → old/api}/habits/delete-habit-entry-types.ts +1 -1
  185. package/src/types/{api → old/api}/habits/get-habits-types.ts +1 -1
  186. package/src/types/{api → old/api}/habits/update-habit-types.ts +1 -1
  187. package/src/types/{api → old/api}/items/complete-item-types.ts +1 -1
  188. package/src/types/{api → old/api}/items/create-item-types.ts +1 -1
  189. package/src/types/{api → old/api}/items/get-items-types.ts +1 -1
  190. package/src/types/{api → old/api}/items/update-item-types.ts +1 -1
  191. package/src/types/{api → old/api}/lists/complete-list-item-types.ts +1 -1
  192. package/src/types/{api → old/api}/lists/create-list-item-types.ts +2 -2
  193. package/src/types/{api → old/api}/lists/create-list-types.ts +1 -1
  194. package/src/types/{api → old/api}/lists/get-list-item-types.ts +1 -1
  195. package/src/types/{api → old/api}/lists/get-lists-types.ts +1 -1
  196. package/src/types/{api → old/api}/lists/update-list-item-types.ts +2 -2
  197. package/src/types/{api → old/api}/lists/update-list-types.ts +1 -1
  198. package/src/types/{api → old/api}/notifications/create-notification-template-types.ts +1 -1
  199. package/src/types/{api → old/api}/notifications/get-notification-templates-types.ts +1 -1
  200. package/src/types/{api → old/api}/notifications/sync-notification-template-types.ts +1 -1
  201. package/src/types/{api → old/api}/notifications/update-notification-template-types.ts +1 -1
  202. package/src/types/{api → old/api}/people/create-person-note-types.ts +2 -2
  203. package/src/types/{api → old/api}/people/create-person-types.ts +2 -2
  204. package/src/types/{api → old/api}/people/get-people-types.ts +1 -1
  205. package/src/types/{api → old/api}/people/get-person-notes-types.ts +1 -1
  206. package/src/types/{api → old/api}/people/update-person-note-types.ts +1 -1
  207. package/src/types/{api → old/api}/people/update-person-types.ts +2 -2
  208. package/src/types/{api → old/api}/thoughts/create-thought-types.ts +1 -1
  209. package/src/types/{api → old/api}/thoughts/get-thoughts-types.ts +1 -1
  210. package/src/types/{api → old/api}/thoughts/update-thought-types.ts +1 -1
  211. package/src/types/{models → old/models}/auth-data.ts +1 -1
  212. package/src/types/{models → old/models}/habit-data.ts +2 -2
  213. package/src/types/{models → old/models}/item-data.ts +1 -1
  214. package/src/types/{models → old/models}/list-data.ts +1 -1
  215. package/src/types/{models → old/models}/notification-template-data.ts +1 -1
  216. package/src/types/{models → old/models}/person-data.ts +1 -1
  217. package/src/types/{models → old/models}/thought-data.ts +1 -1
  218. package/src/types/{models → old/models}/user-data.ts +2 -2
  219. package/src/utils/index.ts +2 -1
  220. package/src/utils/type-helpers.ts +19 -0
  221. /package/src/types/{api → old/api}/account/index.ts +0 -0
  222. /package/src/types/{api → old/api}/auth/index.ts +0 -0
  223. /package/src/types/{api → old/api}/auth/refresh-auth-types.ts +0 -0
  224. /package/src/types/{api → old/api}/auth/resend-verification-types.ts +0 -0
  225. /package/src/types/{api → old/api}/auth/sign-in-types.ts +0 -0
  226. /package/src/types/{api → old/api}/auth/verify-email-types.ts +0 -0
  227. /package/src/types/{api → old/api}/habits/delete-habit-types.ts +0 -0
  228. /package/src/types/{api → old/api}/habits/index.ts +0 -0
  229. /package/src/types/{api → old/api}/index.ts +0 -0
  230. /package/src/types/{api → old/api}/items/delete-item-types.ts +0 -0
  231. /package/src/types/{api → old/api}/items/index.ts +0 -0
  232. /package/src/types/{api → old/api}/lists/index.ts +0 -0
  233. /package/src/types/{api → old/api}/misc/index.ts +0 -0
  234. /package/src/types/{api → old/api}/misc/version-types.ts +0 -0
  235. /package/src/types/{api → old/api}/notifications/delete-notification-template-types.ts +0 -0
  236. /package/src/types/{api → old/api}/notifications/index.ts +0 -0
  237. /package/src/types/{api → old/api}/notifications/preview-notification-template-types.ts +0 -0
  238. /package/src/types/{api → old/api}/people/delete-person-notes-types.ts +0 -0
  239. /package/src/types/{api → old/api}/people/delete-person-types.ts +0 -0
  240. /package/src/types/{api → old/api}/people/index.ts +0 -0
  241. /package/src/types/{api → old/api}/thoughts/delete-thought-types.ts +0 -0
  242. /package/src/types/{api → old/api}/thoughts/index.ts +0 -0
  243. /package/src/types/{auth-tokens.ts → old/auth-tokens.ts} +0 -0
  244. /package/src/types/{models → old/models}/index.ts +0 -0
  245. /package/src/types/{models → old/models}/notifiable.ts +0 -0
  246. /package/src/types/{models → old/models}/program-config.ts +0 -0
@@ -0,0 +1,78 @@
1
+ import { z } from "zod";
2
+ import { Serialized } from "../../../../utils";
3
+ import { NotificationTemplateData } from "../../models/notification-template-data";
4
+ export declare const createNotificationTemplateRequestSchema: z.ZodObject<{
5
+ entityType: z.ZodEnum<["agenda", "tasks", "habits", "inbox", "agenda_item", "habit", "agenda_defaults", "habits_defaults"]>;
6
+ entityId: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodString;
8
+ description: z.ZodOptional<z.ZodString>;
9
+ trigger: z.ZodObject<{
10
+ type: z.ZodEnum<["time_based", "event_based", "recurring"]>;
11
+ conditions: z.ZodRecord<z.ZodString, z.ZodAny>;
12
+ timing: z.ZodRecord<z.ZodString, z.ZodAny>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ type: "time_based" | "event_based" | "recurring";
15
+ conditions: Record<string, any>;
16
+ timing: Record<string, any>;
17
+ }, {
18
+ type: "time_based" | "event_based" | "recurring";
19
+ conditions: Record<string, any>;
20
+ timing: Record<string, any>;
21
+ }>;
22
+ content: z.ZodObject<{
23
+ title: z.ZodString;
24
+ body: z.ZodString;
25
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ title: string;
28
+ body: string;
29
+ variables?: Record<string, string> | undefined;
30
+ }, {
31
+ title: string;
32
+ body: string;
33
+ variables?: Record<string, string> | undefined;
34
+ }>;
35
+ active: z.ZodDefault<z.ZodBoolean>;
36
+ inheritedFrom: z.ZodOptional<z.ZodString>;
37
+ customized: z.ZodDefault<z.ZodBoolean>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ name: string;
40
+ content: {
41
+ title: string;
42
+ body: string;
43
+ variables?: Record<string, string> | undefined;
44
+ };
45
+ entityType: "agenda" | "inbox" | "habits" | "tasks" | "agenda_item" | "habit" | "agenda_defaults" | "habits_defaults";
46
+ trigger: {
47
+ type: "time_based" | "event_based" | "recurring";
48
+ conditions: Record<string, any>;
49
+ timing: Record<string, any>;
50
+ };
51
+ active: boolean;
52
+ customized: boolean;
53
+ description?: string | undefined;
54
+ entityId?: string | undefined;
55
+ inheritedFrom?: string | undefined;
56
+ }, {
57
+ name: string;
58
+ content: {
59
+ title: string;
60
+ body: string;
61
+ variables?: Record<string, string> | undefined;
62
+ };
63
+ entityType: "agenda" | "inbox" | "habits" | "tasks" | "agenda_item" | "habit" | "agenda_defaults" | "habits_defaults";
64
+ trigger: {
65
+ type: "time_based" | "event_based" | "recurring";
66
+ conditions: Record<string, any>;
67
+ timing: Record<string, any>;
68
+ };
69
+ description?: string | undefined;
70
+ entityId?: string | undefined;
71
+ active?: boolean | undefined;
72
+ inheritedFrom?: string | undefined;
73
+ customized?: boolean | undefined;
74
+ }>;
75
+ export type CreateNotificationTemplateRequest = z.infer<typeof createNotificationTemplateRequestSchema>;
76
+ export interface CreateNotificationTemplateResponse {
77
+ template: Serialized<NotificationTemplateData>;
78
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createNotificationTemplateRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const notification_template_data_1 = require("../../models/notification-template-data");
6
+ // Request schema
7
+ exports.createNotificationTemplateRequestSchema = zod_1.z.object({
8
+ entityType: notification_template_data_1.notificationEntityTypeSchema,
9
+ entityId: zod_1.z.string().optional(),
10
+ name: zod_1.z.string().min(1).max(100),
11
+ description: zod_1.z.string().max(500).optional(),
12
+ trigger: zod_1.z.object({
13
+ type: notification_template_data_1.notificationTriggerTypeSchema,
14
+ conditions: zod_1.z.record(zod_1.z.any()),
15
+ timing: zod_1.z.record(zod_1.z.any())
16
+ }),
17
+ content: zod_1.z.object({
18
+ title: zod_1.z.string().min(1).max(200),
19
+ body: zod_1.z.string().min(1).max(1000),
20
+ variables: zod_1.z.record(zod_1.z.string()).optional()
21
+ }),
22
+ active: zod_1.z.boolean().default(true),
23
+ inheritedFrom: zod_1.z.string().optional(),
24
+ customized: zod_1.z.boolean().default(false)
25
+ });
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export declare const deleteNotificationTemplateRequestSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3
+ export type DeleteNotificationTemplateRequest = z.infer<typeof deleteNotificationTemplateRequestSchema>;
4
+ export interface DeleteNotificationTemplateResponse {
5
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteNotificationTemplateRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ // Request schema - no body needed for DELETE
6
+ exports.deleteNotificationTemplateRequestSchema = zod_1.z.object({});
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ import { Serialized } from "../../../../utils";
3
+ import { NotificationTemplateData } from "../../models/notification-template-data";
4
+ export declare const getNotificationTemplatesRequestSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
5
+ export type GetNotificationTemplatesRequest = z.infer<typeof getNotificationTemplatesRequestSchema>;
6
+ export interface GetNotificationTemplatesResponse {
7
+ templates: Serialized<NotificationTemplateData>[];
8
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getNotificationTemplatesRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ // Request schema - no body needed for GET
6
+ exports.getNotificationTemplatesRequestSchema = zod_1.z.object({});
@@ -0,0 +1,6 @@
1
+ export * from './get-notification-templates-types';
2
+ export * from './create-notification-template-types';
3
+ export * from './update-notification-template-types';
4
+ export * from './delete-notification-template-types';
5
+ export * from './preview-notification-template-types';
6
+ export * from './sync-notification-template-types';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-notification-templates-types"), exports);
18
+ __exportStar(require("./create-notification-template-types"), exports);
19
+ __exportStar(require("./update-notification-template-types"), exports);
20
+ __exportStar(require("./delete-notification-template-types"), exports);
21
+ __exportStar(require("./preview-notification-template-types"), exports);
22
+ __exportStar(require("./sync-notification-template-types"), exports);
@@ -0,0 +1,29 @@
1
+ import { z } from "zod";
2
+ export declare const previewNotificationTemplateRequestSchema: z.ZodObject<{
3
+ templateTitle: z.ZodString;
4
+ templateBody: z.ZodString;
5
+ entityType: z.ZodString;
6
+ entityId: z.ZodString;
7
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ entityType: string;
10
+ entityId: string;
11
+ templateTitle: string;
12
+ templateBody: string;
13
+ variables?: Record<string, any> | undefined;
14
+ }, {
15
+ entityType: string;
16
+ entityId: string;
17
+ templateTitle: string;
18
+ templateBody: string;
19
+ variables?: Record<string, any> | undefined;
20
+ }>;
21
+ export type PreviewNotificationTemplateRequest = z.infer<typeof previewNotificationTemplateRequestSchema>;
22
+ export interface PreviewNotificationTemplateResponse {
23
+ preview: {
24
+ title: string;
25
+ body: string;
26
+ variables: Record<string, any>;
27
+ };
28
+ missingVariables: string[];
29
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.previewNotificationTemplateRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ // Request schema
6
+ exports.previewNotificationTemplateRequestSchema = zod_1.z.object({
7
+ templateTitle: zod_1.z.string(),
8
+ templateBody: zod_1.z.string(),
9
+ entityType: zod_1.z.string(),
10
+ entityId: zod_1.z.string(),
11
+ variables: zod_1.z.record(zod_1.z.any()).optional()
12
+ });
@@ -0,0 +1,14 @@
1
+ import { z } from "zod";
2
+ import { Serialized } from "../../../../utils";
3
+ import { NotificationTemplateData } from "../../models/notification-template-data";
4
+ export declare const syncNotificationTemplateRequestSchema: z.ZodObject<{
5
+ sync: z.ZodBoolean;
6
+ }, "strip", z.ZodTypeAny, {
7
+ sync: boolean;
8
+ }, {
9
+ sync: boolean;
10
+ }>;
11
+ export type SyncNotificationTemplateRequest = z.infer<typeof syncNotificationTemplateRequestSchema>;
12
+ export interface SyncNotificationTemplateResponse {
13
+ template: Serialized<NotificationTemplateData>;
14
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.syncNotificationTemplateRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ // Request schema
6
+ exports.syncNotificationTemplateRequestSchema = zod_1.z.object({
7
+ sync: zod_1.z.boolean() // true to sync with parent, false to unsync
8
+ });
@@ -0,0 +1,69 @@
1
+ import { z } from "zod";
2
+ import { Serialized } from "../../../../utils";
3
+ import { NotificationTemplateData } from "../../models";
4
+ export declare const updateNotificationTemplateRequestSchema: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ trigger: z.ZodOptional<z.ZodObject<{
8
+ type: z.ZodEnum<["time_based", "event_based", "recurring"]>;
9
+ conditions: z.ZodRecord<z.ZodString, z.ZodAny>;
10
+ timing: z.ZodRecord<z.ZodString, z.ZodAny>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ type: "time_based" | "event_based" | "recurring";
13
+ conditions: Record<string, any>;
14
+ timing: Record<string, any>;
15
+ }, {
16
+ type: "time_based" | "event_based" | "recurring";
17
+ conditions: Record<string, any>;
18
+ timing: Record<string, any>;
19
+ }>>;
20
+ content: z.ZodOptional<z.ZodObject<{
21
+ title: z.ZodString;
22
+ body: z.ZodString;
23
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ title: string;
26
+ body: string;
27
+ variables?: Record<string, string> | undefined;
28
+ }, {
29
+ title: string;
30
+ body: string;
31
+ variables?: Record<string, string> | undefined;
32
+ }>>;
33
+ active: z.ZodOptional<z.ZodBoolean>;
34
+ customized: z.ZodOptional<z.ZodBoolean>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ name?: string | undefined;
37
+ description?: string | undefined;
38
+ content?: {
39
+ title: string;
40
+ body: string;
41
+ variables?: Record<string, string> | undefined;
42
+ } | undefined;
43
+ trigger?: {
44
+ type: "time_based" | "event_based" | "recurring";
45
+ conditions: Record<string, any>;
46
+ timing: Record<string, any>;
47
+ } | undefined;
48
+ active?: boolean | undefined;
49
+ customized?: boolean | undefined;
50
+ }, {
51
+ name?: string | undefined;
52
+ description?: string | undefined;
53
+ content?: {
54
+ title: string;
55
+ body: string;
56
+ variables?: Record<string, string> | undefined;
57
+ } | undefined;
58
+ trigger?: {
59
+ type: "time_based" | "event_based" | "recurring";
60
+ conditions: Record<string, any>;
61
+ timing: Record<string, any>;
62
+ } | undefined;
63
+ active?: boolean | undefined;
64
+ customized?: boolean | undefined;
65
+ }>;
66
+ export type UpdateNotificationTemplateRequest = z.infer<typeof updateNotificationTemplateRequestSchema>;
67
+ export interface UpdateNotificationTemplateResponse {
68
+ template: Serialized<NotificationTemplateData>;
69
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateNotificationTemplateRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ // Request schema
7
+ exports.updateNotificationTemplateRequestSchema = zod_1.z.object({
8
+ name: zod_1.z.string().optional(),
9
+ description: zod_1.z.string().optional(),
10
+ trigger: zod_1.z.object({
11
+ type: models_1.notificationTriggerTypeSchema,
12
+ conditions: zod_1.z.record(zod_1.z.any()),
13
+ timing: zod_1.z.record(zod_1.z.any())
14
+ }).optional(),
15
+ content: zod_1.z.object({
16
+ title: zod_1.z.string(),
17
+ body: zod_1.z.string(),
18
+ variables: zod_1.z.record(zod_1.z.string()).optional()
19
+ }).optional(),
20
+ active: zod_1.z.boolean().optional(),
21
+ customized: zod_1.z.boolean().optional()
22
+ });
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { PersonNoteData } from "../../models";
3
+ import { Serialized } from "../../../../utils";
4
+ export declare const createPersonNoteRequestSchema: z.ZodObject<{
5
+ personId: z.ZodEffects<z.ZodString, import("../../../id-types").PersonId, string>;
6
+ content: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ content: string;
9
+ personId: string & {
10
+ readonly __brand: "PersonId";
11
+ };
12
+ }, {
13
+ content: string;
14
+ personId: string;
15
+ }>;
16
+ export type CreatePersonNoteRequest = z.infer<typeof createPersonNoteRequestSchema>;
17
+ export interface CreatePersonNoteResponse {
18
+ personNote: Serialized<PersonNoteData>;
19
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createPersonNoteRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const id_types_1 = require("../../../id-types");
6
+ exports.createPersonNoteRequestSchema = zod_1.z.object({
7
+ personId: id_types_1.personIdSchema,
8
+ content: zod_1.z.string().min(1)
9
+ });
@@ -0,0 +1,35 @@
1
+ import { z } from 'zod';
2
+ import { Person } from "../../models";
3
+ import { Serialized } from "../../../../utils";
4
+ export declare const createPersonRequestSchema: z.ZodObject<{
5
+ name: z.ZodString;
6
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ key: z.ZodString;
8
+ value: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ key: string;
11
+ value: string;
12
+ }, {
13
+ key: string;
14
+ value: string;
15
+ }>, "many">>;
16
+ notes: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, import("../../../id-types").PersonNoteId, string>, "many">>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ name: string;
19
+ notes?: import("../../../id-types").PersonNoteId[] | undefined;
20
+ properties?: {
21
+ key: string;
22
+ value: string;
23
+ }[] | undefined;
24
+ }, {
25
+ name: string;
26
+ notes?: string[] | undefined;
27
+ properties?: {
28
+ key: string;
29
+ value: string;
30
+ }[] | undefined;
31
+ }>;
32
+ export type CreatePersonRequest = z.infer<typeof createPersonRequestSchema>;
33
+ export interface CreatePersonResponse {
34
+ person: Serialized<Person>;
35
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createPersonRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const id_types_1 = require("../../../id-types");
6
+ exports.createPersonRequestSchema = zod_1.z.object({
7
+ name: zod_1.z.string().min(1),
8
+ properties: zod_1.z.array(zod_1.z.object({
9
+ key: zod_1.z.string().min(1),
10
+ value: zod_1.z.string().min(1)
11
+ })).optional(),
12
+ notes: zod_1.z.array(id_types_1.personNoteIdSchema).optional()
13
+ });
@@ -0,0 +1,3 @@
1
+ export interface DeletePersonNoteResponse {
2
+ success: boolean;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface DeletePersonResponse {
2
+ deleted: boolean;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { Person } from "../../models";
2
+ import { Serialized } from "../../../../utils";
3
+ export interface GetPeopleResponse {
4
+ people: Serialized<Person>[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { PersonNoteData } from "../../models";
2
+ import { Serialized } from "../../../../utils";
3
+ export interface GetPersonNotesResponse {
4
+ personNotes: Serialized<PersonNoteData>[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export * from './create-person-note-types';
2
+ export * from './create-person-types';
3
+ export * from './delete-person-notes-types';
4
+ export * from './delete-person-types';
5
+ export * from './get-people-types';
6
+ export * from './get-person-notes-types';
7
+ export * from './update-person-note-types';
8
+ export * from './update-person-types';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./create-person-note-types"), exports);
18
+ __exportStar(require("./create-person-types"), exports);
19
+ __exportStar(require("./delete-person-notes-types"), exports);
20
+ __exportStar(require("./delete-person-types"), exports);
21
+ __exportStar(require("./get-people-types"), exports);
22
+ __exportStar(require("./get-person-notes-types"), exports);
23
+ __exportStar(require("./update-person-note-types"), exports);
24
+ __exportStar(require("./update-person-types"), exports);
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ import { PersonNoteData } from "../../models";
3
+ import { Serialized } from "../../../../utils";
4
+ export declare const updatePersonNoteRequestSchema: z.ZodObject<{
5
+ content: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ content: string;
8
+ }, {
9
+ content: string;
10
+ }>;
11
+ export type UpdatePersonNoteRequest = z.infer<typeof updatePersonNoteRequestSchema>;
12
+ export interface UpdatePersonNoteResponse {
13
+ personNote: Serialized<PersonNoteData>;
14
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updatePersonNoteRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.updatePersonNoteRequestSchema = zod_1.z.object({
6
+ content: zod_1.z.string().min(1)
7
+ });
@@ -0,0 +1,35 @@
1
+ import { z } from 'zod';
2
+ import { Person } from "../../models";
3
+ import { Serialized } from "../../../../utils";
4
+ export declare const updatePersonRequestSchema: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ key: z.ZodString;
8
+ value: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ key: string;
11
+ value: string;
12
+ }, {
13
+ key: string;
14
+ value: string;
15
+ }>, "many">>;
16
+ noteIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, import("../../../id-types").PersonNoteId, string>, "many">>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ name?: string | undefined;
19
+ properties?: {
20
+ key: string;
21
+ value: string;
22
+ }[] | undefined;
23
+ noteIds?: import("../../../id-types").PersonNoteId[] | undefined;
24
+ }, {
25
+ name?: string | undefined;
26
+ properties?: {
27
+ key: string;
28
+ value: string;
29
+ }[] | undefined;
30
+ noteIds?: string[] | undefined;
31
+ }>;
32
+ export type UpdatePersonRequest = z.infer<typeof updatePersonRequestSchema>;
33
+ export interface UpdatePersonResponse {
34
+ person: Serialized<Person>;
35
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updatePersonRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const id_types_1 = require("../../../id-types");
6
+ exports.updatePersonRequestSchema = zod_1.z.object({
7
+ name: zod_1.z.string().min(1).optional(),
8
+ properties: zod_1.z.array(zod_1.z.object({
9
+ key: zod_1.z.string().min(1),
10
+ value: zod_1.z.string().min(1)
11
+ })).optional(),
12
+ noteIds: zod_1.z.array(id_types_1.personNoteIdSchema).optional()
13
+ });
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ import { Serialized } from "../../../../utils";
3
+ import { ThoughtData } from "../../models";
4
+ export declare const createThoughtRequestSchema: z.ZodObject<{
5
+ content: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ content: string;
8
+ }, {
9
+ content: string;
10
+ }>;
11
+ export type CreateThoughtRequest = z.infer<typeof createThoughtRequestSchema>;
12
+ export interface CreateThoughtResponse {
13
+ thought: Serialized<ThoughtData>;
14
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createThoughtRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.createThoughtRequestSchema = zod_1.z.object({
6
+ content: zod_1.z.string().min(1)
7
+ });
@@ -0,0 +1,3 @@
1
+ export interface DeleteThoughtResponse {
2
+ deleted: boolean;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { Serialized } from "../../../../utils";
2
+ import { ThoughtData } from "../../models";
3
+ export interface GetThoughtsResponse {
4
+ thoughts: Serialized<ThoughtData>[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export * from './create-thought-types';
2
+ export * from './delete-thought-types';
3
+ export * from './get-thoughts-types';
4
+ export * from './update-thought-types';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./create-thought-types"), exports);
18
+ __exportStar(require("./delete-thought-types"), exports);
19
+ __exportStar(require("./get-thoughts-types"), exports);
20
+ __exportStar(require("./update-thought-types"), exports);