feat: limity skupinových objednávek nastavitelné přes env
CI / Generate TypeScript types (push) Successful in 12s
CI / Server unit tests (push) Successful in 25s
CI / Build server (push) Successful in 30s
CI / Build client (push) Successful in 39s
CI / Playwright E2E tests (push) Successful in 3m55s
CI / Build and push Docker image (push) Successful in 49s
CI / Notify (push) Successful in 2s
CI / Generate TypeScript types (push) Successful in 12s
CI / Server unit tests (push) Successful in 25s
CI / Build server (push) Successful in 30s
CI / Build client (push) Successful in 39s
CI / Playwright E2E tests (push) Successful in 3m55s
CI / Build and push Docker image (push) Successful in 49s
CI / Notify (push) Successful in 2s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
get:
|
||||
operationId: getConfig
|
||||
summary: Vrátí veřejnou runtime konfiguraci pro klienta (např. Sentry DSN). Nevyžaduje autentizaci.
|
||||
summary: Vrátí veřejnou runtime konfiguraci pro klienta (např. Sentry DSN, limity objednávek). Nevyžaduje autentizaci.
|
||||
security: [] # Nevyžaduje autentizaci
|
||||
responses:
|
||||
"200":
|
||||
@@ -9,8 +9,14 @@ get:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required: [sentry]
|
||||
required: [sentry, limits]
|
||||
properties:
|
||||
limits:
|
||||
type: object
|
||||
required: [group]
|
||||
properties:
|
||||
group:
|
||||
$ref: "../../schemas/_index.yml#/GroupLimits"
|
||||
sentry:
|
||||
type: object
|
||||
required: [dsn, environment]
|
||||
|
||||
@@ -947,6 +947,41 @@ StoreMenuSource:
|
||||
- HISTORY
|
||||
- NONE
|
||||
|
||||
GroupLimits:
|
||||
description: Limity skupinových objednávek (pojistky proti překlepům). Výchozí hodnoty lze přepsat env proměnnými GROUP_MAX_*.
|
||||
type: object
|
||||
additionalProperties: false
|
||||
required:
|
||||
- maxNoteLength
|
||||
- maxSurchargeTextLength
|
||||
- maxNameLength
|
||||
- maxUrlLength
|
||||
- maxAmountKc
|
||||
- maxItemQuantity
|
||||
- maxItems
|
||||
properties:
|
||||
maxNoteLength:
|
||||
description: Max. délka poznámky člena (znaky)
|
||||
type: integer
|
||||
maxSurchargeTextLength:
|
||||
description: Max. délka popisu příplatku (znaky)
|
||||
type: integer
|
||||
maxNameLength:
|
||||
description: Max. délka názvu skupiny (znaky)
|
||||
type: integer
|
||||
maxUrlLength:
|
||||
description: Max. délka URL nabídky / sledování (znaky)
|
||||
type: integer
|
||||
maxAmountKc:
|
||||
description: Max. výše jedné částky (útrata, příplatek, poplatky, pevná sleva) v Kč
|
||||
type: integer
|
||||
maxItemQuantity:
|
||||
description: Max. počet kusů jedné položky při výběru z nabídky
|
||||
type: integer
|
||||
maxItems:
|
||||
description: Max. celkový počet položek objednávky při výběru z nabídky
|
||||
type: integer
|
||||
|
||||
StoreMenuProvider:
|
||||
description: Dovozová služba, ze které lze stáhnout nabídku podniku
|
||||
type: string
|
||||
|
||||
Reference in New Issue
Block a user