Skip to content

Commit

Permalink
add city
Browse files Browse the repository at this point in the history
  • Loading branch information
Xziy committed Feb 20, 2025
1 parent 898cacc commit 06fdf25
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/lib/worktime.validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ export interface HtmlFormField {
regex: string;
}

export interface City {
name: string
slug: string
url: string
id: string
/** Id in external system */
externalId: string,
boundingBox: [[number, number], [number, number]],
customData: Record<string,any>,
}

export interface Country {
phoneCode: string;
iso: string;
Expand Down Expand Up @@ -145,6 +156,10 @@ export interface RestrictionsOrder<T extends {} = {}> extends Restrictions {
/** Разновидность вводимой капчи */
captchaType?: string | null;

multipleCities?: boolean | null;

city: City | null

/** Данные о модели авторизации пользователей на сайте предприятия */
user?: UserRestrictions<T> | null;
}
Expand Down

0 comments on commit 06fdf25

Please sign in to comment.