shred-api-client 2.0.14 → 2.0.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.mts CHANGED
@@ -1641,11 +1641,13 @@ declare const DailyMilestoneSchema: z.ZodObject<{
1641
1641
  progress: number;
1642
1642
  target: number;
1643
1643
  }>;
1644
- declare const WeeklyMilestoneSchema: z.ZodObject<{
1644
+ declare const GoalSchema: z.ZodObject<{
1645
1645
  id: z.ZodString;
1646
- week: z.ZodString;
1646
+ editorId: z.ZodString;
1647
+ isoWeek: z.ZodString;
1647
1648
  target: z.ZodNumber;
1648
1649
  progress: z.ZodNumber;
1650
+ createdAt: z.ZodNumber;
1649
1651
  dailyMilestones: z.ZodArray<z.ZodObject<{
1650
1652
  id: z.ZodString;
1651
1653
  date: z.ZodString;
@@ -1662,98 +1664,18 @@ declare const WeeklyMilestoneSchema: z.ZodObject<{
1662
1664
  progress: number;
1663
1665
  target: number;
1664
1666
  }>, "many">;
1665
- }, "strip", z.ZodTypeAny, {
1666
- id: string;
1667
- progress: number;
1668
- target: number;
1669
- week: string;
1670
- dailyMilestones: {
1671
- id: string;
1672
- date: string;
1673
- progress: number;
1674
- target: number;
1675
- }[];
1676
- }, {
1677
- id: string;
1678
- progress: number;
1679
- target: number;
1680
- week: string;
1681
- dailyMilestones: {
1682
- id: string;
1683
- date: string;
1684
- progress: number;
1685
- target: number;
1686
- }[];
1687
- }>;
1688
- declare const GoalSchema: z.ZodObject<{
1689
- id: z.ZodString;
1690
- editorId: z.ZodString;
1691
- month: z.ZodString;
1692
- target: z.ZodNumber;
1693
- progress: z.ZodNumber;
1694
- createdAt: z.ZodNumber;
1695
- weeklyMilestones: z.ZodArray<z.ZodObject<{
1696
- id: z.ZodString;
1697
- week: z.ZodString;
1698
- target: z.ZodNumber;
1699
- progress: z.ZodNumber;
1700
- dailyMilestones: z.ZodArray<z.ZodObject<{
1701
- id: z.ZodString;
1702
- date: z.ZodString;
1703
- target: z.ZodNumber;
1704
- progress: z.ZodNumber;
1705
- }, "strip", z.ZodTypeAny, {
1706
- id: string;
1707
- date: string;
1708
- progress: number;
1709
- target: number;
1710
- }, {
1711
- id: string;
1712
- date: string;
1713
- progress: number;
1714
- target: number;
1715
- }>, "many">;
1716
- }, "strip", z.ZodTypeAny, {
1717
- id: string;
1718
- progress: number;
1719
- target: number;
1720
- week: string;
1721
- dailyMilestones: {
1722
- id: string;
1723
- date: string;
1724
- progress: number;
1725
- target: number;
1726
- }[];
1727
- }, {
1728
- id: string;
1729
- progress: number;
1730
- target: number;
1731
- week: string;
1732
- dailyMilestones: {
1733
- id: string;
1734
- date: string;
1735
- progress: number;
1736
- target: number;
1737
- }[];
1738
- }>, "many">;
1739
1667
  }, "strip", z.ZodTypeAny, {
1740
1668
  id: string;
1741
1669
  createdAt: number;
1742
1670
  editorId: string;
1743
1671
  progress: number;
1744
1672
  target: number;
1745
- month: string;
1746
- weeklyMilestones: {
1673
+ isoWeek: string;
1674
+ dailyMilestones: {
1747
1675
  id: string;
1676
+ date: string;
1748
1677
  progress: number;
1749
1678
  target: number;
1750
- week: string;
1751
- dailyMilestones: {
1752
- id: string;
1753
- date: string;
1754
- progress: number;
1755
- target: number;
1756
- }[];
1757
1679
  }[];
1758
1680
  }, {
1759
1681
  id: string;
@@ -1761,22 +1683,15 @@ declare const GoalSchema: z.ZodObject<{
1761
1683
  editorId: string;
1762
1684
  progress: number;
1763
1685
  target: number;
1764
- month: string;
1765
- weeklyMilestones: {
1686
+ isoWeek: string;
1687
+ dailyMilestones: {
1766
1688
  id: string;
1689
+ date: string;
1767
1690
  progress: number;
1768
1691
  target: number;
1769
- week: string;
1770
- dailyMilestones: {
1771
- id: string;
1772
- date: string;
1773
- progress: number;
1774
- target: number;
1775
- }[];
1776
1692
  }[];
1777
1693
  }>;
1778
1694
  type DailyMilestone = z.infer<typeof DailyMilestoneSchema>;
1779
- type WeeklyMilestone = z.infer<typeof WeeklyMilestoneSchema>;
1780
1695
  type Goal = z.infer<typeof GoalSchema>;
1781
1696
 
1782
1697
  interface IAPI$3 {
@@ -1792,10 +1707,8 @@ declare const Endpoints$2: {
1792
1707
  type index$4_DailyMilestone = DailyMilestone;
1793
1708
  declare const index$4_DailyMilestoneSchema: typeof DailyMilestoneSchema;
1794
1709
  declare const index$4_GoalSchema: typeof GoalSchema;
1795
- type index$4_WeeklyMilestone = WeeklyMilestone;
1796
- declare const index$4_WeeklyMilestoneSchema: typeof WeeklyMilestoneSchema;
1797
1710
  declare namespace index$4 {
1798
- export { type index$4_DailyMilestone as DailyMilestone, index$4_DailyMilestoneSchema as DailyMilestoneSchema, Endpoints$2 as Endpoints, type Goal as Entity, index$4_GoalSchema as GoalSchema, type IAPI$3 as IAPI, type index$4_WeeklyMilestone as WeeklyMilestone, index$4_WeeklyMilestoneSchema as WeeklyMilestoneSchema };
1711
+ export { type index$4_DailyMilestone as DailyMilestone, index$4_DailyMilestoneSchema as DailyMilestoneSchema, Endpoints$2 as Endpoints, type Goal as Entity, index$4_GoalSchema as GoalSchema, type IAPI$3 as IAPI };
1799
1712
  }
1800
1713
 
1801
1714
  declare enum Frequency {
package/dist/index.d.ts CHANGED
@@ -1641,11 +1641,13 @@ declare const DailyMilestoneSchema: z.ZodObject<{
1641
1641
  progress: number;
1642
1642
  target: number;
1643
1643
  }>;
1644
- declare const WeeklyMilestoneSchema: z.ZodObject<{
1644
+ declare const GoalSchema: z.ZodObject<{
1645
1645
  id: z.ZodString;
1646
- week: z.ZodString;
1646
+ editorId: z.ZodString;
1647
+ isoWeek: z.ZodString;
1647
1648
  target: z.ZodNumber;
1648
1649
  progress: z.ZodNumber;
1650
+ createdAt: z.ZodNumber;
1649
1651
  dailyMilestones: z.ZodArray<z.ZodObject<{
1650
1652
  id: z.ZodString;
1651
1653
  date: z.ZodString;
@@ -1662,98 +1664,18 @@ declare const WeeklyMilestoneSchema: z.ZodObject<{
1662
1664
  progress: number;
1663
1665
  target: number;
1664
1666
  }>, "many">;
1665
- }, "strip", z.ZodTypeAny, {
1666
- id: string;
1667
- progress: number;
1668
- target: number;
1669
- week: string;
1670
- dailyMilestones: {
1671
- id: string;
1672
- date: string;
1673
- progress: number;
1674
- target: number;
1675
- }[];
1676
- }, {
1677
- id: string;
1678
- progress: number;
1679
- target: number;
1680
- week: string;
1681
- dailyMilestones: {
1682
- id: string;
1683
- date: string;
1684
- progress: number;
1685
- target: number;
1686
- }[];
1687
- }>;
1688
- declare const GoalSchema: z.ZodObject<{
1689
- id: z.ZodString;
1690
- editorId: z.ZodString;
1691
- month: z.ZodString;
1692
- target: z.ZodNumber;
1693
- progress: z.ZodNumber;
1694
- createdAt: z.ZodNumber;
1695
- weeklyMilestones: z.ZodArray<z.ZodObject<{
1696
- id: z.ZodString;
1697
- week: z.ZodString;
1698
- target: z.ZodNumber;
1699
- progress: z.ZodNumber;
1700
- dailyMilestones: z.ZodArray<z.ZodObject<{
1701
- id: z.ZodString;
1702
- date: z.ZodString;
1703
- target: z.ZodNumber;
1704
- progress: z.ZodNumber;
1705
- }, "strip", z.ZodTypeAny, {
1706
- id: string;
1707
- date: string;
1708
- progress: number;
1709
- target: number;
1710
- }, {
1711
- id: string;
1712
- date: string;
1713
- progress: number;
1714
- target: number;
1715
- }>, "many">;
1716
- }, "strip", z.ZodTypeAny, {
1717
- id: string;
1718
- progress: number;
1719
- target: number;
1720
- week: string;
1721
- dailyMilestones: {
1722
- id: string;
1723
- date: string;
1724
- progress: number;
1725
- target: number;
1726
- }[];
1727
- }, {
1728
- id: string;
1729
- progress: number;
1730
- target: number;
1731
- week: string;
1732
- dailyMilestones: {
1733
- id: string;
1734
- date: string;
1735
- progress: number;
1736
- target: number;
1737
- }[];
1738
- }>, "many">;
1739
1667
  }, "strip", z.ZodTypeAny, {
1740
1668
  id: string;
1741
1669
  createdAt: number;
1742
1670
  editorId: string;
1743
1671
  progress: number;
1744
1672
  target: number;
1745
- month: string;
1746
- weeklyMilestones: {
1673
+ isoWeek: string;
1674
+ dailyMilestones: {
1747
1675
  id: string;
1676
+ date: string;
1748
1677
  progress: number;
1749
1678
  target: number;
1750
- week: string;
1751
- dailyMilestones: {
1752
- id: string;
1753
- date: string;
1754
- progress: number;
1755
- target: number;
1756
- }[];
1757
1679
  }[];
1758
1680
  }, {
1759
1681
  id: string;
@@ -1761,22 +1683,15 @@ declare const GoalSchema: z.ZodObject<{
1761
1683
  editorId: string;
1762
1684
  progress: number;
1763
1685
  target: number;
1764
- month: string;
1765
- weeklyMilestones: {
1686
+ isoWeek: string;
1687
+ dailyMilestones: {
1766
1688
  id: string;
1689
+ date: string;
1767
1690
  progress: number;
1768
1691
  target: number;
1769
- week: string;
1770
- dailyMilestones: {
1771
- id: string;
1772
- date: string;
1773
- progress: number;
1774
- target: number;
1775
- }[];
1776
1692
  }[];
1777
1693
  }>;
1778
1694
  type DailyMilestone = z.infer<typeof DailyMilestoneSchema>;
1779
- type WeeklyMilestone = z.infer<typeof WeeklyMilestoneSchema>;
1780
1695
  type Goal = z.infer<typeof GoalSchema>;
1781
1696
 
1782
1697
  interface IAPI$3 {
@@ -1792,10 +1707,8 @@ declare const Endpoints$2: {
1792
1707
  type index$4_DailyMilestone = DailyMilestone;
1793
1708
  declare const index$4_DailyMilestoneSchema: typeof DailyMilestoneSchema;
1794
1709
  declare const index$4_GoalSchema: typeof GoalSchema;
1795
- type index$4_WeeklyMilestone = WeeklyMilestone;
1796
- declare const index$4_WeeklyMilestoneSchema: typeof WeeklyMilestoneSchema;
1797
1710
  declare namespace index$4 {
1798
- export { type index$4_DailyMilestone as DailyMilestone, index$4_DailyMilestoneSchema as DailyMilestoneSchema, Endpoints$2 as Endpoints, type Goal as Entity, index$4_GoalSchema as GoalSchema, type IAPI$3 as IAPI, type index$4_WeeklyMilestone as WeeklyMilestone, index$4_WeeklyMilestoneSchema as WeeklyMilestoneSchema };
1711
+ export { type index$4_DailyMilestone as DailyMilestone, index$4_DailyMilestoneSchema as DailyMilestoneSchema, Endpoints$2 as Endpoints, type Goal as Entity, index$4_GoalSchema as GoalSchema, type IAPI$3 as IAPI };
1799
1712
  }
1800
1713
 
1801
1714
  declare enum Frequency {
package/dist/index.js CHANGED
@@ -1177,8 +1177,7 @@ var goal_exports = {};
1177
1177
  __export(goal_exports, {
1178
1178
  DailyMilestoneSchema: () => DailyMilestoneSchema,
1179
1179
  Endpoints: () => Endpoints4,
1180
- GoalSchema: () => GoalSchema,
1181
- WeeklyMilestoneSchema: () => WeeklyMilestoneSchema
1180
+ GoalSchema: () => GoalSchema
1182
1181
  });
1183
1182
 
1184
1183
  // src/model/goal/Goal.schema.ts
@@ -1189,22 +1188,15 @@ var DailyMilestoneSchema = import_zod5.z.object({
1189
1188
  target: import_zod5.z.number(),
1190
1189
  progress: import_zod5.z.number()
1191
1190
  });
1192
- var WeeklyMilestoneSchema = import_zod5.z.object({
1193
- id: import_zod5.z.string(),
1194
- week: import_zod5.z.string(),
1195
- target: import_zod5.z.number(),
1196
- progress: import_zod5.z.number(),
1197
- dailyMilestones: import_zod5.z.array(DailyMilestoneSchema)
1198
- });
1199
1191
  var GoalSchema = import_zod5.z.object({
1200
1192
  id: import_zod5.z.string(),
1201
1193
  editorId: import_zod5.z.string(),
1202
- month: import_zod5.z.string(),
1203
- // ex: "2024-04"
1194
+ isoWeek: import_zod5.z.string(),
1195
+ // ex: "2026-W27"
1204
1196
  target: import_zod5.z.number(),
1205
1197
  progress: import_zod5.z.number(),
1206
1198
  createdAt: import_zod5.z.number(),
1207
- weeklyMilestones: import_zod5.z.array(WeeklyMilestoneSchema)
1199
+ dailyMilestones: import_zod5.z.array(DailyMilestoneSchema)
1208
1200
  });
1209
1201
 
1210
1202
  // src/model/goal/Goal.api.ts