@nikthegeek/dreamsforlittles-shared 0.18.6 → 0.18.7

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 (41) hide show
  1. package/dist/analysis.d.ts +39 -0
  2. package/dist/auth.d.ts +18 -0
  3. package/dist/auth.js +2 -0
  4. package/dist/auth.js.map +1 -1
  5. package/dist/coach.d.ts +204 -0
  6. package/dist/enums.d.ts +1 -1
  7. package/dist/enums.js +2 -1
  8. package/dist/enums.js.map +1 -1
  9. package/dist/family.d.ts +540 -0
  10. package/dist/family.js +20 -2
  11. package/dist/family.js.map +1 -1
  12. package/dist/family.test.js +12 -0
  13. package/dist/family.test.js.map +1 -1
  14. package/dist/home-activity-context.d.ts +90 -0
  15. package/dist/index.d.ts +2 -0
  16. package/dist/index.js +2 -0
  17. package/dist/index.js.map +1 -1
  18. package/dist/logged-sleep-averages.d.ts +22 -0
  19. package/dist/logged-sleep-averages.js +198 -0
  20. package/dist/logged-sleep-averages.js.map +1 -0
  21. package/dist/native-timer-state.d.ts +74 -0
  22. package/dist/sleep-average-context.d.ts +8 -0
  23. package/dist/sleep-average-context.js +2 -1
  24. package/dist/sleep-average-context.js.map +1 -1
  25. package/dist/sleep-average-context.test.js +12 -0
  26. package/dist/sleep-average-context.test.js.map +1 -1
  27. package/dist/sleep-awake-state.d.ts +3 -0
  28. package/dist/sleep-awake-state.js +1 -1
  29. package/dist/sleep-awake-state.js.map +1 -1
  30. package/dist/sleep-awake-state.test.js +12 -0
  31. package/dist/sleep-awake-state.test.js.map +1 -1
  32. package/dist/sleep-completed-night.d.ts +2826 -33
  33. package/dist/sleep-completed-night.js +30 -4
  34. package/dist/sleep-completed-night.js.map +1 -1
  35. package/dist/sleep-nap.d.ts +10 -0
  36. package/dist/sleep-nap.js +12 -0
  37. package/dist/sleep-nap.js.map +1 -0
  38. package/dist/sleep-nap.test.d.ts +1 -0
  39. package/dist/sleep-nap.test.js +18 -0
  40. package/dist/sleep-nap.test.js.map +1 -0
  41. package/package.json +1 -1
package/dist/enums.d.ts CHANGED
@@ -14,7 +14,7 @@ export declare const entitlementSourceSchema: z.ZodEnum<["directSubscription", "
14
14
  export declare const subscriptionStatusSchema: z.ZodEnum<["active", "trialing", "pastDue", "canceled", "suspended"]>;
15
15
  export declare const activityTypeSchema: z.ZodEnum<["breastfeed", "bottles", "sleep", "nappies", "pumping", "medication", "solids"]>;
16
16
  export declare const activityTypes: ["breastfeed", "bottles", "sleep", "nappies", "pumping", "medication", "solids"];
17
- export declare const auditEventTypeSchema: z.ZodEnum<["familyData.permanentlyDeleted", "familyData.staffViewed", "family.healthStorageConsentAccepted", "inviteCode.created", "inviteCode.redeemed", "coachInvite.storeSubscriptionCheckFailed", "coachInvite.storeSubscriptionConflict", "coachInvite.storeSubscriptionAcknowledged", "familyInvitation.created", "familyInvitation.resendRequested", "familyInvitation.accepted", "familyInvitation.declined", "familyInvitation.revoked", "assignment.created", "assignment.revoked", "assignment.restored", "assignment.transferred", "entitlement.created", "entitlement.updated", "entitlement.revoked", "entitlement.billingInactive", "coachSubscription.updated", "mobileWebRelease.created", "mobileWebRelease.updated", "nativeAppUpdatePolicy.created", "nativeAppUpdatePolicy.updated", "notificationBanner.created", "notificationBanner.updated", "notificationBanner.statusUpdated", "notificationBanner.deleted", "comingSoonItem.created", "comingSoonItem.updated", "comingSoonItem.deleted", "coachActivityNotifications.globalPreferenceUpdated", "coachActivityNotifications.familyPreferenceUpdated", "familyLog.updatedByCoach", "familyQuestionnaire.removed", "familyQuestionnaire.sent", "familyQuestionnaire.targetsSelected", "coachPrivateNote.created", "coachPrivateNote.updated", "coachPrivateNote.deleted", "baby.updatedByCoach", "ownerViewAsCoach.started", "family.timeZone.updated", "lifeTag.added", "lifeTag.removed", "lifeTag.dayUpdated", "babyMilestone.created", "babyMilestone.updated", "babyMilestone.deleted", "coachFamilyChat.conversationCreated", "coachFamilyChat.participantPreferenceUpdated", "coachFamilyChat.coachPreferenceUpdated", "coachFamilyChat.conversationClosed", "coachFamilyChat.contentPurged", "coachFamilyChat.ownerViewed", "coachFamilyChat.moderationUpdated", "coachFamilyChat.messagingHoursUpdated", "coachFamilyChat.photoRemoved", "coachFamilyChat.voiceNoteRemoved", "subscriptionCancellationFeedback.requested", "subscriptionCancellationFeedback.submitted", "subscriptionCancellationFeedback.updated", "websiteFeedback.updated", "familyTrialFeedback.requested", "lead.created", "lead.updated", "lead.statusUpdated", "lead.converted", "lead.exported", "coachFamilies.exported"]>;
17
+ export declare const auditEventTypeSchema: z.ZodEnum<["familyData.permanentlyDeleted", "familyData.staffViewed", "family.healthStorageConsentAccepted", "inviteCode.created", "inviteCode.redeemed", "coachInvite.storeSubscriptionCheckFailed", "coachInvite.storeSubscriptionConflict", "coachInvite.storeSubscriptionAcknowledged", "familyInvitation.created", "familyInvitation.resendRequested", "familyInvitation.accepted", "familyInvitation.declined", "familyInvitation.revoked", "assignment.created", "assignment.revoked", "assignment.restored", "assignment.transferred", "entitlement.created", "entitlement.updated", "entitlement.revoked", "entitlement.billingInactive", "coachSubscription.updated", "mobileWebRelease.created", "mobileWebRelease.updated", "nativeAppUpdatePolicy.created", "nativeAppUpdatePolicy.updated", "notificationBanner.created", "notificationBanner.updated", "notificationBanner.statusUpdated", "notificationBanner.deleted", "comingSoonItem.created", "comingSoonItem.updated", "comingSoonItem.deleted", "coachActivityNotifications.globalPreferenceUpdated", "coachActivityNotifications.familyPreferenceUpdated", "familyLog.updatedByCoach", "familyQuestionnaire.removed", "familyQuestionnaire.sent", "familyQuestionnaire.targetsSelected", "coachPrivateNote.created", "coachPrivateNote.updated", "coachPrivateNote.deleted", "baby.updatedByCoach", "ownerViewAsCoach.started", "family.timeZone.updated", "lifeTag.added", "lifeTag.removed", "lifeTag.dayUpdated", "babyMilestone.created", "babyMilestone.updated", "babyMilestone.deleted", "coachFamilyChat.conversationCreated", "coachFamilyChat.participantPreferenceUpdated", "coachFamilyChat.coachPreferenceUpdated", "coachFamilyChat.conversationClosed", "coachFamilyChat.contentPurged", "coachFamilyChat.ownerViewed", "coachFamilyChat.moderationUpdated", "coachFamilyChat.messagingHoursUpdated", "coachFamilyChat.photoRemoved", "coachFamilyChat.voiceNoteRemoved", "subscriptionCancellationFeedback.requested", "subscriptionCancellationFeedback.submitted", "subscriptionCancellationFeedback.updated", "websiteFeedback.updated", "familyTrialFeedback.requested", "lead.created", "lead.updated", "lead.statusUpdated", "lead.converted", "lead.exported", "coachFamilies.exported", "practiceProfile.updated"]>;
18
18
  export type UserRole = z.infer<typeof userRoleSchema>;
19
19
  export type OrganizationType = z.infer<typeof organizationTypeSchema>;
20
20
  export type OrganizationStatus = z.infer<typeof organizationStatusSchema>;
package/dist/enums.js CHANGED
@@ -155,6 +155,7 @@ export const auditEventTypeSchema = z.enum([
155
155
  "lead.statusUpdated",
156
156
  "lead.converted",
157
157
  "lead.exported",
158
- "coachFamilies.exported"
158
+ "coachFamilies.exported",
159
+ "practiceProfile.updated"
159
160
  ]);
160
161
  //# sourceMappingURL=enums.js.map
package/dist/enums.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,kBAAkB;IAClB,kBAAkB;IAClB,oBAAoB;IACpB,SAAS;IACT,SAAS;CACV,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,QAAQ;IACR,UAAU;IACV,SAAS;IACT,WAAW;IACX,UAAU;CACX,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAA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