feat(api): generate models for patched products, refunds, site configurations, payments, and user registration
- Added PatchedProduct, PatchedProductImage, PatchedRefund, and related models. - Introduced Payment, PaymentBody, PaymentCreate, and PaymentRead models. - Created enums for payment methods, reasons for refunds, roles, and shipping methods. - Implemented models for site configurations and their opening hours. - Added ZasilkovnaPacket and ZasilkovnaShipment models for handling shipping data. - Generated user registration model with validation rules. - Updated public API functions to support new models and queries.
This commit is contained in:
45
frontend/src/api/generated/public/models/customUser.ts
Normal file
45
frontend/src/api/generated/public/models/customUser.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { RoleEnum } from "./roleEnum";
|
||||
|
||||
export interface CustomUser {
|
||||
readonly id: number;
|
||||
/** Požadováno. 150 znaků nebo méně. Pouze písmena, číslice a znaky @/./+/-/_. */
|
||||
readonly username: string;
|
||||
/** @maxLength 150 */
|
||||
first_name?: string;
|
||||
/** @maxLength 150 */
|
||||
last_name?: string;
|
||||
/** @maxLength 254 */
|
||||
email: string;
|
||||
role?: RoleEnum;
|
||||
email_verified?: boolean;
|
||||
/**
|
||||
* @maxLength 16
|
||||
* @nullable
|
||||
* @pattern ^\+?\d{9,15}$
|
||||
*/
|
||||
phone_number?: string | null;
|
||||
readonly create_time: Date;
|
||||
/**
|
||||
* @maxLength 100
|
||||
* @nullable
|
||||
*/
|
||||
city?: string | null;
|
||||
/**
|
||||
* @maxLength 200
|
||||
* @nullable
|
||||
*/
|
||||
street?: string | null;
|
||||
/**
|
||||
* @maxLength 5
|
||||
* @nullable
|
||||
* @pattern ^\d{5}$
|
||||
*/
|
||||
postal_code?: string | null;
|
||||
readonly gdpr: boolean;
|
||||
is_active?: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user