@fytkit/sdk 1.1.0 → 2.0.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,17 @@ All notable changes to `@fytkit/sdk` are documented in this file.
4
4
  Format: [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/).
5
5
  Versioning: [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.0.0](https://github.com/cbarlow1993/fytkit-web/compare/@fytkit/sdk@1.1.0...@fytkit/sdk@2.0.0) (2026-08-02)
8
+
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+
12
+ * **nutrition:** `GET /api/v1/nutrition/:id` returns positioned meal items, so the generated SDK types change. `meals[].items[]` drops `order` and gains `weekIndex`, `dayIndex`, `kind`, `servings`, `customName`, `customProtein`, `customCarbs`, `customFat` and `noteText`; `recipeId` and `recipe` are now nullable — only `kind: "recipe"` items carry them. Plans also expose `durationWeeks`, `householdSize`, `tags` and the four `target*` fields.
13
+
14
+ ### Features
15
+
16
+ * **nutrition:** rebuild the meal plan editor and persist the full plan model ([#138](https://github.com/cbarlow1993/fytkit-web/issues/138)) ([0041127](https://github.com/cbarlow1993/fytkit-web/commit/0041127bc2e2919c7b5eded773e87c77389e51c8))
17
+
7
18
  ## [1.1.0](https://github.com/cbarlow1993/fytkit-web/compare/@fytkit/sdk@1.0.0...@fytkit/sdk@1.1.0) (2026-07-22)
8
19
 
9
20
 
package/dist/index.d.ts CHANGED
@@ -1044,6 +1044,13 @@ declare const publicRouter: {
1044
1044
  }>;
1045
1045
  publishedAt: ZodNullable<ZodDate>;
1046
1046
  headerImageId: ZodNullable<ZodString>;
1047
+ durationWeeks: ZodNumber;
1048
+ householdSize: ZodNumber;
1049
+ tags: ZodArray<ZodString>;
1050
+ targetCalories: ZodNullable<ZodNumber>;
1051
+ targetProtein: ZodNullable<ZodNumber>;
1052
+ targetCarbs: ZodNullable<ZodNumber>;
1053
+ targetFat: ZodNullable<ZodNumber>;
1047
1054
  createdAt: ZodDate;
1048
1055
  }, $strip>>;
1049
1056
  meta: ZodObject< {
@@ -1078,6 +1085,13 @@ declare const publicRouter: {
1078
1085
  }>;
1079
1086
  publishedAt: ZodNullable<ZodDate>;
1080
1087
  headerImageId: ZodNullable<ZodString>;
1088
+ durationWeeks: ZodNumber;
1089
+ householdSize: ZodNumber;
1090
+ tags: ZodArray<ZodString>;
1091
+ targetCalories: ZodNullable<ZodNumber>;
1092
+ targetProtein: ZodNullable<ZodNumber>;
1093
+ targetCarbs: ZodNullable<ZodNumber>;
1094
+ targetFat: ZodNullable<ZodNumber>;
1081
1095
  createdAt: ZodDate;
1082
1096
  meals: ZodArray<ZodObject< {
1083
1097
  id: ZodString;
@@ -1087,9 +1101,21 @@ declare const publicRouter: {
1087
1101
  items: ZodArray<ZodObject< {
1088
1102
  id: ZodString;
1089
1103
  mealId: ZodString;
1090
- recipeId: ZodString;
1091
- order: ZodNumber;
1092
- recipe: ZodObject< {
1104
+ weekIndex: ZodNumber;
1105
+ dayIndex: ZodNumber;
1106
+ kind: ZodEnum< {
1107
+ custom: "custom";
1108
+ recipe: "recipe";
1109
+ note: "note";
1110
+ }>;
1111
+ recipeId: ZodNullable<ZodString>;
1112
+ servings: ZodNumber;
1113
+ customName: ZodNullable<ZodString>;
1114
+ customProtein: ZodNullable<ZodString>;
1115
+ customCarbs: ZodNullable<ZodString>;
1116
+ customFat: ZodNullable<ZodString>;
1117
+ noteText: ZodNullable<ZodString>;
1118
+ recipe: ZodNullable<ZodObject< {
1093
1119
  id: ZodString;
1094
1120
  trainerId: ZodString;
1095
1121
  name: ZodString;
@@ -1117,7 +1143,7 @@ declare const publicRouter: {
1117
1143
  publishedAt: ZodNullable<ZodDate>;
1118
1144
  headerImageId: ZodNullable<ZodString>;
1119
1145
  createdAt: ZodDate;
1120
- }, $strip>;
1146
+ }, $strip>>;
1121
1147
  }, $strip>>;
1122
1148
  }, $strip>>;
1123
1149
  }, $strip>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fytkit/sdk",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "Vanilla TypeScript SDK for fytkit's public API",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",