@nikthegeek/dreamsforlittles-shared 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access.d.ts +2450 -30
- package/dist/access.js +63 -4
- package/dist/access.js.map +1 -1
- package/dist/admin.d.ts +12635 -1041
- package/dist/admin.js +554 -4
- package/dist/admin.js.map +1 -1
- package/dist/allergy-ladders.d.ts +563 -80
- package/dist/allergy-ladders.js +40 -0
- package/dist/allergy-ladders.js.map +1 -1
- package/dist/analysis.d.ts +68 -46
- package/dist/analysis.js +10 -2
- package/dist/analysis.js.map +1 -1
- package/dist/api.d.ts +12 -5
- package/dist/api.js +12 -0
- package/dist/api.js.map +1 -1
- package/dist/app-feedback.d.ts +322 -0
- package/dist/app-feedback.js +58 -0
- package/dist/app-feedback.js.map +1 -0
- package/dist/auth.d.ts +684 -0
- package/dist/auth.js +45 -4
- package/dist/auth.js.map +1 -1
- package/dist/billing.d.ts +47 -2
- package/dist/billing.js +56 -29
- package/dist/billing.js.map +1 -1
- package/dist/client-notices.d.ts +6114 -0
- package/dist/client-notices.js +455 -0
- package/dist/client-notices.js.map +1 -0
- package/dist/coach.d.ts +20178 -206
- package/dist/coach.js +329 -18
- package/dist/coach.js.map +1 -1
- package/dist/communication-preferences.d.ts +61 -0
- package/dist/communication-preferences.js +30 -0
- package/dist/communication-preferences.js.map +1 -0
- package/dist/enums.d.ts +6 -2
- package/dist/enums.js +27 -1
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +9 -4
- package/dist/errors.js +9 -2
- package/dist/errors.js.map +1 -1
- package/dist/family-invitations.d.ts +2289 -0
- package/dist/family-invitations.js +77 -0
- package/dist/family-invitations.js.map +1 -0
- package/dist/family-profile-artifacts.d.ts +4433 -0
- package/dist/family-profile-artifacts.js +192 -0
- package/dist/family-profile-artifacts.js.map +1 -0
- package/dist/family.d.ts +7902 -294
- package/dist/family.js +170 -5
- package/dist/family.js.map +1 -1
- package/dist/files.d.ts +17 -14
- package/dist/files.js +5 -1
- package/dist/files.js.map +1 -1
- package/dist/getting-started-guides.d.ts +117 -0
- package/dist/getting-started-guides.js +25 -0
- package/dist/getting-started-guides.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/invites.d.ts +252 -0
- package/dist/invites.js +2 -0
- package/dist/invites.js.map +1 -1
- package/dist/mobile-web-releases.d.ts +389 -0
- package/dist/mobile-web-releases.js +71 -0
- package/dist/mobile-web-releases.js.map +1 -0
- package/dist/notification-banners.d.ts +694 -0
- package/dist/notification-banners.js +132 -0
- package/dist/notification-banners.js.map +1 -0
- package/dist/product-analytics.d.ts +5984 -0
- package/dist/product-analytics.js +791 -0
- package/dist/product-analytics.js.map +1 -0
- package/dist/push-devices.d.ts +175 -0
- package/dist/push-devices.js +56 -0
- package/dist/push-devices.js.map +1 -0
- package/dist/realtime.d.ts +604 -0
- package/dist/realtime.js +152 -0
- package/dist/realtime.js.map +1 -0
- package/dist/review-prompt.d.ts +192 -0
- package/dist/review-prompt.js +72 -0
- package/dist/review-prompt.js.map +1 -0
- package/dist/support-faqs.d.ts +103 -0
- package/dist/support-faqs.js +24 -0
- package/dist/support-faqs.js.map +1 -0
- package/dist/support-tickets.d.ts +605 -0
- package/dist/support-tickets.js +100 -0
- package/dist/support-tickets.js.map +1 -0
- package/package.json +6 -1
|
@@ -0,0 +1,791 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { idSchema, isoDateStringSchema } from "./api.js";
|
|
3
|
+
import { subjectModeSchema } from "./access.js";
|
|
4
|
+
import { activityTypeSchema, userRoleSchema } from "./enums.js";
|
|
5
|
+
export const productAnalyticsEventNameSchema = z.enum([
|
|
6
|
+
"app_session_started",
|
|
7
|
+
"screen_viewed",
|
|
8
|
+
"onboarding_started",
|
|
9
|
+
"signup_completed",
|
|
10
|
+
"family_onboarded",
|
|
11
|
+
"coach_onboarded",
|
|
12
|
+
"baby_created",
|
|
13
|
+
"selected_baby_changed",
|
|
14
|
+
"profile_updated",
|
|
15
|
+
"activity_created",
|
|
16
|
+
"activity_updated",
|
|
17
|
+
"activity_deleted",
|
|
18
|
+
"timer_started",
|
|
19
|
+
"timer_updated",
|
|
20
|
+
"timer_cleared",
|
|
21
|
+
"native_sleep_timer_synced",
|
|
22
|
+
"native_sleep_timer_completed",
|
|
23
|
+
"home_activity_preferences_changed",
|
|
24
|
+
"allergy_ladder_created",
|
|
25
|
+
"allergy_ladder_updated",
|
|
26
|
+
"allergy_ladder_archived",
|
|
27
|
+
"allergy_ladder_reset",
|
|
28
|
+
"allergy_ladder_stage_updated",
|
|
29
|
+
"allergy_ladder_stage_reminder_created",
|
|
30
|
+
"allergy_ladder_stage_reminder_deleted",
|
|
31
|
+
"solids_linked_to_ladder_stage",
|
|
32
|
+
"analysis_opened",
|
|
33
|
+
"analysis_premium_blocked",
|
|
34
|
+
"analysis_activity_type_selected",
|
|
35
|
+
"analysis_filter_changed",
|
|
36
|
+
"analysis_range_shifted",
|
|
37
|
+
"analysis_chart_point_opened",
|
|
38
|
+
"analysis_activity_edit_saved",
|
|
39
|
+
"subscription_screen_viewed",
|
|
40
|
+
"store_purchase_started",
|
|
41
|
+
"store_verification_succeeded",
|
|
42
|
+
"store_restore_succeeded",
|
|
43
|
+
"store_restore_empty",
|
|
44
|
+
"invite_previewed",
|
|
45
|
+
"invite_preview_failed",
|
|
46
|
+
"invite_redeem_started",
|
|
47
|
+
"invite_redeemed",
|
|
48
|
+
"invite_redeem_failed",
|
|
49
|
+
"coach_invite_store_subscription_conflict",
|
|
50
|
+
"coach_invite_store_subscription_warning_shown",
|
|
51
|
+
"coach_invite_store_subscription_manage_started",
|
|
52
|
+
"coach_invite_store_subscription_manage_failed",
|
|
53
|
+
"coach_invite_store_subscription_acknowledged",
|
|
54
|
+
"family_invitation_created",
|
|
55
|
+
"family_invitation_accepted",
|
|
56
|
+
"family_invitation_declined",
|
|
57
|
+
"family_invitation_revoked",
|
|
58
|
+
"manual_assignment_created",
|
|
59
|
+
"assignment_revoked",
|
|
60
|
+
"coach_dashboard_opened",
|
|
61
|
+
"coach_family_list_refreshed",
|
|
62
|
+
"coach_family_viewed",
|
|
63
|
+
"coach_unseen_logs_marked_seen",
|
|
64
|
+
"coach_support_dates_changed",
|
|
65
|
+
"coach_support_paused",
|
|
66
|
+
"coach_support_resumed",
|
|
67
|
+
"coach_family_access_revoked",
|
|
68
|
+
"coach_family_access_restored",
|
|
69
|
+
"coach_invite_created",
|
|
70
|
+
"coach_invite_status_changed",
|
|
71
|
+
"coach_subscription_gate_viewed",
|
|
72
|
+
"coach_subscription_screen_viewed",
|
|
73
|
+
"coach_subscription_handoff_clicked",
|
|
74
|
+
"coach_subscription_handoff_opened",
|
|
75
|
+
"coach_subscription_handoff_failed",
|
|
76
|
+
"coach_subscription_plan_selected",
|
|
77
|
+
"coach_subscription_checkout_clicked",
|
|
78
|
+
"coach_subscription_verified",
|
|
79
|
+
"coach_subscription_checkout_started",
|
|
80
|
+
"coach_subscription_portal_started",
|
|
81
|
+
"coach_subscription_synced",
|
|
82
|
+
"coach_organization_branding_updated",
|
|
83
|
+
"coach_activation_warm_lead_flagged",
|
|
84
|
+
"organization_created",
|
|
85
|
+
"coach_created",
|
|
86
|
+
"coach_trial_granted",
|
|
87
|
+
"admin_invite_created",
|
|
88
|
+
"admin_assignment_created",
|
|
89
|
+
"mobile_web_release_created",
|
|
90
|
+
"mobile_web_release_status_changed",
|
|
91
|
+
"notification_banner_created",
|
|
92
|
+
"notification_banner_status_changed",
|
|
93
|
+
"notification_banner_seen",
|
|
94
|
+
"notification_banner_dismissed",
|
|
95
|
+
"notification_banner_clicked",
|
|
96
|
+
"push_device_registered",
|
|
97
|
+
"push_device_disabled",
|
|
98
|
+
"feedback_submitted",
|
|
99
|
+
"review_prompt_eligible",
|
|
100
|
+
"review_prompt_shown",
|
|
101
|
+
"review_prompt_attempted",
|
|
102
|
+
"mobile_release_resolution_started",
|
|
103
|
+
"mobile_release_resolution_completed",
|
|
104
|
+
"mobile_release_install_started",
|
|
105
|
+
"mobile_release_installed",
|
|
106
|
+
"mobile_release_install_failed",
|
|
107
|
+
"mobile_release_update_pending",
|
|
108
|
+
"mobile_release_restart_applied",
|
|
109
|
+
"mobile_release_incompatible",
|
|
110
|
+
"mobile_release_offline_without_cache",
|
|
111
|
+
"webview_ready",
|
|
112
|
+
"webview_load_failed"
|
|
113
|
+
]);
|
|
114
|
+
export const productAnalyticsSourceAppSchema = z.enum([
|
|
115
|
+
"mobile-web",
|
|
116
|
+
"mobile-wrapper",
|
|
117
|
+
"admin-web",
|
|
118
|
+
"owner-web",
|
|
119
|
+
"platform-api"
|
|
120
|
+
]);
|
|
121
|
+
export const productAnalyticsSourceSchema = z.enum([
|
|
122
|
+
"client",
|
|
123
|
+
"server",
|
|
124
|
+
"nativeWrapper",
|
|
125
|
+
"webview"
|
|
126
|
+
]);
|
|
127
|
+
export const productAnalyticsActorRoleSchema = z.union([
|
|
128
|
+
userRoleSchema,
|
|
129
|
+
z.literal("system")
|
|
130
|
+
]);
|
|
131
|
+
const shortText = (max = 160) => z.string().trim().min(1).max(max);
|
|
132
|
+
const nullableText = (max = 160) => z.string().trim().max(max).nullable().optional();
|
|
133
|
+
const unsafePropertyKey = /(authorization|email|invite|jwt|name|note|password|secret|token|url)/i;
|
|
134
|
+
export const productAnalyticsPropertyValueSchema = z.union([
|
|
135
|
+
z.string().max(240),
|
|
136
|
+
z.number().finite(),
|
|
137
|
+
z.boolean(),
|
|
138
|
+
z.null()
|
|
139
|
+
]);
|
|
140
|
+
export const productAnalyticsPropertiesSchema = z
|
|
141
|
+
.record(shortText(80), productAnalyticsPropertyValueSchema)
|
|
142
|
+
.refine((value) => Object.keys(value).length <= 30, {
|
|
143
|
+
message: "Product analytics properties can include at most 30 keys."
|
|
144
|
+
})
|
|
145
|
+
.refine((value) => Object.keys(value).every((key) => !unsafePropertyKey.test(key)), {
|
|
146
|
+
message: "Product analytics properties cannot include unsafe keys."
|
|
147
|
+
});
|
|
148
|
+
export const productAnalyticsEventInputSchema = z
|
|
149
|
+
.object({
|
|
150
|
+
clientEventId: nullableText(128),
|
|
151
|
+
occurredAt: isoDateStringSchema,
|
|
152
|
+
name: productAnalyticsEventNameSchema,
|
|
153
|
+
sourceApp: productAnalyticsSourceAppSchema,
|
|
154
|
+
source: productAnalyticsSourceSchema,
|
|
155
|
+
subjectMode: subjectModeSchema.nullable().optional(),
|
|
156
|
+
webReleaseVersion: nullableText(80),
|
|
157
|
+
wrapperVersion: nullableText(80),
|
|
158
|
+
apiVersion: nullableText(80),
|
|
159
|
+
devicePlatform: nullableText(80),
|
|
160
|
+
routePath: nullableText(240),
|
|
161
|
+
requestId: nullableText(128),
|
|
162
|
+
properties: productAnalyticsPropertiesSchema.optional()
|
|
163
|
+
})
|
|
164
|
+
.strict();
|
|
165
|
+
export const productAnalyticsEventsRequestSchema = z
|
|
166
|
+
.object({
|
|
167
|
+
events: z.array(productAnalyticsEventInputSchema).min(1).max(50)
|
|
168
|
+
})
|
|
169
|
+
.strict();
|
|
170
|
+
export const productAnalyticsEventSchema = productAnalyticsEventInputSchema.extend({
|
|
171
|
+
id: idSchema,
|
|
172
|
+
receivedAt: isoDateStringSchema,
|
|
173
|
+
actorUserId: idSchema.nullable().optional(),
|
|
174
|
+
actorRole: productAnalyticsActorRoleSchema.nullable().optional(),
|
|
175
|
+
subjectFamilyUserId: idSchema.nullable().optional(),
|
|
176
|
+
organizationId: idSchema.nullable().optional()
|
|
177
|
+
});
|
|
178
|
+
export const productAnalyticsEventsResponseSchema = z.object({
|
|
179
|
+
accepted: z.number().int().nonnegative()
|
|
180
|
+
});
|
|
181
|
+
export const productAnalyticsSummaryQuerySchema = z
|
|
182
|
+
.object({
|
|
183
|
+
since: isoDateStringSchema.optional(),
|
|
184
|
+
until: isoDateStringSchema.optional(),
|
|
185
|
+
name: productAnalyticsEventNameSchema.optional(),
|
|
186
|
+
sourceApp: productAnalyticsSourceAppSchema.optional(),
|
|
187
|
+
actorRole: productAnalyticsActorRoleSchema.optional(),
|
|
188
|
+
subjectMode: subjectModeSchema.optional(),
|
|
189
|
+
organizationId: idSchema.optional(),
|
|
190
|
+
webReleaseVersion: shortText(80).optional(),
|
|
191
|
+
wrapperVersion: shortText(80).optional(),
|
|
192
|
+
apiVersion: shortText(80).optional(),
|
|
193
|
+
limit: z.coerce.number().int().min(1).max(50).optional()
|
|
194
|
+
})
|
|
195
|
+
.strict();
|
|
196
|
+
export const productAnalyticsUsageQuerySchema = z
|
|
197
|
+
.object({
|
|
198
|
+
since: isoDateStringSchema.optional(),
|
|
199
|
+
until: isoDateStringSchema.optional(),
|
|
200
|
+
sourceApp: productAnalyticsSourceAppSchema.optional(),
|
|
201
|
+
organizationId: idSchema.optional(),
|
|
202
|
+
webReleaseVersion: shortText(80).optional(),
|
|
203
|
+
wrapperVersion: shortText(80).optional(),
|
|
204
|
+
apiVersion: shortText(80).optional()
|
|
205
|
+
})
|
|
206
|
+
.strict();
|
|
207
|
+
export const productAnalyticsActivityDensityQuerySchema = z
|
|
208
|
+
.object({
|
|
209
|
+
since: isoDateStringSchema.optional(),
|
|
210
|
+
until: isoDateStringSchema.optional(),
|
|
211
|
+
sourceApp: productAnalyticsSourceAppSchema.optional(),
|
|
212
|
+
organizationId: idSchema.optional(),
|
|
213
|
+
webReleaseVersion: shortText(80).optional(),
|
|
214
|
+
wrapperVersion: shortText(80).optional(),
|
|
215
|
+
apiVersion: shortText(80).optional(),
|
|
216
|
+
bucketSeconds: z.coerce.number().int().min(10).max(3600).optional()
|
|
217
|
+
})
|
|
218
|
+
.strict();
|
|
219
|
+
const countSchema = z.number().int().nonnegative();
|
|
220
|
+
const rateSchema = z.number().min(0).max(1).nullable();
|
|
221
|
+
const nonNegativeNumberSchema = z.number().nonnegative();
|
|
222
|
+
export const productAnalyticsActivityDensityBucketSchema = z.object({
|
|
223
|
+
start: isoDateStringSchema,
|
|
224
|
+
end: isoDateStringSchema,
|
|
225
|
+
eventCount: countSchema,
|
|
226
|
+
activeUsers: countSchema,
|
|
227
|
+
activeFamilies: countSchema,
|
|
228
|
+
activeCoaches: countSchema,
|
|
229
|
+
touchedFamilies: countSchema,
|
|
230
|
+
eventsPerMinute: nonNegativeNumberSchema
|
|
231
|
+
});
|
|
232
|
+
export const productAnalyticsActivityDensityGapStatsSchema = z.object({
|
|
233
|
+
eventCount: countSchema,
|
|
234
|
+
gapCount: countSchema,
|
|
235
|
+
averageGapSeconds: nonNegativeNumberSchema.nullable(),
|
|
236
|
+
medianGapSeconds: nonNegativeNumberSchema.nullable(),
|
|
237
|
+
p90GapSeconds: nonNegativeNumberSchema.nullable(),
|
|
238
|
+
p95GapSeconds: nonNegativeNumberSchema.nullable(),
|
|
239
|
+
maxGapSeconds: nonNegativeNumberSchema.nullable()
|
|
240
|
+
});
|
|
241
|
+
export const productAnalyticsActivityDensityResponseSchema = z.object({
|
|
242
|
+
window: z.object({
|
|
243
|
+
since: isoDateStringSchema,
|
|
244
|
+
until: isoDateStringSchema
|
|
245
|
+
}),
|
|
246
|
+
bucketSeconds: countSchema,
|
|
247
|
+
summary: z.object({
|
|
248
|
+
bucketCount: countSchema,
|
|
249
|
+
activeBucketCount: countSchema,
|
|
250
|
+
activeBucketShare: z.number().min(0).max(1),
|
|
251
|
+
totalEvents: countSchema,
|
|
252
|
+
averageEventsPerBucket: nonNegativeNumberSchema,
|
|
253
|
+
averageEventsPerActiveBucket: nonNegativeNumberSchema,
|
|
254
|
+
peakEventsPerBucket: countSchema,
|
|
255
|
+
averageEventsPerMinute: nonNegativeNumberSchema,
|
|
256
|
+
averageActiveUsersPerBucket: nonNegativeNumberSchema,
|
|
257
|
+
averageActiveUsersPerActiveBucket: nonNegativeNumberSchema,
|
|
258
|
+
peakActiveUsersPerBucket: countSchema,
|
|
259
|
+
peakActiveFamiliesPerBucket: countSchema,
|
|
260
|
+
peakActiveCoachesPerBucket: countSchema,
|
|
261
|
+
latestBucket: productAnalyticsActivityDensityBucketSchema.nullable()
|
|
262
|
+
}),
|
|
263
|
+
gaps: productAnalyticsActivityDensityGapStatsSchema,
|
|
264
|
+
buckets: z.array(productAnalyticsActivityDensityBucketSchema),
|
|
265
|
+
busiestBuckets: z.array(productAnalyticsActivityDensityBucketSchema)
|
|
266
|
+
});
|
|
267
|
+
export const productAnalyticsActiveUsersDailySchema = z.object({
|
|
268
|
+
date: z.string(),
|
|
269
|
+
activeUsers: countSchema,
|
|
270
|
+
activeFamilies: countSchema,
|
|
271
|
+
activeCoaches: countSchema,
|
|
272
|
+
touchedFamilies: countSchema,
|
|
273
|
+
sessionUsers: countSchema,
|
|
274
|
+
sessionFamilies: countSchema,
|
|
275
|
+
sessionCoaches: countSchema,
|
|
276
|
+
eventCount: countSchema,
|
|
277
|
+
sessionCount: countSchema
|
|
278
|
+
});
|
|
279
|
+
export const productAnalyticsActiveUsersResponseSchema = z.object({
|
|
280
|
+
window: z.object({
|
|
281
|
+
since: isoDateStringSchema,
|
|
282
|
+
until: isoDateStringSchema
|
|
283
|
+
}),
|
|
284
|
+
summary: z.object({
|
|
285
|
+
observedDays: countSchema,
|
|
286
|
+
averageDailyActiveUsers: z.number().nonnegative(),
|
|
287
|
+
averageDailyActiveFamilies: z.number().nonnegative(),
|
|
288
|
+
averageDailyActiveCoaches: z.number().nonnegative(),
|
|
289
|
+
averageDailySessionUsers: z.number().nonnegative(),
|
|
290
|
+
averageDailySessionFamilies: z.number().nonnegative(),
|
|
291
|
+
averageDailySessionCoaches: z.number().nonnegative(),
|
|
292
|
+
maxDailyActiveUsers: countSchema,
|
|
293
|
+
maxDailyActiveFamilies: countSchema,
|
|
294
|
+
maxDailyActiveCoaches: countSchema,
|
|
295
|
+
maxDailySessionUsers: countSchema,
|
|
296
|
+
maxDailySessionFamilies: countSchema,
|
|
297
|
+
maxDailySessionCoaches: countSchema,
|
|
298
|
+
latestDate: z.string().nullable(),
|
|
299
|
+
latestActiveUsers: countSchema,
|
|
300
|
+
latestActiveFamilies: countSchema,
|
|
301
|
+
latestActiveCoaches: countSchema,
|
|
302
|
+
latestSessionUsers: countSchema,
|
|
303
|
+
latestSessionFamilies: countSchema,
|
|
304
|
+
latestSessionCoaches: countSchema
|
|
305
|
+
}),
|
|
306
|
+
daily: z.array(productAnalyticsActiveUsersDailySchema)
|
|
307
|
+
});
|
|
308
|
+
export const productAnalyticsRetentionRoleGroupSchema = z.enum(["both", "family", "coach"]);
|
|
309
|
+
export const productAnalyticsRetentionMetricSchema = z.object({
|
|
310
|
+
roleGroup: productAnalyticsRetentionRoleGroupSchema,
|
|
311
|
+
cohortUsers: countSchema,
|
|
312
|
+
eligibleD1: countSchema,
|
|
313
|
+
retainedD1: countSchema,
|
|
314
|
+
retentionD1: rateSchema,
|
|
315
|
+
eligibleD7: countSchema,
|
|
316
|
+
retainedD7: countSchema,
|
|
317
|
+
retentionD7: rateSchema,
|
|
318
|
+
eligibleD14: countSchema,
|
|
319
|
+
retainedD14: countSchema,
|
|
320
|
+
retentionD14: rateSchema,
|
|
321
|
+
eligibleD30: countSchema,
|
|
322
|
+
retainedD30: countSchema,
|
|
323
|
+
retentionD30: rateSchema
|
|
324
|
+
});
|
|
325
|
+
export const productAnalyticsFamilyLoggingRetentionSchema = z.object({
|
|
326
|
+
cohortFamilies: countSchema,
|
|
327
|
+
eligibleD1: countSchema,
|
|
328
|
+
retainedD1: countSchema,
|
|
329
|
+
retentionD1: rateSchema,
|
|
330
|
+
eligibleD7: countSchema,
|
|
331
|
+
retainedD7: countSchema,
|
|
332
|
+
retentionD7: rateSchema,
|
|
333
|
+
eligibleD30: countSchema,
|
|
334
|
+
retainedD30: countSchema,
|
|
335
|
+
retentionD30: rateSchema
|
|
336
|
+
});
|
|
337
|
+
export const productAnalyticsRetentionResponseSchema = z.object({
|
|
338
|
+
window: z.object({
|
|
339
|
+
since: isoDateStringSchema,
|
|
340
|
+
until: isoDateStringSchema
|
|
341
|
+
}),
|
|
342
|
+
observed: z.array(productAnalyticsRetentionMetricSchema),
|
|
343
|
+
sessions: z.array(productAnalyticsRetentionMetricSchema),
|
|
344
|
+
familyLogging: productAnalyticsFamilyLoggingRetentionSchema
|
|
345
|
+
});
|
|
346
|
+
export const productAnalyticsNameSummarySchema = z.object({
|
|
347
|
+
name: productAnalyticsEventNameSchema,
|
|
348
|
+
count: countSchema,
|
|
349
|
+
latestReceivedAt: isoDateStringSchema
|
|
350
|
+
});
|
|
351
|
+
export const productAnalyticsSourceAppSummarySchema = z.object({
|
|
352
|
+
sourceApp: productAnalyticsSourceAppSchema,
|
|
353
|
+
count: countSchema
|
|
354
|
+
});
|
|
355
|
+
export const productAnalyticsActorRoleSummarySchema = z.object({
|
|
356
|
+
actorRole: productAnalyticsActorRoleSchema.nullable(),
|
|
357
|
+
count: countSchema
|
|
358
|
+
});
|
|
359
|
+
export const productAnalyticsReleaseSummarySchema = z.object({
|
|
360
|
+
webReleaseVersion: z.string().nullable(),
|
|
361
|
+
wrapperVersion: z.string().nullable(),
|
|
362
|
+
apiVersion: z.string().nullable(),
|
|
363
|
+
count: countSchema,
|
|
364
|
+
latestReceivedAt: isoDateStringSchema
|
|
365
|
+
});
|
|
366
|
+
export const productAnalyticsActivityUpdateSourceSchema = z.enum([
|
|
367
|
+
"family",
|
|
368
|
+
"coachView",
|
|
369
|
+
"superAdminView",
|
|
370
|
+
"unknown"
|
|
371
|
+
]);
|
|
372
|
+
export const productAnalyticsActivityUpdateActivityTypeSummarySchema = z.object({
|
|
373
|
+
activityType: z.union([activityTypeSchema, z.literal("unknown")]),
|
|
374
|
+
count: countSchema,
|
|
375
|
+
familyCount: countSchema,
|
|
376
|
+
coachViewCount: countSchema,
|
|
377
|
+
superAdminViewCount: countSchema,
|
|
378
|
+
unknownCount: countSchema,
|
|
379
|
+
latestReceivedAt: isoDateStringSchema
|
|
380
|
+
});
|
|
381
|
+
export const productAnalyticsActivityUpdateFieldSummarySchema = z.object({
|
|
382
|
+
field: z.string().min(1).max(80),
|
|
383
|
+
count: countSchema,
|
|
384
|
+
latestReceivedAt: isoDateStringSchema
|
|
385
|
+
});
|
|
386
|
+
export const productAnalyticsActivityUpdateSourceSummarySchema = z.object({
|
|
387
|
+
source: productAnalyticsActivityUpdateSourceSchema,
|
|
388
|
+
count: countSchema,
|
|
389
|
+
latestReceivedAt: isoDateStringSchema
|
|
390
|
+
});
|
|
391
|
+
export const productAnalyticsActivityUpdateSummarySchema = z.object({
|
|
392
|
+
total: countSchema,
|
|
393
|
+
byActivityType: z.array(productAnalyticsActivityUpdateActivityTypeSummarySchema),
|
|
394
|
+
byField: z.array(productAnalyticsActivityUpdateFieldSummarySchema),
|
|
395
|
+
byDetailField: z.array(productAnalyticsActivityUpdateFieldSummarySchema),
|
|
396
|
+
bySource: z.array(productAnalyticsActivityUpdateSourceSummarySchema)
|
|
397
|
+
});
|
|
398
|
+
export const productAnalyticsTrackedActivityTypeSchema = z.union([
|
|
399
|
+
activityTypeSchema,
|
|
400
|
+
z.literal("unknown")
|
|
401
|
+
]);
|
|
402
|
+
export const productAnalyticsActivityTrackingTypeSummarySchema = z.object({
|
|
403
|
+
activityType: productAnalyticsTrackedActivityTypeSchema,
|
|
404
|
+
creates: countSchema,
|
|
405
|
+
updates: countSchema,
|
|
406
|
+
deletes: countSchema,
|
|
407
|
+
timerStarts: countSchema,
|
|
408
|
+
timerUpdates: countSchema,
|
|
409
|
+
timerClears: countSchema,
|
|
410
|
+
timerWidgetSyncs: countSchema.default(0),
|
|
411
|
+
timerCompletions: countSchema,
|
|
412
|
+
timerTotal: countSchema,
|
|
413
|
+
total: countSchema,
|
|
414
|
+
latestReceivedAt: isoDateStringSchema.nullable()
|
|
415
|
+
});
|
|
416
|
+
export const productAnalyticsActivityTrackingDailyTrendSchema = z.object({
|
|
417
|
+
date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
418
|
+
creates: countSchema,
|
|
419
|
+
updates: countSchema,
|
|
420
|
+
deletes: countSchema,
|
|
421
|
+
timerEvents: countSchema,
|
|
422
|
+
total: countSchema
|
|
423
|
+
});
|
|
424
|
+
export const productAnalyticsActivityTrackingSummarySchema = z.object({
|
|
425
|
+
total: countSchema,
|
|
426
|
+
creates: countSchema,
|
|
427
|
+
updates: countSchema,
|
|
428
|
+
deletes: countSchema,
|
|
429
|
+
timerEvents: countSchema,
|
|
430
|
+
timerWidgetSyncs: countSchema.default(0),
|
|
431
|
+
byActivityType: z.array(productAnalyticsActivityTrackingTypeSummarySchema),
|
|
432
|
+
dailyTrend: z.array(productAnalyticsActivityTrackingDailyTrendSchema)
|
|
433
|
+
});
|
|
434
|
+
export const productAnalyticsCurrentReleaseSummarySchema = z.object({
|
|
435
|
+
webReleaseVersion: z.string().nullable(),
|
|
436
|
+
count: countSchema,
|
|
437
|
+
versionedCount: countSchema,
|
|
438
|
+
share: z.number().min(0).max(1),
|
|
439
|
+
latestReceivedAt: isoDateStringSchema.nullable()
|
|
440
|
+
});
|
|
441
|
+
export const productAnalyticsOverviewSummarySchema = z.object({
|
|
442
|
+
totalEvents: countSchema,
|
|
443
|
+
todayEvents: countSchema,
|
|
444
|
+
activeFamiliesToday: countSchema,
|
|
445
|
+
activityCreates: countSchema,
|
|
446
|
+
activityUpdates: countSchema,
|
|
447
|
+
analysisOpens: countSchema,
|
|
448
|
+
premiumBlocks: countSchema,
|
|
449
|
+
coachViewUpdates: countSchema,
|
|
450
|
+
currentWebRelease: productAnalyticsCurrentReleaseSummarySchema,
|
|
451
|
+
latestObservedWebRelease: productAnalyticsCurrentReleaseSummarySchema
|
|
452
|
+
});
|
|
453
|
+
export const productAnalyticsDailyTrendSchema = z.object({
|
|
454
|
+
date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
455
|
+
total: countSchema,
|
|
456
|
+
bySourceApp: z.array(productAnalyticsSourceAppSummarySchema)
|
|
457
|
+
});
|
|
458
|
+
export const productAnalyticsActivationStepNameSchema = z.enum([
|
|
459
|
+
"onboarding_started",
|
|
460
|
+
"family_onboarded",
|
|
461
|
+
"baby_created",
|
|
462
|
+
"activity_created"
|
|
463
|
+
]);
|
|
464
|
+
export const productAnalyticsActivationSourceSchema = z.enum([
|
|
465
|
+
"familyDirect",
|
|
466
|
+
"coachSupported",
|
|
467
|
+
"unknown"
|
|
468
|
+
]);
|
|
469
|
+
export const productAnalyticsActivationFunnelStepSchema = z.object({
|
|
470
|
+
name: productAnalyticsActivationStepNameSchema,
|
|
471
|
+
label: z.string(),
|
|
472
|
+
count: countSchema,
|
|
473
|
+
familyCount: countSchema,
|
|
474
|
+
conversionFromStart: z.number().min(0).max(1),
|
|
475
|
+
conversionFromPrevious: z.number().min(0).max(1).nullable(),
|
|
476
|
+
latestReceivedAt: isoDateStringSchema.nullable()
|
|
477
|
+
});
|
|
478
|
+
export const productAnalyticsActivationSourceSummarySchema = z.object({
|
|
479
|
+
source: productAnalyticsActivationSourceSchema,
|
|
480
|
+
steps: z.array(productAnalyticsActivationFunnelStepSchema)
|
|
481
|
+
});
|
|
482
|
+
export const productAnalyticsActivationReleaseSummarySchema = z.object({
|
|
483
|
+
webReleaseVersion: z.string().nullable(),
|
|
484
|
+
count: countSchema,
|
|
485
|
+
steps: z.array(productAnalyticsActivationFunnelStepSchema)
|
|
486
|
+
});
|
|
487
|
+
export const productAnalyticsFamilyActivationSummarySchema = z.object({
|
|
488
|
+
steps: z.array(productAnalyticsActivationFunnelStepSchema),
|
|
489
|
+
bySource: z.array(productAnalyticsActivationSourceSummarySchema),
|
|
490
|
+
byRelease: z.array(productAnalyticsActivationReleaseSummarySchema)
|
|
491
|
+
});
|
|
492
|
+
export const productAnalyticsAnalysisPremiumFunnelStepNameSchema = z.enum([
|
|
493
|
+
"analysis_opened",
|
|
494
|
+
"analysis_premium_blocked",
|
|
495
|
+
"subscription_screen_viewed",
|
|
496
|
+
"store_purchase_started",
|
|
497
|
+
"store_verification_succeeded"
|
|
498
|
+
]);
|
|
499
|
+
export const productAnalyticsAnalysisPremiumFunnelStepSchema = z.object({
|
|
500
|
+
name: productAnalyticsAnalysisPremiumFunnelStepNameSchema,
|
|
501
|
+
label: z.string(),
|
|
502
|
+
count: countSchema,
|
|
503
|
+
conversionFromStart: z.number().min(0).max(1),
|
|
504
|
+
conversionFromPrevious: z.number().min(0).max(1).nullable(),
|
|
505
|
+
latestReceivedAt: isoDateStringSchema.nullable()
|
|
506
|
+
});
|
|
507
|
+
export const productAnalyticsAnalysisBlockedReasonSummarySchema = z.object({
|
|
508
|
+
reason: z.string().min(1).max(80),
|
|
509
|
+
count: countSchema,
|
|
510
|
+
latestReceivedAt: isoDateStringSchema
|
|
511
|
+
});
|
|
512
|
+
export const productAnalyticsAnalysisActivityTabSummarySchema = z.object({
|
|
513
|
+
activityType: z.union([activityTypeSchema, z.literal("all-in-one"), z.literal("unknown")]),
|
|
514
|
+
count: countSchema,
|
|
515
|
+
latestReceivedAt: isoDateStringSchema
|
|
516
|
+
});
|
|
517
|
+
export const productAnalyticsAnalysisFilterSummarySchema = z.object({
|
|
518
|
+
filter: z.string().min(1).max(80),
|
|
519
|
+
count: countSchema,
|
|
520
|
+
latestReceivedAt: isoDateStringSchema
|
|
521
|
+
});
|
|
522
|
+
export const productAnalyticsAnalysisPremiumSummarySchema = z.object({
|
|
523
|
+
analysisOpens: countSchema,
|
|
524
|
+
premiumBlocks: countSchema,
|
|
525
|
+
subscriptionScreenViews: countSchema,
|
|
526
|
+
storePurchaseStarts: countSchema,
|
|
527
|
+
storeVerificationSucceeded: countSchema,
|
|
528
|
+
storeRestoreSucceeded: countSchema,
|
|
529
|
+
storeRestoreEmpty: countSchema,
|
|
530
|
+
funnel: z.array(productAnalyticsAnalysisPremiumFunnelStepSchema),
|
|
531
|
+
blockedReasons: z.array(productAnalyticsAnalysisBlockedReasonSummarySchema),
|
|
532
|
+
activityTabs: z.array(productAnalyticsAnalysisActivityTabSummarySchema),
|
|
533
|
+
filters: z.array(productAnalyticsAnalysisFilterSummarySchema)
|
|
534
|
+
});
|
|
535
|
+
export const productAnalyticsCoachUsageFunnelStepNameSchema = z.enum([
|
|
536
|
+
"family_invitation_created",
|
|
537
|
+
"family_invitation_accepted",
|
|
538
|
+
"family_invitation_declined",
|
|
539
|
+
"family_invitation_revoked",
|
|
540
|
+
"coach_family_access_revoked"
|
|
541
|
+
]);
|
|
542
|
+
export const productAnalyticsCoachUsageFunnelStepSchema = z.object({
|
|
543
|
+
name: productAnalyticsCoachUsageFunnelStepNameSchema,
|
|
544
|
+
label: z.string(),
|
|
545
|
+
count: countSchema,
|
|
546
|
+
latestReceivedAt: isoDateStringSchema.nullable()
|
|
547
|
+
});
|
|
548
|
+
export const productAnalyticsCoachUsageDailyTrendSchema = z.object({
|
|
549
|
+
date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
550
|
+
dashboardOpens: countSchema,
|
|
551
|
+
familyViews: countSchema,
|
|
552
|
+
unseenLogsMarkedSeen: countSchema,
|
|
553
|
+
supportChanges: countSchema,
|
|
554
|
+
invitationEvents: countSchema,
|
|
555
|
+
accessRevocations: countSchema,
|
|
556
|
+
total: countSchema
|
|
557
|
+
});
|
|
558
|
+
export const productAnalyticsCoachUsageSummarySchema = z.object({
|
|
559
|
+
total: countSchema,
|
|
560
|
+
activeCoaches: countSchema,
|
|
561
|
+
familiesSupported: countSchema,
|
|
562
|
+
dashboardOpens: countSchema,
|
|
563
|
+
familyViews: countSchema,
|
|
564
|
+
unseenLogsMarkedSeen: countSchema,
|
|
565
|
+
supportDatesChanged: countSchema,
|
|
566
|
+
supportPaused: countSchema,
|
|
567
|
+
supportResumed: countSchema,
|
|
568
|
+
familyAccessRevoked: countSchema,
|
|
569
|
+
familyInvitationsCreated: countSchema,
|
|
570
|
+
familyInvitationsAccepted: countSchema,
|
|
571
|
+
familyInvitationsDeclined: countSchema,
|
|
572
|
+
familyInvitationsRevoked: countSchema,
|
|
573
|
+
dailyTrend: z.array(productAnalyticsCoachUsageDailyTrendSchema),
|
|
574
|
+
inviteAccessFunnel: z.array(productAnalyticsCoachUsageFunnelStepSchema)
|
|
575
|
+
});
|
|
576
|
+
export const productAnalyticsInviteAccessFunnelStepNameSchema = z.enum([
|
|
577
|
+
"preview_success",
|
|
578
|
+
"preview_failed",
|
|
579
|
+
"redeem_started",
|
|
580
|
+
"redeem_success",
|
|
581
|
+
"redeem_failed",
|
|
582
|
+
"family_invitation_created",
|
|
583
|
+
"family_invitation_accepted",
|
|
584
|
+
"family_invitation_declined",
|
|
585
|
+
"family_invitation_revoked",
|
|
586
|
+
"manual_assignment_created",
|
|
587
|
+
"assignment_revoked"
|
|
588
|
+
]);
|
|
589
|
+
export const productAnalyticsInviteAccessFunnelStepKindSchema = z.enum([
|
|
590
|
+
"success",
|
|
591
|
+
"failure",
|
|
592
|
+
"neutral"
|
|
593
|
+
]);
|
|
594
|
+
export const productAnalyticsInviteAccessFunnelStepSchema = z.object({
|
|
595
|
+
name: productAnalyticsInviteAccessFunnelStepNameSchema,
|
|
596
|
+
label: z.string(),
|
|
597
|
+
kind: productAnalyticsInviteAccessFunnelStepKindSchema,
|
|
598
|
+
count: countSchema,
|
|
599
|
+
latestReceivedAt: isoDateStringSchema.nullable()
|
|
600
|
+
});
|
|
601
|
+
export const productAnalyticsInviteAccessFailureReasonSchema = z.object({
|
|
602
|
+
stage: z.enum(["preview", "redeem"]),
|
|
603
|
+
reason: z.string().min(1).max(80),
|
|
604
|
+
count: countSchema,
|
|
605
|
+
latestReceivedAt: isoDateStringSchema
|
|
606
|
+
});
|
|
607
|
+
export const productAnalyticsInviteAccessSummarySchema = z.object({
|
|
608
|
+
total: countSchema,
|
|
609
|
+
previewAttempts: countSchema,
|
|
610
|
+
invitePreviews: countSchema,
|
|
611
|
+
invitePreviewFailures: countSchema,
|
|
612
|
+
previewFailureRate: z.number().min(0).max(1),
|
|
613
|
+
redeemStarts: countSchema,
|
|
614
|
+
redeemAttempts: countSchema,
|
|
615
|
+
inviteRedeems: countSchema,
|
|
616
|
+
inviteRedeemFailures: countSchema,
|
|
617
|
+
redeemFailureRate: z.number().min(0).max(1),
|
|
618
|
+
familyInvitationsCreated: countSchema,
|
|
619
|
+
familyInvitationsAccepted: countSchema,
|
|
620
|
+
familyInvitationsDeclined: countSchema,
|
|
621
|
+
familyInvitationsRevoked: countSchema,
|
|
622
|
+
familyInvitationDeclineRate: z.number().min(0).max(1),
|
|
623
|
+
manualAssignmentsCreated: countSchema,
|
|
624
|
+
assignmentRevocations: countSchema,
|
|
625
|
+
funnel: z.array(productAnalyticsInviteAccessFunnelStepSchema),
|
|
626
|
+
failureReasons: z.array(productAnalyticsInviteAccessFailureReasonSchema)
|
|
627
|
+
});
|
|
628
|
+
export const productAnalyticsReleaseOperationEventNameSchema = z.enum([
|
|
629
|
+
"mobile_web_release_created",
|
|
630
|
+
"mobile_web_release_status_changed",
|
|
631
|
+
"notification_banner_seen",
|
|
632
|
+
"notification_banner_dismissed",
|
|
633
|
+
"notification_banner_clicked",
|
|
634
|
+
"push_device_registered",
|
|
635
|
+
"push_device_disabled"
|
|
636
|
+
]);
|
|
637
|
+
export const productAnalyticsReleaseOperationsReleaseSummarySchema = z.object({
|
|
638
|
+
webReleaseVersion: z.string().nullable(),
|
|
639
|
+
wrapperVersion: z.string().nullable(),
|
|
640
|
+
apiVersion: z.string().nullable(),
|
|
641
|
+
productEventCount: countSchema,
|
|
642
|
+
operationEventCount: countSchema,
|
|
643
|
+
latestReceivedAt: isoDateStringSchema
|
|
644
|
+
});
|
|
645
|
+
export const productAnalyticsReleaseOperationsEventSummarySchema = z.object({
|
|
646
|
+
name: productAnalyticsReleaseOperationEventNameSchema,
|
|
647
|
+
label: z.string(),
|
|
648
|
+
count: countSchema,
|
|
649
|
+
latestReceivedAt: isoDateStringSchema.nullable()
|
|
650
|
+
});
|
|
651
|
+
export const productAnalyticsReleaseOperationsSummarySchema = z.object({
|
|
652
|
+
totalReleaseTuples: countSchema,
|
|
653
|
+
mobileWebReleaseCreated: countSchema,
|
|
654
|
+
mobileWebReleaseStatusChanged: countSchema,
|
|
655
|
+
notificationBannerSeen: countSchema,
|
|
656
|
+
notificationBannerDismissed: countSchema,
|
|
657
|
+
notificationBannerClicked: countSchema,
|
|
658
|
+
pushDeviceRegistered: countSchema,
|
|
659
|
+
pushDeviceDisabled: countSchema,
|
|
660
|
+
byRelease: z.array(productAnalyticsReleaseOperationsReleaseSummarySchema),
|
|
661
|
+
operationEvents: z.array(productAnalyticsReleaseOperationsEventSummarySchema)
|
|
662
|
+
});
|
|
663
|
+
export const productAnalyticsReleaseAdoptionPopulationSchema = z.object({
|
|
664
|
+
scope: z.enum(["platform", "organization"]),
|
|
665
|
+
organizationId: idSchema.nullable(),
|
|
666
|
+
totalUsers: countSchema,
|
|
667
|
+
totalFamilies: countSchema,
|
|
668
|
+
totalCoaches: countSchema
|
|
669
|
+
});
|
|
670
|
+
export const productAnalyticsWebReleaseAdoptionSummarySchema = z.object({
|
|
671
|
+
webReleaseVersion: z.string().nullable(),
|
|
672
|
+
eventCount: countSchema,
|
|
673
|
+
activeUsers: countSchema,
|
|
674
|
+
activeFamilies: countSchema,
|
|
675
|
+
activeCoaches: countSchema,
|
|
676
|
+
userShare: z.number().min(0).max(1),
|
|
677
|
+
familyShare: z.number().min(0).max(1),
|
|
678
|
+
userPopulationShare: z.number().min(0).max(1),
|
|
679
|
+
familyPopulationShare: z.number().min(0).max(1),
|
|
680
|
+
coachPopulationShare: z.number().min(0).max(1),
|
|
681
|
+
latestReceivedAt: isoDateStringSchema.nullable(),
|
|
682
|
+
isCurrent: z.boolean()
|
|
683
|
+
});
|
|
684
|
+
export const productAnalyticsWrapperReleaseAdoptionSummarySchema = z.object({
|
|
685
|
+
wrapperVersion: z.string().nullable(),
|
|
686
|
+
eventCount: countSchema,
|
|
687
|
+
activeUsers: countSchema,
|
|
688
|
+
activeFamilies: countSchema,
|
|
689
|
+
activeCoaches: countSchema,
|
|
690
|
+
userShare: z.number().min(0).max(1),
|
|
691
|
+
familyShare: z.number().min(0).max(1),
|
|
692
|
+
userPopulationShare: z.number().min(0).max(1),
|
|
693
|
+
familyPopulationShare: z.number().min(0).max(1),
|
|
694
|
+
coachPopulationShare: z.number().min(0).max(1),
|
|
695
|
+
latestReceivedAt: isoDateStringSchema.nullable(),
|
|
696
|
+
isLatestObserved: z.boolean()
|
|
697
|
+
});
|
|
698
|
+
export const productAnalyticsReleaseTupleAdoptionSummarySchema = z.object({
|
|
699
|
+
webReleaseVersion: z.string().nullable(),
|
|
700
|
+
wrapperVersion: z.string().nullable(),
|
|
701
|
+
apiVersion: z.string().nullable(),
|
|
702
|
+
eventCount: countSchema,
|
|
703
|
+
activeUsers: countSchema,
|
|
704
|
+
activeFamilies: countSchema,
|
|
705
|
+
activeCoaches: countSchema,
|
|
706
|
+
latestReceivedAt: isoDateStringSchema,
|
|
707
|
+
isCurrentWebRelease: z.boolean(),
|
|
708
|
+
isLatestObservedWrapper: z.boolean()
|
|
709
|
+
});
|
|
710
|
+
export const productAnalyticsReleaseAdoptionSummarySchema = z.object({
|
|
711
|
+
population: productAnalyticsReleaseAdoptionPopulationSchema,
|
|
712
|
+
totalActiveUsers: countSchema,
|
|
713
|
+
totalActiveFamilies: countSchema,
|
|
714
|
+
totalActiveCoaches: countSchema,
|
|
715
|
+
webVersionedActiveUsers: countSchema,
|
|
716
|
+
webVersionedActiveFamilies: countSchema,
|
|
717
|
+
webVersionedActiveCoaches: countSchema,
|
|
718
|
+
wrapperVersionedActiveUsers: countSchema,
|
|
719
|
+
wrapperVersionedActiveFamilies: countSchema,
|
|
720
|
+
wrapperVersionedActiveCoaches: countSchema,
|
|
721
|
+
currentWebReleaseVersion: z.string().nullable(),
|
|
722
|
+
latestObservedWebReleaseVersion: z.string().nullable(),
|
|
723
|
+
latestObservedWrapperVersion: z.string().nullable(),
|
|
724
|
+
currentWebRelease: productAnalyticsWebReleaseAdoptionSummarySchema,
|
|
725
|
+
latestObservedWebRelease: productAnalyticsWebReleaseAdoptionSummarySchema,
|
|
726
|
+
latestObservedWrapper: productAnalyticsWrapperReleaseAdoptionSummarySchema,
|
|
727
|
+
byWebRelease: z.array(productAnalyticsWebReleaseAdoptionSummarySchema),
|
|
728
|
+
byWrapperVersion: z.array(productAnalyticsWrapperReleaseAdoptionSummarySchema),
|
|
729
|
+
byReleaseTuple: z.array(productAnalyticsReleaseTupleAdoptionSummarySchema)
|
|
730
|
+
});
|
|
731
|
+
export const productAnalyticsAdminDeviceClassSchema = z.enum([
|
|
732
|
+
"mobile",
|
|
733
|
+
"tablet",
|
|
734
|
+
"desktop",
|
|
735
|
+
"unknown"
|
|
736
|
+
]);
|
|
737
|
+
export const productAnalyticsAdminDeviceUsageEntrySchema = z.object({
|
|
738
|
+
deviceClass: productAnalyticsAdminDeviceClassSchema,
|
|
739
|
+
latestUsers: countSchema,
|
|
740
|
+
observedUsers: countSchema,
|
|
741
|
+
sessionCount: countSchema,
|
|
742
|
+
latestReceivedAt: isoDateStringSchema.nullable()
|
|
743
|
+
});
|
|
744
|
+
export const productAnalyticsAdminDeviceUsageSchema = z.object({
|
|
745
|
+
totalLatestUsers: countSchema,
|
|
746
|
+
totalObservedUsers: countSchema,
|
|
747
|
+
totalSessions: countSchema,
|
|
748
|
+
mobileLatestUsers: countSchema,
|
|
749
|
+
mobileObservedUsers: countSchema,
|
|
750
|
+
desktopLatestUsers: countSchema,
|
|
751
|
+
desktopObservedUsers: countSchema,
|
|
752
|
+
byDeviceClass: z.array(productAnalyticsAdminDeviceUsageEntrySchema)
|
|
753
|
+
});
|
|
754
|
+
export const productAnalyticsRecentEventSchema = z.object({
|
|
755
|
+
id: idSchema,
|
|
756
|
+
receivedAt: isoDateStringSchema,
|
|
757
|
+
name: productAnalyticsEventNameSchema,
|
|
758
|
+
sourceApp: productAnalyticsSourceAppSchema,
|
|
759
|
+
source: productAnalyticsSourceSchema,
|
|
760
|
+
actorRole: productAnalyticsActorRoleSchema.nullable(),
|
|
761
|
+
subjectMode: subjectModeSchema.nullable(),
|
|
762
|
+
routePath: z.string().nullable(),
|
|
763
|
+
requestId: z.string().nullable(),
|
|
764
|
+
webReleaseVersion: z.string().nullable(),
|
|
765
|
+
wrapperVersion: z.string().nullable(),
|
|
766
|
+
apiVersion: z.string().nullable()
|
|
767
|
+
});
|
|
768
|
+
export const productAnalyticsSummaryResponseSchema = z.object({
|
|
769
|
+
window: z.object({
|
|
770
|
+
since: isoDateStringSchema,
|
|
771
|
+
until: isoDateStringSchema
|
|
772
|
+
}),
|
|
773
|
+
total: countSchema,
|
|
774
|
+
overview: productAnalyticsOverviewSummarySchema,
|
|
775
|
+
dailyTrend: z.array(productAnalyticsDailyTrendSchema),
|
|
776
|
+
familyActivation: productAnalyticsFamilyActivationSummarySchema,
|
|
777
|
+
activityTracking: productAnalyticsActivityTrackingSummarySchema,
|
|
778
|
+
analysisPremium: productAnalyticsAnalysisPremiumSummarySchema,
|
|
779
|
+
coachUsage: productAnalyticsCoachUsageSummarySchema,
|
|
780
|
+
inviteAccess: productAnalyticsInviteAccessSummarySchema,
|
|
781
|
+
releaseOperations: productAnalyticsReleaseOperationsSummarySchema,
|
|
782
|
+
releaseAdoption: productAnalyticsReleaseAdoptionSummarySchema,
|
|
783
|
+
adminDeviceUsage: productAnalyticsAdminDeviceUsageSchema,
|
|
784
|
+
byName: z.array(productAnalyticsNameSummarySchema),
|
|
785
|
+
bySourceApp: z.array(productAnalyticsSourceAppSummarySchema),
|
|
786
|
+
byActorRole: z.array(productAnalyticsActorRoleSummarySchema),
|
|
787
|
+
byRelease: z.array(productAnalyticsReleaseSummarySchema),
|
|
788
|
+
activityUpdates: productAnalyticsActivityUpdateSummarySchema,
|
|
789
|
+
recent: z.array(productAnalyticsRecentEventSchema)
|
|
790
|
+
});
|
|
791
|
+
//# sourceMappingURL=product-analytics.js.map
|