This commit is contained in:
seb
2026-09-29 16:16:05 +02:00
parent 26d2f83d64
commit ae5d5cc6f8
40 changed files with 2139 additions and 0 deletions

98
API.propertyname.md Normal file
View File

@@ -0,0 +1,98 @@
# propertyname
This document is auto-generated from the JSDoc comments in `src/store` by running `npm run api-doc`.
## `propertyname.create`
*Source: `src/store/propertyname/create.js`*
Creates a property name for the user's selected company.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `input` | `object` | The property name input. |
| `input.name` | `string` | The property name. |
| `[input.sort]` | `number` | Optional sort order. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
`Promise<{id: number, name: string, sort: number}>`
## `propertyname.delete`
*Source: `src/store/propertyname/delete.js`*
Deletes a property name for the user's selected company.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `id` | `number` | The property name id. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
`Promise<void>`
## `propertyname.list`
*Source: `src/store/propertyname/list.js`*
Lists the property names for the user's selected company.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
`Promise<Array<{id: number, name: string, sort: number}>>`
## `propertyname.order`
*Source: `src/store/propertyname/order.js`*
Reorders the property names for the user's selected company.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `input` | `object` | Reorder input. |
| `input.propertynameIds` | `Array<number>` | IDs in their new order. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
`Promise<{propertynameIds: Array<number>}>`
## `propertyname.update`
*Source: `src/store/propertyname/update.js`*
Updates a property name for the user's selected company.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `id` | `number` | The property name id. |
| `input` | `object` | Update patch. |
| `[input.name]` | `string` | New name. |
| `[input.sort]` | `number` | New sort. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
`Promise<{id: number, name: string, sort: number}>`