chore(web): install orval + mutator for OpenAPI code generation (v1.0.8 P1)
Some checks failed
Veza CI / Backend (Go) (push) Failing after 0s
Veza CI / Frontend (Web) (push) Failing after 0s
Veza CI / Rust (Stream Server) (push) Failing after 0s
Frontend CI / test (push) Failing after 0s
Security Scan / Secret Scanning (gitleaks) (push) Failing after 0s
Veza CI / Notify on failure (push) Failing after 0s
Some checks failed
Veza CI / Backend (Go) (push) Failing after 0s
Veza CI / Frontend (Web) (push) Failing after 0s
Veza CI / Rust (Stream Server) (push) Failing after 0s
Frontend CI / test (push) Failing after 0s
Security Scan / Secret Scanning (gitleaks) (push) Failing after 0s
Veza CI / Notify on failure (push) Failing after 0s
Phase 1 of the OpenAPI typegen migration. Brings orval@8.8.1 into the monorepo (workspace-hoisted) and wires a custom mutator so generated calls route through the existing Axios instance — interceptors for auth / CSRF / retry / offline-queue / logging keep firing unchanged. 200 .ts files generated from veza-backend-api/openapi.yaml (3441 LOC), covering 13 tags (auth, track, user, playlist, marketplace, chat, dashboard, webhook, validation, logging, audit, comment, users). Changes: - apps/web/orval.config.ts (NEW): generator config, output src/services/generated/, tags-split mode, vezaMutator. - apps/web/src/services/api/orval-mutator.ts (NEW): translates orval's (url, RequestInit) convention into AxiosRequestConfig then apiClient. Forwards AbortSignal for React Query cancellation. - apps/web/scripts/generate-types.sh: runs BOTH generators during the migration (legacy typescript-axios + orval). B9 drops step 1. - apps/web/scripts/check-types-sync.sh: extended to check drift on both output trees. - apps/web/eslint.config.js: ignores src/services/generated/ (orval emits overloaded function declarations that trip no-redeclare). - .gitignore: narrowed the bare `api` SELinux rule to `/api` plus `/veza-backend-api/api`. The old rule silently ignored apps/web/src/services/api/ new files including orval-mutator.ts. - apps/web/package.json + package-lock.json: orval@^8.8.1 added as devDependency, plus @commitlint/cli + @commitlint/config-conventional (referenced by .husky/commit-msg but missing from deps). Out of scope: no hand-written service changes. Pilot developer.ts lands in B2, bulk migration in B3-B8, cleanup in B9. npm run typecheck and npm run lint both green (0 errors). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e3bf2d2aea
commit
a170504784
209 changed files with 11685 additions and 131 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -158,7 +158,11 @@ veza-backend-api/audio/
|
|||
|
||||
# SELinux policy (local)
|
||||
qemu-fusefs.*
|
||||
api
|
||||
# Root-level 'api' binary produced by `go build` in veza-backend-api/.
|
||||
# Narrower than the previous bare `api` rule which matched any file or
|
||||
# directory named 'api' anywhere (including apps/web/src/services/api/).
|
||||
/api
|
||||
/veza-backend-api/api
|
||||
|
||||
# ============================================================
|
||||
# Post-audit J1 (2026-04-14) — never recommit this debris
|
||||
|
|
|
|||
|
|
@ -290,6 +290,7 @@ export default [js.configs.recommended, {
|
|||
'public/sw.js',
|
||||
'scripts/',
|
||||
'src/types/generated/',
|
||||
'src/services/generated/',
|
||||
'_archive/',
|
||||
'archive/',
|
||||
'*.config.js',
|
||||
|
|
|
|||
50
apps/web/orval.config.ts
Normal file
50
apps/web/orval.config.ts
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/**
|
||||
* orval configuration — OpenAPI client generation for Veza frontend.
|
||||
*
|
||||
* v1.0.8 Phase 1 (B1). Generates typed Axios services + React Query hooks
|
||||
* from `veza-backend-api/openapi.yaml` (produced by swaggo). Output lives
|
||||
* alongside hand-written services during the migration, then supersedes
|
||||
* them in Phase 3.
|
||||
*
|
||||
* Design choices (cf. /home/senke/.claude/plans/audit-fonctionnel-wild-hickey.md D8):
|
||||
* - client: 'react-query' → emits hooks directly (useXxx / useXxxMutation)
|
||||
* - mode: 'tags-split' → one folder per `@Tags` → smaller bundles + easier diff
|
||||
* - mutator: './src/services/api/orval-mutator.ts' vezaMutator
|
||||
* Routes every generated call through the existing Axios instance so
|
||||
* auth / retry / CSRF / offline-queue interceptors keep applying.
|
||||
* - mock: false → MSW handlers stay manual (endpoint-shape
|
||||
* matching, not spec-schema matching). Phase 2
|
||||
* may revisit once drift is eliminated.
|
||||
*
|
||||
* Run: npx orval --config orval.config.ts
|
||||
* Or: npm run generate:types (check-types-sync.sh → scripts/generate-types.sh)
|
||||
*/
|
||||
import { defineConfig } from 'orval';
|
||||
|
||||
export default defineConfig({
|
||||
veza: {
|
||||
input: {
|
||||
target: '../../veza-backend-api/openapi.yaml',
|
||||
},
|
||||
output: {
|
||||
target: 'src/services/generated/veza.ts',
|
||||
schemas: 'src/services/generated/model',
|
||||
client: 'react-query',
|
||||
mode: 'tags-split',
|
||||
mock: false,
|
||||
prettier: true,
|
||||
clean: true,
|
||||
override: {
|
||||
mutator: {
|
||||
path: './src/services/api/orval-mutator.ts',
|
||||
name: 'vezaMutator',
|
||||
},
|
||||
query: {
|
||||
useQuery: true,
|
||||
useMutation: true,
|
||||
signal: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -137,6 +137,7 @@
|
|||
"jsdom": "^24.0.0",
|
||||
"msw": "^2.11.2",
|
||||
"msw-storybook-addon": "^2.0.6",
|
||||
"orval": "^8.8.1",
|
||||
"pixelmatch": "^5.3.0",
|
||||
"pngjs": "^7.0.0",
|
||||
"prettier": "^3.2.5",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
#!/bin/bash
|
||||
# Check that generated TypeScript types match the committed version.
|
||||
# Fails if openapi.yaml changed without regenerating types.
|
||||
# Check that generated TypeScript types + orval output match the committed
|
||||
# versions. Fails if openapi.yaml changed without regenerating one of the
|
||||
# two trees.
|
||||
#
|
||||
# v1.0.8 Phase 1: watches both src/types/generated/ (legacy typescript-axios)
|
||||
# and src/services/generated/ (orval). Phase 3 (B9) removes the legacy tree.
|
||||
#
|
||||
# Usage: ./scripts/check-types-sync.sh (from apps/web)
|
||||
|
||||
set -e
|
||||
|
|
@ -10,15 +15,25 @@ PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|||
|
||||
cd "$PROJECT_ROOT"
|
||||
|
||||
# Regenerate types
|
||||
# Regenerate both legacy types + orval output.
|
||||
./scripts/generate-types.sh
|
||||
|
||||
# Check for uncommitted changes
|
||||
if ! git diff --exit-code src/types/generated/; then
|
||||
echo "Error: Types are out of sync with openapi.yaml."
|
||||
# Check for uncommitted changes across BOTH trees.
|
||||
sync_ok=true
|
||||
if ! git diff --exit-code src/types/generated/ >/dev/null 2>&1; then
|
||||
echo "Error: src/types/generated/ is out of sync with openapi.yaml."
|
||||
sync_ok=false
|
||||
fi
|
||||
if ! git diff --exit-code src/services/generated/ >/dev/null 2>&1; then
|
||||
echo "Error: src/services/generated/ (orval) is out of sync with openapi.yaml."
|
||||
sync_ok=false
|
||||
fi
|
||||
|
||||
if ! $sync_ok; then
|
||||
echo ""
|
||||
echo "Run: make openapi && cd apps/web && ./scripts/generate-types.sh"
|
||||
echo "Then commit the updated types."
|
||||
echo "Then stage the updated files and retry."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Types are in sync with openapi.yaml."
|
||||
echo "OpenAPI-generated code is in sync with veza-backend-api/openapi.yaml."
|
||||
|
|
|
|||
|
|
@ -1,62 +1,68 @@
|
|||
#!/bin/bash
|
||||
# Generate TypeScript types from OpenAPI specification
|
||||
# Generate TypeScript types + React Query hooks from OpenAPI spec.
|
||||
#
|
||||
# v1.0.8 Phase 1: runs TWO generators during the migration:
|
||||
# 1. @openapitools/openapi-generator-cli → src/types/generated/
|
||||
# (feeds hand-written services/api/*.ts until Phase 3 cleanup)
|
||||
# 2. orval → src/services/generated/
|
||||
# (typed Axios services + React Query hooks, new world)
|
||||
#
|
||||
# Phase 3 (B9) removes step 1 and drops the old generator dependency.
|
||||
# Until then, drift on EITHER tree fails check-types-sync.sh.
|
||||
#
|
||||
# Usage: ./scripts/generate-types.sh
|
||||
# (invoked by check-types-sync.sh, pre-commit, CI frontend-ci.yml)
|
||||
|
||||
set -e
|
||||
|
||||
# Colors for output
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
RED='\033[0;31m'
|
||||
NC='\033[0m' # No Color
|
||||
NC='\033[0m'
|
||||
|
||||
# Paths
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
BACKEND_ROOT="$(cd "$PROJECT_ROOT/../../veza-backend-api" && pwd)"
|
||||
OPENAPI_SPEC="$BACKEND_ROOT/openapi.yaml"
|
||||
OUTPUT_DIR="$PROJECT_ROOT/src/types/generated"
|
||||
LEGACY_OUTPUT_DIR="$PROJECT_ROOT/src/types/generated"
|
||||
ORVAL_OUTPUT_DIR="$PROJECT_ROOT/src/services/generated"
|
||||
|
||||
echo -e "${GREEN}🔨 Generating TypeScript types from OpenAPI spec...${NC}"
|
||||
cd "$PROJECT_ROOT"
|
||||
|
||||
# Check if OpenAPI spec exists
|
||||
if [ ! -f "$OPENAPI_SPEC" ]; then
|
||||
echo -e "${RED}❌ Error: OpenAPI spec not found at $OPENAPI_SPEC${NC}"
|
||||
echo -e "${YELLOW} Please ensure veza-backend-api/openapi.yaml exists${NC}"
|
||||
echo -e "${RED}❌ OpenAPI spec not found at $OPENAPI_SPEC${NC}"
|
||||
echo -e "${YELLOW} Run 'make openapi' in the backend first (swag init).${NC}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Create output directory
|
||||
mkdir -p "$OUTPUT_DIR"
|
||||
|
||||
# Generate types using openapi-generator-cli
|
||||
echo -e "${GREEN}📝 Generating types from $OPENAPI_SPEC${NC}"
|
||||
echo -e "${GREEN}📦 Output directory: $OUTPUT_DIR${NC}"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# 1. Legacy generator — still feeds hand-written services during migration.
|
||||
# Dropped in v1.0.8 Phase 3 (B9) once all services switch to orval.
|
||||
# -----------------------------------------------------------------------------
|
||||
echo -e "${GREEN}🔨 [1/2] Generating legacy typescript-axios types...${NC}"
|
||||
mkdir -p "$LEGACY_OUTPUT_DIR"
|
||||
npx @openapitools/openapi-generator-cli generate \
|
||||
-i "$OPENAPI_SPEC" \
|
||||
-g typescript-axios \
|
||||
-o "$OUTPUT_DIR" \
|
||||
-o "$LEGACY_OUTPUT_DIR" \
|
||||
--additional-properties=supportsES6=true,withInterfaces=true,typescriptThreePlus=true
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo -e "${GREEN}✅ Types generated successfully to $OUTPUT_DIR${NC}"
|
||||
|
||||
# Create index.ts barrel export
|
||||
echo -e "${GREEN}📦 Creating barrel export...${NC}"
|
||||
cat > "$OUTPUT_DIR/index.ts" << 'EOF'
|
||||
cat > "$LEGACY_OUTPUT_DIR/index.ts" << 'EOF'
|
||||
// Auto-generated types from OpenAPI specification
|
||||
// Do not edit this file manually - it will be overwritten
|
||||
// DEPRECATED v1.0.8 P3 — migrate consumers to src/services/generated/ (orval).
|
||||
|
||||
export * from './api';
|
||||
export * from './base';
|
||||
export * from './configuration';
|
||||
export * from './common';
|
||||
EOF
|
||||
echo -e "${GREEN} ✅ Legacy types → $LEGACY_OUTPUT_DIR${NC}"
|
||||
|
||||
echo -e "${GREEN}✅ Type generation complete!${NC}"
|
||||
echo -e "${YELLOW}⚠️ Note: Review generated types and update imports as needed${NC}"
|
||||
else
|
||||
echo -e "${RED}❌ Type generation failed${NC}"
|
||||
exit 1
|
||||
fi
|
||||
# -----------------------------------------------------------------------------
|
||||
# 2. orval — typed Axios services + React Query hooks. New world.
|
||||
# -----------------------------------------------------------------------------
|
||||
echo -e "${GREEN}🔨 [2/2] Generating orval services + hooks...${NC}"
|
||||
npx orval --config orval.config.ts
|
||||
echo -e "${GREEN} ✅ orval output → $ORVAL_OUTPUT_DIR${NC}"
|
||||
|
||||
echo -e "${GREEN}✅ Type generation complete.${NC}"
|
||||
|
|
|
|||
54
apps/web/src/services/api/orval-mutator.ts
Normal file
54
apps/web/src/services/api/orval-mutator.ts
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/**
|
||||
* vezaMutator — glue between orval-generated calls and the existing Axios
|
||||
* instance (httpClient.ts) that carries auth, CSRF, retry, offline-queue
|
||||
* and logging interceptors.
|
||||
*
|
||||
* v1.0.8 Phase 1 (B1). orval emits calls as `mutator(url, init)` where
|
||||
* `init` is a standard DOM `RequestInit` (method, body, headers, signal).
|
||||
* We translate that into an AxiosRequestConfig and hand off to apiClient
|
||||
* so the configured interceptors fire.
|
||||
*
|
||||
* Return type is the raw response body `T` (not AxiosResponse<T>) so
|
||||
* generated hooks can type `data` directly — matches React Query's
|
||||
* convention of unwrapping at the fetcher level.
|
||||
*/
|
||||
import type { AxiosRequestConfig, AxiosResponse, Method } from 'axios';
|
||||
|
||||
import { apiClient } from './httpClient';
|
||||
|
||||
/**
|
||||
* Narrow RequestInit.headers (HeadersInit: Headers | Record<string, string> |
|
||||
* [string, string][]) down to the plain-object form Axios expects.
|
||||
*/
|
||||
const toPlainHeaders = (
|
||||
headers: HeadersInit | undefined,
|
||||
): Record<string, string> | undefined => {
|
||||
if (!headers) return undefined;
|
||||
if (headers instanceof Headers) {
|
||||
const out: Record<string, string> = {};
|
||||
headers.forEach((value, key) => {
|
||||
out[key] = value;
|
||||
});
|
||||
return out;
|
||||
}
|
||||
if (Array.isArray(headers)) {
|
||||
return Object.fromEntries(headers);
|
||||
}
|
||||
return headers as Record<string, string>;
|
||||
};
|
||||
|
||||
export const vezaMutator = <T>(url: string, init?: RequestInit): Promise<T> => {
|
||||
const config: AxiosRequestConfig = {
|
||||
url,
|
||||
method: (init?.method ?? 'GET') as Method,
|
||||
headers: toPlainHeaders(init?.headers),
|
||||
// orval serialises bodies with JSON.stringify before calling the mutator;
|
||||
// forward as `data` to preserve that serialisation.
|
||||
data: init?.body,
|
||||
signal: init?.signal ?? undefined,
|
||||
};
|
||||
|
||||
return apiClient.request<T>(config).then((r: AxiosResponse<T>) => r.data);
|
||||
};
|
||||
|
||||
export default vezaMutator;
|
||||
445
apps/web/src/services/generated/audit/audit.ts
Normal file
445
apps/web/src/services/generated/audit/audit.ts
Normal file
|
|
@ -0,0 +1,445 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import {
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
DefinedUseQueryResult,
|
||||
QueryClient,
|
||||
QueryFunction,
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
GetAuditActivity200,
|
||||
GetAuditActivityParams,
|
||||
GetAuditLogs200,
|
||||
GetAuditLogsParams,
|
||||
GetAuditStats200,
|
||||
GetAuditStatsParams,
|
||||
InternalHandlersAPIResponse
|
||||
} from '../model';
|
||||
|
||||
import { vezaMutator } from '../../api/orval-mutator';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get recent activity logs for the current user
|
||||
* @summary Get user activity
|
||||
*/
|
||||
export type getAuditActivityResponse200 = {
|
||||
data: GetAuditActivity200
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getAuditActivityResponse401 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 401
|
||||
}
|
||||
|
||||
export type getAuditActivityResponse500 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 500
|
||||
}
|
||||
|
||||
export type getAuditActivityResponseSuccess = (getAuditActivityResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getAuditActivityResponseError = (getAuditActivityResponse401 | getAuditActivityResponse500) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getAuditActivityResponse = (getAuditActivityResponseSuccess | getAuditActivityResponseError)
|
||||
|
||||
export const getGetAuditActivityUrl = (params?: GetAuditActivityParams,) => {
|
||||
const normalizedParams = new URLSearchParams();
|
||||
|
||||
Object.entries(params || {}).forEach(([key, value]) => {
|
||||
|
||||
if (value !== undefined) {
|
||||
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
||||
}
|
||||
});
|
||||
|
||||
const stringifiedParams = normalizedParams.toString();
|
||||
|
||||
return stringifiedParams.length > 0 ? `/audit/activity?${stringifiedParams}` : `/audit/activity`
|
||||
}
|
||||
|
||||
export const getAuditActivity = async (params?: GetAuditActivityParams, options?: RequestInit): Promise<getAuditActivityResponse> => {
|
||||
|
||||
return vezaMutator<getAuditActivityResponse>(getGetAuditActivityUrl(params),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetAuditActivityQueryKey = (params?: GetAuditActivityParams,) => {
|
||||
return [
|
||||
`/audit/activity`, ...(params ? [params] : [])
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetAuditActivityQueryOptions = <TData = Awaited<ReturnType<typeof getAuditActivity>>, TError = InternalHandlersAPIResponse>(params?: GetAuditActivityParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditActivity>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetAuditActivityQueryKey(params);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getAuditActivity>>> = ({ signal }) => getAuditActivity(params, { signal, ...requestOptions });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getAuditActivity>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetAuditActivityQueryResult = NonNullable<Awaited<ReturnType<typeof getAuditActivity>>>
|
||||
export type GetAuditActivityQueryError = InternalHandlersAPIResponse
|
||||
|
||||
|
||||
export function useGetAuditActivity<TData = Awaited<ReturnType<typeof getAuditActivity>>, TError = InternalHandlersAPIResponse>(
|
||||
params: undefined | GetAuditActivityParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditActivity>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getAuditActivity>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getAuditActivity>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetAuditActivity<TData = Awaited<ReturnType<typeof getAuditActivity>>, TError = InternalHandlersAPIResponse>(
|
||||
params?: GetAuditActivityParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditActivity>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getAuditActivity>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getAuditActivity>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetAuditActivity<TData = Awaited<ReturnType<typeof getAuditActivity>>, TError = InternalHandlersAPIResponse>(
|
||||
params?: GetAuditActivityParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditActivity>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary Get user activity
|
||||
*/
|
||||
|
||||
export function useGetAuditActivity<TData = Awaited<ReturnType<typeof getAuditActivity>>, TError = InternalHandlersAPIResponse>(
|
||||
params?: GetAuditActivityParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditActivity>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const queryOptions = getGetAuditActivityQueryOptions(params,options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Search and filter audit logs with pagination support. Supports filtering by action, resource, date range, IP address, and user agent.
|
||||
* @summary Search audit logs
|
||||
*/
|
||||
export type getAuditLogsResponse200 = {
|
||||
data: GetAuditLogs200
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getAuditLogsResponse400 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 400
|
||||
}
|
||||
|
||||
export type getAuditLogsResponse401 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 401
|
||||
}
|
||||
|
||||
export type getAuditLogsResponse500 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 500
|
||||
}
|
||||
|
||||
export type getAuditLogsResponseSuccess = (getAuditLogsResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getAuditLogsResponseError = (getAuditLogsResponse400 | getAuditLogsResponse401 | getAuditLogsResponse500) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getAuditLogsResponse = (getAuditLogsResponseSuccess | getAuditLogsResponseError)
|
||||
|
||||
export const getGetAuditLogsUrl = (params?: GetAuditLogsParams,) => {
|
||||
const normalizedParams = new URLSearchParams();
|
||||
|
||||
Object.entries(params || {}).forEach(([key, value]) => {
|
||||
|
||||
if (value !== undefined) {
|
||||
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
||||
}
|
||||
});
|
||||
|
||||
const stringifiedParams = normalizedParams.toString();
|
||||
|
||||
return stringifiedParams.length > 0 ? `/audit/logs?${stringifiedParams}` : `/audit/logs`
|
||||
}
|
||||
|
||||
export const getAuditLogs = async (params?: GetAuditLogsParams, options?: RequestInit): Promise<getAuditLogsResponse> => {
|
||||
|
||||
return vezaMutator<getAuditLogsResponse>(getGetAuditLogsUrl(params),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetAuditLogsQueryKey = (params?: GetAuditLogsParams,) => {
|
||||
return [
|
||||
`/audit/logs`, ...(params ? [params] : [])
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetAuditLogsQueryOptions = <TData = Awaited<ReturnType<typeof getAuditLogs>>, TError = InternalHandlersAPIResponse>(params?: GetAuditLogsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditLogs>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetAuditLogsQueryKey(params);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getAuditLogs>>> = ({ signal }) => getAuditLogs(params, { signal, ...requestOptions });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getAuditLogs>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetAuditLogsQueryResult = NonNullable<Awaited<ReturnType<typeof getAuditLogs>>>
|
||||
export type GetAuditLogsQueryError = InternalHandlersAPIResponse
|
||||
|
||||
|
||||
export function useGetAuditLogs<TData = Awaited<ReturnType<typeof getAuditLogs>>, TError = InternalHandlersAPIResponse>(
|
||||
params: undefined | GetAuditLogsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditLogs>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getAuditLogs>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getAuditLogs>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetAuditLogs<TData = Awaited<ReturnType<typeof getAuditLogs>>, TError = InternalHandlersAPIResponse>(
|
||||
params?: GetAuditLogsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditLogs>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getAuditLogs>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getAuditLogs>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetAuditLogs<TData = Awaited<ReturnType<typeof getAuditLogs>>, TError = InternalHandlersAPIResponse>(
|
||||
params?: GetAuditLogsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditLogs>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary Search audit logs
|
||||
*/
|
||||
|
||||
export function useGetAuditLogs<TData = Awaited<ReturnType<typeof getAuditLogs>>, TError = InternalHandlersAPIResponse>(
|
||||
params?: GetAuditLogsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditLogs>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const queryOptions = getGetAuditLogsQueryOptions(params,options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get audit statistics for the current user, optionally filtered by date range
|
||||
* @summary Get audit statistics
|
||||
*/
|
||||
export type getAuditStatsResponse200 = {
|
||||
data: GetAuditStats200
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getAuditStatsResponse400 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 400
|
||||
}
|
||||
|
||||
export type getAuditStatsResponse401 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 401
|
||||
}
|
||||
|
||||
export type getAuditStatsResponse500 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 500
|
||||
}
|
||||
|
||||
export type getAuditStatsResponseSuccess = (getAuditStatsResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getAuditStatsResponseError = (getAuditStatsResponse400 | getAuditStatsResponse401 | getAuditStatsResponse500) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getAuditStatsResponse = (getAuditStatsResponseSuccess | getAuditStatsResponseError)
|
||||
|
||||
export const getGetAuditStatsUrl = (params?: GetAuditStatsParams,) => {
|
||||
const normalizedParams = new URLSearchParams();
|
||||
|
||||
Object.entries(params || {}).forEach(([key, value]) => {
|
||||
|
||||
if (value !== undefined) {
|
||||
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
||||
}
|
||||
});
|
||||
|
||||
const stringifiedParams = normalizedParams.toString();
|
||||
|
||||
return stringifiedParams.length > 0 ? `/audit/stats?${stringifiedParams}` : `/audit/stats`
|
||||
}
|
||||
|
||||
export const getAuditStats = async (params?: GetAuditStatsParams, options?: RequestInit): Promise<getAuditStatsResponse> => {
|
||||
|
||||
return vezaMutator<getAuditStatsResponse>(getGetAuditStatsUrl(params),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetAuditStatsQueryKey = (params?: GetAuditStatsParams,) => {
|
||||
return [
|
||||
`/audit/stats`, ...(params ? [params] : [])
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetAuditStatsQueryOptions = <TData = Awaited<ReturnType<typeof getAuditStats>>, TError = InternalHandlersAPIResponse>(params?: GetAuditStatsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditStats>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetAuditStatsQueryKey(params);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getAuditStats>>> = ({ signal }) => getAuditStats(params, { signal, ...requestOptions });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getAuditStats>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetAuditStatsQueryResult = NonNullable<Awaited<ReturnType<typeof getAuditStats>>>
|
||||
export type GetAuditStatsQueryError = InternalHandlersAPIResponse
|
||||
|
||||
|
||||
export function useGetAuditStats<TData = Awaited<ReturnType<typeof getAuditStats>>, TError = InternalHandlersAPIResponse>(
|
||||
params: undefined | GetAuditStatsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditStats>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getAuditStats>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getAuditStats>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetAuditStats<TData = Awaited<ReturnType<typeof getAuditStats>>, TError = InternalHandlersAPIResponse>(
|
||||
params?: GetAuditStatsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditStats>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getAuditStats>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getAuditStats>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetAuditStats<TData = Awaited<ReturnType<typeof getAuditStats>>, TError = InternalHandlersAPIResponse>(
|
||||
params?: GetAuditStatsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditStats>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary Get audit statistics
|
||||
*/
|
||||
|
||||
export function useGetAuditStats<TData = Awaited<ReturnType<typeof getAuditStats>>, TError = InternalHandlersAPIResponse>(
|
||||
params?: GetAuditStatsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAuditStats>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const queryOptions = getGetAuditStatsQueryOptions(params,options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1402
apps/web/src/services/generated/auth/auth.ts
Normal file
1402
apps/web/src/services/generated/auth/auth.ts
Normal file
File diff suppressed because it is too large
Load diff
159
apps/web/src/services/generated/chat/chat.ts
Normal file
159
apps/web/src/services/generated/chat/chat.ts
Normal file
|
|
@ -0,0 +1,159 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import {
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
DefinedUseQueryResult,
|
||||
QueryClient,
|
||||
QueryFunction,
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
GetChatToken200,
|
||||
InternalHandlersAPIResponse
|
||||
} from '../model';
|
||||
|
||||
import { vezaMutator } from '../../api/orval-mutator';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Generate a short-lived token for chat authentication
|
||||
* @summary Get Chat Token
|
||||
*/
|
||||
export type getChatTokenResponse200 = {
|
||||
data: GetChatToken200
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getChatTokenResponse401 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 401
|
||||
}
|
||||
|
||||
export type getChatTokenResponse500 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 500
|
||||
}
|
||||
|
||||
export type getChatTokenResponseSuccess = (getChatTokenResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getChatTokenResponseError = (getChatTokenResponse401 | getChatTokenResponse500) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getChatTokenResponse = (getChatTokenResponseSuccess | getChatTokenResponseError)
|
||||
|
||||
export const getGetChatTokenUrl = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/chat/token`
|
||||
}
|
||||
|
||||
export const getChatToken = async ( options?: RequestInit): Promise<getChatTokenResponse> => {
|
||||
|
||||
return vezaMutator<getChatTokenResponse>(getGetChatTokenUrl(),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetChatTokenQueryKey = () => {
|
||||
return [
|
||||
`/chat/token`
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetChatTokenQueryOptions = <TData = Awaited<ReturnType<typeof getChatToken>>, TError = InternalHandlersAPIResponse>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getChatToken>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetChatTokenQueryKey();
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getChatToken>>> = ({ signal }) => getChatToken({ signal, ...requestOptions });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getChatToken>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetChatTokenQueryResult = NonNullable<Awaited<ReturnType<typeof getChatToken>>>
|
||||
export type GetChatTokenQueryError = InternalHandlersAPIResponse
|
||||
|
||||
|
||||
export function useGetChatToken<TData = Awaited<ReturnType<typeof getChatToken>>, TError = InternalHandlersAPIResponse>(
|
||||
options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getChatToken>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getChatToken>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getChatToken>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetChatToken<TData = Awaited<ReturnType<typeof getChatToken>>, TError = InternalHandlersAPIResponse>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getChatToken>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getChatToken>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getChatToken>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetChatToken<TData = Awaited<ReturnType<typeof getChatToken>>, TError = InternalHandlersAPIResponse>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getChatToken>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary Get Chat Token
|
||||
*/
|
||||
|
||||
export function useGetChatToken<TData = Awaited<ReturnType<typeof getChatToken>>, TError = InternalHandlersAPIResponse>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getChatToken>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const queryOptions = getGetChatTokenQueryOptions(options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
659
apps/web/src/services/generated/comment/comment.ts
Normal file
659
apps/web/src/services/generated/comment/comment.ts
Normal file
|
|
@ -0,0 +1,659 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import {
|
||||
useMutation,
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
DefinedUseQueryResult,
|
||||
MutationFunction,
|
||||
QueryClient,
|
||||
QueryFunction,
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseMutationOptions,
|
||||
UseMutationResult,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
DeleteTracksIdCommentsCommentId200,
|
||||
GetCommentsIdReplies200,
|
||||
GetCommentsIdRepliesParams,
|
||||
GetTracksIdComments200,
|
||||
GetTracksIdCommentsParams,
|
||||
InternalHandlersAPIResponse,
|
||||
InternalHandlersCreateCommentRequest,
|
||||
InternalHandlersUpdateCommentRequest,
|
||||
PostTracksIdComments201,
|
||||
PutCommentsId200
|
||||
} from '../model';
|
||||
|
||||
import { vezaMutator } from '../../api/orval-mutator';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Update a comment (only by owner)
|
||||
* @summary Update comment
|
||||
*/
|
||||
export type putCommentsIdResponse200 = {
|
||||
data: PutCommentsId200
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type putCommentsIdResponse400 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 400
|
||||
}
|
||||
|
||||
export type putCommentsIdResponse401 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 401
|
||||
}
|
||||
|
||||
export type putCommentsIdResponse403 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 403
|
||||
}
|
||||
|
||||
export type putCommentsIdResponse404 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 404
|
||||
}
|
||||
|
||||
export type putCommentsIdResponse500 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 500
|
||||
}
|
||||
|
||||
export type putCommentsIdResponseSuccess = (putCommentsIdResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type putCommentsIdResponseError = (putCommentsIdResponse400 | putCommentsIdResponse401 | putCommentsIdResponse403 | putCommentsIdResponse404 | putCommentsIdResponse500) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type putCommentsIdResponse = (putCommentsIdResponseSuccess | putCommentsIdResponseError)
|
||||
|
||||
export const getPutCommentsIdUrl = (id: string,) => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/comments/${id}`
|
||||
}
|
||||
|
||||
export const putCommentsId = async (id: string,
|
||||
internalHandlersUpdateCommentRequest: InternalHandlersUpdateCommentRequest, options?: RequestInit): Promise<putCommentsIdResponse> => {
|
||||
|
||||
return vezaMutator<putCommentsIdResponse>(getPutCommentsIdUrl(id),
|
||||
{
|
||||
...options,
|
||||
method: 'PUT',
|
||||
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||
body: JSON.stringify(
|
||||
internalHandlersUpdateCommentRequest,)
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getPutCommentsIdMutationOptions = <TError = InternalHandlersAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof putCommentsId>>, TError,{id: string;data: InternalHandlersUpdateCommentRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof putCommentsId>>, TError,{id: string;data: InternalHandlersUpdateCommentRequest}, TContext> => {
|
||||
|
||||
const mutationKey = ['putCommentsId'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
|
||||
|
||||
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof putCommentsId>>, {id: string;data: InternalHandlersUpdateCommentRequest}> = (props) => {
|
||||
const {id,data} = props ?? {};
|
||||
|
||||
return putCommentsId(id,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type PutCommentsIdMutationResult = NonNullable<Awaited<ReturnType<typeof putCommentsId>>>
|
||||
export type PutCommentsIdMutationBody = InternalHandlersUpdateCommentRequest
|
||||
export type PutCommentsIdMutationError = InternalHandlersAPIResponse
|
||||
|
||||
/**
|
||||
* @summary Update comment
|
||||
*/
|
||||
export const usePutCommentsId = <TError = InternalHandlersAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof putCommentsId>>, TError,{id: string;data: InternalHandlersUpdateCommentRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof putCommentsId>>,
|
||||
TError,
|
||||
{id: string;data: InternalHandlersUpdateCommentRequest},
|
||||
TContext
|
||||
> => {
|
||||
return useMutation(getPutCommentsIdMutationOptions(options), queryClient);
|
||||
}
|
||||
/**
|
||||
* Get paginated list of replies to a comment
|
||||
* @summary Get comment replies
|
||||
*/
|
||||
export type getCommentsIdRepliesResponse200 = {
|
||||
data: GetCommentsIdReplies200
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getCommentsIdRepliesResponse400 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 400
|
||||
}
|
||||
|
||||
export type getCommentsIdRepliesResponse404 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 404
|
||||
}
|
||||
|
||||
export type getCommentsIdRepliesResponse500 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 500
|
||||
}
|
||||
|
||||
export type getCommentsIdRepliesResponseSuccess = (getCommentsIdRepliesResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getCommentsIdRepliesResponseError = (getCommentsIdRepliesResponse400 | getCommentsIdRepliesResponse404 | getCommentsIdRepliesResponse500) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getCommentsIdRepliesResponse = (getCommentsIdRepliesResponseSuccess | getCommentsIdRepliesResponseError)
|
||||
|
||||
export const getGetCommentsIdRepliesUrl = (id: string,
|
||||
params?: GetCommentsIdRepliesParams,) => {
|
||||
const normalizedParams = new URLSearchParams();
|
||||
|
||||
Object.entries(params || {}).forEach(([key, value]) => {
|
||||
|
||||
if (value !== undefined) {
|
||||
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
||||
}
|
||||
});
|
||||
|
||||
const stringifiedParams = normalizedParams.toString();
|
||||
|
||||
return stringifiedParams.length > 0 ? `/comments/${id}/replies?${stringifiedParams}` : `/comments/${id}/replies`
|
||||
}
|
||||
|
||||
export const getCommentsIdReplies = async (id: string,
|
||||
params?: GetCommentsIdRepliesParams, options?: RequestInit): Promise<getCommentsIdRepliesResponse> => {
|
||||
|
||||
return vezaMutator<getCommentsIdRepliesResponse>(getGetCommentsIdRepliesUrl(id,params),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetCommentsIdRepliesQueryKey = (id: string,
|
||||
params?: GetCommentsIdRepliesParams,) => {
|
||||
return [
|
||||
`/comments/${id}/replies`, ...(params ? [params] : [])
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetCommentsIdRepliesQueryOptions = <TData = Awaited<ReturnType<typeof getCommentsIdReplies>>, TError = InternalHandlersAPIResponse>(id: string,
|
||||
params?: GetCommentsIdRepliesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCommentsIdReplies>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetCommentsIdRepliesQueryKey(id,params);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getCommentsIdReplies>>> = ({ signal }) => getCommentsIdReplies(id,params, { signal, ...requestOptions });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(id), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getCommentsIdReplies>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetCommentsIdRepliesQueryResult = NonNullable<Awaited<ReturnType<typeof getCommentsIdReplies>>>
|
||||
export type GetCommentsIdRepliesQueryError = InternalHandlersAPIResponse
|
||||
|
||||
|
||||
export function useGetCommentsIdReplies<TData = Awaited<ReturnType<typeof getCommentsIdReplies>>, TError = InternalHandlersAPIResponse>(
|
||||
id: string,
|
||||
params: undefined | GetCommentsIdRepliesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCommentsIdReplies>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getCommentsIdReplies>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getCommentsIdReplies>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetCommentsIdReplies<TData = Awaited<ReturnType<typeof getCommentsIdReplies>>, TError = InternalHandlersAPIResponse>(
|
||||
id: string,
|
||||
params?: GetCommentsIdRepliesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCommentsIdReplies>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getCommentsIdReplies>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getCommentsIdReplies>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetCommentsIdReplies<TData = Awaited<ReturnType<typeof getCommentsIdReplies>>, TError = InternalHandlersAPIResponse>(
|
||||
id: string,
|
||||
params?: GetCommentsIdRepliesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCommentsIdReplies>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary Get comment replies
|
||||
*/
|
||||
|
||||
export function useGetCommentsIdReplies<TData = Awaited<ReturnType<typeof getCommentsIdReplies>>, TError = InternalHandlersAPIResponse>(
|
||||
id: string,
|
||||
params?: GetCommentsIdRepliesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCommentsIdReplies>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const queryOptions = getGetCommentsIdRepliesQueryOptions(id,params,options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get paginated list of comments for a track
|
||||
* @summary Get track comments
|
||||
*/
|
||||
export type getTracksIdCommentsResponse200 = {
|
||||
data: GetTracksIdComments200
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getTracksIdCommentsResponse400 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 400
|
||||
}
|
||||
|
||||
export type getTracksIdCommentsResponse404 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 404
|
||||
}
|
||||
|
||||
export type getTracksIdCommentsResponse500 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 500
|
||||
}
|
||||
|
||||
export type getTracksIdCommentsResponseSuccess = (getTracksIdCommentsResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getTracksIdCommentsResponseError = (getTracksIdCommentsResponse400 | getTracksIdCommentsResponse404 | getTracksIdCommentsResponse500) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getTracksIdCommentsResponse = (getTracksIdCommentsResponseSuccess | getTracksIdCommentsResponseError)
|
||||
|
||||
export const getGetTracksIdCommentsUrl = (id: string,
|
||||
params?: GetTracksIdCommentsParams,) => {
|
||||
const normalizedParams = new URLSearchParams();
|
||||
|
||||
Object.entries(params || {}).forEach(([key, value]) => {
|
||||
|
||||
if (value !== undefined) {
|
||||
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
||||
}
|
||||
});
|
||||
|
||||
const stringifiedParams = normalizedParams.toString();
|
||||
|
||||
return stringifiedParams.length > 0 ? `/tracks/${id}/comments?${stringifiedParams}` : `/tracks/${id}/comments`
|
||||
}
|
||||
|
||||
export const getTracksIdComments = async (id: string,
|
||||
params?: GetTracksIdCommentsParams, options?: RequestInit): Promise<getTracksIdCommentsResponse> => {
|
||||
|
||||
return vezaMutator<getTracksIdCommentsResponse>(getGetTracksIdCommentsUrl(id,params),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetTracksIdCommentsQueryKey = (id: string,
|
||||
params?: GetTracksIdCommentsParams,) => {
|
||||
return [
|
||||
`/tracks/${id}/comments`, ...(params ? [params] : [])
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetTracksIdCommentsQueryOptions = <TData = Awaited<ReturnType<typeof getTracksIdComments>>, TError = InternalHandlersAPIResponse>(id: string,
|
||||
params?: GetTracksIdCommentsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getTracksIdComments>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetTracksIdCommentsQueryKey(id,params);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getTracksIdComments>>> = ({ signal }) => getTracksIdComments(id,params, { signal, ...requestOptions });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(id), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getTracksIdComments>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetTracksIdCommentsQueryResult = NonNullable<Awaited<ReturnType<typeof getTracksIdComments>>>
|
||||
export type GetTracksIdCommentsQueryError = InternalHandlersAPIResponse
|
||||
|
||||
|
||||
export function useGetTracksIdComments<TData = Awaited<ReturnType<typeof getTracksIdComments>>, TError = InternalHandlersAPIResponse>(
|
||||
id: string,
|
||||
params: undefined | GetTracksIdCommentsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getTracksIdComments>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getTracksIdComments>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getTracksIdComments>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetTracksIdComments<TData = Awaited<ReturnType<typeof getTracksIdComments>>, TError = InternalHandlersAPIResponse>(
|
||||
id: string,
|
||||
params?: GetTracksIdCommentsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getTracksIdComments>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getTracksIdComments>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getTracksIdComments>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetTracksIdComments<TData = Awaited<ReturnType<typeof getTracksIdComments>>, TError = InternalHandlersAPIResponse>(
|
||||
id: string,
|
||||
params?: GetTracksIdCommentsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getTracksIdComments>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary Get track comments
|
||||
*/
|
||||
|
||||
export function useGetTracksIdComments<TData = Awaited<ReturnType<typeof getTracksIdComments>>, TError = InternalHandlersAPIResponse>(
|
||||
id: string,
|
||||
params?: GetTracksIdCommentsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getTracksIdComments>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const queryOptions = getGetTracksIdCommentsQueryOptions(id,params,options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Create a new comment on a track. Can be a top-level comment or a reply to another comment (using parent_id).
|
||||
* @summary Create comment
|
||||
*/
|
||||
export type postTracksIdCommentsResponse201 = {
|
||||
data: PostTracksIdComments201
|
||||
status: 201
|
||||
}
|
||||
|
||||
export type postTracksIdCommentsResponse400 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 400
|
||||
}
|
||||
|
||||
export type postTracksIdCommentsResponse401 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 401
|
||||
}
|
||||
|
||||
export type postTracksIdCommentsResponse404 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 404
|
||||
}
|
||||
|
||||
export type postTracksIdCommentsResponse500 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 500
|
||||
}
|
||||
|
||||
export type postTracksIdCommentsResponseSuccess = (postTracksIdCommentsResponse201) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type postTracksIdCommentsResponseError = (postTracksIdCommentsResponse400 | postTracksIdCommentsResponse401 | postTracksIdCommentsResponse404 | postTracksIdCommentsResponse500) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type postTracksIdCommentsResponse = (postTracksIdCommentsResponseSuccess | postTracksIdCommentsResponseError)
|
||||
|
||||
export const getPostTracksIdCommentsUrl = (id: string,) => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/tracks/${id}/comments`
|
||||
}
|
||||
|
||||
export const postTracksIdComments = async (id: string,
|
||||
internalHandlersCreateCommentRequest: InternalHandlersCreateCommentRequest, options?: RequestInit): Promise<postTracksIdCommentsResponse> => {
|
||||
|
||||
return vezaMutator<postTracksIdCommentsResponse>(getPostTracksIdCommentsUrl(id),
|
||||
{
|
||||
...options,
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||
body: JSON.stringify(
|
||||
internalHandlersCreateCommentRequest,)
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getPostTracksIdCommentsMutationOptions = <TError = InternalHandlersAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postTracksIdComments>>, TError,{id: string;data: InternalHandlersCreateCommentRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof postTracksIdComments>>, TError,{id: string;data: InternalHandlersCreateCommentRequest}, TContext> => {
|
||||
|
||||
const mutationKey = ['postTracksIdComments'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
|
||||
|
||||
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof postTracksIdComments>>, {id: string;data: InternalHandlersCreateCommentRequest}> = (props) => {
|
||||
const {id,data} = props ?? {};
|
||||
|
||||
return postTracksIdComments(id,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type PostTracksIdCommentsMutationResult = NonNullable<Awaited<ReturnType<typeof postTracksIdComments>>>
|
||||
export type PostTracksIdCommentsMutationBody = InternalHandlersCreateCommentRequest
|
||||
export type PostTracksIdCommentsMutationError = InternalHandlersAPIResponse
|
||||
|
||||
/**
|
||||
* @summary Create comment
|
||||
*/
|
||||
export const usePostTracksIdComments = <TError = InternalHandlersAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postTracksIdComments>>, TError,{id: string;data: InternalHandlersCreateCommentRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof postTracksIdComments>>,
|
||||
TError,
|
||||
{id: string;data: InternalHandlersCreateCommentRequest},
|
||||
TContext
|
||||
> => {
|
||||
return useMutation(getPostTracksIdCommentsMutationOptions(options), queryClient);
|
||||
}
|
||||
/**
|
||||
* Delete a comment (only by owner or admin)
|
||||
* @summary Delete comment
|
||||
*/
|
||||
export type deleteTracksIdCommentsCommentIdResponse200 = {
|
||||
data: DeleteTracksIdCommentsCommentId200
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type deleteTracksIdCommentsCommentIdResponse400 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 400
|
||||
}
|
||||
|
||||
export type deleteTracksIdCommentsCommentIdResponse401 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 401
|
||||
}
|
||||
|
||||
export type deleteTracksIdCommentsCommentIdResponse403 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 403
|
||||
}
|
||||
|
||||
export type deleteTracksIdCommentsCommentIdResponse404 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 404
|
||||
}
|
||||
|
||||
export type deleteTracksIdCommentsCommentIdResponseSuccess = (deleteTracksIdCommentsCommentIdResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type deleteTracksIdCommentsCommentIdResponseError = (deleteTracksIdCommentsCommentIdResponse400 | deleteTracksIdCommentsCommentIdResponse401 | deleteTracksIdCommentsCommentIdResponse403 | deleteTracksIdCommentsCommentIdResponse404) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type deleteTracksIdCommentsCommentIdResponse = (deleteTracksIdCommentsCommentIdResponseSuccess | deleteTracksIdCommentsCommentIdResponseError)
|
||||
|
||||
export const getDeleteTracksIdCommentsCommentIdUrl = (id: string,
|
||||
commentId: string,) => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/tracks/${id}/comments/${commentId}`
|
||||
}
|
||||
|
||||
export const deleteTracksIdCommentsCommentId = async (id: string,
|
||||
commentId: string, options?: RequestInit): Promise<deleteTracksIdCommentsCommentIdResponse> => {
|
||||
|
||||
return vezaMutator<deleteTracksIdCommentsCommentIdResponse>(getDeleteTracksIdCommentsCommentIdUrl(id,commentId),
|
||||
{
|
||||
...options,
|
||||
method: 'DELETE'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getDeleteTracksIdCommentsCommentIdMutationOptions = <TError = InternalHandlersAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteTracksIdCommentsCommentId>>, TError,{id: string;commentId: string}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof deleteTracksIdCommentsCommentId>>, TError,{id: string;commentId: string}, TContext> => {
|
||||
|
||||
const mutationKey = ['deleteTracksIdCommentsCommentId'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
|
||||
|
||||
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof deleteTracksIdCommentsCommentId>>, {id: string;commentId: string}> = (props) => {
|
||||
const {id,commentId} = props ?? {};
|
||||
|
||||
return deleteTracksIdCommentsCommentId(id,commentId,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type DeleteTracksIdCommentsCommentIdMutationResult = NonNullable<Awaited<ReturnType<typeof deleteTracksIdCommentsCommentId>>>
|
||||
|
||||
export type DeleteTracksIdCommentsCommentIdMutationError = InternalHandlersAPIResponse
|
||||
|
||||
/**
|
||||
* @summary Delete comment
|
||||
*/
|
||||
export const useDeleteTracksIdCommentsCommentId = <TError = InternalHandlersAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteTracksIdCommentsCommentId>>, TError,{id: string;commentId: string}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof deleteTracksIdCommentsCommentId>>,
|
||||
TError,
|
||||
{id: string;commentId: string},
|
||||
TContext
|
||||
> => {
|
||||
return useMutation(getDeleteTracksIdCommentsCommentIdMutationOptions(options), queryClient);
|
||||
}
|
||||
167
apps/web/src/services/generated/dashboard/dashboard.ts
Normal file
167
apps/web/src/services/generated/dashboard/dashboard.ts
Normal file
|
|
@ -0,0 +1,167 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import {
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
DefinedUseQueryResult,
|
||||
QueryClient,
|
||||
QueryFunction,
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
GetApiV1Dashboard200,
|
||||
GetApiV1DashboardParams,
|
||||
InternalHandlersAPIResponse
|
||||
} from '../model';
|
||||
|
||||
import { vezaMutator } from '../../api/orval-mutator';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get aggregated dashboard data including stats, recent activity, and library preview
|
||||
* @summary Get Dashboard Data
|
||||
*/
|
||||
export type getApiV1DashboardResponse200 = {
|
||||
data: GetApiV1Dashboard200
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getApiV1DashboardResponse401 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 401
|
||||
}
|
||||
|
||||
export type getApiV1DashboardResponse500 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 500
|
||||
}
|
||||
|
||||
export type getApiV1DashboardResponseSuccess = (getApiV1DashboardResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getApiV1DashboardResponseError = (getApiV1DashboardResponse401 | getApiV1DashboardResponse500) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getApiV1DashboardResponse = (getApiV1DashboardResponseSuccess | getApiV1DashboardResponseError)
|
||||
|
||||
export const getGetApiV1DashboardUrl = (params?: GetApiV1DashboardParams,) => {
|
||||
const normalizedParams = new URLSearchParams();
|
||||
|
||||
Object.entries(params || {}).forEach(([key, value]) => {
|
||||
|
||||
if (value !== undefined) {
|
||||
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
||||
}
|
||||
});
|
||||
|
||||
const stringifiedParams = normalizedParams.toString();
|
||||
|
||||
return stringifiedParams.length > 0 ? `/api/v1/dashboard?${stringifiedParams}` : `/api/v1/dashboard`
|
||||
}
|
||||
|
||||
export const getApiV1Dashboard = async (params?: GetApiV1DashboardParams, options?: RequestInit): Promise<getApiV1DashboardResponse> => {
|
||||
|
||||
return vezaMutator<getApiV1DashboardResponse>(getGetApiV1DashboardUrl(params),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetApiV1DashboardQueryKey = (params?: GetApiV1DashboardParams,) => {
|
||||
return [
|
||||
`/api/v1/dashboard`, ...(params ? [params] : [])
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetApiV1DashboardQueryOptions = <TData = Awaited<ReturnType<typeof getApiV1Dashboard>>, TError = InternalHandlersAPIResponse>(params?: GetApiV1DashboardParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1Dashboard>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetApiV1DashboardQueryKey(params);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getApiV1Dashboard>>> = ({ signal }) => getApiV1Dashboard(params, { signal, ...requestOptions });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getApiV1Dashboard>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetApiV1DashboardQueryResult = NonNullable<Awaited<ReturnType<typeof getApiV1Dashboard>>>
|
||||
export type GetApiV1DashboardQueryError = InternalHandlersAPIResponse
|
||||
|
||||
|
||||
export function useGetApiV1Dashboard<TData = Awaited<ReturnType<typeof getApiV1Dashboard>>, TError = InternalHandlersAPIResponse>(
|
||||
params: undefined | GetApiV1DashboardParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1Dashboard>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getApiV1Dashboard>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getApiV1Dashboard>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetApiV1Dashboard<TData = Awaited<ReturnType<typeof getApiV1Dashboard>>, TError = InternalHandlersAPIResponse>(
|
||||
params?: GetApiV1DashboardParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1Dashboard>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getApiV1Dashboard>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getApiV1Dashboard>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetApiV1Dashboard<TData = Awaited<ReturnType<typeof getApiV1Dashboard>>, TError = InternalHandlersAPIResponse>(
|
||||
params?: GetApiV1DashboardParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1Dashboard>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary Get Dashboard Data
|
||||
*/
|
||||
|
||||
export function useGetApiV1Dashboard<TData = Awaited<ReturnType<typeof getApiV1Dashboard>>, TError = InternalHandlersAPIResponse>(
|
||||
params?: GetApiV1DashboardParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1Dashboard>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const queryOptions = getGetApiV1DashboardQueryOptions(params,options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
125
apps/web/src/services/generated/logging/logging.ts
Normal file
125
apps/web/src/services/generated/logging/logging.ts
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import {
|
||||
useMutation
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
MutationFunction,
|
||||
QueryClient,
|
||||
UseMutationOptions,
|
||||
UseMutationResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
InternalHandlersAPIResponse,
|
||||
InternalHandlersFrontendLogRequest,
|
||||
PostApiV1LogsFrontend200
|
||||
} from '../model';
|
||||
|
||||
import { vezaMutator } from '../../api/orval-mutator';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Receive and store a log entry from the frontend application
|
||||
* @summary Receive frontend log
|
||||
*/
|
||||
export type postApiV1LogsFrontendResponse200 = {
|
||||
data: PostApiV1LogsFrontend200
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type postApiV1LogsFrontendResponse400 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 400
|
||||
}
|
||||
|
||||
export type postApiV1LogsFrontendResponse500 = {
|
||||
data: InternalHandlersAPIResponse
|
||||
status: 500
|
||||
}
|
||||
|
||||
export type postApiV1LogsFrontendResponseSuccess = (postApiV1LogsFrontendResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type postApiV1LogsFrontendResponseError = (postApiV1LogsFrontendResponse400 | postApiV1LogsFrontendResponse500) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type postApiV1LogsFrontendResponse = (postApiV1LogsFrontendResponseSuccess | postApiV1LogsFrontendResponseError)
|
||||
|
||||
export const getPostApiV1LogsFrontendUrl = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/v1/logs/frontend`
|
||||
}
|
||||
|
||||
export const postApiV1LogsFrontend = async (internalHandlersFrontendLogRequest: InternalHandlersFrontendLogRequest, options?: RequestInit): Promise<postApiV1LogsFrontendResponse> => {
|
||||
|
||||
return vezaMutator<postApiV1LogsFrontendResponse>(getPostApiV1LogsFrontendUrl(),
|
||||
{
|
||||
...options,
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||
body: JSON.stringify(
|
||||
internalHandlersFrontendLogRequest,)
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getPostApiV1LogsFrontendMutationOptions = <TError = InternalHandlersAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postApiV1LogsFrontend>>, TError,{data: InternalHandlersFrontendLogRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof postApiV1LogsFrontend>>, TError,{data: InternalHandlersFrontendLogRequest}, TContext> => {
|
||||
|
||||
const mutationKey = ['postApiV1LogsFrontend'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
|
||||
|
||||
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof postApiV1LogsFrontend>>, {data: InternalHandlersFrontendLogRequest}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return postApiV1LogsFrontend(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type PostApiV1LogsFrontendMutationResult = NonNullable<Awaited<ReturnType<typeof postApiV1LogsFrontend>>>
|
||||
export type PostApiV1LogsFrontendMutationBody = InternalHandlersFrontendLogRequest
|
||||
export type PostApiV1LogsFrontendMutationError = InternalHandlersAPIResponse
|
||||
|
||||
/**
|
||||
* @summary Receive frontend log
|
||||
*/
|
||||
export const usePostApiV1LogsFrontend = <TError = InternalHandlersAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postApiV1LogsFrontend>>, TError,{data: InternalHandlersFrontendLogRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof postApiV1LogsFrontend>>,
|
||||
TError,
|
||||
{data: InternalHandlersFrontendLogRequest},
|
||||
TContext
|
||||
> => {
|
||||
return useMutation(getPostApiV1LogsFrontendMutationOptions(options), queryClient);
|
||||
}
|
||||
845
apps/web/src/services/generated/marketplace/marketplace.ts
Normal file
845
apps/web/src/services/generated/marketplace/marketplace.ts
Normal file
|
|
@ -0,0 +1,845 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import {
|
||||
useMutation,
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
DefinedUseQueryResult,
|
||||
MutationFunction,
|
||||
QueryClient,
|
||||
QueryFunction,
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseMutationOptions,
|
||||
UseMutationResult,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
GetApiV1MarketplaceDownloadProductId200,
|
||||
GetApiV1MarketplaceProductsParams,
|
||||
InternalHandlersCreateOrderRequest,
|
||||
InternalHandlersCreateProductRequest,
|
||||
InternalHandlersUpdateProductRequest,
|
||||
VezaBackendApiInternalCoreMarketplaceOrder,
|
||||
VezaBackendApiInternalCoreMarketplaceProduct,
|
||||
VezaBackendApiInternalResponseAPIResponse
|
||||
} from '../model';
|
||||
|
||||
import { vezaMutator } from '../../api/orval-mutator';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get a secure download URL for a purchased product
|
||||
* @summary Get download URL
|
||||
*/
|
||||
export type getApiV1MarketplaceDownloadProductIdResponse200 = {
|
||||
data: GetApiV1MarketplaceDownloadProductId200
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getApiV1MarketplaceDownloadProductIdResponse403 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 403
|
||||
}
|
||||
|
||||
export type getApiV1MarketplaceDownloadProductIdResponse404 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 404
|
||||
}
|
||||
|
||||
export type getApiV1MarketplaceDownloadProductIdResponseSuccess = (getApiV1MarketplaceDownloadProductIdResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getApiV1MarketplaceDownloadProductIdResponseError = (getApiV1MarketplaceDownloadProductIdResponse403 | getApiV1MarketplaceDownloadProductIdResponse404) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getApiV1MarketplaceDownloadProductIdResponse = (getApiV1MarketplaceDownloadProductIdResponseSuccess | getApiV1MarketplaceDownloadProductIdResponseError)
|
||||
|
||||
export const getGetApiV1MarketplaceDownloadProductIdUrl = (productId: string,) => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/v1/marketplace/download/${productId}`
|
||||
}
|
||||
|
||||
export const getApiV1MarketplaceDownloadProductId = async (productId: string, options?: RequestInit): Promise<getApiV1MarketplaceDownloadProductIdResponse> => {
|
||||
|
||||
return vezaMutator<getApiV1MarketplaceDownloadProductIdResponse>(getGetApiV1MarketplaceDownloadProductIdUrl(productId),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetApiV1MarketplaceDownloadProductIdQueryKey = (productId: string,) => {
|
||||
return [
|
||||
`/api/v1/marketplace/download/${productId}`
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetApiV1MarketplaceDownloadProductIdQueryOptions = <TData = Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>, TError = VezaBackendApiInternalResponseAPIResponse>(productId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetApiV1MarketplaceDownloadProductIdQueryKey(productId);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>> = ({ signal }) => getApiV1MarketplaceDownloadProductId(productId, { signal, ...requestOptions });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(productId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetApiV1MarketplaceDownloadProductIdQueryResult = NonNullable<Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>>
|
||||
export type GetApiV1MarketplaceDownloadProductIdQueryError = VezaBackendApiInternalResponseAPIResponse
|
||||
|
||||
|
||||
export function useGetApiV1MarketplaceDownloadProductId<TData = Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>, TError = VezaBackendApiInternalResponseAPIResponse>(
|
||||
productId: string, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetApiV1MarketplaceDownloadProductId<TData = Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>, TError = VezaBackendApiInternalResponseAPIResponse>(
|
||||
productId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetApiV1MarketplaceDownloadProductId<TData = Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>, TError = VezaBackendApiInternalResponseAPIResponse>(
|
||||
productId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary Get download URL
|
||||
*/
|
||||
|
||||
export function useGetApiV1MarketplaceDownloadProductId<TData = Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>, TError = VezaBackendApiInternalResponseAPIResponse>(
|
||||
productId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceDownloadProductId>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const queryOptions = getGetApiV1MarketplaceDownloadProductIdQueryOptions(productId,options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get all orders for the authenticated user
|
||||
* @summary List user orders
|
||||
*/
|
||||
export type getApiV1MarketplaceOrdersResponse200 = {
|
||||
data: VezaBackendApiInternalCoreMarketplaceOrder[]
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getApiV1MarketplaceOrdersResponse401 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 401
|
||||
}
|
||||
|
||||
export type getApiV1MarketplaceOrdersResponse500 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 500
|
||||
}
|
||||
|
||||
export type getApiV1MarketplaceOrdersResponseSuccess = (getApiV1MarketplaceOrdersResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getApiV1MarketplaceOrdersResponseError = (getApiV1MarketplaceOrdersResponse401 | getApiV1MarketplaceOrdersResponse500) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getApiV1MarketplaceOrdersResponse = (getApiV1MarketplaceOrdersResponseSuccess | getApiV1MarketplaceOrdersResponseError)
|
||||
|
||||
export const getGetApiV1MarketplaceOrdersUrl = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/v1/marketplace/orders`
|
||||
}
|
||||
|
||||
export const getApiV1MarketplaceOrders = async ( options?: RequestInit): Promise<getApiV1MarketplaceOrdersResponse> => {
|
||||
|
||||
return vezaMutator<getApiV1MarketplaceOrdersResponse>(getGetApiV1MarketplaceOrdersUrl(),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetApiV1MarketplaceOrdersQueryKey = () => {
|
||||
return [
|
||||
`/api/v1/marketplace/orders`
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetApiV1MarketplaceOrdersQueryOptions = <TData = Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>, TError = VezaBackendApiInternalResponseAPIResponse>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetApiV1MarketplaceOrdersQueryKey();
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>> = ({ signal }) => getApiV1MarketplaceOrders({ signal, ...requestOptions });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetApiV1MarketplaceOrdersQueryResult = NonNullable<Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>>
|
||||
export type GetApiV1MarketplaceOrdersQueryError = VezaBackendApiInternalResponseAPIResponse
|
||||
|
||||
|
||||
export function useGetApiV1MarketplaceOrders<TData = Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>, TError = VezaBackendApiInternalResponseAPIResponse>(
|
||||
options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetApiV1MarketplaceOrders<TData = Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>, TError = VezaBackendApiInternalResponseAPIResponse>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetApiV1MarketplaceOrders<TData = Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>, TError = VezaBackendApiInternalResponseAPIResponse>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary List user orders
|
||||
*/
|
||||
|
||||
export function useGetApiV1MarketplaceOrders<TData = Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>, TError = VezaBackendApiInternalResponseAPIResponse>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceOrders>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const queryOptions = getGetApiV1MarketplaceOrdersQueryOptions(options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Purchase products
|
||||
* @summary Create a new order
|
||||
*/
|
||||
export type postApiV1MarketplaceOrdersResponse201 = {
|
||||
data: VezaBackendApiInternalCoreMarketplaceOrder
|
||||
status: 201
|
||||
}
|
||||
|
||||
export type postApiV1MarketplaceOrdersResponse400 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 400
|
||||
}
|
||||
|
||||
export type postApiV1MarketplaceOrdersResponse401 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 401
|
||||
}
|
||||
|
||||
export type postApiV1MarketplaceOrdersResponseSuccess = (postApiV1MarketplaceOrdersResponse201) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type postApiV1MarketplaceOrdersResponseError = (postApiV1MarketplaceOrdersResponse400 | postApiV1MarketplaceOrdersResponse401) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type postApiV1MarketplaceOrdersResponse = (postApiV1MarketplaceOrdersResponseSuccess | postApiV1MarketplaceOrdersResponseError)
|
||||
|
||||
export const getPostApiV1MarketplaceOrdersUrl = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/v1/marketplace/orders`
|
||||
}
|
||||
|
||||
export const postApiV1MarketplaceOrders = async (internalHandlersCreateOrderRequest: InternalHandlersCreateOrderRequest, options?: RequestInit): Promise<postApiV1MarketplaceOrdersResponse> => {
|
||||
|
||||
return vezaMutator<postApiV1MarketplaceOrdersResponse>(getPostApiV1MarketplaceOrdersUrl(),
|
||||
{
|
||||
...options,
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||
body: JSON.stringify(
|
||||
internalHandlersCreateOrderRequest,)
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getPostApiV1MarketplaceOrdersMutationOptions = <TError = VezaBackendApiInternalResponseAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postApiV1MarketplaceOrders>>, TError,{data: InternalHandlersCreateOrderRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof postApiV1MarketplaceOrders>>, TError,{data: InternalHandlersCreateOrderRequest}, TContext> => {
|
||||
|
||||
const mutationKey = ['postApiV1MarketplaceOrders'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
|
||||
|
||||
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof postApiV1MarketplaceOrders>>, {data: InternalHandlersCreateOrderRequest}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return postApiV1MarketplaceOrders(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type PostApiV1MarketplaceOrdersMutationResult = NonNullable<Awaited<ReturnType<typeof postApiV1MarketplaceOrders>>>
|
||||
export type PostApiV1MarketplaceOrdersMutationBody = InternalHandlersCreateOrderRequest
|
||||
export type PostApiV1MarketplaceOrdersMutationError = VezaBackendApiInternalResponseAPIResponse
|
||||
|
||||
/**
|
||||
* @summary Create a new order
|
||||
*/
|
||||
export const usePostApiV1MarketplaceOrders = <TError = VezaBackendApiInternalResponseAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postApiV1MarketplaceOrders>>, TError,{data: InternalHandlersCreateOrderRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof postApiV1MarketplaceOrders>>,
|
||||
TError,
|
||||
{data: InternalHandlersCreateOrderRequest},
|
||||
TContext
|
||||
> => {
|
||||
return useMutation(getPostApiV1MarketplaceOrdersMutationOptions(options), queryClient);
|
||||
}
|
||||
/**
|
||||
* Get details of a specific order (only order owner can access)
|
||||
* @summary Get order details
|
||||
*/
|
||||
export type getApiV1MarketplaceOrdersIdResponse200 = {
|
||||
data: VezaBackendApiInternalCoreMarketplaceOrder
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getApiV1MarketplaceOrdersIdResponse400 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 400
|
||||
}
|
||||
|
||||
export type getApiV1MarketplaceOrdersIdResponse401 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 401
|
||||
}
|
||||
|
||||
export type getApiV1MarketplaceOrdersIdResponse403 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 403
|
||||
}
|
||||
|
||||
export type getApiV1MarketplaceOrdersIdResponse404 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 404
|
||||
}
|
||||
|
||||
export type getApiV1MarketplaceOrdersIdResponseSuccess = (getApiV1MarketplaceOrdersIdResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getApiV1MarketplaceOrdersIdResponseError = (getApiV1MarketplaceOrdersIdResponse400 | getApiV1MarketplaceOrdersIdResponse401 | getApiV1MarketplaceOrdersIdResponse403 | getApiV1MarketplaceOrdersIdResponse404) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getApiV1MarketplaceOrdersIdResponse = (getApiV1MarketplaceOrdersIdResponseSuccess | getApiV1MarketplaceOrdersIdResponseError)
|
||||
|
||||
export const getGetApiV1MarketplaceOrdersIdUrl = (id: string,) => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/v1/marketplace/orders/${id}`
|
||||
}
|
||||
|
||||
export const getApiV1MarketplaceOrdersId = async (id: string, options?: RequestInit): Promise<getApiV1MarketplaceOrdersIdResponse> => {
|
||||
|
||||
return vezaMutator<getApiV1MarketplaceOrdersIdResponse>(getGetApiV1MarketplaceOrdersIdUrl(id),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetApiV1MarketplaceOrdersIdQueryKey = (id: string,) => {
|
||||
return [
|
||||
`/api/v1/marketplace/orders/${id}`
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetApiV1MarketplaceOrdersIdQueryOptions = <TData = Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>, TError = VezaBackendApiInternalResponseAPIResponse>(id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetApiV1MarketplaceOrdersIdQueryKey(id);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>> = ({ signal }) => getApiV1MarketplaceOrdersId(id, { signal, ...requestOptions });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(id), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetApiV1MarketplaceOrdersIdQueryResult = NonNullable<Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>>
|
||||
export type GetApiV1MarketplaceOrdersIdQueryError = VezaBackendApiInternalResponseAPIResponse
|
||||
|
||||
|
||||
export function useGetApiV1MarketplaceOrdersId<TData = Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>, TError = VezaBackendApiInternalResponseAPIResponse>(
|
||||
id: string, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetApiV1MarketplaceOrdersId<TData = Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>, TError = VezaBackendApiInternalResponseAPIResponse>(
|
||||
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetApiV1MarketplaceOrdersId<TData = Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>, TError = VezaBackendApiInternalResponseAPIResponse>(
|
||||
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary Get order details
|
||||
*/
|
||||
|
||||
export function useGetApiV1MarketplaceOrdersId<TData = Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>, TError = VezaBackendApiInternalResponseAPIResponse>(
|
||||
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceOrdersId>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const queryOptions = getGetApiV1MarketplaceOrdersIdQueryOptions(id,options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* List marketplace products with filters
|
||||
* @summary List products
|
||||
*/
|
||||
export type getApiV1MarketplaceProductsResponse200 = {
|
||||
data: VezaBackendApiInternalCoreMarketplaceProduct[]
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getApiV1MarketplaceProductsResponseSuccess = (getApiV1MarketplaceProductsResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
;
|
||||
|
||||
export type getApiV1MarketplaceProductsResponse = (getApiV1MarketplaceProductsResponseSuccess)
|
||||
|
||||
export const getGetApiV1MarketplaceProductsUrl = (params?: GetApiV1MarketplaceProductsParams,) => {
|
||||
const normalizedParams = new URLSearchParams();
|
||||
|
||||
Object.entries(params || {}).forEach(([key, value]) => {
|
||||
|
||||
if (value !== undefined) {
|
||||
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
||||
}
|
||||
});
|
||||
|
||||
const stringifiedParams = normalizedParams.toString();
|
||||
|
||||
return stringifiedParams.length > 0 ? `/api/v1/marketplace/products?${stringifiedParams}` : `/api/v1/marketplace/products`
|
||||
}
|
||||
|
||||
export const getApiV1MarketplaceProducts = async (params?: GetApiV1MarketplaceProductsParams, options?: RequestInit): Promise<getApiV1MarketplaceProductsResponse> => {
|
||||
|
||||
return vezaMutator<getApiV1MarketplaceProductsResponse>(getGetApiV1MarketplaceProductsUrl(params),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetApiV1MarketplaceProductsQueryKey = (params?: GetApiV1MarketplaceProductsParams,) => {
|
||||
return [
|
||||
`/api/v1/marketplace/products`, ...(params ? [params] : [])
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetApiV1MarketplaceProductsQueryOptions = <TData = Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>, TError = unknown>(params?: GetApiV1MarketplaceProductsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetApiV1MarketplaceProductsQueryKey(params);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>> = ({ signal }) => getApiV1MarketplaceProducts(params, { signal, ...requestOptions });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetApiV1MarketplaceProductsQueryResult = NonNullable<Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>>
|
||||
export type GetApiV1MarketplaceProductsQueryError = unknown
|
||||
|
||||
|
||||
export function useGetApiV1MarketplaceProducts<TData = Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>, TError = unknown>(
|
||||
params: undefined | GetApiV1MarketplaceProductsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetApiV1MarketplaceProducts<TData = Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>, TError = unknown>(
|
||||
params?: GetApiV1MarketplaceProductsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetApiV1MarketplaceProducts<TData = Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>, TError = unknown>(
|
||||
params?: GetApiV1MarketplaceProductsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary List products
|
||||
*/
|
||||
|
||||
export function useGetApiV1MarketplaceProducts<TData = Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>, TError = unknown>(
|
||||
params?: GetApiV1MarketplaceProductsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1MarketplaceProducts>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const queryOptions = getGetApiV1MarketplaceProductsQueryOptions(params,options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Create a product (Track, Pack, Service) for sale
|
||||
* @summary Create a new product
|
||||
*/
|
||||
export type postApiV1MarketplaceProductsResponse201 = {
|
||||
data: VezaBackendApiInternalCoreMarketplaceProduct
|
||||
status: 201
|
||||
}
|
||||
|
||||
export type postApiV1MarketplaceProductsResponse400 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 400
|
||||
}
|
||||
|
||||
export type postApiV1MarketplaceProductsResponse401 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 401
|
||||
}
|
||||
|
||||
export type postApiV1MarketplaceProductsResponseSuccess = (postApiV1MarketplaceProductsResponse201) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type postApiV1MarketplaceProductsResponseError = (postApiV1MarketplaceProductsResponse400 | postApiV1MarketplaceProductsResponse401) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type postApiV1MarketplaceProductsResponse = (postApiV1MarketplaceProductsResponseSuccess | postApiV1MarketplaceProductsResponseError)
|
||||
|
||||
export const getPostApiV1MarketplaceProductsUrl = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/v1/marketplace/products`
|
||||
}
|
||||
|
||||
export const postApiV1MarketplaceProducts = async (internalHandlersCreateProductRequest: InternalHandlersCreateProductRequest, options?: RequestInit): Promise<postApiV1MarketplaceProductsResponse> => {
|
||||
|
||||
return vezaMutator<postApiV1MarketplaceProductsResponse>(getPostApiV1MarketplaceProductsUrl(),
|
||||
{
|
||||
...options,
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||
body: JSON.stringify(
|
||||
internalHandlersCreateProductRequest,)
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getPostApiV1MarketplaceProductsMutationOptions = <TError = VezaBackendApiInternalResponseAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postApiV1MarketplaceProducts>>, TError,{data: InternalHandlersCreateProductRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof postApiV1MarketplaceProducts>>, TError,{data: InternalHandlersCreateProductRequest}, TContext> => {
|
||||
|
||||
const mutationKey = ['postApiV1MarketplaceProducts'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
|
||||
|
||||
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof postApiV1MarketplaceProducts>>, {data: InternalHandlersCreateProductRequest}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return postApiV1MarketplaceProducts(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type PostApiV1MarketplaceProductsMutationResult = NonNullable<Awaited<ReturnType<typeof postApiV1MarketplaceProducts>>>
|
||||
export type PostApiV1MarketplaceProductsMutationBody = InternalHandlersCreateProductRequest
|
||||
export type PostApiV1MarketplaceProductsMutationError = VezaBackendApiInternalResponseAPIResponse
|
||||
|
||||
/**
|
||||
* @summary Create a new product
|
||||
*/
|
||||
export const usePostApiV1MarketplaceProducts = <TError = VezaBackendApiInternalResponseAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postApiV1MarketplaceProducts>>, TError,{data: InternalHandlersCreateProductRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof postApiV1MarketplaceProducts>>,
|
||||
TError,
|
||||
{data: InternalHandlersCreateProductRequest},
|
||||
TContext
|
||||
> => {
|
||||
return useMutation(getPostApiV1MarketplaceProductsMutationOptions(options), queryClient);
|
||||
}
|
||||
/**
|
||||
* Update product details (only seller can update)
|
||||
* @summary Update a product
|
||||
*/
|
||||
export type putApiV1MarketplaceProductsIdResponse200 = {
|
||||
data: VezaBackendApiInternalCoreMarketplaceProduct
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type putApiV1MarketplaceProductsIdResponse400 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 400
|
||||
}
|
||||
|
||||
export type putApiV1MarketplaceProductsIdResponse401 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 401
|
||||
}
|
||||
|
||||
export type putApiV1MarketplaceProductsIdResponse403 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 403
|
||||
}
|
||||
|
||||
export type putApiV1MarketplaceProductsIdResponse404 = {
|
||||
data: VezaBackendApiInternalResponseAPIResponse
|
||||
status: 404
|
||||
}
|
||||
|
||||
export type putApiV1MarketplaceProductsIdResponseSuccess = (putApiV1MarketplaceProductsIdResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type putApiV1MarketplaceProductsIdResponseError = (putApiV1MarketplaceProductsIdResponse400 | putApiV1MarketplaceProductsIdResponse401 | putApiV1MarketplaceProductsIdResponse403 | putApiV1MarketplaceProductsIdResponse404) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type putApiV1MarketplaceProductsIdResponse = (putApiV1MarketplaceProductsIdResponseSuccess | putApiV1MarketplaceProductsIdResponseError)
|
||||
|
||||
export const getPutApiV1MarketplaceProductsIdUrl = (id: string,) => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/v1/marketplace/products/${id}`
|
||||
}
|
||||
|
||||
export const putApiV1MarketplaceProductsId = async (id: string,
|
||||
internalHandlersUpdateProductRequest: InternalHandlersUpdateProductRequest, options?: RequestInit): Promise<putApiV1MarketplaceProductsIdResponse> => {
|
||||
|
||||
return vezaMutator<putApiV1MarketplaceProductsIdResponse>(getPutApiV1MarketplaceProductsIdUrl(id),
|
||||
{
|
||||
...options,
|
||||
method: 'PUT',
|
||||
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||
body: JSON.stringify(
|
||||
internalHandlersUpdateProductRequest,)
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getPutApiV1MarketplaceProductsIdMutationOptions = <TError = VezaBackendApiInternalResponseAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof putApiV1MarketplaceProductsId>>, TError,{id: string;data: InternalHandlersUpdateProductRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof putApiV1MarketplaceProductsId>>, TError,{id: string;data: InternalHandlersUpdateProductRequest}, TContext> => {
|
||||
|
||||
const mutationKey = ['putApiV1MarketplaceProductsId'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
|
||||
|
||||
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof putApiV1MarketplaceProductsId>>, {id: string;data: InternalHandlersUpdateProductRequest}> = (props) => {
|
||||
const {id,data} = props ?? {};
|
||||
|
||||
return putApiV1MarketplaceProductsId(id,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type PutApiV1MarketplaceProductsIdMutationResult = NonNullable<Awaited<ReturnType<typeof putApiV1MarketplaceProductsId>>>
|
||||
export type PutApiV1MarketplaceProductsIdMutationBody = InternalHandlersUpdateProductRequest
|
||||
export type PutApiV1MarketplaceProductsIdMutationError = VezaBackendApiInternalResponseAPIResponse
|
||||
|
||||
/**
|
||||
* @summary Update a product
|
||||
*/
|
||||
export const usePutApiV1MarketplaceProductsId = <TError = VezaBackendApiInternalResponseAPIResponse,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof putApiV1MarketplaceProductsId>>, TError,{id: string;data: InternalHandlersUpdateProductRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof putApiV1MarketplaceProductsId>>,
|
||||
TError,
|
||||
{id: string;data: InternalHandlersUpdateProductRequest},
|
||||
TContext
|
||||
> => {
|
||||
return useMutation(getPutApiV1MarketplaceProductsIdMutationOptions(options), queryClient);
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { DeletePlaylistsId200Data } from './deletePlaylistsId200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type DeletePlaylistsId200 = InternalHandlersAPIResponse & {
|
||||
data?: DeletePlaylistsId200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type DeletePlaylistsId200Data = {
|
||||
message?: string;
|
||||
};
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { DeletePlaylistsIdTracksTrackId200Data } from './deletePlaylistsIdTracksTrackId200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type DeletePlaylistsIdTracksTrackId200 = InternalHandlersAPIResponse & {
|
||||
data?: DeletePlaylistsIdTracksTrackId200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type DeletePlaylistsIdTracksTrackId200Data = {
|
||||
message?: string;
|
||||
};
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { DeleteTracksIdCommentsCommentId200Data } from './deleteTracksIdCommentsCommentId200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type DeleteTracksIdCommentsCommentId200 = InternalHandlersAPIResponse & {
|
||||
data?: DeleteTracksIdCommentsCommentId200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type DeleteTracksIdCommentsCommentId200Data = {
|
||||
message?: string;
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type DeleteUsersMe200 = { [key: string]: unknown };
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type DeleteUsersMe400 = { [key: string]: unknown };
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type DeleteUsersMe401 = { [key: string]: unknown };
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type DeleteUsersMe500 = { [key: string]: unknown };
|
||||
13
apps/web/src/services/generated/model/deleteWebhooksId200.ts
Normal file
13
apps/web/src/services/generated/model/deleteWebhooksId200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { DeleteWebhooksId200Data } from './deleteWebhooksId200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type DeleteWebhooksId200 = InternalHandlersAPIResponse & {
|
||||
data?: DeleteWebhooksId200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type DeleteWebhooksId200Data = {
|
||||
message?: string;
|
||||
};
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
import type { InternalHandlersDashboardResponse } from './internalHandlersDashboardResponse';
|
||||
|
||||
export type GetApiV1Dashboard200 = InternalHandlersAPIResponse & {
|
||||
data?: InternalHandlersDashboardResponse;
|
||||
};
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetApiV1DashboardParams = {
|
||||
/**
|
||||
* Number of recent activity items (default: 10)
|
||||
*/
|
||||
activity_limit?: number;
|
||||
/**
|
||||
* Number of library items (default: 5)
|
||||
*/
|
||||
library_limit?: number;
|
||||
/**
|
||||
* Time period for statistics: 7d, 30d, 90d, all (default: 30d)
|
||||
*/
|
||||
stats_period?: string;
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetApiV1MarketplaceDownloadProductId200 = {[key: string]: string};
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetApiV1MarketplaceProductsParams = {
|
||||
/**
|
||||
* Product status
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
* Seller ID
|
||||
*/
|
||||
seller_id?: string;
|
||||
/**
|
||||
* Search query
|
||||
*/
|
||||
q?: string;
|
||||
/**
|
||||
* Product type (track, pack, service)
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
* Minimum price
|
||||
*/
|
||||
min_price?: number;
|
||||
/**
|
||||
* Maximum price
|
||||
*/
|
||||
max_price?: number;
|
||||
/**
|
||||
* Page number
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* Items per page
|
||||
*/
|
||||
limit?: number;
|
||||
};
|
||||
13
apps/web/src/services/generated/model/getAuditActivity200.ts
Normal file
13
apps/web/src/services/generated/model/getAuditActivity200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetAuditActivity200Data } from './getAuditActivity200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetAuditActivity200 = InternalHandlersAPIResponse & {
|
||||
data?: GetAuditActivity200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetAuditActivity200Data = {
|
||||
activities?: unknown[];
|
||||
};
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetAuditActivityParams = {
|
||||
/**
|
||||
* Number of activities to return
|
||||
*/
|
||||
limit?: number;
|
||||
};
|
||||
13
apps/web/src/services/generated/model/getAuditLogs200.ts
Normal file
13
apps/web/src/services/generated/model/getAuditLogs200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetAuditLogs200Data } from './getAuditLogs200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetAuditLogs200 = InternalHandlersAPIResponse & {
|
||||
data?: GetAuditLogs200Data;
|
||||
};
|
||||
13
apps/web/src/services/generated/model/getAuditLogs200Data.ts
Normal file
13
apps/web/src/services/generated/model/getAuditLogs200Data.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetAuditLogs200DataPagination } from './getAuditLogs200DataPagination';
|
||||
|
||||
export type GetAuditLogs200Data = {
|
||||
logs?: unknown[];
|
||||
pagination?: GetAuditLogs200DataPagination;
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetAuditLogs200DataPagination = { [key: string]: unknown };
|
||||
50
apps/web/src/services/generated/model/getAuditLogsParams.ts
Normal file
50
apps/web/src/services/generated/model/getAuditLogsParams.ts
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetAuditLogsParams = {
|
||||
/**
|
||||
* Filter by action type
|
||||
*/
|
||||
action?: string;
|
||||
/**
|
||||
* Filter by resource type
|
||||
*/
|
||||
resource?: string;
|
||||
/**
|
||||
* Filter by resource ID (UUID)
|
||||
*/
|
||||
resource_id?: string;
|
||||
/**
|
||||
* Filter by IP address
|
||||
*/
|
||||
ip_address?: string;
|
||||
/**
|
||||
* Filter by user agent
|
||||
*/
|
||||
user_agent?: string;
|
||||
/**
|
||||
* Start date filter (YYYY-MM-DD)
|
||||
*/
|
||||
start_date?: string;
|
||||
/**
|
||||
* End date filter (YYYY-MM-DD)
|
||||
*/
|
||||
end_date?: string;
|
||||
/**
|
||||
* Page number
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* Items per page
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* Offset for pagination
|
||||
*/
|
||||
offset?: number;
|
||||
};
|
||||
13
apps/web/src/services/generated/model/getAuditStats200.ts
Normal file
13
apps/web/src/services/generated/model/getAuditStats200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetAuditStats200Data } from './getAuditStats200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetAuditStats200 = InternalHandlersAPIResponse & {
|
||||
data?: GetAuditStats200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetAuditStats200DataStats } from './getAuditStats200DataStats';
|
||||
|
||||
export type GetAuditStats200Data = {
|
||||
stats?: GetAuditStats200DataStats;
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetAuditStats200DataStats = { [key: string]: unknown };
|
||||
18
apps/web/src/services/generated/model/getAuditStatsParams.ts
Normal file
18
apps/web/src/services/generated/model/getAuditStatsParams.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetAuditStatsParams = {
|
||||
/**
|
||||
* Start date (YYYY-MM-DD)
|
||||
*/
|
||||
start_date?: string;
|
||||
/**
|
||||
* End date (YYYY-MM-DD)
|
||||
*/
|
||||
end_date?: string;
|
||||
};
|
||||
13
apps/web/src/services/generated/model/getAuth2faStatus200.ts
Normal file
13
apps/web/src/services/generated/model/getAuth2faStatus200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetAuth2faStatus200Data } from './getAuth2faStatus200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetAuth2faStatus200 = InternalHandlersAPIResponse & {
|
||||
data?: GetAuth2faStatus200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetAuth2faStatus200Data = {
|
||||
enabled?: boolean;
|
||||
};
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetAuthCheckUsername200Data } from './getAuthCheckUsername200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetAuthCheckUsername200 = InternalHandlersAPIResponse & {
|
||||
data?: GetAuthCheckUsername200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetAuthCheckUsername200Data = {
|
||||
available?: boolean;
|
||||
username?: string;
|
||||
};
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetAuthCheckUsernameParams = {
|
||||
/**
|
||||
* Username to check
|
||||
*/
|
||||
username: string;
|
||||
};
|
||||
13
apps/web/src/services/generated/model/getAuthMe200.ts
Normal file
13
apps/web/src/services/generated/model/getAuthMe200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetAuthMe200Data } from './getAuthMe200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetAuthMe200 = InternalHandlersAPIResponse & {
|
||||
data?: GetAuthMe200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetAuthMe200Data = { [key: string]: unknown };
|
||||
13
apps/web/src/services/generated/model/getChatToken200.ts
Normal file
13
apps/web/src/services/generated/model/getChatToken200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetChatToken200Data } from './getChatToken200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetChatToken200 = InternalHandlersAPIResponse & {
|
||||
data?: GetChatToken200Data;
|
||||
};
|
||||
11
apps/web/src/services/generated/model/getChatToken200Data.ts
Normal file
11
apps/web/src/services/generated/model/getChatToken200Data.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetChatToken200Data = {
|
||||
token?: string;
|
||||
};
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetCommentsIdReplies200Data } from './getCommentsIdReplies200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetCommentsIdReplies200 = InternalHandlersAPIResponse & {
|
||||
data?: GetCommentsIdReplies200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetCommentsIdReplies200DataPagination } from './getCommentsIdReplies200DataPagination';
|
||||
|
||||
export type GetCommentsIdReplies200Data = {
|
||||
pagination?: GetCommentsIdReplies200DataPagination;
|
||||
replies?: unknown[];
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetCommentsIdReplies200DataPagination = { [key: string]: unknown };
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetCommentsIdRepliesParams = {
|
||||
/**
|
||||
* Page number
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* Items per page
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
limit?: number;
|
||||
};
|
||||
13
apps/web/src/services/generated/model/getPlaylists200.ts
Normal file
13
apps/web/src/services/generated/model/getPlaylists200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetPlaylists200Data } from './getPlaylists200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetPlaylists200 = InternalHandlersAPIResponse & {
|
||||
data?: GetPlaylists200Data;
|
||||
};
|
||||
14
apps/web/src/services/generated/model/getPlaylists200Data.ts
Normal file
14
apps/web/src/services/generated/model/getPlaylists200Data.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetPlaylists200DataPagination } from './getPlaylists200DataPagination';
|
||||
import type { VezaBackendApiInternalModelsPlaylist } from './vezaBackendApiInternalModelsPlaylist';
|
||||
|
||||
export type GetPlaylists200Data = {
|
||||
pagination?: GetPlaylists200DataPagination;
|
||||
playlists?: VezaBackendApiInternalModelsPlaylist[];
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetPlaylists200DataPagination = { [key: string]: unknown };
|
||||
13
apps/web/src/services/generated/model/getPlaylistsId200.ts
Normal file
13
apps/web/src/services/generated/model/getPlaylistsId200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetPlaylistsId200Data } from './getPlaylistsId200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetPlaylistsId200 = InternalHandlersAPIResponse & {
|
||||
data?: GetPlaylistsId200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { VezaBackendApiInternalModelsPlaylist } from './vezaBackendApiInternalModelsPlaylist';
|
||||
|
||||
export type GetPlaylistsId200Data = {
|
||||
playlist?: VezaBackendApiInternalModelsPlaylist;
|
||||
};
|
||||
22
apps/web/src/services/generated/model/getPlaylistsParams.ts
Normal file
22
apps/web/src/services/generated/model/getPlaylistsParams.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetPlaylistsParams = {
|
||||
/**
|
||||
* Page number
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* Items per page
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* Filter by User ID
|
||||
*/
|
||||
user_id?: string;
|
||||
};
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetTracksIdComments200Data } from './getTracksIdComments200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetTracksIdComments200 = InternalHandlersAPIResponse & {
|
||||
data?: GetTracksIdComments200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetTracksIdComments200DataPagination } from './getTracksIdComments200DataPagination';
|
||||
|
||||
export type GetTracksIdComments200Data = {
|
||||
comments?: unknown[];
|
||||
pagination?: GetTracksIdComments200DataPagination;
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetTracksIdComments200DataPagination = { [key: string]: unknown };
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetTracksIdCommentsParams = {
|
||||
/**
|
||||
* Page number
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* Items per page
|
||||
*/
|
||||
limit?: number;
|
||||
};
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetTracksIdStatus200Data } from './getTracksIdStatus200Data';
|
||||
import type { VezaBackendApiInternalResponseAPIResponse } from './vezaBackendApiInternalResponseAPIResponse';
|
||||
|
||||
export type GetTracksIdStatus200 = VezaBackendApiInternalResponseAPIResponse & {
|
||||
data?: GetTracksIdStatus200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetTracksIdStatus200Data = {
|
||||
progress?: number;
|
||||
};
|
||||
13
apps/web/src/services/generated/model/getTracksQuotaId200.ts
Normal file
13
apps/web/src/services/generated/model/getTracksQuotaId200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetTracksQuotaId200Data } from './getTracksQuotaId200Data';
|
||||
import type { VezaBackendApiInternalResponseAPIResponse } from './vezaBackendApiInternalResponseAPIResponse';
|
||||
|
||||
export type GetTracksQuotaId200 = VezaBackendApiInternalResponseAPIResponse & {
|
||||
data?: GetTracksQuotaId200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetTracksQuotaId200DataQuota } from './getTracksQuotaId200DataQuota';
|
||||
|
||||
export type GetTracksQuotaId200Data = {
|
||||
quota?: GetTracksQuotaId200DataQuota;
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetTracksQuotaId200DataQuota = { [key: string]: unknown };
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetTracksResumeUploadId200Data } from './getTracksResumeUploadId200Data';
|
||||
import type { VezaBackendApiInternalResponseAPIResponse } from './vezaBackendApiInternalResponseAPIResponse';
|
||||
|
||||
export type GetTracksResumeUploadId200 = VezaBackendApiInternalResponseAPIResponse & {
|
||||
data?: GetTracksResumeUploadId200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetTracksResumeUploadId200Data = {
|
||||
chunks_received?: number;
|
||||
upload_id?: string;
|
||||
};
|
||||
13
apps/web/src/services/generated/model/getUsers200.ts
Normal file
13
apps/web/src/services/generated/model/getUsers200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetUsers200Data } from './getUsers200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetUsers200 = InternalHandlersAPIResponse & {
|
||||
data?: GetUsers200Data;
|
||||
};
|
||||
13
apps/web/src/services/generated/model/getUsers200Data.ts
Normal file
13
apps/web/src/services/generated/model/getUsers200Data.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetUsers200DataPagination } from './getUsers200DataPagination';
|
||||
|
||||
export type GetUsers200Data = {
|
||||
pagination?: GetUsers200DataPagination;
|
||||
users?: unknown[];
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetUsers200DataPagination = { [key: string]: unknown };
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetUsersByUsernameUsername200Data } from './getUsersByUsernameUsername200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetUsersByUsernameUsername200 = InternalHandlersAPIResponse & {
|
||||
data?: GetUsersByUsernameUsername200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetUsersByUsernameUsername200DataProfile } from './getUsersByUsernameUsername200DataProfile';
|
||||
|
||||
export type GetUsersByUsernameUsername200Data = {
|
||||
profile?: GetUsersByUsernameUsername200DataProfile;
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetUsersByUsernameUsername200DataProfile = { [key: string]: unknown };
|
||||
13
apps/web/src/services/generated/model/getUsersId200.ts
Normal file
13
apps/web/src/services/generated/model/getUsersId200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetUsersId200Data } from './getUsersId200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetUsersId200 = InternalHandlersAPIResponse & {
|
||||
data?: GetUsersId200Data;
|
||||
};
|
||||
12
apps/web/src/services/generated/model/getUsersId200Data.ts
Normal file
12
apps/web/src/services/generated/model/getUsersId200Data.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetUsersId200DataProfile } from './getUsersId200DataProfile';
|
||||
|
||||
export type GetUsersId200Data = {
|
||||
profile?: GetUsersId200DataProfile;
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetUsersId200DataProfile = { [key: string]: unknown };
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetUsersIdCompletion200Data } from './getUsersIdCompletion200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetUsersIdCompletion200 = InternalHandlersAPIResponse & {
|
||||
data?: GetUsersIdCompletion200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetUsersIdCompletion200Data = { [key: string]: unknown };
|
||||
42
apps/web/src/services/generated/model/getUsersParams.ts
Normal file
42
apps/web/src/services/generated/model/getUsersParams.ts
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetUsersParams = {
|
||||
/**
|
||||
* Page number
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* Items per page
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* Filter by role
|
||||
*/
|
||||
role?: string;
|
||||
/**
|
||||
* Filter by active status
|
||||
*/
|
||||
is_active?: boolean;
|
||||
/**
|
||||
* Filter by verified status
|
||||
*/
|
||||
is_verified?: boolean;
|
||||
/**
|
||||
* Search by username, email, first_name, last_name
|
||||
*/
|
||||
search?: string;
|
||||
/**
|
||||
* Sort field (created_at, username, email, last_login_at)
|
||||
*/
|
||||
sort_by?: string;
|
||||
/**
|
||||
* Sort order (asc, desc)
|
||||
*/
|
||||
sort_order?: string;
|
||||
};
|
||||
13
apps/web/src/services/generated/model/getWebhooks200.ts
Normal file
13
apps/web/src/services/generated/model/getWebhooks200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetWebhooks200Data } from './getWebhooks200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetWebhooks200 = InternalHandlersAPIResponse & {
|
||||
data?: GetWebhooks200Data;
|
||||
};
|
||||
11
apps/web/src/services/generated/model/getWebhooks200Data.ts
Normal file
11
apps/web/src/services/generated/model/getWebhooks200Data.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetWebhooks200Data = {
|
||||
webhooks?: unknown[];
|
||||
};
|
||||
13
apps/web/src/services/generated/model/getWebhooksStats200.ts
Normal file
13
apps/web/src/services/generated/model/getWebhooksStats200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetWebhooksStats200Data } from './getWebhooksStats200Data';
|
||||
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||
|
||||
export type GetWebhooksStats200 = InternalHandlersAPIResponse & {
|
||||
data?: GetWebhooksStats200Data;
|
||||
};
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { GetWebhooksStats200DataStats } from './getWebhooksStats200DataStats';
|
||||
|
||||
export type GetWebhooksStats200Data = {
|
||||
stats?: GetWebhooksStats200DataStats;
|
||||
};
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type GetWebhooksStats200DataStats = { [key: string]: unknown };
|
||||
194
apps/web/src/services/generated/model/index.ts
Normal file
194
apps/web/src/services/generated/model/index.ts
Normal file
|
|
@ -0,0 +1,194 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export * from './deletePlaylistsId200';
|
||||
export * from './deletePlaylistsId200Data';
|
||||
export * from './deletePlaylistsIdTracksTrackId200';
|
||||
export * from './deletePlaylistsIdTracksTrackId200Data';
|
||||
export * from './deleteTracksIdCommentsCommentId200';
|
||||
export * from './deleteTracksIdCommentsCommentId200Data';
|
||||
export * from './deleteUsersMe200';
|
||||
export * from './deleteUsersMe400';
|
||||
export * from './deleteUsersMe401';
|
||||
export * from './deleteUsersMe500';
|
||||
export * from './deleteWebhooksId200';
|
||||
export * from './deleteWebhooksId200Data';
|
||||
export * from './getApiV1Dashboard200';
|
||||
export * from './getApiV1DashboardParams';
|
||||
export * from './getApiV1MarketplaceDownloadProductId200';
|
||||
export * from './getApiV1MarketplaceProductsParams';
|
||||
export * from './getAuditActivity200';
|
||||
export * from './getAuditActivity200Data';
|
||||
export * from './getAuditActivityParams';
|
||||
export * from './getAuditLogs200';
|
||||
export * from './getAuditLogs200Data';
|
||||
export * from './getAuditLogs200DataPagination';
|
||||
export * from './getAuditLogsParams';
|
||||
export * from './getAuditStats200';
|
||||
export * from './getAuditStats200Data';
|
||||
export * from './getAuditStats200DataStats';
|
||||
export * from './getAuditStatsParams';
|
||||
export * from './getAuth2faStatus200';
|
||||
export * from './getAuth2faStatus200Data';
|
||||
export * from './getAuthCheckUsername200';
|
||||
export * from './getAuthCheckUsername200Data';
|
||||
export * from './getAuthCheckUsernameParams';
|
||||
export * from './getAuthMe200';
|
||||
export * from './getAuthMe200Data';
|
||||
export * from './getChatToken200';
|
||||
export * from './getChatToken200Data';
|
||||
export * from './getCommentsIdReplies200';
|
||||
export * from './getCommentsIdReplies200Data';
|
||||
export * from './getCommentsIdReplies200DataPagination';
|
||||
export * from './getCommentsIdRepliesParams';
|
||||
export * from './getPlaylists200';
|
||||
export * from './getPlaylists200Data';
|
||||
export * from './getPlaylists200DataPagination';
|
||||
export * from './getPlaylistsId200';
|
||||
export * from './getPlaylistsId200Data';
|
||||
export * from './getPlaylistsParams';
|
||||
export * from './getTracksIdComments200';
|
||||
export * from './getTracksIdComments200Data';
|
||||
export * from './getTracksIdComments200DataPagination';
|
||||
export * from './getTracksIdCommentsParams';
|
||||
export * from './getTracksIdStatus200';
|
||||
export * from './getTracksIdStatus200Data';
|
||||
export * from './getTracksQuotaId200';
|
||||
export * from './getTracksQuotaId200Data';
|
||||
export * from './getTracksQuotaId200DataQuota';
|
||||
export * from './getTracksResumeUploadId200';
|
||||
export * from './getTracksResumeUploadId200Data';
|
||||
export * from './getUsers200';
|
||||
export * from './getUsers200Data';
|
||||
export * from './getUsers200DataPagination';
|
||||
export * from './getUsersByUsernameUsername200';
|
||||
export * from './getUsersByUsernameUsername200Data';
|
||||
export * from './getUsersByUsernameUsername200DataProfile';
|
||||
export * from './getUsersId200';
|
||||
export * from './getUsersId200Data';
|
||||
export * from './getUsersId200DataProfile';
|
||||
export * from './getUsersIdCompletion200';
|
||||
export * from './getUsersIdCompletion200Data';
|
||||
export * from './getUsersParams';
|
||||
export * from './getWebhooks200';
|
||||
export * from './getWebhooks200Data';
|
||||
export * from './getWebhooksStats200';
|
||||
export * from './getWebhooksStats200Data';
|
||||
export * from './getWebhooksStats200DataStats';
|
||||
export * from './internalCoreTrackCompleteChunkedUploadRequest';
|
||||
export * from './internalCoreTrackInitiateChunkedUploadRequest';
|
||||
export * from './internalHandlersAPIResponse';
|
||||
export * from './internalHandlersCreateCommentRequest';
|
||||
export * from './internalHandlersCreateOrderRequest';
|
||||
export * from './internalHandlersCreateOrderRequestItemsItem';
|
||||
export * from './internalHandlersCreatePlaylistRequest';
|
||||
export * from './internalHandlersCreateProductRequest';
|
||||
export * from './internalHandlersCreateProductRequestCategory';
|
||||
export * from './internalHandlersCreateProductRequestLicensesItem';
|
||||
export * from './internalHandlersCreateProductRequestLicensesItemLicenseType';
|
||||
export * from './internalHandlersCreateProductRequestLicenseType';
|
||||
export * from './internalHandlersCreateProductRequestProductType';
|
||||
export * from './internalHandlersDashboardResponse';
|
||||
export * from './internalHandlersDashboardStats';
|
||||
export * from './internalHandlersDeleteAccountRequest';
|
||||
export * from './internalHandlersDisableTwoFactorRequest';
|
||||
export * from './internalHandlersFrontendLogRequest';
|
||||
export * from './internalHandlersFrontendLogRequestContext';
|
||||
export * from './internalHandlersLibraryPreview';
|
||||
export * from './internalHandlersRecentActivity';
|
||||
export * from './internalHandlersRecentActivityMetadata';
|
||||
export * from './internalHandlersReorderTracksRequest';
|
||||
export * from './internalHandlersSetupTwoFactorResponse';
|
||||
export * from './internalHandlersStreamTokenResponse';
|
||||
export * from './internalHandlersTrackPreview';
|
||||
export * from './internalHandlersUpdateCommentRequest';
|
||||
export * from './internalHandlersUpdatePlaylistRequest';
|
||||
export * from './internalHandlersUpdateProductRequest';
|
||||
export * from './internalHandlersUpdateProductRequestCategory';
|
||||
export * from './internalHandlersUpdateProductRequestLicensesItem';
|
||||
export * from './internalHandlersUpdateProductRequestLicensesItemLicenseType';
|
||||
export * from './internalHandlersUpdateProductRequestStatus';
|
||||
export * from './internalHandlersUpdateProfileRequest';
|
||||
export * from './internalHandlersUpdateProfileRequestGender';
|
||||
export * from './internalHandlersUpdateProfileRequestSocialLinks';
|
||||
export * from './internalHandlersValidateRequest';
|
||||
export * from './internalHandlersValidateResponse';
|
||||
export * from './internalHandlersVerifyTwoFactorRequest';
|
||||
export * from './postApiV1LogsFrontend200';
|
||||
export * from './postApiV1LogsFrontend200Data';
|
||||
export * from './postAuth2faDisable200';
|
||||
export * from './postAuth2faDisable200Data';
|
||||
export * from './postAuth2faSetup200';
|
||||
export * from './postAuth2faVerify200';
|
||||
export * from './postAuth2faVerify200Data';
|
||||
export * from './postAuthLogoutBody';
|
||||
export * from './postAuthVerifyEmailParams';
|
||||
export * from './postPlaylists201';
|
||||
export * from './postPlaylists201Data';
|
||||
export * from './postPlaylistsIdTracks200';
|
||||
export * from './postPlaylistsIdTracks200Data';
|
||||
export * from './postPlaylistsIdTracksBody';
|
||||
export * from './postTracks201';
|
||||
export * from './postTracks201Data';
|
||||
export * from './postTracksBody';
|
||||
export * from './postTracksChunk200';
|
||||
export * from './postTracksChunk200Data';
|
||||
export * from './postTracksChunkBody';
|
||||
export * from './postTracksComplete201';
|
||||
export * from './postTracksComplete201Data';
|
||||
export * from './postTracksIdComments201';
|
||||
export * from './postTracksIdComments201Data';
|
||||
export * from './postTracksIdComments201DataComment';
|
||||
export * from './postTracksInitiate200';
|
||||
export * from './postTracksInitiate200Data';
|
||||
export * from './postUsersMePrivacyOptOut200';
|
||||
export * from './postUsersMePrivacyOptOut401';
|
||||
export * from './postUsersMePrivacyOptOut500';
|
||||
export * from './postWebhooks201';
|
||||
export * from './postWebhooks201Data';
|
||||
export * from './postWebhooks201DataWebhook';
|
||||
export * from './postWebhooksBody';
|
||||
export * from './postWebhooksIdRegenerateKey200';
|
||||
export * from './postWebhooksIdRegenerateKey200Data';
|
||||
export * from './postWebhooksIdTest200';
|
||||
export * from './postWebhooksIdTest200Data';
|
||||
export * from './putCommentsId200';
|
||||
export * from './putCommentsId200Data';
|
||||
export * from './putCommentsId200DataComment';
|
||||
export * from './putPlaylistsId200';
|
||||
export * from './putPlaylistsId200Data';
|
||||
export * from './putPlaylistsIdTracksReorder200';
|
||||
export * from './putPlaylistsIdTracksReorder200Data';
|
||||
export * from './putUsersId200';
|
||||
export * from './putUsersId200Data';
|
||||
export * from './putUsersId200DataProfile';
|
||||
export * from './vezaBackendApiInternalCoreMarketplaceLicenseType';
|
||||
export * from './vezaBackendApiInternalCoreMarketplaceOrder';
|
||||
export * from './vezaBackendApiInternalCoreMarketplaceOrderItem';
|
||||
export * from './vezaBackendApiInternalCoreMarketplaceProduct';
|
||||
export * from './vezaBackendApiInternalCoreMarketplaceProductImage';
|
||||
export * from './vezaBackendApiInternalCoreMarketplaceProductLicense';
|
||||
export * from './vezaBackendApiInternalCoreMarketplaceProductPreview';
|
||||
export * from './vezaBackendApiInternalCoreMarketplaceProductStatus';
|
||||
export * from './vezaBackendApiInternalDtoLoginRequest';
|
||||
export * from './vezaBackendApiInternalDtoLoginResponse';
|
||||
export * from './vezaBackendApiInternalDtoRefreshRequest';
|
||||
export * from './vezaBackendApiInternalDtoRegisterRequest';
|
||||
export * from './vezaBackendApiInternalDtoRegisterResponse';
|
||||
export * from './vezaBackendApiInternalDtoResendVerificationRequest';
|
||||
export * from './vezaBackendApiInternalDtoTokenResponse';
|
||||
export * from './vezaBackendApiInternalDtoUserResponse';
|
||||
export * from './vezaBackendApiInternalDtoValidationError';
|
||||
export * from './vezaBackendApiInternalModelsPlaylist';
|
||||
export * from './vezaBackendApiInternalModelsPlaylistCollaborator';
|
||||
export * from './vezaBackendApiInternalModelsPlaylistPermission';
|
||||
export * from './vezaBackendApiInternalModelsPlaylistTrack';
|
||||
export * from './vezaBackendApiInternalModelsTrack';
|
||||
export * from './vezaBackendApiInternalModelsTrackStatus';
|
||||
export * from './vezaBackendApiInternalModelsUser';
|
||||
export * from './vezaBackendApiInternalResponseAPIResponse';
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export interface InternalCoreTrackCompleteChunkedUploadRequest {
|
||||
upload_id: string;
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export interface InternalCoreTrackInitiateChunkedUploadRequest {
|
||||
filename: string;
|
||||
/** @minimum 1 */
|
||||
total_chunks: number;
|
||||
/** @minimum 1 */
|
||||
total_size: number;
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export interface InternalHandlersAPIResponse {
|
||||
data?: unknown;
|
||||
error?: unknown;
|
||||
success?: boolean;
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export interface InternalHandlersCreateCommentRequest {
|
||||
/**
|
||||
* @minLength 1
|
||||
* @maxLength 5000
|
||||
*/
|
||||
content: string;
|
||||
/** Changed to *uuid.UUID */
|
||||
parent_id?: string;
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { InternalHandlersCreateOrderRequestItemsItem } from './internalHandlersCreateOrderRequestItemsItem';
|
||||
|
||||
export interface InternalHandlersCreateOrderRequest {
|
||||
/** @minItems 1 */
|
||||
items: InternalHandlersCreateOrderRequestItemsItem[];
|
||||
/** @maxLength 50 */
|
||||
promo_code?: string;
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type InternalHandlersCreateOrderRequestItemsItem = {
|
||||
product_id: string;
|
||||
};
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export interface InternalHandlersCreatePlaylistRequest {
|
||||
/** @maxLength 1000 */
|
||||
description?: string;
|
||||
is_public?: boolean;
|
||||
/**
|
||||
* @minLength 1
|
||||
* @maxLength 200
|
||||
*/
|
||||
title: string;
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
import type { InternalHandlersCreateProductRequestCategory } from './internalHandlersCreateProductRequestCategory';
|
||||
import type { InternalHandlersCreateProductRequestLicensesItem } from './internalHandlersCreateProductRequestLicensesItem';
|
||||
import type { InternalHandlersCreateProductRequestLicenseType } from './internalHandlersCreateProductRequestLicenseType';
|
||||
import type { InternalHandlersCreateProductRequestProductType } from './internalHandlersCreateProductRequestProductType';
|
||||
|
||||
export interface InternalHandlersCreateProductRequest {
|
||||
/**
|
||||
* v0.401 M1
|
||||
* @minimum 1
|
||||
* @maximum 300
|
||||
*/
|
||||
bpm?: number;
|
||||
category?: InternalHandlersCreateProductRequestCategory;
|
||||
/** @maxLength 2000 */
|
||||
description?: string;
|
||||
license_type?: InternalHandlersCreateProductRequestLicenseType;
|
||||
/** v0.401 M2: Product licenses (streaming, personal, commercial, exclusive) */
|
||||
licenses?: InternalHandlersCreateProductRequestLicensesItem[];
|
||||
/** @maxLength 10 */
|
||||
musical_key?: string;
|
||||
/** @minimum 0 */
|
||||
price: number;
|
||||
product_type: InternalHandlersCreateProductRequestProductType;
|
||||
/**
|
||||
* @minLength 3
|
||||
* @maxLength 200
|
||||
*/
|
||||
title: string;
|
||||
/** UUID string */
|
||||
track_id?: string;
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type InternalHandlersCreateProductRequestCategory = typeof InternalHandlersCreateProductRequestCategory[keyof typeof InternalHandlersCreateProductRequestCategory];
|
||||
|
||||
|
||||
export const InternalHandlersCreateProductRequestCategory = {
|
||||
sample: 'sample',
|
||||
beat: 'beat',
|
||||
preset: 'preset',
|
||||
pack: 'pack',
|
||||
} as const;
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* Generated by orval v8.8.1 🍺
|
||||
* Do not edit manually.
|
||||
* Veza Backend API
|
||||
* Backend API for Veza platform.
|
||||
* OpenAPI spec version: 1.2.0
|
||||
*/
|
||||
|
||||
export type InternalHandlersCreateProductRequestLicenseType = typeof InternalHandlersCreateProductRequestLicenseType[keyof typeof InternalHandlersCreateProductRequestLicenseType];
|
||||
|
||||
|
||||
export const InternalHandlersCreateProductRequestLicenseType = {
|
||||
standard: 'standard',
|
||||
exclusive: 'exclusive',
|
||||
commercial: 'commercial',
|
||||
} as const;
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue