@nikthegeek/dreamsforlittles-shared 0.18.14 → 0.18.15
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/owner-help.d.ts +234 -0
- package/dist/owner-help.js +19 -0
- package/dist/owner-help.js.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;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<["family", "coach"]>;
|
|
5
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
userId: string;
|
|
8
|
+
role: "family" | "coach";
|
|
9
|
+
organizationId?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
userId: string;
|
|
12
|
+
role: "family" | "coach";
|
|
13
|
+
organizationId?: string | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
userId: string;
|
|
16
|
+
role: "family" | "coach";
|
|
17
|
+
organizationId?: string | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
userId: string;
|
|
20
|
+
role: "family" | "coach";
|
|
21
|
+
organizationId?: string | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const ownerHelpCreateSchema: z.ZodObject<{
|
|
24
|
+
target: z.ZodEffects<z.ZodObject<{
|
|
25
|
+
userId: z.ZodString;
|
|
26
|
+
role: z.ZodEnum<["family", "coach"]>;
|
|
27
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, "strict", z.ZodTypeAny, {
|
|
29
|
+
userId: string;
|
|
30
|
+
role: "family" | "coach";
|
|
31
|
+
organizationId?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
userId: string;
|
|
34
|
+
role: "family" | "coach";
|
|
35
|
+
organizationId?: string | undefined;
|
|
36
|
+
}>, {
|
|
37
|
+
userId: string;
|
|
38
|
+
role: "family" | "coach";
|
|
39
|
+
organizationId?: string | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
userId: string;
|
|
42
|
+
role: "family" | "coach";
|
|
43
|
+
organizationId?: string | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
clientRequestId: z.ZodString;
|
|
46
|
+
}, "strict", z.ZodTypeAny, {
|
|
47
|
+
clientRequestId: string;
|
|
48
|
+
target: {
|
|
49
|
+
userId: string;
|
|
50
|
+
role: "family" | "coach";
|
|
51
|
+
organizationId?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
clientRequestId: string;
|
|
55
|
+
target: {
|
|
56
|
+
userId: string;
|
|
57
|
+
role: "family" | "coach";
|
|
58
|
+
organizationId?: string | undefined;
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
export declare const ownerHelpPageSchema: z.ZodObject<{
|
|
62
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
63
|
+
}, "strict", z.ZodTypeAny, {
|
|
64
|
+
page: number;
|
|
65
|
+
}, {
|
|
66
|
+
page?: number | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
export declare const ownerHelpCheckSchema: z.ZodObject<{
|
|
69
|
+
key: z.ZodString;
|
|
70
|
+
state: z.ZodEnum<["attention", "recorded", "unknown"]>;
|
|
71
|
+
title: z.ZodString;
|
|
72
|
+
detail: z.ZodString;
|
|
73
|
+
}, "strict", z.ZodTypeAny, {
|
|
74
|
+
state: "unknown" | "attention" | "recorded";
|
|
75
|
+
key: string;
|
|
76
|
+
title: string;
|
|
77
|
+
detail: string;
|
|
78
|
+
}, {
|
|
79
|
+
state: "unknown" | "attention" | "recorded";
|
|
80
|
+
key: string;
|
|
81
|
+
title: string;
|
|
82
|
+
detail: string;
|
|
83
|
+
}>;
|
|
84
|
+
export declare const ownerHelpSnapshotSchema: z.ZodObject<{
|
|
85
|
+
generatedAt: z.ZodString;
|
|
86
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
87
|
+
key: z.ZodString;
|
|
88
|
+
state: z.ZodEnum<["attention", "recorded", "unknown"]>;
|
|
89
|
+
title: z.ZodString;
|
|
90
|
+
detail: z.ZodString;
|
|
91
|
+
}, "strict", z.ZodTypeAny, {
|
|
92
|
+
state: "unknown" | "attention" | "recorded";
|
|
93
|
+
key: string;
|
|
94
|
+
title: string;
|
|
95
|
+
detail: string;
|
|
96
|
+
}, {
|
|
97
|
+
state: "unknown" | "attention" | "recorded";
|
|
98
|
+
key: string;
|
|
99
|
+
title: string;
|
|
100
|
+
detail: string;
|
|
101
|
+
}>, "many">;
|
|
102
|
+
}, "strict", z.ZodTypeAny, {
|
|
103
|
+
generatedAt: string;
|
|
104
|
+
checks: {
|
|
105
|
+
state: "unknown" | "attention" | "recorded";
|
|
106
|
+
key: string;
|
|
107
|
+
title: string;
|
|
108
|
+
detail: string;
|
|
109
|
+
}[];
|
|
110
|
+
}, {
|
|
111
|
+
generatedAt: string;
|
|
112
|
+
checks: {
|
|
113
|
+
state: "unknown" | "attention" | "recorded";
|
|
114
|
+
key: string;
|
|
115
|
+
title: string;
|
|
116
|
+
detail: string;
|
|
117
|
+
}[];
|
|
118
|
+
}>;
|
|
119
|
+
export declare const ownerHelpReportSchema: z.ZodObject<{
|
|
120
|
+
generatedAt: z.ZodString;
|
|
121
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
122
|
+
key: z.ZodString;
|
|
123
|
+
state: z.ZodEnum<["attention", "recorded", "unknown"]>;
|
|
124
|
+
title: z.ZodString;
|
|
125
|
+
detail: z.ZodString;
|
|
126
|
+
}, "strict", z.ZodTypeAny, {
|
|
127
|
+
state: "unknown" | "attention" | "recorded";
|
|
128
|
+
key: string;
|
|
129
|
+
title: string;
|
|
130
|
+
detail: string;
|
|
131
|
+
}, {
|
|
132
|
+
state: "unknown" | "attention" | "recorded";
|
|
133
|
+
key: string;
|
|
134
|
+
title: string;
|
|
135
|
+
detail: string;
|
|
136
|
+
}>, "many">;
|
|
137
|
+
} & {
|
|
138
|
+
target: z.ZodEffects<z.ZodObject<{
|
|
139
|
+
userId: z.ZodString;
|
|
140
|
+
role: z.ZodEnum<["family", "coach"]>;
|
|
141
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
142
|
+
}, "strict", z.ZodTypeAny, {
|
|
143
|
+
userId: string;
|
|
144
|
+
role: "family" | "coach";
|
|
145
|
+
organizationId?: string | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
userId: string;
|
|
148
|
+
role: "family" | "coach";
|
|
149
|
+
organizationId?: string | undefined;
|
|
150
|
+
}>, {
|
|
151
|
+
userId: string;
|
|
152
|
+
role: "family" | "coach";
|
|
153
|
+
organizationId?: string | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
userId: string;
|
|
156
|
+
role: "family" | "coach";
|
|
157
|
+
organizationId?: string | undefined;
|
|
158
|
+
}>;
|
|
159
|
+
children: z.ZodArray<z.ZodObject<{
|
|
160
|
+
name: z.ZodString;
|
|
161
|
+
birthday: z.ZodString;
|
|
162
|
+
}, "strict", z.ZodTypeAny, {
|
|
163
|
+
name: string;
|
|
164
|
+
birthday: string;
|
|
165
|
+
}, {
|
|
166
|
+
name: string;
|
|
167
|
+
birthday: string;
|
|
168
|
+
}>, "many">;
|
|
169
|
+
support: z.ZodArray<z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
subject: z.ZodString;
|
|
172
|
+
status: z.ZodString;
|
|
173
|
+
lastMessageAt: z.ZodString;
|
|
174
|
+
}, "strict", z.ZodTypeAny, {
|
|
175
|
+
status: string;
|
|
176
|
+
id: string;
|
|
177
|
+
subject: string;
|
|
178
|
+
lastMessageAt: string;
|
|
179
|
+
}, {
|
|
180
|
+
status: string;
|
|
181
|
+
id: string;
|
|
182
|
+
subject: string;
|
|
183
|
+
lastMessageAt: string;
|
|
184
|
+
}>, "many">;
|
|
185
|
+
}, "strict", z.ZodTypeAny, {
|
|
186
|
+
generatedAt: string;
|
|
187
|
+
children: {
|
|
188
|
+
name: string;
|
|
189
|
+
birthday: string;
|
|
190
|
+
}[];
|
|
191
|
+
target: {
|
|
192
|
+
userId: string;
|
|
193
|
+
role: "family" | "coach";
|
|
194
|
+
organizationId?: string | undefined;
|
|
195
|
+
};
|
|
196
|
+
support: {
|
|
197
|
+
status: string;
|
|
198
|
+
id: string;
|
|
199
|
+
subject: string;
|
|
200
|
+
lastMessageAt: string;
|
|
201
|
+
}[];
|
|
202
|
+
checks: {
|
|
203
|
+
state: "unknown" | "attention" | "recorded";
|
|
204
|
+
key: string;
|
|
205
|
+
title: string;
|
|
206
|
+
detail: string;
|
|
207
|
+
}[];
|
|
208
|
+
}, {
|
|
209
|
+
generatedAt: string;
|
|
210
|
+
children: {
|
|
211
|
+
name: string;
|
|
212
|
+
birthday: string;
|
|
213
|
+
}[];
|
|
214
|
+
target: {
|
|
215
|
+
userId: string;
|
|
216
|
+
role: "family" | "coach";
|
|
217
|
+
organizationId?: string | undefined;
|
|
218
|
+
};
|
|
219
|
+
support: {
|
|
220
|
+
status: string;
|
|
221
|
+
id: string;
|
|
222
|
+
subject: string;
|
|
223
|
+
lastMessageAt: string;
|
|
224
|
+
}[];
|
|
225
|
+
checks: {
|
|
226
|
+
state: "unknown" | "attention" | "recorded";
|
|
227
|
+
key: string;
|
|
228
|
+
title: string;
|
|
229
|
+
detail: string;
|
|
230
|
+
}[];
|
|
231
|
+
}>;
|
|
232
|
+
export type OwnerHelpTarget = z.infer<typeof ownerHelpTargetSchema>;
|
|
233
|
+
export type OwnerHelpReport = z.infer<typeof ownerHelpReportSchema>;
|
|
234
|
+
export type OwnerHelpCreate = z.infer<typeof ownerHelpCreateSchema>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { idSchema, isoDateStringSchema } from "./api.js";
|
|
3
|
+
export const ownerHelpTargetSchema = z.object({
|
|
4
|
+
userId: idSchema.max(200), role: z.enum(["family", "coach"]), organizationId: idSchema.max(200).optional()
|
|
5
|
+
}).strict().superRefine((v, ctx) => {
|
|
6
|
+
if ((v.role === "coach") !== Boolean(v.organizationId))
|
|
7
|
+
ctx.addIssue({ code: "custom", message: "Coach requests require a practice; family requests cannot specify one." });
|
|
8
|
+
});
|
|
9
|
+
export const ownerHelpCreateSchema = z.object({ target: ownerHelpTargetSchema, clientRequestId: z.string().uuid() }).strict();
|
|
10
|
+
export const ownerHelpPageSchema = z.object({ page: z.coerce.number().int().min(1).max(10000).default(1) }).strict();
|
|
11
|
+
export const ownerHelpCheckSchema = z.object({ key: z.string().max(40), state: z.enum(["attention", "recorded", "unknown"]),
|
|
12
|
+
title: z.string().max(120), detail: z.string().max(1500) }).strict();
|
|
13
|
+
export const ownerHelpSnapshotSchema = z.object({ generatedAt: isoDateStringSchema, checks: z.array(ownerHelpCheckSchema).max(7) }).strict();
|
|
14
|
+
export const ownerHelpReportSchema = ownerHelpSnapshotSchema.extend({
|
|
15
|
+
target: ownerHelpTargetSchema,
|
|
16
|
+
children: z.array(z.object({ name: z.string(), birthday: z.string() }).strict()).max(100),
|
|
17
|
+
support: z.array(z.object({ id: idSchema, subject: z.string(), status: z.string(), lastMessageAt: isoDateStringSchema }).strict()).max(5)
|
|
18
|
+
}).strict();
|
|
19
|
+
//# sourceMappingURL=owner-help.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"owner-help.js","sourceRoot":"","sources":["../src/owner-help.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,EAAE,cAAc,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CAC3G,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;IACjC,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC;QAAE,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,wEAAwE,EAAE,CAAC,CAAC;AAC9K,CAAC,CAAC,CAAC;AACH,MAAM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