gukgjzkgjhgjh
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
@@ -107,9 +107,10 @@ export const useApiAccountLoginCreate = <TError = void, TContext = unknown>(
|
||||
{ data: CustomTokenObtainPair },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getApiAccountLoginCreateMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
return useMutation(
|
||||
getApiAccountLoginCreateMutationOptions(options),
|
||||
queryClient,
|
||||
);
|
||||
};
|
||||
/**
|
||||
* Logs out the user by deleting access and refresh token cookies.
|
||||
@@ -183,9 +184,10 @@ export const useApiAccountLogoutCreate = <TError = unknown, TContext = unknown>(
|
||||
void,
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getApiAccountLogoutCreateMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
return useMutation(
|
||||
getApiAccountLogoutCreateMutationOptions(options),
|
||||
queryClient,
|
||||
);
|
||||
};
|
||||
/**
|
||||
* Request password reset by providing registered email. An email with instructions will be sent.
|
||||
@@ -269,10 +271,10 @@ export const useApiAccountPasswordResetCreate = <
|
||||
{ data: PasswordResetRequest },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions =
|
||||
getApiAccountPasswordResetCreateMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
return useMutation(
|
||||
getApiAccountPasswordResetCreateMutationOptions(options),
|
||||
queryClient,
|
||||
);
|
||||
};
|
||||
/**
|
||||
* Confirm password reset using token from email.
|
||||
@@ -359,10 +361,10 @@ export const useApiAccountPasswordResetConfirmCreate = <
|
||||
{ uidb64: string; token: string; data: PasswordResetConfirm },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions =
|
||||
getApiAccountPasswordResetConfirmCreateMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
return useMutation(
|
||||
getApiAccountPasswordResetConfirmCreateMutationOptions(options),
|
||||
queryClient,
|
||||
);
|
||||
};
|
||||
/**
|
||||
* Register a new user (company or individual). The user will receive an email with a verification link.
|
||||
@@ -443,9 +445,10 @@ export const useApiAccountRegisterCreate = <TError = void, TContext = unknown>(
|
||||
{ data: UserRegistration },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getApiAccountRegisterCreateMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
return useMutation(
|
||||
getApiAccountRegisterCreateMutationOptions(options),
|
||||
queryClient,
|
||||
);
|
||||
};
|
||||
/**
|
||||
* Refresh JWT access and refresh tokens using the refresh token stored in cookie.
|
||||
@@ -522,10 +525,10 @@ export const useApiAccountTokenRefreshCreate = <
|
||||
void,
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions =
|
||||
getApiAccountTokenRefreshCreateMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
return useMutation(
|
||||
getApiAccountTokenRefreshCreateMutationOptions(options),
|
||||
queryClient,
|
||||
);
|
||||
};
|
||||
/**
|
||||
* Verify user email using the link with uid and token.
|
||||
@@ -544,8 +547,8 @@ export const apiAccountVerifyEmailRetrieve = (
|
||||
};
|
||||
|
||||
export const getApiAccountVerifyEmailRetrieveQueryKey = (
|
||||
uidb64?: string,
|
||||
token?: string,
|
||||
uidb64: string,
|
||||
token: string,
|
||||
) => {
|
||||
return [`/api/account/verify-email/${uidb64}/${token}/`] as const;
|
||||
};
|
||||
@@ -700,7 +703,5 @@ export function useApiAccountVerifyEmailRetrieve<
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
@@ -81,8 +81,8 @@ export const useApiAdvertisementContactMeCreate = <
|
||||
void,
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions =
|
||||
getApiAdvertisementContactMeCreateMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
return useMutation(
|
||||
getApiAdvertisementContactMeCreateMutationOptions(options),
|
||||
queryClient,
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
@@ -36,10 +36,39 @@ import type {
|
||||
PaginatedProductList,
|
||||
Product,
|
||||
ProductImage,
|
||||
ReviewSerializerPublic,
|
||||
} from "./models";
|
||||
|
||||
import { publicMutator } from "../../publicClient";
|
||||
|
||||
// https://stackoverflow.com/questions/49579094/typescript-conditional-types-filter-out-readonly-properties-pick-only-requir/49579497#49579497
|
||||
type IfEquals<X, Y, A = X, B = never> =
|
||||
(<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? A : B;
|
||||
|
||||
type WritableKeys<T> = {
|
||||
[P in keyof T]-?: IfEquals<
|
||||
{ [Q in P]: T[P] },
|
||||
{ -readonly [Q in P]: T[P] },
|
||||
P
|
||||
>;
|
||||
}[keyof T];
|
||||
|
||||
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
|
||||
k: infer I,
|
||||
) => void
|
||||
? I
|
||||
: never;
|
||||
type DistributeReadOnlyOverUnions<T> = T extends any ? NonReadonly<T> : never;
|
||||
|
||||
type Writable<T> = Pick<T, WritableKeys<T>>;
|
||||
type NonReadonly<T> = [T] extends [UnionToIntersection<T>]
|
||||
? {
|
||||
[P in keyof Writable<T>]: T[P] extends object
|
||||
? NonReadonly<NonNullable<T[P]>>
|
||||
: T[P];
|
||||
}
|
||||
: DistributeReadOnlyOverUnions<T>;
|
||||
|
||||
/**
|
||||
* @summary List categories (public)
|
||||
*/
|
||||
@@ -199,9 +228,7 @@ export function useApiCommerceCategoriesList<
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -218,7 +245,7 @@ export const apiCommerceCategoriesRetrieve = (
|
||||
});
|
||||
};
|
||||
|
||||
export const getApiCommerceCategoriesRetrieveQueryKey = (id?: number) => {
|
||||
export const getApiCommerceCategoriesRetrieveQueryKey = (id: number) => {
|
||||
return [`/api/commerce/categories/${id}/`] as const;
|
||||
};
|
||||
|
||||
@@ -365,9 +392,7 @@ export function useApiCommerceCategoriesRetrieve<
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -532,9 +557,7 @@ export function useApiCommerceDiscountCodesList<
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -551,7 +574,7 @@ export const apiCommerceDiscountCodesRetrieve = (
|
||||
});
|
||||
};
|
||||
|
||||
export const getApiCommerceDiscountCodesRetrieveQueryKey = (id?: number) => {
|
||||
export const getApiCommerceDiscountCodesRetrieveQueryKey = (id: number) => {
|
||||
return [`/api/commerce/discount-codes/${id}/`] as const;
|
||||
};
|
||||
|
||||
@@ -698,13 +721,11 @@ export function useApiCommerceDiscountCodesRetrieve<
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary List Orders (public)
|
||||
* @summary List Orders (public - anonymous orders, authenticated - user orders, admin - all orders)
|
||||
*/
|
||||
export const apiCommerceOrdersList = (
|
||||
params?: ApiCommerceOrdersListParams,
|
||||
@@ -831,7 +852,7 @@ export function useApiCommerceOrdersList<
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary List Orders (public)
|
||||
* @summary List Orders (public - anonymous orders, authenticated - user orders, admin - all orders)
|
||||
*/
|
||||
|
||||
export function useApiCommerceOrdersList<
|
||||
@@ -859,9 +880,7 @@ export function useApiCommerceOrdersList<
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -871,7 +890,7 @@ export const apiCommerceOrdersCreate = (
|
||||
orderCreate: OrderCreate,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
return publicMutator<OrderRead>({
|
||||
return publicMutator<OrderCreate>({
|
||||
url: `/api/commerce/orders/`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
@@ -945,12 +964,13 @@ export const useApiCommerceOrdersCreate = <
|
||||
{ data: OrderCreate },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getApiCommerceOrdersCreateMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
return useMutation(
|
||||
getApiCommerceOrdersCreateMutationOptions(options),
|
||||
queryClient,
|
||||
);
|
||||
};
|
||||
/**
|
||||
* @summary Retrieve Order (public)
|
||||
* @summary Retrieve Order (public - anonymous orders, authenticated - user orders, admin - all orders)
|
||||
*/
|
||||
export const apiCommerceOrdersRetrieve = (id: number, signal?: AbortSignal) => {
|
||||
return publicMutator<OrderRead>({
|
||||
@@ -960,7 +980,7 @@ export const apiCommerceOrdersRetrieve = (id: number, signal?: AbortSignal) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const getApiCommerceOrdersRetrieveQueryKey = (id?: number) => {
|
||||
export const getApiCommerceOrdersRetrieveQueryKey = (id: number) => {
|
||||
return [`/api/commerce/orders/${id}/`] as const;
|
||||
};
|
||||
|
||||
@@ -1076,7 +1096,7 @@ export function useApiCommerceOrdersRetrieve<
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary Retrieve Order (public)
|
||||
* @summary Retrieve Order (public - anonymous orders, authenticated - user orders, admin - all orders)
|
||||
*/
|
||||
|
||||
export function useApiCommerceOrdersRetrieve<
|
||||
@@ -1104,9 +1124,7 @@ export function useApiCommerceOrdersRetrieve<
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1271,9 +1289,7 @@ export function useApiCommerceProductImagesList<
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1290,7 +1306,7 @@ export const apiCommerceProductImagesRetrieve = (
|
||||
});
|
||||
};
|
||||
|
||||
export const getApiCommerceProductImagesRetrieveQueryKey = (id?: number) => {
|
||||
export const getApiCommerceProductImagesRetrieveQueryKey = (id: number) => {
|
||||
return [`/api/commerce/product-images/${id}/`] as const;
|
||||
};
|
||||
|
||||
@@ -1437,9 +1453,7 @@ export function useApiCommerceProductImagesRetrieve<
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1598,9 +1612,7 @@ export function useApiCommerceProductsList<
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1617,7 +1629,7 @@ export const apiCommerceProductsRetrieve = (
|
||||
});
|
||||
};
|
||||
|
||||
export const getApiCommerceProductsRetrieveQueryKey = (id?: number) => {
|
||||
export const getApiCommerceProductsRetrieveQueryKey = (id: number) => {
|
||||
return [`/api/commerce/products/${id}/`] as const;
|
||||
};
|
||||
|
||||
@@ -1761,7 +1773,94 @@ export function useApiCommerceProductsRetrieve<
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
/**
|
||||
* Public endpoint to create a review for a product.
|
||||
* @summary Create a product review (public)
|
||||
*/
|
||||
export const apiCommerceReviewsCreateCreate = (
|
||||
reviewSerializerPublic: NonReadonly<ReviewSerializerPublic>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
return publicMutator<ReviewSerializerPublic>({
|
||||
url: `/api/commerce/reviews/create/`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reviewSerializerPublic,
|
||||
signal,
|
||||
});
|
||||
};
|
||||
|
||||
export const getApiCommerceReviewsCreateCreateMutationOptions = <
|
||||
TError = unknown,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof apiCommerceReviewsCreateCreate>>,
|
||||
TError,
|
||||
{ data: NonReadonly<ReviewSerializerPublic> },
|
||||
TContext
|
||||
>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof apiCommerceReviewsCreateCreate>>,
|
||||
TError,
|
||||
{ data: NonReadonly<ReviewSerializerPublic> },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["apiCommerceReviewsCreateCreate"];
|
||||
const { mutation: mutationOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey } };
|
||||
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof apiCommerceReviewsCreateCreate>>,
|
||||
{ data: NonReadonly<ReviewSerializerPublic> }
|
||||
> = (props) => {
|
||||
const { data } = props ?? {};
|
||||
|
||||
return apiCommerceReviewsCreateCreate(data);
|
||||
};
|
||||
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
|
||||
export type ApiCommerceReviewsCreateCreateMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof apiCommerceReviewsCreateCreate>>
|
||||
>;
|
||||
export type ApiCommerceReviewsCreateCreateMutationBody =
|
||||
NonReadonly<ReviewSerializerPublic>;
|
||||
export type ApiCommerceReviewsCreateCreateMutationError = unknown;
|
||||
|
||||
/**
|
||||
* @summary Create a product review (public)
|
||||
*/
|
||||
export const useApiCommerceReviewsCreateCreate = <
|
||||
TError = unknown,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof apiCommerceReviewsCreateCreate>>,
|
||||
TError,
|
||||
{ data: NonReadonly<ReviewSerializerPublic> },
|
||||
TContext
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof apiCommerceReviewsCreateCreate>>,
|
||||
TError,
|
||||
{ data: NonReadonly<ReviewSerializerPublic> },
|
||||
TContext
|
||||
> => {
|
||||
return useMutation(
|
||||
getApiCommerceReviewsCreateCreateMutationOptions(options),
|
||||
queryClient,
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,408 +0,0 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
DefinedUseQueryResult,
|
||||
QueryClient,
|
||||
QueryFunction,
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseQueryOptions,
|
||||
UseQueryResult,
|
||||
} from "@tanstack/react-query";
|
||||
|
||||
import type {
|
||||
ApiConfigurationPublicShopConfigurationListParams,
|
||||
PaginatedSiteConfigurationPublicList,
|
||||
SiteConfigurationPublic,
|
||||
} from "./models";
|
||||
|
||||
import { publicMutator } from "../../publicClient";
|
||||
|
||||
/**
|
||||
* @summary List site configuration (public)
|
||||
*/
|
||||
export const apiConfigurationPublicShopConfigurationList = (
|
||||
params?: ApiConfigurationPublicShopConfigurationListParams,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
return publicMutator<PaginatedSiteConfigurationPublicList>({
|
||||
url: `/api/configuration/public/shop-configuration/`,
|
||||
method: "GET",
|
||||
params,
|
||||
signal,
|
||||
});
|
||||
};
|
||||
|
||||
export const getApiConfigurationPublicShopConfigurationListQueryKey = (
|
||||
params?: ApiConfigurationPublicShopConfigurationListParams,
|
||||
) => {
|
||||
return [
|
||||
`/api/configuration/public/shop-configuration/`,
|
||||
...(params ? [params] : []),
|
||||
] as const;
|
||||
};
|
||||
|
||||
export const getApiConfigurationPublicShopConfigurationListQueryOptions = <
|
||||
TData = Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationList>
|
||||
>,
|
||||
TError = unknown,
|
||||
>(
|
||||
params?: ApiConfigurationPublicShopConfigurationListParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof apiConfigurationPublicShopConfigurationList>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
},
|
||||
) => {
|
||||
const { query: queryOptions } = options ?? {};
|
||||
|
||||
const queryKey =
|
||||
queryOptions?.queryKey ??
|
||||
getApiConfigurationPublicShopConfigurationListQueryKey(params);
|
||||
|
||||
const queryFn: QueryFunction<
|
||||
Awaited<ReturnType<typeof apiConfigurationPublicShopConfigurationList>>
|
||||
> = ({ signal }) =>
|
||||
apiConfigurationPublicShopConfigurationList(params, signal);
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof apiConfigurationPublicShopConfigurationList>>,
|
||||
TError,
|
||||
TData
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
};
|
||||
|
||||
export type ApiConfigurationPublicShopConfigurationListQueryResult =
|
||||
NonNullable<
|
||||
Awaited<ReturnType<typeof apiConfigurationPublicShopConfigurationList>>
|
||||
>;
|
||||
export type ApiConfigurationPublicShopConfigurationListQueryError = unknown;
|
||||
|
||||
export function useApiConfigurationPublicShopConfigurationList<
|
||||
TData = Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationList>
|
||||
>,
|
||||
TError = unknown,
|
||||
>(
|
||||
params: undefined | ApiConfigurationPublicShopConfigurationListParams,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof apiConfigurationPublicShopConfigurationList>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
> &
|
||||
Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationList>
|
||||
>,
|
||||
TError,
|
||||
Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationList>
|
||||
>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useApiConfigurationPublicShopConfigurationList<
|
||||
TData = Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationList>
|
||||
>,
|
||||
TError = unknown,
|
||||
>(
|
||||
params?: ApiConfigurationPublicShopConfigurationListParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof apiConfigurationPublicShopConfigurationList>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
> &
|
||||
Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationList>
|
||||
>,
|
||||
TError,
|
||||
Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationList>
|
||||
>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useApiConfigurationPublicShopConfigurationList<
|
||||
TData = Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationList>
|
||||
>,
|
||||
TError = unknown,
|
||||
>(
|
||||
params?: ApiConfigurationPublicShopConfigurationListParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof apiConfigurationPublicShopConfigurationList>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary List site configuration (public)
|
||||
*/
|
||||
|
||||
export function useApiConfigurationPublicShopConfigurationList<
|
||||
TData = Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationList>
|
||||
>,
|
||||
TError = unknown,
|
||||
>(
|
||||
params?: ApiConfigurationPublicShopConfigurationListParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof apiConfigurationPublicShopConfigurationList>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions =
|
||||
getApiConfigurationPublicShopConfigurationListQueryOptions(params, options);
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary Retrieve site configuration (public)
|
||||
*/
|
||||
export const apiConfigurationPublicShopConfigurationRetrieve = (
|
||||
id: number,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
return publicMutator<SiteConfigurationPublic>({
|
||||
url: `/api/configuration/public/shop-configuration/${id}/`,
|
||||
method: "GET",
|
||||
signal,
|
||||
});
|
||||
};
|
||||
|
||||
export const getApiConfigurationPublicShopConfigurationRetrieveQueryKey = (
|
||||
id?: number,
|
||||
) => {
|
||||
return [`/api/configuration/public/shop-configuration/${id}/`] as const;
|
||||
};
|
||||
|
||||
export const getApiConfigurationPublicShopConfigurationRetrieveQueryOptions = <
|
||||
TData = Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>,
|
||||
TError = unknown,
|
||||
>(
|
||||
id: number,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
},
|
||||
) => {
|
||||
const { query: queryOptions } = options ?? {};
|
||||
|
||||
const queryKey =
|
||||
queryOptions?.queryKey ??
|
||||
getApiConfigurationPublicShopConfigurationRetrieveQueryKey(id);
|
||||
|
||||
const queryFn: QueryFunction<
|
||||
Awaited<ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>>
|
||||
> = ({ signal }) =>
|
||||
apiConfigurationPublicShopConfigurationRetrieve(id, signal);
|
||||
|
||||
return {
|
||||
queryKey,
|
||||
queryFn,
|
||||
enabled: !!id,
|
||||
...queryOptions,
|
||||
} as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>>,
|
||||
TError,
|
||||
TData
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
};
|
||||
|
||||
export type ApiConfigurationPublicShopConfigurationRetrieveQueryResult =
|
||||
NonNullable<
|
||||
Awaited<ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>>
|
||||
>;
|
||||
export type ApiConfigurationPublicShopConfigurationRetrieveQueryError = unknown;
|
||||
|
||||
export function useApiConfigurationPublicShopConfigurationRetrieve<
|
||||
TData = Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>,
|
||||
TError = unknown,
|
||||
>(
|
||||
id: number,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
> &
|
||||
Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>,
|
||||
TError,
|
||||
Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useApiConfigurationPublicShopConfigurationRetrieve<
|
||||
TData = Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>,
|
||||
TError = unknown,
|
||||
>(
|
||||
id: number,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
> &
|
||||
Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>,
|
||||
TError,
|
||||
Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useApiConfigurationPublicShopConfigurationRetrieve<
|
||||
TData = Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>,
|
||||
TError = unknown,
|
||||
>(
|
||||
id: number,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary Retrieve site configuration (public)
|
||||
*/
|
||||
|
||||
export function useApiConfigurationPublicShopConfigurationRetrieve<
|
||||
TData = Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>,
|
||||
TError = unknown,
|
||||
>(
|
||||
id: number,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof apiConfigurationPublicShopConfigurationRetrieve>
|
||||
>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions =
|
||||
getApiConfigurationPublicShopConfigurationRetrieveQueryOptions(id, options);
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
@@ -31,27 +31,27 @@ import type {
|
||||
import { publicMutator } from "../../publicClient";
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
Fetch detailed information about a video or playlist from supported platforms.
|
||||
|
||||
|
||||
**Supported platforms:** YouTube, TikTok, Vimeo, Twitter, Instagram, Facebook, Reddit, and many more.
|
||||
|
||||
|
||||
**Returns:**
|
||||
For single videos:
|
||||
- Video title, duration, and thumbnail
|
||||
- Available video qualities/resolutions
|
||||
- Available audio formats
|
||||
|
||||
|
||||
For playlists:
|
||||
- Array of videos with the same info structure as single videos
|
||||
- Each video includes title, duration, thumbnail, and available qualities
|
||||
|
||||
|
||||
**Usage:**
|
||||
```
|
||||
GET /api/downloader/download/?url=https://youtube.com/watch?v=VIDEO_ID
|
||||
GET /api/downloader/download/?url=https://youtube.com/playlist?list=PLAYLIST_ID
|
||||
```
|
||||
|
||||
|
||||
* @summary Get video info from URL
|
||||
*/
|
||||
export const apiDownloaderDownloadRetrieve = (
|
||||
@@ -210,37 +210,35 @@ export function useApiDownloaderDownloadRetrieve<
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
Download video/playlist with optional quality constraints and container format conversion.
|
||||
|
||||
|
||||
**For Playlists:**
|
||||
- Returns a ZIP file containing all selected videos
|
||||
- Use `selected_videos` to specify which videos to download (e.g., [1,3,5] or [1,2,3,4,5])
|
||||
- If `selected_videos` is not provided, all videos in the playlist will be downloaded
|
||||
|
||||
|
||||
**Quality Parameters (optional):**
|
||||
- If not specified, yt-dlp will automatically select the best available quality.
|
||||
- `video_quality`: Maximum video height in pixels (e.g., 1080, 720, 480).
|
||||
- `audio_quality`: Maximum audio bitrate in kbps (e.g., 320, 192, 128).
|
||||
|
||||
|
||||
**Format/Extension:**
|
||||
- Any format supported by ffmpeg (mp4, mkv, webm, avi, mov, flv, m4a, mp3, etc.).
|
||||
- Defaults to 'mp4' if not specified.
|
||||
- The conversion is handled automatically by ffmpeg in the background.
|
||||
|
||||
|
||||
**Advanced Options:**
|
||||
- `subtitles`: Download subtitles (language codes like 'en,cs' or 'all')
|
||||
- `embed_subtitles`: Embed subtitles into video file
|
||||
- `embed_thumbnail`: Embed thumbnail as cover art
|
||||
- `extract_audio`: Extract audio only (ignores video quality)
|
||||
- `cookies`: Browser cookies for age-restricted content (Netscape format)
|
||||
|
||||
|
||||
* @summary Download video or playlist from URL
|
||||
*/
|
||||
export const apiDownloaderDownloadCreate = (
|
||||
@@ -252,7 +250,6 @@ export const apiDownloaderDownloadCreate = (
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: downloadRequest,
|
||||
responseType: "blob",
|
||||
signal,
|
||||
});
|
||||
};
|
||||
@@ -322,10 +319,10 @@ export const useApiDownloaderDownloadCreate = <
|
||||
{ data: DownloadRequest },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions =
|
||||
getApiDownloaderDownloadCreateMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
return useMutation(
|
||||
getApiDownloaderDownloadCreateMutationOptions(options),
|
||||
queryClient,
|
||||
);
|
||||
};
|
||||
/**
|
||||
* Vrací agregované statistiky z tabulky DownloaderRecord.
|
||||
@@ -471,7 +468,5 @@ export function useApiDownloaderStatsRetrieve<
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,12 +1,20 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
export type ApiCommerceOrdersListParams = {
|
||||
/**
|
||||
* Which field to use when ordering the results.
|
||||
*/
|
||||
ordering?: string;
|
||||
/**
|
||||
* A page number within the paginated result set.
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* A search term.
|
||||
*/
|
||||
search?: string;
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
export type ApiCommerceProductsListParams = {
|
||||
category?: number;
|
||||
created_at?: Date;
|
||||
is_active?: boolean;
|
||||
limited_to?: Date;
|
||||
/**
|
||||
* Which field to use when ordering the results.
|
||||
*/
|
||||
@@ -13,8 +17,11 @@ export type ApiCommerceProductsListParams = {
|
||||
* A page number within the paginated result set.
|
||||
*/
|
||||
page?: number;
|
||||
price?: number;
|
||||
/**
|
||||
* A search term.
|
||||
*/
|
||||
search?: string;
|
||||
stock?: number;
|
||||
updated_at?: Date;
|
||||
};
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
export type ApiConfigurationPublicShopConfigurationListParams = {
|
||||
/**
|
||||
* A page number within the paginated result set.
|
||||
*/
|
||||
page?: number;
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { ShippingMethodEnum } from "./shippingMethodEnum";
|
||||
import type { StateFdaEnum } from "./stateFdaEnum";
|
||||
import type { State1f6Enum } from "./state1f6Enum";
|
||||
import type { ZasilkovnaPacketRead } from "./zasilkovnaPacketRead";
|
||||
|
||||
export interface CarrierRead {
|
||||
readonly shipping_method: ShippingMethodEnum;
|
||||
readonly state: StateFdaEnum;
|
||||
readonly state: State1f6Enum;
|
||||
readonly zasilkovna: readonly ZasilkovnaPacketRead[];
|
||||
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
|
||||
readonly shipping_price: string;
|
||||
|
||||
17
frontend/src/api/generated/public/models/cart.ts
Normal file
17
frontend/src/api/generated/public/models/cart.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { CartItem } from "./cartItem";
|
||||
|
||||
export interface Cart {
|
||||
readonly id: number;
|
||||
/** @nullable */
|
||||
readonly user: number | null;
|
||||
readonly items: readonly CartItem[];
|
||||
readonly total: string;
|
||||
readonly items_count: string;
|
||||
readonly created_at: Date;
|
||||
readonly updated_at: Date;
|
||||
}
|
||||
20
frontend/src/api/generated/public/models/cartItem.ts
Normal file
20
frontend/src/api/generated/public/models/cartItem.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
export interface CartItem {
|
||||
readonly id: number;
|
||||
product: number;
|
||||
readonly product_name: string;
|
||||
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
|
||||
readonly product_price: string;
|
||||
/**
|
||||
* @minimum 0
|
||||
* @maximum 9223372036854776000
|
||||
*/
|
||||
quantity?: number;
|
||||
readonly subtotal: string;
|
||||
readonly added_at: Date;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
25
frontend/src/api/generated/public/models/chat.ts
Normal file
25
frontend/src/api/generated/public/models/chat.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { ChatTypeEnum } from "./chatTypeEnum";
|
||||
|
||||
export interface Chat {
|
||||
readonly id: number;
|
||||
chat_type?: ChatTypeEnum;
|
||||
/** @nullable */
|
||||
readonly owner: number | null;
|
||||
/** @maxLength 255 */
|
||||
name?: string;
|
||||
/** @nullable */
|
||||
icon?: string | null;
|
||||
/** @nullable */
|
||||
banner?: string | null;
|
||||
members?: number[];
|
||||
moderators?: number[];
|
||||
/** @nullable */
|
||||
hub?: number | null;
|
||||
readonly created_at: Date;
|
||||
readonly updated_at: Date;
|
||||
}
|
||||
10
frontend/src/api/generated/public/models/chatMember.ts
Normal file
10
frontend/src/api/generated/public/models/chatMember.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
export interface ChatMember {
|
||||
/** PK of the user to add or remove. */
|
||||
user_id: number;
|
||||
}
|
||||
16
frontend/src/api/generated/public/models/chatTypeEnum.ts
Normal file
16
frontend/src/api/generated/public/models/chatTypeEnum.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* * `DM` - Direct Message
|
||||
* `GROUP` - Group
|
||||
*/
|
||||
export type ChatTypeEnum = (typeof ChatTypeEnum)[keyof typeof ChatTypeEnum];
|
||||
|
||||
export const ChatTypeEnum = {
|
||||
DM: "DM",
|
||||
GROUP: "GROUP",
|
||||
} as const;
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,17 +1,32 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* * `CZK` - cz#Czech Koruna
|
||||
* `EUR` - cz#Euro
|
||||
* * `EUR` - Euro
|
||||
* `CZK` - Czech Koruna
|
||||
* `USD` - US Dollar
|
||||
* `GBP` - British Pound
|
||||
* `PLN` - Polish Zloty
|
||||
* `HUF` - Hungarian Forint
|
||||
* `SEK` - Swedish Krona
|
||||
* `DKK` - Danish Krone
|
||||
* `NOK` - Norwegian Krone
|
||||
* `CHF` - Swiss Franc
|
||||
*/
|
||||
export type CurrencyEnum = (typeof CurrencyEnum)[keyof typeof CurrencyEnum];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const CurrencyEnum = {
|
||||
CZK: "CZK",
|
||||
EUR: "EUR",
|
||||
CZK: "CZK",
|
||||
USD: "USD",
|
||||
GBP: "GBP",
|
||||
PLN: "PLN",
|
||||
HUF: "HUF",
|
||||
SEK: "SEK",
|
||||
DKK: "DKK",
|
||||
NOK: "NOK",
|
||||
CHF: "CHF",
|
||||
} as const;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { DeutschePostBulkOrderStatusEnum } from "./deutschePostBulkOrderStatusEnum";
|
||||
|
||||
export interface DeutschePostBulkOrder {
|
||||
readonly id: number;
|
||||
readonly created_at: Date;
|
||||
status?: DeutschePostBulkOrderStatusEnum;
|
||||
readonly status_display: string;
|
||||
/**
|
||||
* Deutsche Post bulk order ID from API
|
||||
* @nullable
|
||||
*/
|
||||
readonly bulk_order_id: string | null;
|
||||
/**
|
||||
* MIXED_BAG, etc.
|
||||
* @maxLength 20
|
||||
*/
|
||||
bulk_order_type?: string;
|
||||
/** @maxLength 255 */
|
||||
description?: string;
|
||||
readonly deutschepost_orders: readonly number[];
|
||||
/** List of DeutschePostOrder IDs to include in bulk order */
|
||||
deutschepost_order_ids: number[];
|
||||
readonly orders_count: string;
|
||||
readonly total_weight_kg: string;
|
||||
readonly tracking_url: string;
|
||||
readonly status_url: string;
|
||||
readonly can_be_cancelled: string;
|
||||
/**
|
||||
* Bulk shipment label PDF
|
||||
* @nullable
|
||||
*/
|
||||
readonly bulk_label_pdf: string | null;
|
||||
/**
|
||||
* Bulk shipment paperwork PDF
|
||||
* @nullable
|
||||
*/
|
||||
readonly paperwork_pdf: string | null;
|
||||
/** Raw API response data */
|
||||
readonly metadata: unknown;
|
||||
/** Last API error message */
|
||||
readonly last_error: string;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* * `CREATED` - Vytvořeno
|
||||
* `PROCESSING` - Zpracovává se
|
||||
* `COMPLETED` - Dokončeno
|
||||
* `ERROR` - Chyba
|
||||
*/
|
||||
export type DeutschePostBulkOrderStatusEnum =
|
||||
(typeof DeutschePostBulkOrderStatusEnum)[keyof typeof DeutschePostBulkOrderStatusEnum];
|
||||
|
||||
export const DeutschePostBulkOrderStatusEnum = {
|
||||
CREATED: "CREATED",
|
||||
PROCESSING: "PROCESSING",
|
||||
COMPLETED: "COMPLETED",
|
||||
ERROR: "ERROR",
|
||||
} as const;
|
||||
113
frontend/src/api/generated/public/models/deutschePostOrder.ts
Normal file
113
frontend/src/api/generated/public/models/deutschePostOrder.ts
Normal file
@@ -0,0 +1,113 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { DeutschePostOrderStateEnum } from "./deutschePostOrderStateEnum";
|
||||
import type { LabelSizeEnum } from "./labelSizeEnum";
|
||||
|
||||
export interface DeutschePostOrder {
|
||||
readonly id: number;
|
||||
readonly created_at: Date;
|
||||
state?: DeutschePostOrderStateEnum;
|
||||
readonly state_display: string;
|
||||
/**
|
||||
* Deutsche Post order ID from API
|
||||
* @nullable
|
||||
*/
|
||||
readonly order_id: string | null;
|
||||
/**
|
||||
* @maxLength 20
|
||||
* @nullable
|
||||
*/
|
||||
customer_ekp?: string | null;
|
||||
/** @maxLength 200 */
|
||||
recipient_name: string;
|
||||
/** @maxLength 20 */
|
||||
recipient_phone?: string;
|
||||
/** @maxLength 254 */
|
||||
recipient_email?: string;
|
||||
/** @maxLength 255 */
|
||||
address_line1: string;
|
||||
/** @maxLength 255 */
|
||||
address_line2?: string;
|
||||
/** @maxLength 255 */
|
||||
address_line3?: string;
|
||||
/** @maxLength 100 */
|
||||
city: string;
|
||||
/**
|
||||
* State/Province for shipping address
|
||||
* @maxLength 100
|
||||
*/
|
||||
address_state?: string;
|
||||
/** @maxLength 20 */
|
||||
postal_code: string;
|
||||
/**
|
||||
* ISO 2-letter country code
|
||||
* @maxLength 2
|
||||
*/
|
||||
destination_country: string;
|
||||
/**
|
||||
* Deutsche Post product type (GPT, GMP, etc.)
|
||||
* @maxLength 10
|
||||
*/
|
||||
product_type?: string;
|
||||
/**
|
||||
* PRIORITY, STANDARD
|
||||
* @maxLength 20
|
||||
*/
|
||||
service_level?: string;
|
||||
/**
|
||||
* Weight in grams
|
||||
* @minimum 0
|
||||
* @maximum 9223372036854776000
|
||||
*/
|
||||
shipment_gross_weight: number;
|
||||
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
|
||||
shipment_amount?: string;
|
||||
/** @maxLength 3 */
|
||||
shipment_currency?: string;
|
||||
/**
|
||||
* IOSS number or sender tax ID
|
||||
* @maxLength 50
|
||||
*/
|
||||
sender_tax_id?: string;
|
||||
/**
|
||||
* IOSS number or importer tax ID
|
||||
* @maxLength 50
|
||||
*/
|
||||
importer_tax_id?: string;
|
||||
return_item_wanted?: boolean;
|
||||
/**
|
||||
* Customer reference
|
||||
* @maxLength 100
|
||||
*/
|
||||
cust_ref?: string;
|
||||
/**
|
||||
* Air Waybill number
|
||||
* @nullable
|
||||
*/
|
||||
readonly awb_number: string | null;
|
||||
/**
|
||||
* Item barcode
|
||||
* @nullable
|
||||
*/
|
||||
readonly barcode: string | null;
|
||||
readonly tracking_url: string;
|
||||
/**
|
||||
* Shipping label PDF
|
||||
* @nullable
|
||||
*/
|
||||
readonly label_pdf: string | null;
|
||||
label_size?: LabelSizeEnum;
|
||||
readonly label_size_display: string;
|
||||
/** Raw API response data */
|
||||
readonly metadata: unknown;
|
||||
/** Last API error message */
|
||||
readonly last_error: string;
|
||||
readonly estimated_delivery_days: string;
|
||||
readonly shipping_cost_estimate: string;
|
||||
readonly can_be_finalized: string;
|
||||
readonly can_be_cancelled: string;
|
||||
readonly is_trackable: string;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* * `CREATED` - Vytvořeno
|
||||
* `FINALIZED` - Dokončeno
|
||||
* `SHIPPED` - Odesláno
|
||||
* `DELIVERED` - Doručeno
|
||||
* `CANCELLED` - Zrušeno
|
||||
* `ERROR` - Chyba
|
||||
*/
|
||||
export type DeutschePostOrderStateEnum =
|
||||
(typeof DeutschePostOrderStateEnum)[keyof typeof DeutschePostOrderStateEnum];
|
||||
|
||||
export const DeutschePostOrderStateEnum = {
|
||||
CREATED: "CREATED",
|
||||
FINALIZED: "FINALIZED",
|
||||
SHIPPED: "SHIPPED",
|
||||
DELIVERED: "DELIVERED",
|
||||
CANCELLED: "CANCELLED",
|
||||
ERROR: "ERROR",
|
||||
} as const;
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Serializer for tracking information response.
|
||||
*/
|
||||
export interface DeutschePostTracking {
|
||||
readonly order_id: string;
|
||||
readonly awb_number: string;
|
||||
readonly barcode: string;
|
||||
readonly tracking_url: string;
|
||||
readonly state: string;
|
||||
readonly last_updated: Date;
|
||||
readonly tracking_events: unknown;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
@@ -18,7 +18,7 @@ export interface DiscountCode {
|
||||
*/
|
||||
percent?: number | null;
|
||||
/**
|
||||
* Fixní sleva v CZK
|
||||
* Fixed discount amount in site currency
|
||||
* @nullable
|
||||
* @pattern ^-?\d{0,8}(?:\.\d{0,2})?$
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,19 +1,36 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { PlatformCount } from "./platformCount";
|
||||
import type { QualityCount } from "./qualityCount";
|
||||
import type { TimeseriesPoint } from "./timeseriesPoint";
|
||||
import type { TopUrl } from "./topUrl";
|
||||
|
||||
export interface DownloaderStats {
|
||||
total_downloads: number;
|
||||
successful_downloads: number;
|
||||
failed_downloads: number;
|
||||
/** Percentage 0-100 */
|
||||
success_rate: number;
|
||||
/** @nullable */
|
||||
avg_length_of_media: number | null;
|
||||
/** @nullable */
|
||||
avg_file_size: number | null;
|
||||
/** @nullable */
|
||||
total_length_of_media: number | null;
|
||||
/** @nullable */
|
||||
avg_file_size: number | null;
|
||||
/** @nullable */
|
||||
total_file_size: number | null;
|
||||
/** @nullable */
|
||||
avg_processing_time: number | null;
|
||||
/** @nullable */
|
||||
most_common_format: string | null;
|
||||
audio_only_count: number;
|
||||
video_count: number;
|
||||
downloads_by_platform: PlatformCount[];
|
||||
downloads_by_quality: QualityCount[];
|
||||
most_downloaded_urls: TopUrl[];
|
||||
downloads_per_day: TimeseriesPoint[];
|
||||
downloads_per_hour: TimeseriesPoint[];
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
25
frontend/src/api/generated/public/models/hub.ts
Normal file
25
frontend/src/api/generated/public/models/hub.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { HubPermission } from "./hubPermission";
|
||||
import type { Tags } from "./tags";
|
||||
|
||||
export interface Hub {
|
||||
readonly id: number;
|
||||
/** @maxLength 255 */
|
||||
name: string;
|
||||
/** @nullable */
|
||||
description?: string | null;
|
||||
/** @nullable */
|
||||
readonly owner: number | null;
|
||||
/** @nullable */
|
||||
icon?: string | null;
|
||||
/** @nullable */
|
||||
banner?: string | null;
|
||||
members?: number[];
|
||||
is_public?: boolean;
|
||||
readonly tags: readonly Tags[];
|
||||
readonly moderators: readonly HubPermission[];
|
||||
}
|
||||
17
frontend/src/api/generated/public/models/hubPermission.ts
Normal file
17
frontend/src/api/generated/public/models/hubPermission.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
export interface HubPermission {
|
||||
readonly id: number;
|
||||
user: number;
|
||||
changing_name?: boolean;
|
||||
changing_description?: boolean;
|
||||
changing_icon?: boolean;
|
||||
changing_banner?: boolean;
|
||||
managing_members?: boolean;
|
||||
managing_posts?: boolean;
|
||||
managing_chats?: boolean;
|
||||
}
|
||||
@@ -1,34 +1,51 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
export * from "./additionalParam";
|
||||
export * from "./apiChoicesRetrieve200";
|
||||
export * from "./apiChoicesRetrieve200Item";
|
||||
export * from "./apiChoicesRetrieveParams";
|
||||
export * from "./apiCommerceCategoriesListParams";
|
||||
export * from "./apiCommerceDiscountCodesListParams";
|
||||
export * from "./apiCommerceOrdersListParams";
|
||||
export * from "./apiCommerceProductImagesListParams";
|
||||
export * from "./apiCommerceProductsListParams";
|
||||
export * from "./apiConfigurationPublicShopConfigurationListParams";
|
||||
export * from "./apiDownloaderDownloadRetrieveParams";
|
||||
export * from "./apiChoicesRetrieve200";
|
||||
export * from "./apiChoicesRetrieve200Item";
|
||||
export * from "./apiChoicesRetrieveParams";
|
||||
export * from "./callback";
|
||||
export * from "./carrierRead";
|
||||
export * from "./cart";
|
||||
export * from "./cartItem";
|
||||
export * from "./category";
|
||||
export * from "./contact";
|
||||
export * from "./contactMe";
|
||||
export * from "./currencyEnum";
|
||||
export * from "./customTokenObtainPair";
|
||||
export * from "./customUser";
|
||||
export * from "./deutschePostBulkOrder";
|
||||
export * from "./deutschePostBulkOrderStatusEnum";
|
||||
export * from "./deutschePostOrder";
|
||||
export * from "./deutschePostOrderStateEnum";
|
||||
export * from "./deutschePostTracking";
|
||||
export * from "./discountCode";
|
||||
export * from "./downloadErrorResponse";
|
||||
export * from "./downloadRequest";
|
||||
export * from "./downloaderStats";
|
||||
export * from "./downloadRequest";
|
||||
export * from "./errorResponse";
|
||||
export * from "./hub";
|
||||
export * from "./hubPermission";
|
||||
export * from "./chat";
|
||||
export * from "./chatMember";
|
||||
export * from "./chatTypeEnum";
|
||||
export * from "./item";
|
||||
export * from "./labelSizeEnum";
|
||||
export * from "./mediaTypeEnum";
|
||||
export * from "./message";
|
||||
export * from "./messageFile";
|
||||
export * from "./messageReaction";
|
||||
export * from "./messageSend";
|
||||
export * from "./orderCarrier";
|
||||
export * from "./orderCreate";
|
||||
export * from "./orderItemCreate";
|
||||
@@ -38,52 +55,83 @@ export * from "./orderRead";
|
||||
export * from "./paginatedCategoryList";
|
||||
export * from "./paginatedContactMeList";
|
||||
export * from "./paginatedCustomUserList";
|
||||
export * from "./paginatedDeutschePostBulkOrderList";
|
||||
export * from "./paginatedDeutschePostOrderList";
|
||||
export * from "./paginatedDiscountCodeList";
|
||||
export * from "./paginatedHubList";
|
||||
export * from "./paginatedHubPermissionList";
|
||||
export * from "./paginatedChatList";
|
||||
export * from "./paginatedMessageList";
|
||||
export * from "./paginatedOrderReadList";
|
||||
export * from "./paginatedPostList";
|
||||
export * from "./paginatedProductImageList";
|
||||
export * from "./paginatedProductList";
|
||||
export * from "./paginatedRefundList";
|
||||
export * from "./paginatedSiteConfigurationAdminList";
|
||||
export * from "./paginatedSiteConfigurationPublicList";
|
||||
export * from "./paginatedReviewSerializerPublicList";
|
||||
export * from "./paginatedSiteConfigurationList";
|
||||
export * from "./paginatedTagsList";
|
||||
export * from "./paginatedVATRateList";
|
||||
export * from "./paginatedWishlistList";
|
||||
export * from "./paginatedZasilkovnaShipmentList";
|
||||
export * from "./passwordResetConfirm";
|
||||
export * from "./passwordResetRequest";
|
||||
export * from "./patchedCart";
|
||||
export * from "./patchedCategory";
|
||||
export * from "./patchedContactMe";
|
||||
export * from "./patchedCustomUser";
|
||||
export * from "./patchedDeutschePostOrder";
|
||||
export * from "./patchedDiscountCode";
|
||||
export * from "./patchedHub";
|
||||
export * from "./patchedHubPermission";
|
||||
export * from "./patchedChat";
|
||||
export * from "./patchedMessage";
|
||||
export * from "./patchedOrderRead";
|
||||
export * from "./patchedPost";
|
||||
export * from "./patchedProduct";
|
||||
export * from "./patchedProductImage";
|
||||
export * from "./patchedRefund";
|
||||
export * from "./patchedSiteConfigurationAdmin";
|
||||
export * from "./patchedSiteConfigurationAdminOpeningHours";
|
||||
export * from "./patchedReviewSerializerPublic";
|
||||
export * from "./patchedSiteConfiguration";
|
||||
export * from "./patchedTags";
|
||||
export * from "./patchedVATRate";
|
||||
export * from "./patchedWishlist";
|
||||
export * from "./payer";
|
||||
export * from "./payment";
|
||||
export * from "./paymentBody";
|
||||
export * from "./paymentCreate";
|
||||
export * from "./paymentMethodEnum";
|
||||
export * from "./paymentRead";
|
||||
export * from "./platformCount";
|
||||
export * from "./post";
|
||||
export * from "./postContent";
|
||||
export * from "./postVote";
|
||||
export * from "./product";
|
||||
export * from "./productImage";
|
||||
export * from "./productMini";
|
||||
export * from "./productMiniForWishlist";
|
||||
export * from "./qualityCount";
|
||||
export * from "./reasonChoiceEnum";
|
||||
export * from "./refund";
|
||||
export * from "./reviewSerializerPublic";
|
||||
export * from "./roleEnum";
|
||||
export * from "./shippingMethodEnum";
|
||||
export * from "./siteConfigurationAdmin";
|
||||
export * from "./siteConfigurationAdminOpeningHours";
|
||||
export * from "./siteConfigurationPublic";
|
||||
export * from "./siteConfigurationPublicOpeningHours";
|
||||
export * from "./stateE15Enum";
|
||||
export * from "./stateFdaEnum";
|
||||
export * from "./statusEnum";
|
||||
export * from "./siteConfiguration";
|
||||
export * from "./state1f6Enum";
|
||||
export * from "./stateCdfEnum";
|
||||
export * from "./statusD4fEnum";
|
||||
export * from "./tagAttach";
|
||||
export * from "./tags";
|
||||
export * from "./timeseriesPoint";
|
||||
export * from "./topUrl";
|
||||
export * from "./trackingURL";
|
||||
export * from "./transferInit";
|
||||
export * from "./transferVerify";
|
||||
export * from "./userRegistration";
|
||||
export * from "./vATRate";
|
||||
export * from "./videoInfo";
|
||||
export * from "./videoInfoResponse";
|
||||
export * from "./voteEnum";
|
||||
export * from "./wishlist";
|
||||
export * from "./zasilkovnaPacket";
|
||||
export * from "./zasilkovnaPacketRead";
|
||||
export * from "./zasilkovnaPacketReadReturnRouting";
|
||||
export * from "./zasilkovnaPacketReturnRouting";
|
||||
export * from "./zasilkovnaShipment";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
18
frontend/src/api/generated/public/models/labelSizeEnum.ts
Normal file
18
frontend/src/api/generated/public/models/labelSizeEnum.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* * `A4` - A4 (210x297mm)
|
||||
* `A5` - A5 (148x210mm)
|
||||
* `A6` - A6 (105x148mm)
|
||||
*/
|
||||
export type LabelSizeEnum = (typeof LabelSizeEnum)[keyof typeof LabelSizeEnum];
|
||||
|
||||
export const LabelSizeEnum = {
|
||||
A4: "A4",
|
||||
A5: "A5",
|
||||
A6: "A6",
|
||||
} as const;
|
||||
18
frontend/src/api/generated/public/models/mediaTypeEnum.ts
Normal file
18
frontend/src/api/generated/public/models/mediaTypeEnum.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* * `IMAGE` - Image
|
||||
* `VIDEO` - Video
|
||||
* `FILE` - File
|
||||
*/
|
||||
export type MediaTypeEnum = (typeof MediaTypeEnum)[keyof typeof MediaTypeEnum];
|
||||
|
||||
export const MediaTypeEnum = {
|
||||
IMAGE: "IMAGE",
|
||||
VIDEO: "VIDEO",
|
||||
FILE: "FILE",
|
||||
} as const;
|
||||
24
frontend/src/api/generated/public/models/message.ts
Normal file
24
frontend/src/api/generated/public/models/message.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { MessageFile } from "./messageFile";
|
||||
import type { MessageReaction } from "./messageReaction";
|
||||
|
||||
export interface Message {
|
||||
readonly id: number;
|
||||
readonly chat: number;
|
||||
/** @nullable */
|
||||
readonly sender: number | null;
|
||||
/** @nullable */
|
||||
readonly reply_to: number | null;
|
||||
content?: string;
|
||||
readonly is_edited: boolean;
|
||||
/** @nullable */
|
||||
readonly edited_at: Date | null;
|
||||
readonly created_at: Date;
|
||||
readonly updated_at: Date;
|
||||
readonly media_files: readonly MessageFile[];
|
||||
readonly reactions: readonly MessageReaction[];
|
||||
}
|
||||
13
frontend/src/api/generated/public/models/messageFile.ts
Normal file
13
frontend/src/api/generated/public/models/messageFile.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { MediaTypeEnum } from "./mediaTypeEnum";
|
||||
|
||||
export interface MessageFile {
|
||||
readonly id: number;
|
||||
file: string;
|
||||
media_type?: MediaTypeEnum;
|
||||
readonly uploaded_at: Date;
|
||||
}
|
||||
13
frontend/src/api/generated/public/models/messageReaction.ts
Normal file
13
frontend/src/api/generated/public/models/messageReaction.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
export interface MessageReaction {
|
||||
readonly id: number;
|
||||
readonly user: number;
|
||||
/** @maxLength 10 */
|
||||
emoji: string;
|
||||
readonly created_at: Date;
|
||||
}
|
||||
16
frontend/src/api/generated/public/models/messageSend.ts
Normal file
16
frontend/src/api/generated/public/models/messageSend.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Used for the HTTP send endpoint (text + optional files).
|
||||
*/
|
||||
export interface MessageSend {
|
||||
chat: number;
|
||||
content?: string;
|
||||
/** @nullable */
|
||||
reply_to?: number | null;
|
||||
files?: string[];
|
||||
}
|
||||
@@ -1,15 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { ShippingMethodEnum } from "./shippingMethodEnum";
|
||||
import type { StateFdaEnum } from "./stateFdaEnum";
|
||||
import type { State1f6Enum } from "./state1f6Enum";
|
||||
import type { ZasilkovnaPacket } from "./zasilkovnaPacket";
|
||||
|
||||
export interface OrderCarrier {
|
||||
shipping_method?: ShippingMethodEnum;
|
||||
readonly state: StateFdaEnum;
|
||||
readonly state: State1f6Enum;
|
||||
readonly zasilkovna: readonly ZasilkovnaPacket[];
|
||||
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
|
||||
readonly shipping_price: string;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { OrderItemCreate } from "./orderItemCreate";
|
||||
import type { OrderCarrier } from "./orderCarrier";
|
||||
import type { OrderItemCreate } from "./orderItemCreate";
|
||||
import type { Payment } from "./payment";
|
||||
|
||||
export interface OrderCreate {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { StatusEnum } from "./statusEnum";
|
||||
import type { StatusD4fEnum } from "./statusD4fEnum";
|
||||
|
||||
export interface OrderMini {
|
||||
readonly id: number;
|
||||
readonly status: StatusEnum;
|
||||
readonly status: StatusD4fEnum;
|
||||
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
|
||||
readonly total_price: string;
|
||||
readonly created_at: Date;
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { StatusEnum } from "./statusEnum";
|
||||
import type { OrderItemRead } from "./orderItemRead";
|
||||
import type { CarrierRead } from "./carrierRead";
|
||||
import type { OrderItemRead } from "./orderItemRead";
|
||||
import type { PaymentRead } from "./paymentRead";
|
||||
import type { StatusD4fEnum } from "./statusD4fEnum";
|
||||
|
||||
export interface OrderRead {
|
||||
readonly id: number;
|
||||
readonly status: StatusEnum;
|
||||
readonly status: StatusD4fEnum;
|
||||
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
|
||||
readonly total_price: string;
|
||||
/** Order currency - captured from site configuration at order creation and never changes */
|
||||
readonly currency: string;
|
||||
/** @nullable */
|
||||
readonly user: number | null;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { Chat } from "./chat";
|
||||
|
||||
export interface PaginatedChatList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: Chat[];
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { DeutschePostBulkOrder } from "./deutschePostBulkOrder";
|
||||
|
||||
export interface PaginatedDeutschePostBulkOrderList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: DeutschePostBulkOrder[];
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { DeutschePostOrder } from "./deutschePostOrder";
|
||||
|
||||
export interface PaginatedDeutschePostOrderList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: DeutschePostOrder[];
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
15
frontend/src/api/generated/public/models/paginatedHubList.ts
Normal file
15
frontend/src/api/generated/public/models/paginatedHubList.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { Hub } from "./hub";
|
||||
|
||||
export interface PaginatedHubList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: Hub[];
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { HubPermission } from "./hubPermission";
|
||||
|
||||
export interface PaginatedHubPermissionList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: HubPermission[];
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { Message } from "./message";
|
||||
|
||||
export interface PaginatedMessageList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: Message[];
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { Post } from "./post";
|
||||
|
||||
export interface PaginatedPostList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: Post[];
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { ReviewSerializerPublic } from "./reviewSerializerPublic";
|
||||
|
||||
export interface PaginatedReviewSerializerPublicList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: ReviewSerializerPublic[];
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { SiteConfigurationAdmin } from "./siteConfigurationAdmin";
|
||||
|
||||
export interface PaginatedSiteConfigurationAdminList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: SiteConfigurationAdmin[];
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { SiteConfiguration } from "./siteConfiguration";
|
||||
|
||||
export interface PaginatedSiteConfigurationList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: SiteConfiguration[];
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { SiteConfigurationPublic } from "./siteConfigurationPublic";
|
||||
|
||||
export interface PaginatedSiteConfigurationPublicList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: SiteConfigurationPublic[];
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { Tags } from "./tags";
|
||||
|
||||
export interface PaginatedTagsList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: Tags[];
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { VATRate } from "./vATRate";
|
||||
|
||||
export interface PaginatedVATRateList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: VATRate[];
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { Wishlist } from "./wishlist";
|
||||
|
||||
export interface PaginatedWishlistList {
|
||||
count: number;
|
||||
/** @nullable */
|
||||
next?: string | null;
|
||||
/** @nullable */
|
||||
previous?: string | null;
|
||||
results: Wishlist[];
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
17
frontend/src/api/generated/public/models/patchedCart.ts
Normal file
17
frontend/src/api/generated/public/models/patchedCart.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { CartItem } from "./cartItem";
|
||||
|
||||
export interface PatchedCart {
|
||||
readonly id?: number;
|
||||
/** @nullable */
|
||||
readonly user?: number | null;
|
||||
readonly items?: readonly CartItem[];
|
||||
readonly total?: string;
|
||||
readonly items_count?: string;
|
||||
readonly created_at?: Date;
|
||||
readonly updated_at?: Date;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
25
frontend/src/api/generated/public/models/patchedChat.ts
Normal file
25
frontend/src/api/generated/public/models/patchedChat.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { ChatTypeEnum } from "./chatTypeEnum";
|
||||
|
||||
export interface PatchedChat {
|
||||
readonly id?: number;
|
||||
chat_type?: ChatTypeEnum;
|
||||
/** @nullable */
|
||||
readonly owner?: number | null;
|
||||
/** @maxLength 255 */
|
||||
name?: string;
|
||||
/** @nullable */
|
||||
icon?: string | null;
|
||||
/** @nullable */
|
||||
banner?: string | null;
|
||||
members?: number[];
|
||||
moderators?: number[];
|
||||
/** @nullable */
|
||||
hub?: number | null;
|
||||
readonly created_at?: Date;
|
||||
readonly updated_at?: Date;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { DeutschePostOrderStateEnum } from "./deutschePostOrderStateEnum";
|
||||
import type { LabelSizeEnum } from "./labelSizeEnum";
|
||||
|
||||
export interface PatchedDeutschePostOrder {
|
||||
readonly id?: number;
|
||||
readonly created_at?: Date;
|
||||
state?: DeutschePostOrderStateEnum;
|
||||
readonly state_display?: string;
|
||||
/**
|
||||
* Deutsche Post order ID from API
|
||||
* @nullable
|
||||
*/
|
||||
readonly order_id?: string | null;
|
||||
/**
|
||||
* @maxLength 20
|
||||
* @nullable
|
||||
*/
|
||||
customer_ekp?: string | null;
|
||||
/** @maxLength 200 */
|
||||
recipient_name?: string;
|
||||
/** @maxLength 20 */
|
||||
recipient_phone?: string;
|
||||
/** @maxLength 254 */
|
||||
recipient_email?: string;
|
||||
/** @maxLength 255 */
|
||||
address_line1?: string;
|
||||
/** @maxLength 255 */
|
||||
address_line2?: string;
|
||||
/** @maxLength 255 */
|
||||
address_line3?: string;
|
||||
/** @maxLength 100 */
|
||||
city?: string;
|
||||
/**
|
||||
* State/Province for shipping address
|
||||
* @maxLength 100
|
||||
*/
|
||||
address_state?: string;
|
||||
/** @maxLength 20 */
|
||||
postal_code?: string;
|
||||
/**
|
||||
* ISO 2-letter country code
|
||||
* @maxLength 2
|
||||
*/
|
||||
destination_country?: string;
|
||||
/**
|
||||
* Deutsche Post product type (GPT, GMP, etc.)
|
||||
* @maxLength 10
|
||||
*/
|
||||
product_type?: string;
|
||||
/**
|
||||
* PRIORITY, STANDARD
|
||||
* @maxLength 20
|
||||
*/
|
||||
service_level?: string;
|
||||
/**
|
||||
* Weight in grams
|
||||
* @minimum 0
|
||||
* @maximum 9223372036854776000
|
||||
*/
|
||||
shipment_gross_weight?: number;
|
||||
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
|
||||
shipment_amount?: string;
|
||||
/** @maxLength 3 */
|
||||
shipment_currency?: string;
|
||||
/**
|
||||
* IOSS number or sender tax ID
|
||||
* @maxLength 50
|
||||
*/
|
||||
sender_tax_id?: string;
|
||||
/**
|
||||
* IOSS number or importer tax ID
|
||||
* @maxLength 50
|
||||
*/
|
||||
importer_tax_id?: string;
|
||||
return_item_wanted?: boolean;
|
||||
/**
|
||||
* Customer reference
|
||||
* @maxLength 100
|
||||
*/
|
||||
cust_ref?: string;
|
||||
/**
|
||||
* Air Waybill number
|
||||
* @nullable
|
||||
*/
|
||||
readonly awb_number?: string | null;
|
||||
/**
|
||||
* Item barcode
|
||||
* @nullable
|
||||
*/
|
||||
readonly barcode?: string | null;
|
||||
readonly tracking_url?: string;
|
||||
/**
|
||||
* Shipping label PDF
|
||||
* @nullable
|
||||
*/
|
||||
readonly label_pdf?: string | null;
|
||||
label_size?: LabelSizeEnum;
|
||||
readonly label_size_display?: string;
|
||||
/** Raw API response data */
|
||||
readonly metadata?: unknown;
|
||||
/** Last API error message */
|
||||
readonly last_error?: string;
|
||||
readonly estimated_delivery_days?: string;
|
||||
readonly shipping_cost_estimate?: string;
|
||||
readonly can_be_finalized?: string;
|
||||
readonly can_be_cancelled?: string;
|
||||
readonly is_trackable?: string;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
@@ -18,7 +18,7 @@ export interface PatchedDiscountCode {
|
||||
*/
|
||||
percent?: number | null;
|
||||
/**
|
||||
* Fixní sleva v CZK
|
||||
* Fixed discount amount in site currency
|
||||
* @nullable
|
||||
* @pattern ^-?\d{0,8}(?:\.\d{0,2})?$
|
||||
*/
|
||||
|
||||
25
frontend/src/api/generated/public/models/patchedHub.ts
Normal file
25
frontend/src/api/generated/public/models/patchedHub.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { HubPermission } from "./hubPermission";
|
||||
import type { Tags } from "./tags";
|
||||
|
||||
export interface PatchedHub {
|
||||
readonly id?: number;
|
||||
/** @maxLength 255 */
|
||||
name?: string;
|
||||
/** @nullable */
|
||||
description?: string | null;
|
||||
/** @nullable */
|
||||
readonly owner?: number | null;
|
||||
/** @nullable */
|
||||
icon?: string | null;
|
||||
/** @nullable */
|
||||
banner?: string | null;
|
||||
members?: number[];
|
||||
is_public?: boolean;
|
||||
readonly tags?: readonly Tags[];
|
||||
readonly moderators?: readonly HubPermission[];
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
export interface PatchedHubPermission {
|
||||
readonly id?: number;
|
||||
user?: number;
|
||||
changing_name?: boolean;
|
||||
changing_description?: boolean;
|
||||
changing_icon?: boolean;
|
||||
changing_banner?: boolean;
|
||||
managing_members?: boolean;
|
||||
managing_posts?: boolean;
|
||||
managing_chats?: boolean;
|
||||
}
|
||||
24
frontend/src/api/generated/public/models/patchedMessage.ts
Normal file
24
frontend/src/api/generated/public/models/patchedMessage.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { MessageFile } from "./messageFile";
|
||||
import type { MessageReaction } from "./messageReaction";
|
||||
|
||||
export interface PatchedMessage {
|
||||
readonly id?: number;
|
||||
readonly chat?: number;
|
||||
/** @nullable */
|
||||
readonly sender?: number | null;
|
||||
/** @nullable */
|
||||
readonly reply_to?: number | null;
|
||||
content?: string;
|
||||
readonly is_edited?: boolean;
|
||||
/** @nullable */
|
||||
readonly edited_at?: Date | null;
|
||||
readonly created_at?: Date;
|
||||
readonly updated_at?: Date;
|
||||
readonly media_files?: readonly MessageFile[];
|
||||
readonly reactions?: readonly MessageReaction[];
|
||||
}
|
||||
@@ -1,18 +1,19 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { StatusEnum } from "./statusEnum";
|
||||
import type { OrderItemRead } from "./orderItemRead";
|
||||
import type { CarrierRead } from "./carrierRead";
|
||||
import type { OrderItemRead } from "./orderItemRead";
|
||||
import type { PaymentRead } from "./paymentRead";
|
||||
import type { StatusD4fEnum } from "./statusD4fEnum";
|
||||
|
||||
export interface PatchedOrderRead {
|
||||
readonly id?: number;
|
||||
readonly status?: StatusEnum;
|
||||
readonly status?: StatusD4fEnum;
|
||||
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
|
||||
readonly total_price?: string;
|
||||
/** Order currency - captured from site configuration at order creation and never changes */
|
||||
readonly currency?: string;
|
||||
/** @nullable */
|
||||
readonly user?: number | null;
|
||||
|
||||
21
frontend/src/api/generated/public/models/patchedPost.ts
Normal file
21
frontend/src/api/generated/public/models/patchedPost.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { PostContent } from "./postContent";
|
||||
import type { Tags } from "./tags";
|
||||
|
||||
export interface PatchedPost {
|
||||
readonly id?: number;
|
||||
content?: string;
|
||||
readonly created_at?: Date;
|
||||
readonly updated_at?: Date;
|
||||
readonly author?: number;
|
||||
/** @nullable */
|
||||
hub?: number | null;
|
||||
/** @nullable */
|
||||
reply_to?: number | null;
|
||||
readonly tags?: readonly Tags[];
|
||||
readonly contents?: readonly PostContent[];
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
@@ -14,7 +14,10 @@ export interface PatchedProduct {
|
||||
* @nullable
|
||||
*/
|
||||
code?: string | null;
|
||||
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
|
||||
/**
|
||||
* Net price (without VAT)
|
||||
* @pattern ^-?\d{0,8}(?:\.\d{0,2})?$
|
||||
*/
|
||||
price?: string;
|
||||
/**
|
||||
* @maxLength 50
|
||||
@@ -29,9 +32,15 @@ export interface PatchedProduct {
|
||||
is_active?: boolean;
|
||||
/** @nullable */
|
||||
limited_to?: Date | null;
|
||||
include_in_week_summary_email?: boolean;
|
||||
readonly created_at?: Date;
|
||||
readonly updated_at?: Date;
|
||||
category?: number;
|
||||
/**
|
||||
* VAT rate for this product. Leave empty to use default rate.
|
||||
* @nullable
|
||||
*/
|
||||
vat_rate?: number | null;
|
||||
/** @nullable */
|
||||
default_carrier?: number | null;
|
||||
/** Symetrické varianty produktu: pokud přidáte variantu A → B, Django automaticky přidá i variantu B → A. Všechny varianty jsou rovnocenné a zobrazí se vzájemně. */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
export interface PatchedReviewSerializerPublic {
|
||||
readonly id?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 5
|
||||
*/
|
||||
rating?: number;
|
||||
comment?: string;
|
||||
readonly created_at?: Date;
|
||||
readonly updated_at?: Date;
|
||||
product?: number;
|
||||
readonly user?: number;
|
||||
}
|
||||
@@ -1,12 +1,14 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { PatchedSiteConfigurationAdminOpeningHours } from "./patchedSiteConfigurationAdminOpeningHours";
|
||||
import type { CurrencyEnum } from "./currencyEnum";
|
||||
|
||||
export interface PatchedSiteConfigurationAdmin {
|
||||
/**
|
||||
* Site configuration serializer - sensitive fields only for admins
|
||||
*/
|
||||
export interface PatchedSiteConfiguration {
|
||||
readonly id?: number;
|
||||
/** @maxLength 100 */
|
||||
name?: string;
|
||||
@@ -26,8 +28,7 @@ export interface PatchedSiteConfigurationAdmin {
|
||||
contact_phone?: string | null;
|
||||
/** @nullable */
|
||||
contact_address?: string | null;
|
||||
/** @nullable */
|
||||
opening_hours?: PatchedSiteConfigurationAdminOpeningHours;
|
||||
opening_hours?: unknown | null;
|
||||
/**
|
||||
* @maxLength 200
|
||||
* @nullable
|
||||
@@ -67,6 +68,34 @@ export interface PatchedSiteConfigurationAdmin {
|
||||
* @nullable
|
||||
*/
|
||||
zasilkovna_api_password?: string | null;
|
||||
/**
|
||||
* Deutsche Post API URL (sandbox/production)
|
||||
* @maxLength 255
|
||||
*/
|
||||
deutschepost_api_url?: string;
|
||||
/**
|
||||
* Deutsche Post OAuth Client ID
|
||||
* @maxLength 255
|
||||
* @nullable
|
||||
*/
|
||||
deutschepost_client_id?: string | null;
|
||||
/**
|
||||
* Deutsche Post OAuth Client Secret
|
||||
* @maxLength 255
|
||||
* @nullable
|
||||
*/
|
||||
deutschepost_client_secret?: string | null;
|
||||
/**
|
||||
* Deutsche Post Customer EKP number
|
||||
* @maxLength 20
|
||||
* @nullable
|
||||
*/
|
||||
deutschepost_customer_ekp?: string | null;
|
||||
/**
|
||||
* Default Deutsche Post shipping price in EUR
|
||||
* @pattern ^-?\d{0,8}(?:\.\d{0,2})?$
|
||||
*/
|
||||
deutschepost_shipping_price?: string;
|
||||
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
|
||||
free_shipping_over?: string;
|
||||
/** Násobení kupónů v objednávce (ano/ne), pokud ne tak se použije pouze nejvyšší slevový kupón */
|
||||
@@ -1,10 +0,0 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @nullable
|
||||
*/
|
||||
export type PatchedSiteConfigurationAdminOpeningHours = unknown | null;
|
||||
15
frontend/src/api/generated/public/models/patchedTags.ts
Normal file
15
frontend/src/api/generated/public/models/patchedTags.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
export interface PatchedTags {
|
||||
readonly id?: number;
|
||||
/** @maxLength 50 */
|
||||
name?: string;
|
||||
/** @nullable */
|
||||
description?: string | null;
|
||||
/** @maxLength 7 */
|
||||
color?: string;
|
||||
}
|
||||
31
frontend/src/api/generated/public/models/patchedVATRate.ts
Normal file
31
frontend/src/api/generated/public/models/patchedVATRate.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Generated by orval v8.8.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* VAT Rate serializer - admin fields only visible to admins
|
||||
*/
|
||||
export interface PatchedVATRate {
|
||||
readonly id?: number;
|
||||
/**
|
||||
* E.g. 'German Standard', 'German Reduced', 'Czech Standard'
|
||||
* @maxLength 100
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* VAT rate as percentage (e.g. 19.00 for 19%)
|
||||
* @pattern ^-?\d{0,1}(?:\.\d{0,4})?$
|
||||
*/
|
||||
rate?: string;
|
||||
/** VAT rate as decimal (e.g., 0.19 for 19%) */
|
||||
readonly rate_decimal?: string;
|
||||
/** Optional description: 'Standard rate for most products', 'Books and food', etc. */
|
||||
description?: string;
|
||||
/** Whether this VAT rate is active and available for use */
|
||||
is_active?: boolean;
|
||||
/** Default rate for new products */
|
||||
is_default?: boolean;
|
||||
readonly created_at?: Date;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user