@autobusal/providers 1.37.3 → 1.37.4

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
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.37.4
4
+
5
+ ### Changed
6
+
7
+ - **`CategoryData.name` dropped its dead `name_en`/`name_sq` fields** - `articles_categories.name` is JSON keyed by locale now (obtapi's categories_name_to_json migration); `CategoryData` is the resolved-string shape an article's own `category` and the admin browse list use, the admin Manage form works with the raw per-locale shape directly (see magus Admin/Categories/services.ts).
8
+
3
9
  ## 1.37.3
4
10
 
5
11
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.37.3",
3
+ "version": "1.37.4",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/articles.ts CHANGED
@@ -15,11 +15,16 @@ export interface ArticleData {
15
15
  created_at: string
16
16
  }
17
17
 
18
+ /**
19
+ * A category resolved to one language - what an article's own `category`
20
+ * carries, and what the admin browse list shows. `name` is JSON keyed by
21
+ * locale in the database (see the categories_name_to_json migration) -
22
+ * the admin's own Manage form works with that raw shape directly instead
23
+ * of this resolved-string one, see Admin/Categories/services.ts.
24
+ */
18
25
  export interface CategoryData {
19
26
  id: number
20
27
  name: string
21
- name_en?: string
22
- name_sq?: string
23
28
  }
24
29
 
25
30
  export interface MoreData {