This commit is contained in:
seb
2026-09-24 23:26:25 +02:00
parent 075b1f0ddc
commit f8f61a1212
40 changed files with 1245 additions and 337 deletions

View File

@@ -15,6 +15,7 @@ Adds an image to a category, processing it into AVIF full and thumb variants.
| `googleAuthId` | `number` | The id of the Google auth user. |
| `categoryId` | `number` | The id of the category. |
| `image` | `Buffer` | The source image buffer. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**
@@ -41,6 +42,7 @@ Creates a new category under a given parent category.
| `input.googleAuthId` | `number` | The id of the Google auth user. |
| `input.parentId` | `number` | The id of the parent category. |
| `input.name` | `string` | The category name. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**
@@ -66,6 +68,7 @@ Deletes a category, refusing to delete the company's root category.
| `input` | `object` | The delete input. |
| `input.googleAuthId` | `number` | The id of the Google auth user. |
| `input.id` | `number` | The id of the category to delete. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**
@@ -93,6 +96,7 @@ Deletes the image of a category.
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `categoryId` | `number` | The id of the category. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**
@@ -148,6 +152,7 @@ Returns the articles belonging to a single category.
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `categoryId` | `number` | The id of the category. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**
@@ -171,6 +176,7 @@ Returns the full category tree for the user's selected company together with its
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**
@@ -197,6 +203,7 @@ Moves a category to a new parent, preventing cycles and cross-company moves.
| `input.googleAuthId` | `number` | The id of the Google auth user. |
| `input.id` | `number` | The id of the category to move. |
| `input.parentId` | `number` | The id of the new parent category. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**
@@ -227,6 +234,7 @@ Reorders the child categories of a given parent.
| `input.googleAuthId` | `number` | The id of the Google auth user. |
| `input.parentId` | `number` | The id of the parent category. |
| `input.categoryIds` | `Array<number>` | The child category ids in their new order. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**
@@ -257,6 +265,7 @@ Renames a category and updates its slug.
| `input.googleAuthId` | `number` | The id of the Google auth user. |
| `input.id` | `number` | The id of the category to rename. |
| `input.name` | `string` | The new category name. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**