|
|
|
|
@@ -29,7 +29,6 @@ import {
|
|
|
|
|
CreateCompetitionParticipantSchema,
|
|
|
|
|
CreateSupplierSchema,
|
|
|
|
|
UpdateSupplierSchema,
|
|
|
|
|
catchBookStatusSchema,
|
|
|
|
|
catchBookVerificationSchema,
|
|
|
|
|
} from '../../schema/fischerei.schema';
|
|
|
|
|
import { createFischereiApi } from '../api';
|
|
|
|
|
@@ -40,7 +39,7 @@ import { createFischereiApi } from '../api';
|
|
|
|
|
|
|
|
|
|
export const createWater = authActionClient
|
|
|
|
|
.inputSchema(CreateWaterSchema)
|
|
|
|
|
.action(async ({ parsedInput: input, ctx }) => {
|
|
|
|
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
|
|
|
|
const client = getSupabaseServerClient();
|
|
|
|
|
const logger = await getLogger();
|
|
|
|
|
const api = createFischereiApi(client);
|
|
|
|
|
@@ -55,7 +54,7 @@ export const createWater = authActionClient
|
|
|
|
|
|
|
|
|
|
export const updateWater = authActionClient
|
|
|
|
|
.inputSchema(UpdateWaterSchema)
|
|
|
|
|
.action(async ({ parsedInput: input, ctx }) => {
|
|
|
|
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
|
|
|
|
const client = getSupabaseServerClient();
|
|
|
|
|
const logger = await getLogger();
|
|
|
|
|
const api = createFischereiApi(client);
|
|
|
|
|
@@ -192,7 +191,7 @@ export const deleteWaterSpeciesRule = authActionClient
|
|
|
|
|
|
|
|
|
|
export const createStocking = authActionClient
|
|
|
|
|
.inputSchema(CreateStockingSchema)
|
|
|
|
|
.action(async ({ parsedInput: input, ctx }) => {
|
|
|
|
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
|
|
|
|
const client = getSupabaseServerClient();
|
|
|
|
|
const logger = await getLogger();
|
|
|
|
|
const api = createFischereiApi(client);
|
|
|
|
|
@@ -213,7 +212,7 @@ export const createStocking = authActionClient
|
|
|
|
|
|
|
|
|
|
export const updateStocking = authActionClient
|
|
|
|
|
.inputSchema(UpdateStockingSchema)
|
|
|
|
|
.action(async ({ parsedInput: input, ctx }) => {
|
|
|
|
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
|
|
|
|
const client = getSupabaseServerClient();
|
|
|
|
|
const logger = await getLogger();
|
|
|
|
|
const api = createFischereiApi(client);
|
|
|
|
|
@@ -263,7 +262,7 @@ export const deleteStocking = authActionClient
|
|
|
|
|
|
|
|
|
|
export const createLease = authActionClient
|
|
|
|
|
.inputSchema(CreateLeaseSchema)
|
|
|
|
|
.action(async ({ parsedInput: input, ctx }) => {
|
|
|
|
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
|
|
|
|
const client = getSupabaseServerClient();
|
|
|
|
|
const logger = await getLogger();
|
|
|
|
|
const api = createFischereiApi(client);
|
|
|
|
|
@@ -278,7 +277,7 @@ export const createLease = authActionClient
|
|
|
|
|
|
|
|
|
|
export const updateLease = authActionClient
|
|
|
|
|
.inputSchema(UpdateLeaseSchema)
|
|
|
|
|
.action(async ({ parsedInput: input, ctx }) => {
|
|
|
|
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
|
|
|
|
const client = getSupabaseServerClient();
|
|
|
|
|
const logger = await getLogger();
|
|
|
|
|
const api = createFischereiApi(client);
|
|
|
|
|
@@ -316,7 +315,7 @@ export const deleteLease = authActionClient
|
|
|
|
|
|
|
|
|
|
export const createCatchBook = authActionClient
|
|
|
|
|
.inputSchema(CreateCatchBookSchema)
|
|
|
|
|
.action(async ({ parsedInput: input, ctx }) => {
|
|
|
|
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
|
|
|
|
const client = getSupabaseServerClient();
|
|
|
|
|
const logger = await getLogger();
|
|
|
|
|
const api = createFischereiApi(client);
|
|
|
|
|
@@ -334,7 +333,7 @@ export const createCatchBook = authActionClient
|
|
|
|
|
|
|
|
|
|
export const updateCatchBook = authActionClient
|
|
|
|
|
.inputSchema(UpdateCatchBookSchema)
|
|
|
|
|
.action(async ({ parsedInput: input, ctx }) => {
|
|
|
|
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
|
|
|
|
const client = getSupabaseServerClient();
|
|
|
|
|
const logger = await getLogger();
|
|
|
|
|
const api = createFischereiApi(client);
|
|
|
|
|
@@ -357,7 +356,7 @@ export const submitCatchBook = authActionClient
|
|
|
|
|
accountId: z.string().uuid(),
|
|
|
|
|
}),
|
|
|
|
|
)
|
|
|
|
|
.action(async ({ parsedInput: input, ctx }) => {
|
|
|
|
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
|
|
|
|
const client = getSupabaseServerClient();
|
|
|
|
|
const logger = await getLogger();
|
|
|
|
|
const api = createFischereiApi(client);
|
|
|
|
|
@@ -383,7 +382,7 @@ export const reviewCatchBook = authActionClient
|
|
|
|
|
remarks: z.string().optional(),
|
|
|
|
|
}),
|
|
|
|
|
)
|
|
|
|
|
.action(async ({ parsedInput: input, ctx }) => {
|
|
|
|
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
|
|
|
|
const client = getSupabaseServerClient();
|
|
|
|
|
const logger = await getLogger();
|
|
|
|
|
const api = createFischereiApi(client);
|
|
|
|
|
@@ -581,7 +580,7 @@ export const removeInspector = authActionClient
|
|
|
|
|
|
|
|
|
|
export const createCompetition = authActionClient
|
|
|
|
|
.inputSchema(CreateCompetitionSchema)
|
|
|
|
|
.action(async ({ parsedInput: input, ctx }) => {
|
|
|
|
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
|
|
|
|
const client = getSupabaseServerClient();
|
|
|
|
|
const logger = await getLogger();
|
|
|
|
|
const api = createFischereiApi(client);
|
|
|
|
|
@@ -602,7 +601,7 @@ export const createCompetition = authActionClient
|
|
|
|
|
|
|
|
|
|
export const updateCompetition = authActionClient
|
|
|
|
|
.inputSchema(UpdateCompetitionSchema)
|
|
|
|
|
.action(async ({ parsedInput: input, ctx }) => {
|
|
|
|
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
|
|
|
|
const client = getSupabaseServerClient();
|
|
|
|
|
const logger = await getLogger();
|
|
|
|
|
const api = createFischereiApi(client);
|
|
|
|
|
|