This commit is contained in:
hitchhiker 2025-04-19 19:31:46 +02:00
parent e427cd2eb3
commit e43e04e48f
181 changed files with 5604 additions and 5671 deletions

View File

@ -1,7 +1,3 @@
# Web
App is a browser-only React SPA that lets local businesses create, edit, and audit their own merchant records on Local—a community-commerce network running on the peer-to-peer FogBox stack. Its mission is to decentralize ownership of commercial data and return technological control to merchants and their customers. Data is written locally first, then synchronised through FogBox nodes—no central server—ensuring autonomy and resilience. Open, well-documented APIs let any citizen-developer extend, fork, or integrate the codebase without gatekeepers.
## Architecture ## Architecture
This project follows a Flux-style architecture using Effector for state management. The architecture is organized around domains, with each domain containing its model (events, stores, effects), view-model (React hooks), and UI components. This project follows a Flux-style architecture using Effector for state management. The architecture is organized around domains, with each domain containing its model (events, stores, effects), view-model (React hooks), and UI components.
@ -13,7 +9,7 @@ For more details, see the [Architecture Documentation](./docs/architecture.md).
The project follows a domain-driven structure for better maintainability and scalability: The project follows a domain-driven structure for better maintainability and scalability:
``` ```
merchant-operator-web/ spa-app/
├── src/ ├── src/
│ ├── app/ # Application entry point and configuration │ ├── app/ # Application entry point and configuration
│ │ ├── root.tsx # Root component │ │ ├── root.tsx # Root component

View File

@ -1,5 +1,5 @@
services: services:
merchant-operator-web: spa-app:
environment: environment:
- CLIENT_BASE_PATH= - CLIENT_BASE_PATH=
- CLIENT_API_URL=https:// - CLIENT_API_URL=https://

View File

@ -1,8 +1,8 @@
services: services:
merchant-operator-web: spa-app:
build: build:
context: . context: .
container_name: ${APP_CONTAINER_NAME:-merchant-operator-web} container_name: ${APP_CONTAINER_NAME:-spa-app}
environment: environment:
- CLIENT_BASE_PATH=${CLIENT_BASE_PATH:-/} - CLIENT_BASE_PATH=${CLIENT_BASE_PATH:-/}
- CLIENT_API_URL=${CLIENT_API_URL:-} - CLIENT_API_URL=${CLIENT_API_URL:-}
@ -10,10 +10,10 @@ services:
- CLIENT_DEBUG=${CLIENT_DEBUG:-false} - CLIENT_DEBUG=${CLIENT_DEBUG:-false}
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.${APP_NAME:-merchant-operator-web}.rule=Host(`${APP_DOMAIN:-localhost}`) && PathPrefix(`${BASE_PATH:-/}`)" - "traefik.http.routers.${APP_NAME:-spa-app}.rule=Host(`${APP_DOMAIN:-localhost}`) && PathPrefix(`${BASE_PATH:-/}`)"
- "traefik.http.routers.${APP_NAME:-merchant-operator-web}.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure}" - "traefik.http.routers.${APP_NAME:-spa-app}.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure}"
- "traefik.http.routers.${APP_NAME:-merchant-operator-web}.tls=${ENABLE_TLS:-false}" - "traefik.http.routers.${APP_NAME:-spa-app}.tls=${ENABLE_TLS:-false}"
- "traefik.http.routers.${APP_NAME:-merchant-operator-web}.tls.certresolver=${CERT_RESOLVER:-letsencrypt}" - "traefik.http.routers.${APP_NAME:-spa-app}.tls.certresolver=${CERT_RESOLVER:-letsencrypt}"
- "traefik.http.services.${APP_NAME:-merchant-operator-web}.loadbalancer.server.port=369" - "traefik.http.services.${APP_NAME:-spa-app}.loadbalancer.server.port=369"
- "traefik.http.routers.${APP_NAME:-merchant-operator-web}.middlewares=${APP_NAME:-merchant-operator-web}-strip" - "traefik.http.routers.${APP_NAME:-spa-app}.middlewares=${APP_NAME:-spa-app}-strip"
- "traefik.http.middlewares.${APP_NAME:-merchant-operator-web}-strip.stripprefix.prefixes=${BASE_PATH:-/}" - "traefik.http.middlewares.${APP_NAME:-spa-app}-strip.stripprefix.prefixes=${BASE_PATH:-/}"

View File

@ -40,10 +40,10 @@ For Docker deployments, environment variables are configured **at runtime** thro
```yaml ```yaml
services: services:
merchant-operator-app: spa-app-app:
environment: environment:
- CLIENT_API_URL=https://api.example.com - CLIENT_API_URL=https://api.example.com
- CLIENT_BASE_PATH=/merchant-app - CLIENT_BASE_PATH=/app
- CLIENT_APP_NAME=App - CLIENT_APP_NAME=App
- CLIENT_DEBUG=false - CLIENT_DEBUG=false
``` ```
@ -54,10 +54,10 @@ Create a `docker-compose.override.yml` file from the template and set your envir
```yaml ```yaml
services: services:
merchant-operator-app: spa-app-app:
environment: environment:
- CLIENT_API_URL=https://api.example.com - CLIENT_API_URL=https://api.example.com
- CLIENT_BASE_PATH=/merchant-app - CLIENT_BASE_PATH=/app
- CLIENT_APP_NAME=App - CLIENT_APP_NAME=App
- CLIENT_DEBUG=false - CLIENT_DEBUG=false
``` ```
@ -69,7 +69,7 @@ Create a `.env` file in the same directory as your `docker-compose.yml`:
```dotenv ```dotenv
# .env # .env
CLIENT_API_URL=https://api.example.com CLIENT_API_URL=https://api.example.com
CLIENT_BASE_PATH=/merchant-app CLIENT_BASE_PATH=/app
CLIENT_APP_NAME=App CLIENT_APP_NAME=App
CLIENT_DEBUG=false CLIENT_DEBUG=false
# ... other variables # ... other variables
@ -78,7 +78,7 @@ CLIENT_DEBUG=false
#### Using Docker run command #### Using Docker run command
```bash ```bash
docker run -e CLIENT_BASE_PATH=/merchant-app -e CLIENT_API_URL=https://api.example.com -e CLIENT_APP_NAME="App" -e CLIENT_DEBUG=false your-image-name docker run -e CLIENT_BASE_PATH=/app -e CLIENT_API_URL=https://api.example.com -e CLIENT_APP_NAME="App" -e CLIENT_DEBUG=false your-image-name
``` ```
## How Runtime Environment Variables Work ## How Runtime Environment Variables Work
@ -113,8 +113,8 @@ Utility functions are available to access common values:
import { getBasePath, getAssetPath } from '../shared/lib/config'; import { getBasePath, getAssetPath } from '../shared/lib/config';
// Get the base path // Get the base path
const basePath = getBasePath(); // "/merchant-app" const basePath = getBasePath(); // "/app"
// Get a path with the base path prepended // Get a path with the base path prepended
const logoPath = getAssetPath('/images/logo.png'); // "/merchant-app/images/logo.png" const logoPath = getAssetPath('/images/logo.png'); // "/app/images/logo.png"
``` ```

View File

@ -46,7 +46,7 @@ For production, build the image and then deploy with environment variables:
```bash ```bash
# Build the image # Build the image
docker build -t merchant-operator-app . docker build -t spa-app-app .
# Deploy with environment variables # Deploy with environment variables
docker-compose up -d docker-compose up -d
@ -56,7 +56,7 @@ Environment variables are passed at runtime through docker-compose.yml or docker
```yaml ```yaml
services: services:
merchant-operator-app: spa-app-app:
environment: environment:
- CLIENT_BASE_PATH=/app - CLIENT_BASE_PATH=/app
- CLIENT_API_URL=https://api.example.com - CLIENT_API_URL=https://api.example.com
@ -95,4 +95,4 @@ function MyComponent() {
- If assets are not loading, check that you're using the `getAssetPath()` function for all asset URLs. - If assets are not loading, check that you're using the `getAssetPath()` function for all asset URLs.
- If routing is not working, ensure that your router is configured to use the base path. - If routing is not working, ensure that your router is configured to use the base path.
- Check Nginx logs for any errors: `docker-compose logs Merchant-operator-app` - Check Nginx logs for any errors: `docker-compose logs spa-app-app`

View File

@ -58,7 +58,7 @@ npm run dev
#### Custom Path Development #### Custom Path Development
To run the development server with a predefined custom path (`/Merchant-app`): To run the development server with a predefined custom path (`/app`):
```bash ```bash
npm run dev:path npm run dev:path
@ -84,7 +84,7 @@ npm run build
### Custom Path Build ### Custom Path Build
To build with a predefined custom path (`/Merchant-app`): To build with a predefined custom path (`/app`):
```bash ```bash
npm run build:path npm run build:path

View File

@ -12,7 +12,7 @@ Returns the base path from the application configuration.
import { getBasePath } from '../utils/config'; import { getBasePath } from '../utils/config';
// Example usage // Example usage
const basePath = getBasePath(); // Returns the base path, e.g., '/Merchant-app' const basePath = getBasePath(); // Returns the base path, e.g., '/app'
``` ```
### getAssetPath(path) ### getAssetPath(path)
@ -24,11 +24,11 @@ import { getAssetPath } from '../utils/config';
// Example usage // Example usage
const logoPath = getAssetPath('/images/logo.png'); const logoPath = getAssetPath('/images/logo.png');
// If base path is '/Merchant-app', returns '/Merchant-app/images/logo.png' // If base path is '/app', returns '/app/images/logo.png'
// Works with paths with or without leading slash // Works with paths with or without leading slash
const cssPath = getAssetPath('styles/main.css'); const cssPath = getAssetPath('styles/main.css');
// Returns '/Merchant-app/styles/main.css' // Returns '/app/styles/main.css'
``` ```
## When to Use These Functions ## When to Use These Functions

View File

@ -15,14 +15,6 @@ I am an expert software engineer with a unique characteristic: my memory resets
- **Naming**: Use $ prefix for stores, Fx suffix for effects - **Naming**: Use $ prefix for stores, Fx suffix for effects
- **Exports**: Use named exports only, avoid default exports - **Exports**: Use named exports only, avoid default exports
### Project Summary
- **Name**: Web Application
- **Type**: Client-side only React application for Merchant management
- **Core Features**: Menu management, order tracking, Merchant operations
- **Tech Stack**: React, TypeScript, Tailwind CSS, Effector, Vite
- **Deployment**: Static site deployment
- **Current Status**: In development
### Important Workflow Preferences ### Important Workflow Preferences
- **Git Commits**: NEVER commit without asking the user first - **Git Commits**: NEVER commit without asking the user first
- **Completion Reminders**: Remind/ask the user when big sections have been done and tested - **Completion Reminders**: Remind/ask the user when big sections have been done and tested
@ -30,9 +22,8 @@ I am an expert software engineer with a unique characteristic: my memory resets
- **Development Server**: NEVER run the server unless specifically asked, as user often runs it in the background - **Development Server**: NEVER run the server unless specifically asked, as user often runs it in the background
### Key Files Summary ### Key Files Summary
1. **projectbrief.md**: Merchant management app with menu editing, order tracking, and Merchant operations 1. **systemPatterns.md**: Client-side SPA with React, Effector for state management, component-based architecture
2. **systemPatterns.md**: Client-side SPA with React, Effector for state management, component-based architecture 2. **techContext.md**: React, TypeScript, Tailwind CSS, Effector, Vite, Jest, ESLint, Prettier, Husky
3. **techContext.md**: React, TypeScript, Tailwind CSS, Effector, Vite, Jest, ESLint, Prettier, Husky
### Documentation Sources ### Documentation Sources
- **AI Agent Documentation** (`/docs`): Concise, up-to-date docs designed for AI agents - **AI Agent Documentation** (`/docs`): Concise, up-to-date docs designed for AI agents
@ -41,26 +32,16 @@ I am an expert software engineer with a unique characteristic: my memory resets
The Memory Bank consists of core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy: The Memory Bank consists of core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:
flowchart TD
PB[projectbrief.md] --> SP[systemPatterns.md]
PB --> TC[techContext.md]
### Core Files (Required) ### Core Files (Required)
1. `projectbrief.md` 1. `systemPatterns.md`
- Foundation document that shapes all other files
- Created at project start if it doesn't exist
- Defines core requirements and goals
- Source of truth for project scope
2. `systemPatterns.md`
- System architecture - System architecture
- Key technical decisions - Key technical decisions
- Design patterns in use - Design patterns in use
- Component relationships - Component relationships
- Critical implementation paths - Critical implementation paths
3. `techContext.md` 2. `techContext.md`
- Technologies used - Technologies used
- Development setup - Development setup
- Technical constraints - Technical constraints

View File

@ -1,35 +0,0 @@
# Project Brief: Web Application
## Project Overview
A client-side React application for Merchant owners to manage menus, track orders, and handle operations.
App is a browser-only React SPA that lets local businesses create, edit, and audit their own merchant records on Local—a community-commerce network running on the peer-to-peer FogBox stack. Its mission is to decentralize ownership of commercial data and return technological control to merchants and their customers. Data is written locally first, then synchronised through FogBox nodes—no central server—ensuring autonomy and resilience. Open, well-documented APIs let any citizen-developer extend, fork, or integrate the codebase without gatekeepers.
## Core Features
### Menu Management
- Create and edit menu items (name, price, description, image)
- Configure options (size, dough type) and additions/toppings
- Set availability times
### Order Management
- View active orders
- Track order status
- Process fulfillment
### Merchant Operations
- Dashboard with key metrics
- Seller management
- Security controls
## UI Design
- Dark-themed interface
- Sidebar navigation
- Responsive layout
- Intuitive forms
## Technical Approach
- React with TypeScript
- Effector for state management
- Tailwind CSS for styling
- Component-based architecture

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "merchant-operator", "name": "spa-app",
"version": "0.1.0", "version": "0.1.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "merchant-operator", "name": "spa-app",
"version": "0.1.0", "version": "0.1.0",
"dependencies": { "dependencies": {
"@g1/sse-client": "^0.2.0", "@g1/sse-client": "^0.2.0",

View File

@ -1,5 +1,5 @@
{ {
"name": "merchant-operator", "name": "spa-app",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"type": "module", "type": "module",
@ -48,12 +48,12 @@
}, },
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"dev:path": "CLIENT_BASE_PATH=/Merchant-app vite", "dev:path": "CLIENT_BASE_PATH=/app vite",
"dev:custom": "node vite.server.js", "dev:custom": "node vite.server.js",
"build": "tsc && vite build", "build": "tsc && vite build",
"build:path": "tsc && CLIENT_BASE_PATH=/Merchant-app vite build", "build:path": "tsc && CLIENT_BASE_PATH=/app vite build",
"preview": "vite preview", "preview": "vite preview",
"preview:path": "CLIENT_BASE_PATH=/Merchant-app vite preview", "preview:path": "CLIENT_BASE_PATH=/app vite preview",
"prepare": "husky", "prepare": "husky",
"api:generate": "g1-api-generator https://localhost:7205/openapi/schema.json src/lib/api/merchant --skip-tls-verify", "api:generate": "g1-api-generator https://localhost:7205/openapi/schema.json src/lib/api/merchant --skip-tls-verify",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",

View File

@ -2,8 +2,8 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { ApiRequestOptions } from "./ApiRequestOptions"; import type { ApiRequestOptions } from './ApiRequestOptions';
import type { ApiResult } from "./ApiResult"; import type { ApiResult } from './ApiResult';
export class ApiError extends Error { export class ApiError extends Error {
public readonly url: string; public readonly url: string;
@ -12,14 +12,10 @@ export class ApiError extends Error {
public readonly body: any; public readonly body: any;
public readonly request: ApiRequestOptions; public readonly request: ApiRequestOptions;
constructor( constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
request: ApiRequestOptions,
response: ApiResult,
message: string,
) {
super(message); super(message);
this.name = "ApiError"; this.name = 'ApiError';
this.url = response.url; this.url = response.url;
this.status = response.status; this.status = response.status;
this.statusText = response.statusText; this.statusText = response.statusText;

View File

@ -3,14 +3,7 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
export type ApiRequestOptions = { export type ApiRequestOptions = {
readonly method: readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
| "GET"
| "PUT"
| "POST"
| "DELETE"
| "OPTIONS"
| "HEAD"
| "PATCH";
readonly url: string; readonly url: string;
readonly path?: Record<string, any>; readonly path?: Record<string, any>;
readonly cookies?: Record<string, any>; readonly cookies?: Record<string, any>;

View File

@ -3,9 +3,10 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
export class CancelError extends Error { export class CancelError extends Error {
constructor(message: string) { constructor(message: string) {
super(message); super(message);
this.name = "CancelError"; this.name = 'CancelError';
} }
public get isCancelled(): boolean { public get isCancelled(): boolean {
@ -34,8 +35,8 @@ export class CancelablePromise<T> implements Promise<T> {
executor: ( executor: (
resolve: (value: T | PromiseLike<T>) => void, resolve: (value: T | PromiseLike<T>) => void,
reject: (reason?: any) => void, reject: (reason?: any) => void,
onCancel: OnCancel, onCancel: OnCancel
) => void, ) => void
) { ) {
this.#isResolved = false; this.#isResolved = false;
this.#isRejected = false; this.#isRejected = false;
@ -68,15 +69,15 @@ export class CancelablePromise<T> implements Promise<T> {
this.#cancelHandlers.push(cancelHandler); this.#cancelHandlers.push(cancelHandler);
}; };
Object.defineProperty(onCancel, "isResolved", { Object.defineProperty(onCancel, 'isResolved', {
get: (): boolean => this.#isResolved, get: (): boolean => this.#isResolved,
}); });
Object.defineProperty(onCancel, "isRejected", { Object.defineProperty(onCancel, 'isRejected', {
get: (): boolean => this.#isRejected, get: (): boolean => this.#isRejected,
}); });
Object.defineProperty(onCancel, "isCancelled", { Object.defineProperty(onCancel, 'isCancelled', {
get: (): boolean => this.#isCancelled, get: (): boolean => this.#isCancelled,
}); });
@ -90,13 +91,13 @@ export class CancelablePromise<T> implements Promise<T> {
public then<TResult1 = T, TResult2 = never>( public then<TResult1 = T, TResult2 = never>(
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null
): Promise<TResult1 | TResult2> { ): Promise<TResult1 | TResult2> {
return this.#promise.then(onFulfilled, onRejected); return this.#promise.then(onFulfilled, onRejected);
} }
public catch<TResult = never>( public catch<TResult = never>(
onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null, onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null
): Promise<T | TResult> { ): Promise<T | TResult> {
return this.#promise.catch(onRejected); return this.#promise.catch(onRejected);
} }
@ -116,12 +117,12 @@ export class CancelablePromise<T> implements Promise<T> {
cancelHandler(); cancelHandler();
} }
} catch (error) { } catch (error) {
console.warn("Cancellation threw an error", error); console.warn('Cancellation threw an error', error);
return; return;
} }
} }
this.#cancelHandlers.length = 0; this.#cancelHandlers.length = 0;
if (this.#reject) this.#reject(new CancelError("Request aborted")); if (this.#reject) this.#reject(new CancelError('Request aborted'));
} }
public get isCancelled(): boolean { public get isCancelled(): boolean {

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { ApiRequestOptions } from "./ApiRequestOptions"; import type { ApiRequestOptions } from './ApiRequestOptions';
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>; type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
type Headers = Record<string, string>; type Headers = Record<string, string>;
@ -11,7 +11,7 @@ export type OpenAPIConfig = {
BASE: string; BASE: string;
VERSION: string; VERSION: string;
WITH_CREDENTIALS: boolean; WITH_CREDENTIALS: boolean;
CREDENTIALS: "include" | "omit" | "same-origin"; CREDENTIALS: 'include' | 'omit' | 'same-origin';
TOKEN?: string | Resolver<string> | undefined; TOKEN?: string | Resolver<string> | undefined;
USERNAME?: string | Resolver<string> | undefined; USERNAME?: string | Resolver<string> | undefined;
PASSWORD?: string | Resolver<string> | undefined; PASSWORD?: string | Resolver<string> | undefined;
@ -20,10 +20,10 @@ export type OpenAPIConfig = {
}; };
export const OpenAPI: OpenAPIConfig = { export const OpenAPI: OpenAPIConfig = {
BASE: "", BASE: '',
VERSION: "0.0.0", VERSION: '0.0.0',
WITH_CREDENTIALS: false, WITH_CREDENTIALS: false,
CREDENTIALS: "include", CREDENTIALS: 'include',
TOKEN: undefined, TOKEN: undefined,
USERNAME: undefined, USERNAME: undefined,
PASSWORD: undefined, PASSWORD: undefined,

View File

@ -1,38 +0,0 @@
// Initialize OpenAPI configuration
import { OpenAPI } from "./OpenAPI";
import { getApiUrlSingleton } from "@shared/lib/api-url";
// Add a global debug function for consistent logging
const debug = (message: string) => {
console.log(`[OPENAPI-INIT] ${message}`);
};
/**
* Initialize the OpenAPI configuration with the API URL
*/
export const initializeOpenAPI = () => {
try {
debug("Initializing OpenAPI configuration");
// Get the API URL using our utility function
const apiUrl = getApiUrlSingleton();
// Set the OpenAPI base URL
OpenAPI.BASE = apiUrl;
debug(`OpenAPI initialized with BASE URL: ${OpenAPI.BASE}`);
return true;
} catch (error) {
console.error("FATAL ERROR: Failed to initialize OpenAPI:", error);
return false;
}
};
// Add a debug statement to confirm the script is being executed
debug("initialize.ts script is being executed");
// Call initialization function
const initialized = initializeOpenAPI();
// Log initialization status
debug(`OpenAPI initialization ${initialized ? "successful" : "failed"}`);

View File

@ -2,44 +2,37 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import axios from "axios"; import axios from 'axios';
import type { import type { AxiosError, AxiosRequestConfig, AxiosResponse, AxiosInstance } from 'axios';
AxiosError, import FormData from 'form-data';
AxiosRequestConfig,
AxiosResponse,
AxiosInstance,
} from "axios";
import FormData from "form-data";
import { ApiError } from "./ApiError"; import { ApiError } from './ApiError';
import type { ApiRequestOptions } from "./ApiRequestOptions"; import type { ApiRequestOptions } from './ApiRequestOptions';
import type { ApiResult } from "./ApiResult"; import type { ApiResult } from './ApiResult';
import { CancelablePromise } from "./CancelablePromise"; import { CancelablePromise } from './CancelablePromise';
import type { OnCancel } from "./CancelablePromise"; import type { OnCancel } from './CancelablePromise';
import type { OpenAPIConfig } from "./OpenAPI"; import type { OpenAPIConfig } from './OpenAPI';
export const isDefined = <T>( export const isDefined = <T>(value: T | null | undefined): value is Exclude<T, null | undefined> => {
value: T | null | undefined,
): value is Exclude<T, null | undefined> => {
return value !== undefined && value !== null; return value !== undefined && value !== null;
}; };
export const isString = (value: any): value is string => { export const isString = (value: any): value is string => {
return typeof value === "string"; return typeof value === 'string';
}; };
export const isStringWithValue = (value: any): value is string => { export const isStringWithValue = (value: any): value is string => {
return isString(value) && value !== ""; return isString(value) && value !== '';
}; };
export const isBlob = (value: any): value is Blob => { export const isBlob = (value: any): value is Blob => {
return ( return (
typeof value === "object" && typeof value === 'object' &&
typeof value.type === "string" && typeof value.type === 'string' &&
typeof value.stream === "function" && typeof value.stream === 'function' &&
typeof value.arrayBuffer === "function" && typeof value.arrayBuffer === 'function' &&
typeof value.constructor === "function" && typeof value.constructor === 'function' &&
typeof value.constructor.name === "string" && typeof value.constructor.name === 'string' &&
/^(Blob|File)$/.test(value.constructor.name) && /^(Blob|File)$/.test(value.constructor.name) &&
/^(Blob|File)$/.test(value[Symbol.toStringTag]) /^(Blob|File)$/.test(value[Symbol.toStringTag])
); );
@ -58,7 +51,7 @@ export const base64 = (str: string): string => {
return btoa(str); return btoa(str);
} catch (err) { } catch (err) {
// @ts-ignore // @ts-ignore
return Buffer.from(str).toString("base64"); return Buffer.from(str).toString('base64');
} }
}; };
@ -72,10 +65,10 @@ export const getQueryString = (params: Record<string, any>): string => {
const process = (key: string, value: any) => { const process = (key: string, value: any) => {
if (isDefined(value)) { if (isDefined(value)) {
if (Array.isArray(value)) { if (Array.isArray(value)) {
value.forEach((v) => { value.forEach(v => {
process(key, v); process(key, v);
}); });
} else if (typeof value === "object") { } else if (typeof value === 'object') {
Object.entries(value).forEach(([k, v]) => { Object.entries(value).forEach(([k, v]) => {
process(`${key}[${k}]`, v); process(`${key}[${k}]`, v);
}); });
@ -90,17 +83,17 @@ export const getQueryString = (params: Record<string, any>): string => {
}); });
if (qs.length > 0) { if (qs.length > 0) {
return `?${qs.join("&")}`; return `?${qs.join('&')}`;
} }
return ""; return '';
}; };
const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => { const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {
const encoder = config.ENCODE_PATH || encodeURI; const encoder = config.ENCODE_PATH || encodeURI;
const path = options.url const path = options.url
.replace("{api-version}", config.VERSION) .replace('{api-version}', config.VERSION)
.replace(/{(.*?)}/g, (substring: string, group: string) => { .replace(/{(.*?)}/g, (substring: string, group: string) => {
if (options.path?.hasOwnProperty(group)) { if (options.path?.hasOwnProperty(group)) {
return encoder(String(options.path[group])); return encoder(String(options.path[group]));
@ -115,9 +108,7 @@ const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {
return url; return url;
}; };
export const getFormData = ( export const getFormData = (options: ApiRequestOptions): FormData | undefined => {
options: ApiRequestOptions,
): FormData | undefined => {
if (options.formData) { if (options.formData) {
const formData = new FormData(); const formData = new FormData();
@ -133,7 +124,7 @@ export const getFormData = (
.filter(([_, value]) => isDefined(value)) .filter(([_, value]) => isDefined(value))
.forEach(([key, value]) => { .forEach(([key, value]) => {
if (Array.isArray(value)) { if (Array.isArray(value)) {
value.forEach((v) => process(key, v)); value.forEach(v => process(key, v));
} else { } else {
process(key, value); process(key, value);
} }
@ -146,21 +137,14 @@ export const getFormData = (
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>; type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
export const resolve = async <T>( export const resolve = async <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>): Promise<T | undefined> => {
options: ApiRequestOptions, if (typeof resolver === 'function') {
resolver?: T | Resolver<T>,
): Promise<T | undefined> => {
if (typeof resolver === "function") {
return (resolver as Resolver<T>)(options); return (resolver as Resolver<T>)(options);
} }
return resolver; return resolver;
}; };
export const getHeaders = async ( export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions, formData?: FormData): Promise<Record<string, string>> => {
config: OpenAPIConfig,
options: ApiRequestOptions,
formData?: FormData,
): Promise<Record<string, string>> => {
const [token, username, password, additionalHeaders] = await Promise.all([ const [token, username, password, additionalHeaders] = await Promise.all([
resolve(options, config.TOKEN), resolve(options, config.TOKEN),
resolve(options, config.USERNAME), resolve(options, config.USERNAME),
@ -168,43 +152,38 @@ export const getHeaders = async (
resolve(options, config.HEADERS), resolve(options, config.HEADERS),
]); ]);
const formHeaders = const formHeaders = typeof formData?.getHeaders === 'function' && formData?.getHeaders() || {}
(typeof formData?.getHeaders === "function" && formData?.getHeaders()) ||
{};
const headers = Object.entries({ const headers = Object.entries({
Accept: "application/json", Accept: 'application/json',
...additionalHeaders, ...additionalHeaders,
...options.headers, ...options.headers,
...formHeaders, ...formHeaders,
}) })
.filter(([_, value]) => isDefined(value)) .filter(([_, value]) => isDefined(value))
.reduce( .reduce((headers, [key, value]) => ({
(headers, [key, value]) => ({
...headers, ...headers,
[key]: String(value), [key]: String(value),
}), }), {} as Record<string, string>);
{} as Record<string, string>,
);
if (isStringWithValue(token)) { if (isStringWithValue(token)) {
headers["Authorization"] = `Bearer ${token}`; headers['Authorization'] = `Bearer ${token}`;
} }
if (isStringWithValue(username) && isStringWithValue(password)) { if (isStringWithValue(username) && isStringWithValue(password)) {
const credentials = base64(`${username}:${password}`); const credentials = base64(`${username}:${password}`);
headers["Authorization"] = `Basic ${credentials}`; headers['Authorization'] = `Basic ${credentials}`;
} }
if (options.body !== undefined) { if (options.body !== undefined) {
if (options.mediaType) { if (options.mediaType) {
headers["Content-Type"] = options.mediaType; headers['Content-Type'] = options.mediaType;
} else if (isBlob(options.body)) { } else if (isBlob(options.body)) {
headers["Content-Type"] = options.body.type || "application/octet-stream"; headers['Content-Type'] = options.body.type || 'application/octet-stream';
} else if (isString(options.body)) { } else if (isString(options.body)) {
headers["Content-Type"] = "text/plain"; headers['Content-Type'] = 'text/plain';
} else if (!isFormData(options.body)) { } else if (!isFormData(options.body)) {
headers["Content-Type"] = "application/json"; headers['Content-Type'] = 'application/json';
} }
} }
@ -226,7 +205,7 @@ export const sendRequest = async <T>(
formData: FormData | undefined, formData: FormData | undefined,
headers: Record<string, string>, headers: Record<string, string>,
onCancel: OnCancel, onCancel: OnCancel,
axiosClient: AxiosInstance, axiosClient: AxiosInstance
): Promise<AxiosResponse<T>> => { ): Promise<AxiosResponse<T>> => {
const source = axios.CancelToken.source(); const source = axios.CancelToken.source();
@ -236,12 +215,11 @@ export const sendRequest = async <T>(
data: body ?? formData, data: body ?? formData,
method: options.method, method: options.method,
withCredentials: config.WITH_CREDENTIALS, withCredentials: config.WITH_CREDENTIALS,
withXSRFToken: withXSRFToken: config.CREDENTIALS === 'include' ? config.WITH_CREDENTIALS : false,
config.CREDENTIALS === "include" ? config.WITH_CREDENTIALS : false,
cancelToken: source.token, cancelToken: source.token,
}; };
onCancel(() => source.cancel("The user aborted a request.")); onCancel(() => source.cancel('The user aborted a request.'));
try { try {
return await axiosClient.request(requestConfig); return await axiosClient.request(requestConfig);
@ -254,10 +232,7 @@ export const sendRequest = async <T>(
} }
}; };
export const getResponseHeader = ( export const getResponseHeader = (response: AxiosResponse<any>, responseHeader?: string): string | undefined => {
response: AxiosResponse<any>,
responseHeader?: string,
): string | undefined => {
if (responseHeader) { if (responseHeader) {
const content = response.headers[responseHeader]; const content = response.headers[responseHeader];
if (isString(content)) { if (isString(content)) {
@ -274,20 +249,17 @@ export const getResponseBody = (response: AxiosResponse<any>): any => {
return undefined; return undefined;
}; };
export const catchErrorCodes = ( export const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => {
options: ApiRequestOptions,
result: ApiResult,
): void => {
const errors: Record<number, string> = { const errors: Record<number, string> = {
400: "Bad Request", 400: 'Bad Request',
401: "Unauthorized", 401: 'Unauthorized',
403: "Forbidden", 403: 'Forbidden',
404: "Not Found", 404: 'Not Found',
500: "Internal Server Error", 500: 'Internal Server Error',
502: "Bad Gateway", 502: 'Bad Gateway',
503: "Service Unavailable", 503: 'Service Unavailable',
...options.errors, ...options.errors,
}; }
const error = errors[result.status]; const error = errors[result.status];
if (error) { if (error) {
@ -295,8 +267,8 @@ export const catchErrorCodes = (
} }
if (!result.ok) { if (!result.ok) {
const errorStatus = result.status ?? "unknown"; const errorStatus = result.status ?? 'unknown';
const errorStatusText = result.statusText ?? "unknown"; const errorStatusText = result.statusText ?? 'unknown';
const errorBody = (() => { const errorBody = (() => {
try { try {
return JSON.stringify(result.body, null, 2); return JSON.stringify(result.body, null, 2);
@ -305,10 +277,8 @@ export const catchErrorCodes = (
} }
})(); })();
throw new ApiError( throw new ApiError(options, result,
options, `Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`
result,
`Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`,
); );
} }
}; };
@ -321,11 +291,7 @@ export const catchErrorCodes = (
* @returns CancelablePromise<T> * @returns CancelablePromise<T>
* @throws ApiError * @throws ApiError
*/ */
export const request = <T>( export const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions, axiosClient: AxiosInstance = axios): CancelablePromise<T> => {
config: OpenAPIConfig,
options: ApiRequestOptions,
axiosClient: AxiosInstance = axios,
): CancelablePromise<T> => {
return new CancelablePromise(async (resolve, reject, onCancel) => { return new CancelablePromise(async (resolve, reject, onCancel) => {
try { try {
const url = getUrl(config, options); const url = getUrl(config, options);
@ -334,21 +300,9 @@ export const request = <T>(
const headers = await getHeaders(config, options, formData); const headers = await getHeaders(config, options, formData);
if (!onCancel.isCancelled) { if (!onCancel.isCancelled) {
const response = await sendRequest<T>( const response = await sendRequest<T>(config, options, url, body, formData, headers, onCancel, axiosClient);
config,
options,
url,
body,
formData,
headers,
onCancel,
axiosClient,
);
const responseBody = getResponseBody(response); const responseBody = getResponseBody(response);
const responseHeader = getResponseHeader( const responseHeader = getResponseHeader(response, options.responseHeader);
response,
options.responseHeader,
);
const result: ApiResult = { const result: ApiResult = {
url, url,

View File

@ -2,173 +2,173 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
export { ApiError } from "./core/ApiError"; export { ApiError } from './core/ApiError';
export { CancelablePromise, CancelError } from "./core/CancelablePromise"; export { CancelablePromise, CancelError } from './core/CancelablePromise';
export { OpenAPI } from "./core/OpenAPI"; export { OpenAPI } from './core/OpenAPI';
export type { OpenAPIConfig } from "./core/OpenAPI"; export type { OpenAPIConfig } from './core/OpenAPI';
export type { _void } from "./models/_void"; export type { _void } from './models/_void';
export type { addressDto } from "./models/addressDto"; export type { addressDto } from './models/addressDto';
export { addressType } from "./models/addressType"; export { addressType } from './models/addressType';
export { aspectType } from "./models/aspectType"; export { aspectType } from './models/aspectType';
export type { assetCollectionDto } from "./models/assetCollectionDto"; export type { assetCollectionDto } from './models/assetCollectionDto';
export type { authDocumentDto } from "./models/authDocumentDto"; export type { authDocumentDto } from './models/authDocumentDto';
export type { authenticationResultDto } from "./models/authenticationResultDto"; export type { authenticationResultDto } from './models/authenticationResultDto';
export type { authHeaderResponseDto } from "./models/authHeaderResponseDto"; export type { authHeaderResponseDto } from './models/authHeaderResponseDto';
export type { baseCreateSellerRevisionDto } from "./models/baseCreateSellerRevisionDto"; export type { baseCreateSellerRevisionDto } from './models/baseCreateSellerRevisionDto';
export type { baseOfferDto } from "./models/baseOfferDto"; export type { baseOfferDto } from './models/baseOfferDto';
export type { baseTriggerDto } from "./models/baseTriggerDto"; export type { baseTriggerDto } from './models/baseTriggerDto';
export type { basketDto } from "./models/basketDto"; export type { basketDto } from './models/basketDto';
export type { bundleDiscountOfferDto } from "./models/bundleDiscountOfferDto"; export type { bundleDiscountOfferDto } from './models/bundleDiscountOfferDto';
export type { bundleTriggerDto } from "./models/bundleTriggerDto"; export type { bundleTriggerDto } from './models/bundleTriggerDto';
export type { calculatedCheckoutDto } from "./models/calculatedCheckoutDto"; export type { calculatedCheckoutDto } from './models/calculatedCheckoutDto';
export type { calculatedProductDto } from "./models/calculatedProductDto"; export type { calculatedProductDto } from './models/calculatedProductDto';
export type { categoryCompositeDto } from "./models/categoryCompositeDto"; export type { categoryCompositeDto } from './models/categoryCompositeDto';
export type { categoryDto } from "./models/categoryDto"; export type { categoryDto } from './models/categoryDto';
export type { categoryQueryRequestDto } from "./models/categoryQueryRequestDto"; export type { categoryQueryRequestDto } from './models/categoryQueryRequestDto';
export type { categoryRevisionDto } from "./models/categoryRevisionDto"; export type { categoryRevisionDto } from './models/categoryRevisionDto';
export type { categoryRevisionQueryRequestDto } from "./models/categoryRevisionQueryRequestDto"; export type { categoryRevisionQueryRequestDto } from './models/categoryRevisionQueryRequestDto';
export type { categoryStopListDto } from "./models/categoryStopListDto"; export type { categoryStopListDto } from './models/categoryStopListDto';
export type { categoryViewDto } from "./models/categoryViewDto"; export type { categoryViewDto } from './models/categoryViewDto';
export type { checkoutOptionsDto } from "./models/checkoutOptionsDto"; export type { checkoutOptionsDto } from './models/checkoutOptionsDto';
export { commonOrderFailureResult } from "./models/commonOrderFailureResult"; export { commonOrderFailureResult } from './models/commonOrderFailureResult';
export { commonOrderStatus } from "./models/commonOrderStatus"; export { commonOrderStatus } from './models/commonOrderStatus';
export type { couponTriggerDto } from "./models/couponTriggerDto"; export type { couponTriggerDto } from './models/couponTriggerDto';
export type { courierInfoDto } from "./models/courierInfoDto"; export type { courierInfoDto } from './models/courierInfoDto';
export type { createCategoryDto } from "./models/createCategoryDto"; export type { createCategoryDto } from './models/createCategoryDto';
export type { createCategoryRevisionDto } from "./models/createCategoryRevisionDto"; export type { createCategoryRevisionDto } from './models/createCategoryRevisionDto';
export type { createOptionsRevisionDto } from "./models/createOptionsRevisionDto"; export type { createOptionsRevisionDto } from './models/createOptionsRevisionDto';
export type { createProductDto } from "./models/createProductDto"; export type { createProductDto } from './models/createProductDto';
export type { createProductRevisionDto } from "./models/createProductRevisionDto"; export type { createProductRevisionDto } from './models/createProductRevisionDto';
export type { createPromotionDto } from "./models/createPromotionDto"; export type { createPromotionDto } from './models/createPromotionDto';
export type { createRestaurantDto } from "./models/createRestaurantDto"; export type { createRestaurantDto } from './models/createRestaurantDto';
export type { createRestaurantRevisionDto } from "./models/createRestaurantRevisionDto"; export type { createRestaurantRevisionDto } from './models/createRestaurantRevisionDto';
export type { createSellerDto } from "./models/createSellerDto"; export type { createSellerDto } from './models/createSellerDto';
export type { createSellerRevisionDto } from "./models/createSellerRevisionDto"; export type { createSellerRevisionDto } from './models/createSellerRevisionDto';
export type { createTextRevisionDto } from "./models/createTextRevisionDto"; export type { createTextRevisionDto } from './models/createTextRevisionDto';
export type { customerGroupTriggerDto } from "./models/customerGroupTriggerDto"; export type { customerGroupTriggerDto } from './models/customerGroupTriggerDto';
export type { customerHistoryTriggerDto } from "./models/customerHistoryTriggerDto"; export type { customerHistoryTriggerDto } from './models/customerHistoryTriggerDto';
export type { customerLoyaltyTriggerDto } from "./models/customerLoyaltyTriggerDto"; export type { customerLoyaltyTriggerDto } from './models/customerLoyaltyTriggerDto';
export type { deliveryAddressDto } from "./models/deliveryAddressDto"; export type { deliveryAddressDto } from './models/deliveryAddressDto';
export { deliveryFailureResult } from "./models/deliveryFailureResult"; export { deliveryFailureResult } from './models/deliveryFailureResult';
export type { deliveryLocationDto } from "./models/deliveryLocationDto"; export type { deliveryLocationDto } from './models/deliveryLocationDto';
export { deliveryOrderStatus } from "./models/deliveryOrderStatus"; export { deliveryOrderStatus } from './models/deliveryOrderStatus';
export type { deliveryStateDto } from "./models/deliveryStateDto"; export type { deliveryStateDto } from './models/deliveryStateDto';
export type { digitalEngagementTriggerDto } from "./models/digitalEngagementTriggerDto"; export type { digitalEngagementTriggerDto } from './models/digitalEngagementTriggerDto';
export type { discountProductOfferDto } from "./models/discountProductOfferDto"; export type { discountProductOfferDto } from './models/discountProductOfferDto';
export type { discountTotalOfferDto } from "./models/discountTotalOfferDto"; export type { discountTotalOfferDto } from './models/discountTotalOfferDto';
export { discountType } from "./models/discountType"; export { discountType } from './models/discountType';
export { dispatchMethodType } from "./models/dispatchMethodType"; export { dispatchMethodType } from './models/dispatchMethodType';
export type { freeDeliveryOfferDto } from "./models/freeDeliveryOfferDto"; export type { freeDeliveryOfferDto } from './models/freeDeliveryOfferDto';
export type { freeItemOfferDto } from "./models/freeItemOfferDto"; export type { freeItemOfferDto } from './models/freeItemOfferDto';
export type { gpsLocationDto } from "./models/gpsLocationDto"; export type { gpsLocationDto } from './models/gpsLocationDto';
export type { holidayTriggerDto } from "./models/holidayTriggerDto"; export type { holidayTriggerDto } from './models/holidayTriggerDto';
export type { humanVerificationRequestDto } from "./models/humanVerificationRequestDto"; export type { humanVerificationRequestDto } from './models/humanVerificationRequestDto';
export type { humanVerificationStatusDto } from "./models/humanVerificationStatusDto"; export type { humanVerificationStatusDto } from './models/humanVerificationStatusDto';
export type { imageReferenceDto } from "./models/imageReferenceDto"; export type { imageReferenceDto } from './models/imageReferenceDto';
export type { iTriggerDto } from "./models/iTriggerDto"; export type { iTriggerDto } from './models/iTriggerDto';
export type { localizedTextDto } from "./models/localizedTextDto"; export type { localizedTextDto } from './models/localizedTextDto';
export type { managerOverrideTriggerDto } from "./models/managerOverrideTriggerDto"; export type { managerOverrideTriggerDto } from './models/managerOverrideTriggerDto';
export type { oidcConnectResponseDto } from "./models/oidcConnectResponseDto"; export type { oidcConnectResponseDto } from './models/oidcConnectResponseDto';
export type { optionDto } from "./models/optionDto"; export type { optionDto } from './models/optionDto';
export type { optionsQueryDto } from "./models/optionsQueryDto"; export type { optionsQueryDto } from './models/optionsQueryDto';
export type { optionsRevisionDto } from "./models/optionsRevisionDto"; export type { optionsRevisionDto } from './models/optionsRevisionDto';
export type { optionsViewDto } from "./models/optionsViewDto"; export type { optionsViewDto } from './models/optionsViewDto';
export type { orderCreateDto } from "./models/orderCreateDto"; export type { orderCreateDto } from './models/orderCreateDto';
export type { orderDto } from "./models/orderDto"; export type { orderDto } from './models/orderDto';
export type { orderFailureRequestDto } from "./models/orderFailureRequestDto"; export type { orderFailureRequestDto } from './models/orderFailureRequestDto';
export type { orderNextStatusDto } from "./models/orderNextStatusDto"; export type { orderNextStatusDto } from './models/orderNextStatusDto';
export type { orderQueryRequestDto } from "./models/orderQueryRequestDto"; export type { orderQueryRequestDto } from './models/orderQueryRequestDto';
export type { orderStateChangeRequestDto } from "./models/orderStateChangeRequestDto"; export type { orderStateChangeRequestDto } from './models/orderStateChangeRequestDto';
export type { orderStateDto } from "./models/orderStateDto"; export type { orderStateDto } from './models/orderStateDto';
export { orderTriggerDto } from "./models/orderTriggerDto"; export { orderTriggerDto } from './models/orderTriggerDto';
export type { orderViewDto } from "./models/orderViewDto"; export type { orderViewDto } from './models/orderViewDto';
export { paymentType } from "./models/paymentType"; export { paymentType } from './models/paymentType';
export { phoneVerificationState } from "./models/phoneVerificationState"; export { phoneVerificationState } from './models/phoneVerificationState';
export type { preparationStateDto } from "./models/preparationStateDto"; export type { preparationStateDto } from './models/preparationStateDto';
export type { priceEstimationDto } from "./models/priceEstimationDto"; export type { priceEstimationDto } from './models/priceEstimationDto';
export type { priceEstimationRequestDto } from "./models/priceEstimationRequestDto"; export type { priceEstimationRequestDto } from './models/priceEstimationRequestDto';
export type { problemDetails } from "./models/problemDetails"; export type { problemDetails } from './models/problemDetails';
export type { productCompositeDto } from "./models/productCompositeDto"; export type { productCompositeDto } from './models/productCompositeDto';
export type { productDto } from "./models/productDto"; export type { productDto } from './models/productDto';
export type { productQueryRequestDto } from "./models/productQueryRequestDto"; export type { productQueryRequestDto } from './models/productQueryRequestDto';
export type { productRevisionDto } from "./models/productRevisionDto"; export type { productRevisionDto } from './models/productRevisionDto';
export type { productRevisionQueryRequestDto } from "./models/productRevisionQueryRequestDto"; export type { productRevisionQueryRequestDto } from './models/productRevisionQueryRequestDto';
export type { productStopListDto } from "./models/productStopListDto"; export type { productStopListDto } from './models/productStopListDto';
export type { productUnavailableDto } from "./models/productUnavailableDto"; export type { productUnavailableDto } from './models/productUnavailableDto';
export { productUnavailableReason } from "./models/productUnavailableReason"; export { productUnavailableReason } from './models/productUnavailableReason';
export type { promotionQueryRequestDto } from "./models/promotionQueryRequestDto"; export type { promotionQueryRequestDto } from './models/promotionQueryRequestDto';
export type { promotionViewDto } from "./models/promotionViewDto"; export type { promotionViewDto } from './models/promotionViewDto';
export type { purchaseTriggerDto } from "./models/purchaseTriggerDto"; export type { purchaseTriggerDto } from './models/purchaseTriggerDto';
export type { QueryResultDto_CategoryDto_ } from "./models/QueryResultDto_CategoryDto_"; export type { QueryResultDto_CategoryDto_ } from './models/QueryResultDto_CategoryDto_';
export type { QueryResultDto_CategoryRevisionDto_ } from "./models/QueryResultDto_CategoryRevisionDto_"; export type { QueryResultDto_CategoryRevisionDto_ } from './models/QueryResultDto_CategoryRevisionDto_';
export type { QueryResultDto_OptionsRevisionDto_ } from "./models/QueryResultDto_OptionsRevisionDto_"; export type { QueryResultDto_OptionsRevisionDto_ } from './models/QueryResultDto_OptionsRevisionDto_';
export type { QueryResultDto_OrderViewDto_ } from "./models/QueryResultDto_OrderViewDto_"; export type { QueryResultDto_OrderViewDto_ } from './models/QueryResultDto_OrderViewDto_';
export type { QueryResultDto_ProductRevisionDto_ } from "./models/QueryResultDto_ProductRevisionDto_"; export type { QueryResultDto_ProductRevisionDto_ } from './models/QueryResultDto_ProductRevisionDto_';
export type { QueryResultDto_PromotionViewDto_ } from "./models/QueryResultDto_PromotionViewDto_"; export type { QueryResultDto_PromotionViewDto_ } from './models/QueryResultDto_PromotionViewDto_';
export type { QueryResultDto_SellerDto_ } from "./models/QueryResultDto_SellerDto_"; export type { QueryResultDto_SellerDto_ } from './models/QueryResultDto_SellerDto_';
export type { QueryResultDto_SellerRevisionDto_ } from "./models/QueryResultDto_SellerRevisionDto_"; export type { QueryResultDto_SellerRevisionDto_ } from './models/QueryResultDto_SellerRevisionDto_';
export type { QueryResultDto_TextRevisionDto_ } from "./models/QueryResultDto_TextRevisionDto_"; export type { QueryResultDto_TextRevisionDto_ } from './models/QueryResultDto_TextRevisionDto_';
export type { QueryResultDto_UserDto_ } from "./models/QueryResultDto_UserDto_"; export type { QueryResultDto_UserDto_ } from './models/QueryResultDto_UserDto_';
export type { restaurantDto } from "./models/restaurantDto"; export type { restaurantDto } from './models/restaurantDto';
export type { restaurantRevisionDto } from "./models/restaurantRevisionDto"; export type { restaurantRevisionDto } from './models/restaurantRevisionDto';
export type { rolePermissionsDto } from "./models/rolePermissionsDto"; export type { rolePermissionsDto } from './models/rolePermissionsDto';
export type { scheduleDto } from "./models/scheduleDto"; export type { scheduleDto } from './models/scheduleDto';
export type { scheduleExceptionDto } from "./models/scheduleExceptionDto"; export type { scheduleExceptionDto } from './models/scheduleExceptionDto';
export type { selectedOptionDto } from "./models/selectedOptionDto"; export type { selectedOptionDto } from './models/selectedOptionDto';
export type { selectedProductDto } from "./models/selectedProductDto"; export type { selectedProductDto } from './models/selectedProductDto';
export type { sellerCompositeDto } from "./models/sellerCompositeDto"; export type { sellerCompositeDto } from './models/sellerCompositeDto';
export type { sellerDto } from "./models/sellerDto"; export type { sellerDto } from './models/sellerDto';
export type { sellerOperationalStateDto } from "./models/sellerOperationalStateDto"; export type { sellerOperationalStateDto } from './models/sellerOperationalStateDto';
export type { sellerOperationalStateTriggerDto } from "./models/sellerOperationalStateTriggerDto"; export type { sellerOperationalStateTriggerDto } from './models/sellerOperationalStateTriggerDto';
export type { sellerPublicAggregateFullDto } from "./models/sellerPublicAggregateFullDto"; export type { sellerPublicAggregateFullDto } from './models/sellerPublicAggregateFullDto';
export type { sellerQueryRequestDto } from "./models/sellerQueryRequestDto"; export type { sellerQueryRequestDto } from './models/sellerQueryRequestDto';
export type { sellerRevisionDto } from "./models/sellerRevisionDto"; export type { sellerRevisionDto } from './models/sellerRevisionDto';
export type { sellerRevisionQueryRequestDto } from "./models/sellerRevisionQueryRequestDto"; export type { sellerRevisionQueryRequestDto } from './models/sellerRevisionQueryRequestDto';
export type { sellerViewDto } from "./models/sellerViewDto"; export type { sellerViewDto } from './models/sellerViewDto';
export type { sessionIpResponseDto } from "./models/sessionIpResponseDto"; export type { sessionIpResponseDto } from './models/sessionIpResponseDto';
export { sessionStatus } from "./models/sessionStatus"; export { sessionStatus } from './models/sessionStatus';
export type { sessionStatusDto } from "./models/sessionStatusDto"; export type { sessionStatusDto } from './models/sessionStatusDto';
export type { signedAuthDocumentDto } from "./models/signedAuthDocumentDto"; export type { signedAuthDocumentDto } from './models/signedAuthDocumentDto';
export type { simpleContactDto } from "./models/simpleContactDto"; export type { simpleContactDto } from './models/simpleContactDto';
export type { startSessionResponseDto } from "./models/startSessionResponseDto"; export type { startSessionResponseDto } from './models/startSessionResponseDto';
export type { stopListTriggerDto } from "./models/stopListTriggerDto"; export type { stopListTriggerDto } from './models/stopListTriggerDto';
export type { systemSecurityDto } from "./models/systemSecurityDto"; export type { systemSecurityDto } from './models/systemSecurityDto';
export type { tag } from "./models/tag"; export type { tag } from './models/tag';
export type { textQueryRequestDto } from "./models/textQueryRequestDto"; export type { textQueryRequestDto } from './models/textQueryRequestDto';
export type { textRevisionDto } from "./models/textRevisionDto"; export type { textRevisionDto } from './models/textRevisionDto';
export type { timeRangeDto } from "./models/timeRangeDto"; export type { timeRangeDto } from './models/timeRangeDto';
export type { timeTriggerDto } from "./models/timeTriggerDto"; export type { timeTriggerDto } from './models/timeTriggerDto';
export { triggerEffect } from "./models/triggerEffect"; export { triggerEffect } from './models/triggerEffect';
export type { updatePermissionsRequest } from "./models/updatePermissionsRequest"; export type { updatePermissionsRequest } from './models/updatePermissionsRequest';
export type { userDto } from "./models/userDto"; export type { userDto } from './models/userDto';
export type { userQueryRequest } from "./models/userQueryRequest"; export type { userQueryRequest } from './models/userQueryRequest';
export type { verifiedValueDto } from "./models/verifiedValueDto"; export type { verifiedValueDto } from './models/verifiedValueDto';
export { versionCheck } from "./models/versionCheck"; export { versionCheck } from './models/versionCheck';
export { AiService } from "./services/AiService"; export { AiService } from './services/AiService';
export { AuthenticationService } from "./services/AuthenticationService"; export { AuthenticationService } from './services/AuthenticationService';
export { CategoriesCanonicalService } from "./services/CategoriesCanonicalService"; export { CategoriesCanonicalService } from './services/CategoriesCanonicalService';
export { CategoriesRevisionsService } from "./services/CategoriesRevisionsService"; export { CategoriesRevisionsService } from './services/CategoriesRevisionsService';
export { CategoriesViewsService } from "./services/CategoriesViewsService"; export { CategoriesViewsService } from './services/CategoriesViewsService';
export { DeliveriesService } from "./services/DeliveriesService"; export { DeliveriesService } from './services/DeliveriesService';
export { ImagesService } from "./services/ImagesService"; export { ImagesService } from './services/ImagesService';
export { OidcService } from "./services/OidcService"; export { OidcService } from './services/OidcService';
export { OrdersService } from "./services/OrdersService"; export { OrdersService } from './services/OrdersService';
export { OrdersBasketService } from "./services/OrdersBasketService"; export { OrdersBasketService } from './services/OrdersBasketService';
export { ProductOptionsRevisionsService } from "./services/ProductOptionsRevisionsService"; export { ProductOptionsRevisionsService } from './services/ProductOptionsRevisionsService';
export { ProductsCanonicalService } from "./services/ProductsCanonicalService"; export { ProductsCanonicalService } from './services/ProductsCanonicalService';
export { ProductsRevisionsService } from "./services/ProductsRevisionsService"; export { ProductsRevisionsService } from './services/ProductsRevisionsService';
export { ProductsViewsService } from "./services/ProductsViewsService"; export { ProductsViewsService } from './services/ProductsViewsService';
export { PromotionsService } from "./services/PromotionsService"; export { PromotionsService } from './services/PromotionsService';
export { SecurityService } from "./services/SecurityService"; export { SecurityService } from './services/SecurityService';
export { SellersCanonicalService } from "./services/SellersCanonicalService"; export { SellersCanonicalService } from './services/SellersCanonicalService';
export { SellersRevisionsService } from "./services/SellersRevisionsService"; export { SellersRevisionsService } from './services/SellersRevisionsService';
export { SellersViewsService } from "./services/SellersViewsService"; export { SellersViewsService } from './services/SellersViewsService';
export { ServerSideEventsService } from "./services/ServerSideEventsService"; export { ServerSideEventsService } from './services/ServerSideEventsService';
export { SystemService } from "./services/SystemService"; export { SystemService } from './services/SystemService';
export { TestsService } from "./services/TestsService"; export { TestsService } from './services/TestsService';
export { TranslatableTextRevisionsService } from "./services/TranslatableTextRevisionsService"; export { TranslatableTextRevisionsService } from './services/TranslatableTextRevisionsService';
export { UserService } from "./services/UserService"; export { UserService } from './services/UserService';
export { VerificationsService } from "./services/VerificationsService"; export { VerificationsService } from './services/VerificationsService';
export { WebService } from "./services/WebService"; export { WebService } from './services/WebService';

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { categoryDto } from "./categoryDto"; import type { categoryDto } from './categoryDto';
/** /**
* The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed. * The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed.
* It is important to populate this field with the server's time at the beginning of the query execution. * It is important to populate this field with the server's time at the beginning of the query execution.
@ -11,3 +11,4 @@ export type QueryResultDto_CategoryDto_ = {
serverTimeUtc?: string; serverTimeUtc?: string;
results?: Array<categoryDto>; results?: Array<categoryDto>;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { categoryRevisionDto } from "./categoryRevisionDto"; import type { categoryRevisionDto } from './categoryRevisionDto';
/** /**
* The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed. * The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed.
* It is important to populate this field with the server's time at the beginning of the query execution. * It is important to populate this field with the server's time at the beginning of the query execution.
@ -11,3 +11,4 @@ export type QueryResultDto_CategoryRevisionDto_ = {
serverTimeUtc?: string; serverTimeUtc?: string;
results?: Array<categoryRevisionDto>; results?: Array<categoryRevisionDto>;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { optionsRevisionDto } from "./optionsRevisionDto"; import type { optionsRevisionDto } from './optionsRevisionDto';
/** /**
* The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed. * The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed.
* It is important to populate this field with the server's time at the beginning of the query execution. * It is important to populate this field with the server's time at the beginning of the query execution.
@ -11,3 +11,4 @@ export type QueryResultDto_OptionsRevisionDto_ = {
serverTimeUtc?: string; serverTimeUtc?: string;
results?: Array<optionsRevisionDto>; results?: Array<optionsRevisionDto>;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { orderViewDto } from "./orderViewDto"; import type { orderViewDto } from './orderViewDto';
/** /**
* The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed. * The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed.
* It is important to populate this field with the server's time at the beginning of the query execution. * It is important to populate this field with the server's time at the beginning of the query execution.
@ -11,3 +11,4 @@ export type QueryResultDto_OrderViewDto_ = {
serverTimeUtc?: string; serverTimeUtc?: string;
results?: Array<orderViewDto>; results?: Array<orderViewDto>;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { productRevisionDto } from "./productRevisionDto"; import type { productRevisionDto } from './productRevisionDto';
/** /**
* The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed. * The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed.
* It is important to populate this field with the server's time at the beginning of the query execution. * It is important to populate this field with the server's time at the beginning of the query execution.
@ -11,3 +11,4 @@ export type QueryResultDto_ProductRevisionDto_ = {
serverTimeUtc?: string; serverTimeUtc?: string;
results?: Array<productRevisionDto>; results?: Array<productRevisionDto>;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { promotionViewDto } from "./promotionViewDto"; import type { promotionViewDto } from './promotionViewDto';
/** /**
* The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed. * The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed.
* It is important to populate this field with the server's time at the beginning of the query execution. * It is important to populate this field with the server's time at the beginning of the query execution.
@ -11,3 +11,4 @@ export type QueryResultDto_PromotionViewDto_ = {
serverTimeUtc?: string; serverTimeUtc?: string;
results?: Array<promotionViewDto>; results?: Array<promotionViewDto>;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { sellerDto } from "./sellerDto"; import type { sellerDto } from './sellerDto';
/** /**
* The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed. * The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed.
* It is important to populate this field with the server's time at the beginning of the query execution. * It is important to populate this field with the server's time at the beginning of the query execution.
@ -11,3 +11,4 @@ export type QueryResultDto_SellerDto_ = {
serverTimeUtc?: string; serverTimeUtc?: string;
results?: Array<sellerDto>; results?: Array<sellerDto>;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { sellerRevisionDto } from "./sellerRevisionDto"; import type { sellerRevisionDto } from './sellerRevisionDto';
/** /**
* The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed. * The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed.
* It is important to populate this field with the server's time at the beginning of the query execution. * It is important to populate this field with the server's time at the beginning of the query execution.
@ -11,3 +11,4 @@ export type QueryResultDto_SellerRevisionDto_ = {
serverTimeUtc?: string; serverTimeUtc?: string;
results?: Array<sellerRevisionDto>; results?: Array<sellerRevisionDto>;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { textRevisionDto } from "./textRevisionDto"; import type { textRevisionDto } from './textRevisionDto';
/** /**
* The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed. * The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed.
* It is important to populate this field with the server's time at the beginning of the query execution. * It is important to populate this field with the server's time at the beginning of the query execution.
@ -11,3 +11,4 @@ export type QueryResultDto_TextRevisionDto_ = {
serverTimeUtc?: string; serverTimeUtc?: string;
results?: Array<textRevisionDto>; results?: Array<textRevisionDto>;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { userDto } from "./userDto"; import type { userDto } from './userDto';
/** /**
* The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed. * The UTC server time is included in the response to allow the client to know (by the server's clock) when the query was performed.
* It is important to populate this field with the server's time at the beginning of the query execution. * It is important to populate this field with the server's time at the beginning of the query execution.
@ -11,3 +11,4 @@ export type QueryResultDto_UserDto_ = {
serverTimeUtc?: string; serverTimeUtc?: string;
results?: Array<userDto>; results?: Array<userDto>;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { addressType } from "./addressType"; import type { addressType } from './addressType';
export type addressDto = { export type addressDto = {
/** /**
* Primary address line; required and defaults to an empty string. * Primary address line; required and defaults to an empty string.
@ -42,3 +42,4 @@ export type addressDto = {
region?: string | null; region?: string | null;
type?: addressType; type?: addressType;
}; };

View File

@ -16,3 +16,4 @@ export type assetCollectionDto = {
*/ */
digests?: Array<string> | null; digests?: Array<string> | null;
}; };

View File

@ -28,3 +28,4 @@ export type authDocumentDto = {
*/ */
publicKey: string; publicKey: string;
}; };

View File

@ -23,3 +23,4 @@ export type authHeaderResponseDto = {
*/ */
utcExpires: string; utcExpires: string;
}; };

View File

@ -11,3 +11,4 @@ export type authenticationResultDto = {
*/ */
sessionId: string | null; sessionId: string | null;
}; };

View File

@ -2,21 +2,18 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { addressDto } from "./addressDto"; import type { addressDto } from './addressDto';
import type { createRestaurantRevisionDto } from "./createRestaurantRevisionDto"; import type { createRestaurantRevisionDto } from './createRestaurantRevisionDto';
import type { createSellerRevisionDto } from "./createSellerRevisionDto"; import type { createSellerRevisionDto } from './createSellerRevisionDto';
import type { gpsLocationDto } from "./gpsLocationDto"; import type { gpsLocationDto } from './gpsLocationDto';
import type { imageReferenceDto } from "./imageReferenceDto"; import type { imageReferenceDto } from './imageReferenceDto';
import type { scheduleDto } from "./scheduleDto"; import type { scheduleDto } from './scheduleDto';
import type { simpleContactDto } from "./simpleContactDto"; import type { simpleContactDto } from './simpleContactDto';
/** /**
* Base class for seller data transfer objects, encapsulating common seller properties. * Base class for seller data transfer objects, encapsulating common seller properties.
* Restaurants, farms, shops and other merchants inherit this class. * Restaurants, farms, shops and other merchants inherit this class.
*/ */
export type baseCreateSellerRevisionDto = export type baseCreateSellerRevisionDto = (createRestaurantRevisionDto | createSellerRevisionDto | {
| createRestaurantRevisionDto
| createSellerRevisionDto
| {
/** /**
* Version number of the document. * Version number of the document.
*/ */
@ -34,4 +31,5 @@ export type baseCreateSellerRevisionDto =
*/ */
images?: Array<imageReferenceDto> | null; images?: Array<imageReferenceDto> | null;
type?: string; type?: string;
}; });

View File

@ -2,17 +2,12 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { bundleDiscountOfferDto } from "./bundleDiscountOfferDto"; import type { bundleDiscountOfferDto } from './bundleDiscountOfferDto';
import type { discountProductOfferDto } from "./discountProductOfferDto"; import type { discountProductOfferDto } from './discountProductOfferDto';
import type { discountTotalOfferDto } from "./discountTotalOfferDto"; import type { discountTotalOfferDto } from './discountTotalOfferDto';
import type { freeDeliveryOfferDto } from "./freeDeliveryOfferDto"; import type { freeDeliveryOfferDto } from './freeDeliveryOfferDto';
import type { freeItemOfferDto } from "./freeItemOfferDto"; import type { freeItemOfferDto } from './freeItemOfferDto';
export type baseOfferDto = export type baseOfferDto = (discountTotalOfferDto | discountProductOfferDto | freeDeliveryOfferDto | freeItemOfferDto | bundleDiscountOfferDto | {
| discountTotalOfferDto
| discountProductOfferDto
| freeDeliveryOfferDto
| freeItemOfferDto
| bundleDiscountOfferDto
| {
readonly type?: string | null; readonly type?: string | null;
}; });

View File

@ -2,8 +2,9 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { triggerEffect } from "./triggerEffect"; import type { triggerEffect } from './triggerEffect';
export type baseTriggerDto = { export type baseTriggerDto = {
readonly type?: string | null; readonly type?: string | null;
effect?: triggerEffect; effect?: triggerEffect;
}; };

View File

@ -2,9 +2,9 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { dispatchMethodType } from "./dispatchMethodType"; import type { dispatchMethodType } from './dispatchMethodType';
import type { gpsLocationDto } from "./gpsLocationDto"; import type { gpsLocationDto } from './gpsLocationDto';
import type { selectedProductDto } from "./selectedProductDto"; import type { selectedProductDto } from './selectedProductDto';
/** /**
* Represents a customer's basket containing selected products for checkout processing. * Represents a customer's basket containing selected products for checkout processing.
*/ */
@ -42,3 +42,4 @@ export type basketDto = {
value?: number; value?: number;
} | null; } | null;
}; };

View File

@ -2,10 +2,11 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { discountType } from "./discountType"; import type { discountType } from './discountType';
export type bundleDiscountOfferDto = { export type bundleDiscountOfferDto = {
readonly type?: "bundle_discount" | null; readonly type?: 'bundle_discount' | null;
productIds: Array<string> | null; productIds: Array<string> | null;
discountType: discountType; discountType: discountType;
value: number; value: number;
}; };

View File

@ -2,9 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { triggerEffect } from "./triggerEffect"; import type { triggerEffect } from './triggerEffect';
export type bundleTriggerDto = { export type bundleTriggerDto = {
effect?: triggerEffect; effect?: triggerEffect;
productIds?: Array<string> | null; productIds?: Array<string> | null;
readonly type?: "bundle" | null; readonly type?: 'bundle' | null;
}; };

View File

@ -2,8 +2,8 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { calculatedProductDto } from "./calculatedProductDto"; import type { calculatedProductDto } from './calculatedProductDto';
import type { productUnavailableDto } from "./productUnavailableDto"; import type { productUnavailableDto } from './productUnavailableDto';
/** /**
* Represents a calculated checkout with comprehensive pricing information for all items, including taxes, discounts, and delivery fees. * Represents a calculated checkout with comprehensive pricing information for all items, including taxes, discounts, and delivery fees.
*/ */
@ -83,16 +83,13 @@ export type calculatedCheckoutDto = {
/** /**
* Gets or sets additional charges or fees associated with this checkout. * Gets or sets additional charges or fees associated with this checkout.
*/ */
extras?: Record< extras?: Record<string, {
string,
{
/** /**
* Currency code ISO 4217 * Currency code ISO 4217
*/ */
currency?: string; currency?: string;
value?: number; value?: number;
} }> | null;
> | null;
/** /**
* Gets or sets the final total price of this checkout after all calculations. * Gets or sets the final total price of this checkout after all calculations.
*/ */
@ -120,3 +117,4 @@ export type calculatedCheckoutDto = {
*/ */
cashChangeHint2?: number | null; cashChangeHint2?: number | null;
}; };

View File

@ -37,16 +37,13 @@ export type calculatedProductDto = {
/** /**
* Gets or sets additional charges or fees associated with this product. * Gets or sets additional charges or fees associated with this product.
*/ */
extras?: Record< extras?: Record<string, {
string,
{
/** /**
* Currency code ISO 4217 * Currency code ISO 4217
*/ */
currency?: string; currency?: string;
value?: number; value?: number;
} }> | null;
> | null;
/** /**
* Gets or sets the final price of this product after all calculations. * Gets or sets the final price of this product after all calculations.
*/ */
@ -62,3 +59,4 @@ export type calculatedProductDto = {
*/ */
activePromotionIds?: Array<string> | null; activePromotionIds?: Array<string> | null;
}; };

View File

@ -2,10 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { imageReferenceDto } from "./imageReferenceDto"; import type { imageReferenceDto } from './imageReferenceDto';
import type { localizedTextDto } from "./localizedTextDto"; import type { localizedTextDto } from './localizedTextDto';
import type { scheduleDto } from "./scheduleDto"; import type { scheduleDto } from './scheduleDto';
import type { tag } from "./tag"; import type { tag } from './tag';
export type categoryCompositeDto = { export type categoryCompositeDto = {
tags?: Array<tag> | null; tags?: Array<tag> | null;
additional?: Record<string, any> | null; additional?: Record<string, any> | null;
@ -20,3 +20,4 @@ export type categoryCompositeDto = {
isAvailable?: boolean; isAvailable?: boolean;
isStopListed?: boolean; isStopListed?: boolean;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { iTriggerDto } from "./iTriggerDto"; import type { iTriggerDto } from './iTriggerDto';
export type categoryDto = { export type categoryDto = {
promotionIds?: Array<string> | null; promotionIds?: Array<string> | null;
sellerId?: string; sellerId?: string;
@ -11,3 +11,4 @@ export type categoryDto = {
updatedByUserId?: string; updatedByUserId?: string;
utcUpdated?: string; utcUpdated?: string;
}; };

View File

@ -8,3 +8,4 @@ export type categoryQueryRequestDto = {
offset?: number; offset?: number;
limit?: number; limit?: number;
}; };

View File

@ -2,10 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { imageReferenceDto } from "./imageReferenceDto"; import type { imageReferenceDto } from './imageReferenceDto';
import type { localizedTextDto } from "./localizedTextDto"; import type { localizedTextDto } from './localizedTextDto';
import type { scheduleDto } from "./scheduleDto"; import type { scheduleDto } from './scheduleDto';
import type { tag } from "./tag"; import type { tag } from './tag';
export type categoryRevisionDto = { export type categoryRevisionDto = {
tags?: Array<tag> | null; tags?: Array<tag> | null;
additional?: Record<string, any> | null; additional?: Record<string, any> | null;
@ -22,3 +22,4 @@ export type categoryRevisionDto = {
utcPublished?: string | null; utcPublished?: string | null;
publishedByUserId?: string | null; publishedByUserId?: string | null;
}; };

View File

@ -12,3 +12,4 @@ export type categoryRevisionQueryRequestDto = {
publishedByUserId?: string | null; publishedByUserId?: string | null;
utcCreated?: string | null; utcCreated?: string | null;
}; };

View File

@ -5,3 +5,4 @@
export type categoryStopListDto = { export type categoryStopListDto = {
categoryIds: Array<string>; categoryIds: Array<string>;
}; };

View File

@ -2,10 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { imageReferenceDto } from "./imageReferenceDto"; import type { imageReferenceDto } from './imageReferenceDto';
import type { localizedTextDto } from "./localizedTextDto"; import type { localizedTextDto } from './localizedTextDto';
import type { scheduleDto } from "./scheduleDto"; import type { scheduleDto } from './scheduleDto';
import type { tag } from "./tag"; import type { tag } from './tag';
export type categoryViewDto = { export type categoryViewDto = {
tags?: Array<tag> | null; tags?: Array<tag> | null;
additional?: Record<string, any> | null; additional?: Record<string, any> | null;
@ -17,3 +17,4 @@ export type categoryViewDto = {
title?: localizedTextDto; title?: localizedTextDto;
description?: localizedTextDto; description?: localizedTextDto;
}; };

View File

@ -2,9 +2,9 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { deliveryLocationDto } from "./deliveryLocationDto"; import type { deliveryLocationDto } from './deliveryLocationDto';
import type { dispatchMethodType } from "./dispatchMethodType"; import type { dispatchMethodType } from './dispatchMethodType';
import type { simpleContactDto } from "./simpleContactDto"; import type { simpleContactDto } from './simpleContactDto';
/** /**
* Data transfer object for restaurant checkout options * Data transfer object for restaurant checkout options
*/ */
@ -25,3 +25,4 @@ export type checkoutOptionsDto = {
*/ */
isCommunityChangeEnabled?: boolean; isCommunityChangeEnabled?: boolean;
}; };

View File

@ -2,9 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { triggerEffect } from "./triggerEffect"; import type { triggerEffect } from './triggerEffect';
export type couponTriggerDto = { export type couponTriggerDto = {
effect?: triggerEffect; effect?: triggerEffect;
readonly type?: "coupon" | null; readonly type?: 'coupon' | null;
code: string | null; code: string | null;
}; };

View File

@ -10,3 +10,4 @@ export type courierInfoDto = {
name?: string | null; name?: string | null;
phoneNumber?: string | null; phoneNumber?: string | null;
}; };

View File

@ -2,9 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { iTriggerDto } from "./iTriggerDto"; import type { iTriggerDto } from './iTriggerDto';
export type createCategoryDto = { export type createCategoryDto = {
promotionIds?: Array<string> | null; promotionIds?: Array<string> | null;
sellerId?: string; sellerId?: string;
availabilityTriggers?: Array<iTriggerDto> | null; availabilityTriggers?: Array<iTriggerDto> | null;
}; };

View File

@ -2,9 +2,9 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { imageReferenceDto } from "./imageReferenceDto"; import type { imageReferenceDto } from './imageReferenceDto';
import type { scheduleDto } from "./scheduleDto"; import type { scheduleDto } from './scheduleDto';
import type { tag } from "./tag"; import type { tag } from './tag';
export type createCategoryRevisionDto = { export type createCategoryRevisionDto = {
tags?: Array<tag> | null; tags?: Array<tag> | null;
additional?: Record<string, any> | null; additional?: Record<string, any> | null;
@ -12,3 +12,4 @@ export type createCategoryRevisionDto = {
schedule?: scheduleDto; schedule?: scheduleDto;
sortOrder?: number; sortOrder?: number;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { optionDto } from "./optionDto"; import type { optionDto } from './optionDto';
export type createOptionsRevisionDto = { export type createOptionsRevisionDto = {
friendlyName?: string | null; friendlyName?: string | null;
minRequired?: number; minRequired?: number;
@ -18,3 +18,4 @@ export type createOptionsRevisionDto = {
options?: Array<optionDto> | null; options?: Array<optionDto> | null;
additional?: Record<string, any> | null; additional?: Record<string, any> | null;
}; };

View File

@ -2,8 +2,9 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { iTriggerDto } from "./iTriggerDto"; import type { iTriggerDto } from './iTriggerDto';
export type createProductDto = { export type createProductDto = {
sellerId?: string; sellerId?: string;
availabilityTriggers?: Array<iTriggerDto> | null; availabilityTriggers?: Array<iTriggerDto> | null;
}; };

View File

@ -2,10 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { assetCollectionDto } from "./assetCollectionDto"; import type { assetCollectionDto } from './assetCollectionDto';
import type { imageReferenceDto } from "./imageReferenceDto"; import type { imageReferenceDto } from './imageReferenceDto';
import type { scheduleDto } from "./scheduleDto"; import type { scheduleDto } from './scheduleDto';
import type { tag } from "./tag"; import type { tag } from './tag';
export type createProductRevisionDto = { export type createProductRevisionDto = {
price?: { price?: {
/** /**
@ -25,3 +25,4 @@ export type createProductRevisionDto = {
images?: Array<imageReferenceDto> | null; images?: Array<imageReferenceDto> | null;
schedule?: scheduleDto; schedule?: scheduleDto;
}; };

View File

@ -2,9 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { baseOfferDto } from "./baseOfferDto"; import type { baseOfferDto } from './baseOfferDto';
import type { baseTriggerDto } from "./baseTriggerDto"; import type { baseTriggerDto } from './baseTriggerDto';
export type createPromotionDto = { export type createPromotionDto = {
triggers?: Array<baseTriggerDto> | null; triggers?: Array<baseTriggerDto> | null;
offer: baseOfferDto; offer: baseOfferDto;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { iTriggerDto } from "./iTriggerDto"; import type { iTriggerDto } from './iTriggerDto';
/** /**
* Create a new restaurant. * Create a new restaurant.
*/ */
@ -20,5 +20,6 @@ export type createRestaurantDto = {
* The availability triggers. * The availability triggers.
*/ */
availabilityTriggers?: Array<iTriggerDto> | null; availabilityTriggers?: Array<iTriggerDto> | null;
readonly type?: "restaurant" | null; readonly type?: 'restaurant' | null;
}; };

View File

@ -2,11 +2,11 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { addressDto } from "./addressDto"; import type { addressDto } from './addressDto';
import type { gpsLocationDto } from "./gpsLocationDto"; import type { gpsLocationDto } from './gpsLocationDto';
import type { imageReferenceDto } from "./imageReferenceDto"; import type { imageReferenceDto } from './imageReferenceDto';
import type { scheduleDto } from "./scheduleDto"; import type { scheduleDto } from './scheduleDto';
import type { simpleContactDto } from "./simpleContactDto"; import type { simpleContactDto } from './simpleContactDto';
/** /**
* Represents a restaurant with seller details and associated tags. * Represents a restaurant with seller details and associated tags.
*/ */
@ -42,3 +42,4 @@ export type createRestaurantRevisionDto = {
*/ */
tags?: Array<string> | null; tags?: Array<string> | null;
}; };

View File

@ -2,20 +2,15 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { createRestaurantDto } from "./createRestaurantDto"; import type { createRestaurantDto } from './createRestaurantDto';
import type { iTriggerDto } from "./iTriggerDto"; import type { iTriggerDto } from './iTriggerDto';
import type { restaurantDto } from "./restaurantDto"; import type { restaurantDto } from './restaurantDto';
import type { sellerDto } from "./sellerDto"; import type { sellerDto } from './sellerDto';
/** /**
* Base class for seller data transfer objects, encapsulating common seller properties. * Base class for seller data transfer objects, encapsulating common seller properties.
* Restaurants, farms, shops and other merchants inherit this class. * Restaurants, farms, shops and other merchants inherit this class.
*/ */
export type createSellerDto = export type createSellerDto = (createRestaurantDto | any | sellerDto | restaurantDto | {
| createRestaurantDto
| any
| sellerDto
| restaurantDto
| {
/** /**
* The document type 'restaurant' or 'shop'. * The document type 'restaurant' or 'shop'.
*/ */
@ -33,4 +28,5 @@ export type createSellerDto =
* The availability triggers. * The availability triggers.
*/ */
availabilityTriggers?: Array<iTriggerDto> | null; availabilityTriggers?: Array<iTriggerDto> | null;
}; });

View File

@ -2,11 +2,11 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { addressDto } from "./addressDto"; import type { addressDto } from './addressDto';
import type { gpsLocationDto } from "./gpsLocationDto"; import type { gpsLocationDto } from './gpsLocationDto';
import type { imageReferenceDto } from "./imageReferenceDto"; import type { imageReferenceDto } from './imageReferenceDto';
import type { scheduleDto } from "./scheduleDto"; import type { scheduleDto } from './scheduleDto';
import type { simpleContactDto } from "./simpleContactDto"; import type { simpleContactDto } from './simpleContactDto';
export type createSellerRevisionDto = { export type createSellerRevisionDto = {
/** /**
* Version number of the document. * Version number of the document.
@ -25,3 +25,4 @@ export type createSellerRevisionDto = {
*/ */
images?: Array<imageReferenceDto> | null; images?: Array<imageReferenceDto> | null;
}; };

View File

@ -8,3 +8,4 @@ export type createTextRevisionDto = {
lang?: string | null; lang?: string | null;
value?: string | null; value?: string | null;
}; };

View File

@ -2,9 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { triggerEffect } from "./triggerEffect"; import type { triggerEffect } from './triggerEffect';
export type customerGroupTriggerDto = { export type customerGroupTriggerDto = {
effect?: triggerEffect; effect?: triggerEffect;
readonly type?: "customer_group" | null; readonly type?: 'customer_group' | null;
customerValue: string | null; customerValue: string | null;
}; };

View File

@ -2,9 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { triggerEffect } from "./triggerEffect"; import type { triggerEffect } from './triggerEffect';
export type customerHistoryTriggerDto = { export type customerHistoryTriggerDto = {
effect?: triggerEffect; effect?: triggerEffect;
readonly type?: "customer_history" | null; readonly type?: 'customer_history' | null;
customerValue: string | null; customerValue: string | null;
}; };

View File

@ -2,9 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { triggerEffect } from "./triggerEffect"; import type { triggerEffect } from './triggerEffect';
export type customerLoyaltyTriggerDto = { export type customerLoyaltyTriggerDto = {
effect?: triggerEffect; effect?: triggerEffect;
readonly type?: "customer_loyalty" | null; readonly type?: 'customer_loyalty' | null;
customerValue: string | null; customerValue: string | null;
}; };

View File

@ -16,3 +16,4 @@ export type deliveryAddressDto = {
comment?: string | null; comment?: string | null;
additionalInfo?: string | null; additionalInfo?: string | null;
}; };

View File

@ -2,8 +2,8 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { deliveryAddressDto } from "./deliveryAddressDto"; import type { deliveryAddressDto } from './deliveryAddressDto';
import type { gpsLocationDto } from "./gpsLocationDto"; import type { gpsLocationDto } from './gpsLocationDto';
/** /**
* Data transfer object for delivery location information * Data transfer object for delivery location information
*/ */
@ -23,3 +23,4 @@ export type deliveryLocationDto = {
*/ */
instructions?: string | null; instructions?: string | null;
}; };

View File

@ -2,9 +2,9 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { courierInfoDto } from "./courierInfoDto"; import type { courierInfoDto } from './courierInfoDto';
import type { deliveryFailureResult } from "./deliveryFailureResult"; import type { deliveryFailureResult } from './deliveryFailureResult';
import type { deliveryOrderStatus } from "./deliveryOrderStatus"; import type { deliveryOrderStatus } from './deliveryOrderStatus';
/** /**
* Data transfer object for delivery information * Data transfer object for delivery information
*/ */
@ -38,3 +38,4 @@ export type deliveryStateDto = {
dispatchRequired?: boolean | null; dispatchRequired?: boolean | null;
dspOrderId?: string | null; dspOrderId?: string | null;
}; };

View File

@ -2,9 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { triggerEffect } from "./triggerEffect"; import type { triggerEffect } from './triggerEffect';
export type digitalEngagementTriggerDto = { export type digitalEngagementTriggerDto = {
effect?: triggerEffect; effect?: triggerEffect;
readonly type?: "digital_engagement" | null; readonly type?: 'digital_engagement' | null;
action: string | null; action: string | null;
}; };

View File

@ -2,10 +2,11 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { discountType } from "./discountType"; import type { discountType } from './discountType';
export type discountProductOfferDto = { export type discountProductOfferDto = {
readonly type?: "discount_product" | null; readonly type?: 'discount_product' | null;
discountType: discountType; discountType: discountType;
value: number; value: number;
productIds: Array<string> | null; productIds: Array<string> | null;
}; };

View File

@ -2,9 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { discountType } from "./discountType"; import type { discountType } from './discountType';
export type discountTotalOfferDto = { export type discountTotalOfferDto = {
readonly type?: "discount_total" | null; readonly type?: 'discount_total' | null;
discountType: discountType; discountType: discountType;
value: number; value: number;
}; };

View File

@ -3,6 +3,7 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
export type freeDeliveryOfferDto = { export type freeDeliveryOfferDto = {
readonly type?: "free_delivery" | null; readonly type?: 'free_delivery' | null;
minPurchaseAmount?: number | null; minPurchaseAmount?: number | null;
}; };

View File

@ -3,7 +3,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
export type freeItemOfferDto = { export type freeItemOfferDto = {
readonly type?: "free_item" | null; readonly type?: 'free_item' | null;
productIds: Array<string> | null; productIds: Array<string> | null;
quantity: number; quantity: number;
}; };

View File

@ -17,3 +17,4 @@ export type gpsLocationDto = {
*/ */
longitude?: number; longitude?: number;
}; };

View File

@ -2,9 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { triggerEffect } from "./triggerEffect"; import type { triggerEffect } from './triggerEffect';
export type holidayTriggerDto = { export type holidayTriggerDto = {
effect?: triggerEffect; effect?: triggerEffect;
readonly type?: "holiday" | null; readonly type?: 'holiday' | null;
holiday: string | null; holiday: string | null;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { phoneVerificationState } from "./phoneVerificationState"; import type { phoneVerificationState } from './phoneVerificationState';
/** /**
* DTO for Human verification of public key by phone number. * DTO for Human verification of public key by phone number.
*/ */
@ -17,3 +17,4 @@ export type humanVerificationRequestDto = {
phoneNumber?: string | null; phoneNumber?: string | null;
state?: phoneVerificationState; state?: phoneVerificationState;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { phoneVerificationState } from "./phoneVerificationState"; import type { phoneVerificationState } from './phoneVerificationState';
/** /**
* The status of a Human verification process. * The status of a Human verification process.
*/ */
@ -17,3 +17,4 @@ export type humanVerificationStatusDto = {
phoneNumber?: string | null; phoneNumber?: string | null;
state?: phoneVerificationState; state?: phoneVerificationState;
}; };

View File

@ -2,33 +2,21 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { bundleTriggerDto } from "./bundleTriggerDto"; import type { bundleTriggerDto } from './bundleTriggerDto';
import type { couponTriggerDto } from "./couponTriggerDto"; import type { couponTriggerDto } from './couponTriggerDto';
import type { customerGroupTriggerDto } from "./customerGroupTriggerDto"; import type { customerGroupTriggerDto } from './customerGroupTriggerDto';
import type { customerHistoryTriggerDto } from "./customerHistoryTriggerDto"; import type { customerHistoryTriggerDto } from './customerHistoryTriggerDto';
import type { customerLoyaltyTriggerDto } from "./customerLoyaltyTriggerDto"; import type { customerLoyaltyTriggerDto } from './customerLoyaltyTriggerDto';
import type { digitalEngagementTriggerDto } from "./digitalEngagementTriggerDto"; import type { digitalEngagementTriggerDto } from './digitalEngagementTriggerDto';
import type { holidayTriggerDto } from "./holidayTriggerDto"; import type { holidayTriggerDto } from './holidayTriggerDto';
import type { managerOverrideTriggerDto } from "./managerOverrideTriggerDto"; import type { managerOverrideTriggerDto } from './managerOverrideTriggerDto';
import type { purchaseTriggerDto } from "./purchaseTriggerDto"; import type { purchaseTriggerDto } from './purchaseTriggerDto';
import type { sellerOperationalStateTriggerDto } from "./sellerOperationalStateTriggerDto"; import type { sellerOperationalStateTriggerDto } from './sellerOperationalStateTriggerDto';
import type { stopListTriggerDto } from "./stopListTriggerDto"; import type { stopListTriggerDto } from './stopListTriggerDto';
import type { timeTriggerDto } from "./timeTriggerDto"; import type { timeTriggerDto } from './timeTriggerDto';
import type { triggerEffect } from "./triggerEffect"; import type { triggerEffect } from './triggerEffect';
export type iTriggerDto = export type iTriggerDto = (timeTriggerDto | purchaseTriggerDto | managerOverrideTriggerDto | holidayTriggerDto | digitalEngagementTriggerDto | customerLoyaltyTriggerDto | customerHistoryTriggerDto | customerGroupTriggerDto | couponTriggerDto | bundleTriggerDto | sellerOperationalStateTriggerDto | stopListTriggerDto | {
| timeTriggerDto
| purchaseTriggerDto
| managerOverrideTriggerDto
| holidayTriggerDto
| digitalEngagementTriggerDto
| customerLoyaltyTriggerDto
| customerHistoryTriggerDto
| customerGroupTriggerDto
| couponTriggerDto
| bundleTriggerDto
| sellerOperationalStateTriggerDto
| stopListTriggerDto
| {
effect?: triggerEffect; effect?: triggerEffect;
type?: string; type?: string;
}; });

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { aspectType } from "./aspectType"; import type { aspectType } from './aspectType';
export type imageReferenceDto = { export type imageReferenceDto = {
/** /**
* The key refers to the particular image in a set of images. * The key refers to the particular image in a set of images.
@ -21,3 +21,4 @@ export type imageReferenceDto = {
*/ */
aspects: Array<aspectType> | null; aspects: Array<aspectType> | null;
}; };

View File

@ -8,3 +8,4 @@ export type localizedTextDto = {
lang?: string | null; lang?: string | null;
revisionId?: string | null; revisionId?: string | null;
}; };

View File

@ -2,13 +2,14 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { triggerEffect } from "./triggerEffect"; import type { triggerEffect } from './triggerEffect';
export type managerOverrideTriggerDto = { export type managerOverrideTriggerDto = {
effect?: triggerEffect; effect?: triggerEffect;
readonly type?: "manager_override" | null; readonly type?: 'manager_override' | null;
key?: string | null; key?: string | null;
clearWhen?: string | null; clearWhen?: string | null;
utcCreated?: string; utcCreated?: string;
isAvailable: boolean; isAvailable: boolean;
managerUserId?: string; managerUserId?: string;
}; };

View File

@ -16,3 +16,4 @@ export type oidcConnectResponseDto = {
*/ */
authorityUrl?: string | null; authorityUrl?: string | null;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { localizedTextDto } from "./localizedTextDto"; import type { localizedTextDto } from './localizedTextDto';
export type optionDto = { export type optionDto = {
id?: string; id?: string;
title?: localizedTextDto; title?: localizedTextDto;
@ -17,3 +17,4 @@ export type optionDto = {
isFixedPrice?: boolean; isFixedPrice?: boolean;
additional?: Record<string, any> | null; additional?: Record<string, any> | null;
}; };

View File

@ -23,3 +23,4 @@ export type optionsQueryDto = {
publishedByUserId?: string | null; publishedByUserId?: string | null;
utcCreated?: string | null; utcCreated?: string | null;
}; };

View File

@ -2,8 +2,8 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { localizedTextDto } from "./localizedTextDto"; import type { localizedTextDto } from './localizedTextDto';
import type { optionDto } from "./optionDto"; import type { optionDto } from './optionDto';
export type optionsRevisionDto = { export type optionsRevisionDto = {
friendlyName?: string | null; friendlyName?: string | null;
minRequired?: number; minRequired?: number;
@ -28,3 +28,4 @@ export type optionsRevisionDto = {
utcPublished?: string | null; utcPublished?: string | null;
publishedByUserId?: string | null; publishedByUserId?: string | null;
}; };

View File

@ -2,8 +2,8 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { localizedTextDto } from "./localizedTextDto"; import type { localizedTextDto } from './localizedTextDto';
import type { optionDto } from "./optionDto"; import type { optionDto } from './optionDto';
export type optionsViewDto = { export type optionsViewDto = {
friendlyName?: string | null; friendlyName?: string | null;
minRequired?: number; minRequired?: number;
@ -23,3 +23,4 @@ export type optionsViewDto = {
title?: localizedTextDto; title?: localizedTextDto;
description?: localizedTextDto; description?: localizedTextDto;
}; };

View File

@ -2,9 +2,9 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { checkoutOptionsDto } from "./checkoutOptionsDto"; import type { checkoutOptionsDto } from './checkoutOptionsDto';
import type { paymentType } from "./paymentType"; import type { paymentType } from './paymentType';
import type { selectedProductDto } from "./selectedProductDto"; import type { selectedProductDto } from './selectedProductDto';
export type orderCreateDto = { export type orderCreateDto = {
sellerId?: string; sellerId?: string;
/** /**
@ -38,3 +38,4 @@ export type orderCreateDto = {
} | null; } | null;
deliveryEstSeconds?: number; deliveryEstSeconds?: number;
}; };

View File

@ -2,9 +2,9 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { checkoutOptionsDto } from "./checkoutOptionsDto"; import type { checkoutOptionsDto } from './checkoutOptionsDto';
import type { paymentType } from "./paymentType"; import type { paymentType } from './paymentType';
import type { selectedProductDto } from "./selectedProductDto"; import type { selectedProductDto } from './selectedProductDto';
/** /**
* Data transfer object for common order information. * Data transfer object for common order information.
*/ */
@ -25,3 +25,4 @@ export type orderDto = {
*/ */
comments?: string | null; comments?: string | null;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { commonOrderFailureResult } from "./commonOrderFailureResult"; import type { commonOrderFailureResult } from './commonOrderFailureResult';
/** /**
* Request DTO for cancelling/rejecting an order with a specific failure reason. * Request DTO for cancelling/rejecting an order with a specific failure reason.
*/ */
@ -17,3 +17,4 @@ export type orderFailureRequestDto = {
*/ */
reason?: string | null; reason?: string | null;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { commonOrderStatus } from "./commonOrderStatus"; import type { commonOrderStatus } from './commonOrderStatus';
export type orderNextStatusDto = { export type orderNextStatusDto = {
orderStatus?: commonOrderStatus; orderStatus?: commonOrderStatus;
/** /**
@ -14,3 +14,4 @@ export type orderNextStatusDto = {
*/ */
dispatchRequired?: boolean | null; dispatchRequired?: boolean | null;
}; };

View File

@ -2,8 +2,8 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { commonOrderFailureResult } from "./commonOrderFailureResult"; import type { commonOrderFailureResult } from './commonOrderFailureResult';
import type { commonOrderStatus } from "./commonOrderStatus"; import type { commonOrderStatus } from './commonOrderStatus';
/** /**
* Data transfer object for querying orders using various filters. * Data transfer object for querying orders using various filters.
*/ */
@ -69,3 +69,4 @@ export type orderQueryRequestDto = {
*/ */
failureAny?: Array<commonOrderFailureResult> | null; failureAny?: Array<commonOrderFailureResult> | null;
}; };

View File

@ -2,8 +2,8 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { commonOrderFailureResult } from "./commonOrderFailureResult"; import type { commonOrderFailureResult } from './commonOrderFailureResult';
import type { orderTriggerDto } from "./orderTriggerDto"; import type { orderTriggerDto } from './orderTriggerDto';
/** /**
* Request DTO for changing the state of an order. * Request DTO for changing the state of an order.
*/ */
@ -19,3 +19,4 @@ export type orderStateChangeRequestDto = {
*/ */
expectedReady?: string | null; expectedReady?: string | null;
}; };

View File

@ -2,10 +2,10 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { commonOrderFailureResult } from "./commonOrderFailureResult"; import type { commonOrderFailureResult } from './commonOrderFailureResult';
import type { commonOrderStatus } from "./commonOrderStatus"; import type { commonOrderStatus } from './commonOrderStatus';
import type { deliveryStateDto } from "./deliveryStateDto"; import type { deliveryStateDto } from './deliveryStateDto';
import type { preparationStateDto } from "./preparationStateDto"; import type { preparationStateDto } from './preparationStateDto';
/** /**
* Represents the current state of an order. * Represents the current state of an order.
*/ */
@ -36,3 +36,4 @@ export type orderStateDto = {
*/ */
failureExplain?: string | null; failureExplain?: string | null;
}; };

View File

@ -2,11 +2,11 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { calculatedCheckoutDto } from "./calculatedCheckoutDto"; import type { calculatedCheckoutDto } from './calculatedCheckoutDto';
import type { checkoutOptionsDto } from "./checkoutOptionsDto"; import type { checkoutOptionsDto } from './checkoutOptionsDto';
import type { orderStateDto } from "./orderStateDto"; import type { orderStateDto } from './orderStateDto';
import type { paymentType } from "./paymentType"; import type { paymentType } from './paymentType';
import type { selectedProductDto } from "./selectedProductDto"; import type { selectedProductDto } from './selectedProductDto';
/** /**
* Represents an order with checkout options, calculated totals, items, products, and product options. * Represents an order with checkout options, calculated totals, items, products, and product options.
* Inherits from CreateOrderDto to include standard order properties. * Inherits from CreateOrderDto to include standard order properties.
@ -54,3 +54,4 @@ export type orderViewDto = {
isFailed?: boolean; isFailed?: boolean;
prices?: calculatedCheckoutDto; prices?: calculatedCheckoutDto;
}; };

View File

@ -23,3 +23,4 @@ export type preparationStateDto = {
*/ */
etcSeconds?: number; etcSeconds?: number;
}; };

View File

@ -35,3 +35,4 @@ export type priceEstimationDto = {
*/ */
secondsEstimated?: number; secondsEstimated?: number;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { gpsLocationDto } from "./gpsLocationDto"; import type { gpsLocationDto } from './gpsLocationDto';
/** /**
* Request DTO for estimating delivery prices * Request DTO for estimating delivery prices
*/ */
@ -16,3 +16,4 @@ export type priceEstimationRequestDto = {
*/ */
locations?: Array<gpsLocationDto> | null; locations?: Array<gpsLocationDto> | null;
}; };

View File

@ -2,11 +2,11 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { assetCollectionDto } from "./assetCollectionDto"; import type { assetCollectionDto } from './assetCollectionDto';
import type { imageReferenceDto } from "./imageReferenceDto"; import type { imageReferenceDto } from './imageReferenceDto';
import type { localizedTextDto } from "./localizedTextDto"; import type { localizedTextDto } from './localizedTextDto';
import type { scheduleDto } from "./scheduleDto"; import type { scheduleDto } from './scheduleDto';
import type { tag } from "./tag"; import type { tag } from './tag';
export type productCompositeDto = { export type productCompositeDto = {
price?: { price?: {
/** /**
@ -34,3 +34,4 @@ export type productCompositeDto = {
isAvailable?: boolean; isAvailable?: boolean;
isStopListed?: boolean; isStopListed?: boolean;
}; };

View File

@ -2,7 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { iTriggerDto } from "./iTriggerDto"; import type { iTriggerDto } from './iTriggerDto';
export type productDto = { export type productDto = {
availabilityTriggers?: Array<iTriggerDto> | null; availabilityTriggers?: Array<iTriggerDto> | null;
id?: string; id?: string;
@ -11,3 +11,4 @@ export type productDto = {
utcUpdated?: string; utcUpdated?: string;
promotionIds?: Array<string> | null; promotionIds?: Array<string> | null;
}; };

View File

@ -8,3 +8,4 @@ export type productQueryRequestDto = {
sellerId?: string | null; sellerId?: string | null;
productIds?: Array<string> | null; productIds?: Array<string> | null;
}; };

Some files were not shown because too many files have changed in this diff Show More