inventory
7 procedures defined in packages/api/src/routers/inventory.ts.
inventory.getUnits
Section titled “inventory.getUnits”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| query | protected (auth required) | inventory — 20 / 60s | packages/api/src/routers/inventory.ts:14 |
Input
z.object({ propertyId: z.string() })inventory.create
Section titled “inventory.create”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | protected (auth required) | inventory — 10 / 60s | packages/api/src/routers/inventory.ts:21 |
Input
z.object({ propertyUnitId: z.string(), unitNumber: z.string().min(1).max(100), floor: z.number().nullable().optional(), status: z .enum(['AVAILABLE', 'RESERVED', 'SOLD', 'RENTED']) .optional(), priceAdjustment: z.number().nullable().optional(), notes: z.string().max(500).nullable().optional(), })inventory.update
Section titled “inventory.update”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | protected (auth required) | inventory — 20 / 60s | packages/api/src/routers/inventory.ts:39 |
Input
z.object({ itemId: z.string(), unitNumber: z.string().max(100).optional(), floor: z.number().nullable().optional(), status: z .enum(['AVAILABLE', 'RESERVED', 'SOLD', 'RENTED']) .optional(), priceAdjustment: z.number().nullable().optional(), notes: z.string().max(500).nullable().optional(), })inventory.delete
Section titled “inventory.delete”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | protected (auth required) | inventory — 20 / 60s | packages/api/src/routers/inventory.ts:58 |
Input
z.object({ itemId: z.string() })inventory.bulkCreate
Section titled “inventory.bulkCreate”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | protected (auth required) | inventory — 20 / 60s | packages/api/src/routers/inventory.ts:65 |
Input
z.object({ propertyUnitId: z.string().optional(), propertyId: z.string().optional(), items: z .array( z.object({ propertyUnitId: z.string().optional(), unitNumber: z.string().min(1).max(100), floor: z.number().nullable().optional(), status: z .enum(['AVAILABLE', 'RESERVED', 'SOLD', 'RENTED']) .optional(), priceAdjustment: z.number().nullable().optional(), }) ) .min(1) .max(500), })inventory.bulkUpdate
Section titled “inventory.bulkUpdate”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | protected (auth required) | inventory — 20 / 60s | packages/api/src/routers/inventory.ts:91 |
Input
z.object({ ids: z.array(z.string()).min(1), action: z.enum(['status', 'floor', 'price']), status: z .enum(['AVAILABLE', 'RESERVED', 'SOLD', 'RENTED']) .optional(), floor: z.number().nullable().optional(), type: z.enum(['set', 'increase', 'decrease']).optional(), amount: z.number().optional(), })inventory.bulkDelete
Section titled “inventory.bulkDelete”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | protected (auth required) | inventory — 20 / 60s | packages/api/src/routers/inventory.ts:109 |
Input
z.object({ ids: z.array(z.string()).min(1) })