@laplace.live/internal 1.2.31 → 1.2.32

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 (2) hide show
  1. package/index.d.ts +39 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -814,6 +814,45 @@ export declare namespace LaplaceInternal {
814
814
  lastPeriodStart: string
815
815
  }
816
816
 
817
+ // ============================================
818
+ // Fertility Cycle Entry Management (Admin)
819
+ // ============================================
820
+
821
+ /**
822
+ * Request body for PATCH /laplace/fertility-entry/:uid
823
+ * Updates a specific history entry identified by originalPeriodStart
824
+ */
825
+ export interface FertilityEntryUpdateRequest {
826
+ /** Required: periodStart of the entry to update (identifier) */
827
+ originalPeriodStart: number
828
+ /** Optional: New periodStart value (Unix timestamp ms) */
829
+ periodStart?: number
830
+ /** Optional: Period length (1-15 days), or null to clear */
831
+ periodLength?: number | null
832
+ /** Optional: Evidence URL, or null to clear */
833
+ source?: string | null
834
+ }
835
+
836
+ /**
837
+ * Request body for DELETE /laplace/fertility-entry/:uid
838
+ * Deletes a specific history entry identified by periodStart
839
+ */
840
+ export interface FertilityEntryDeleteRequest {
841
+ /** Required: periodStart of the entry to delete */
842
+ periodStart: number
843
+ }
844
+
845
+ /**
846
+ * Response for PATCH/DELETE /laplace/fertility-entry/:uid
847
+ */
848
+ export interface FertilityEntryActionResponse {
849
+ success: true
850
+ uid: number
851
+ historyCount: number
852
+ /** ISO timestamp string */
853
+ lastPeriodStart: string
854
+ }
855
+
817
856
  // ============================================
818
857
  // Fertility Contribution Types (Anonymous Submissions)
819
858
  // ============================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.2.31",
3
+ "version": "1.2.32",
4
4
  "module": "index.d.ts",
5
5
  "devDependencies": {
6
6
  "@types/bun": "latest"