@orderingstack/ordering-types 1.30.2 → 1.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/api.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { EOrderPaymentType, EOrderStatus, EOrderType, IProductState, IStringKeyRecord } from "./index";
1
+ import { EOrderPaymentType, EOrderStatus, EOrderType, IProductState } from "./index";
2
+ import { IStringKeyRecord } from "./utils";
2
3
  export declare const aggregators: readonly ["BOLT", "GLOVO", "JUSTEAT", "TAZZ", "UBER", "UPMENU", "WOLT", "_ANY_"];
3
4
  export type TAggregator = typeof aggregators[number];
4
5
  type TOrderDir = "DESC" | "ASC";
@@ -1,7 +1,9 @@
1
+ import { IStringKeyRecord } from "./utils";
1
2
  export * from "./kiosk";
2
3
  export * from "./kioskErrors";
3
4
  export * from "./api";
4
5
  export * from "./loyalty";
6
+ export { type IStringKeyRecord } from "./utils";
5
7
  export interface IRestaurant {
6
8
  id: string;
7
9
  name: string;
@@ -509,9 +511,6 @@ interface IOrderExtra {
509
511
  [ERbiOrderExtra.CUSTOMER_NAME]?: string;
510
512
  [key: string]: string | undefined;
511
513
  }
512
- export interface IStringKeyRecord<T> {
513
- [key: string]: T;
514
- }
515
514
  export interface IOrderLog {
516
515
  timestamp?: string;
517
516
  user?: string;
@@ -769,3 +768,9 @@ export interface IUserData {
769
768
  trusted?: boolean;
770
769
  UUID: string;
771
770
  }
771
+ export interface IPublicTenantProperties extends IStringKeyRecord<string | undefined> {
772
+ defaultLanguage?: string;
773
+ allowedLanguages?: string;
774
+ currency?: string;
775
+ fiscalFromPos?: "true" | "false";
776
+ }
@@ -1,8 +1,9 @@
1
1
  import React, { ReactElement } from "react";
2
2
  import { UseFormRegisterReturn } from "react-hook-form";
3
3
  import { UseTransitionProps } from "react-spring";
4
- import { IProduct, IOrder, IProductStateSelected, IProductStateFilter, EOrderPaymentType, IKioskError, TUpsellKind, ICategory, IStringKeyRecord } from "./index";
4
+ import { IProduct, IOrder, IProductStateSelected, IProductStateFilter, EOrderPaymentType, IKioskError, TUpsellKind, ICategory } from "./index";
5
5
  import { IOrderLine } from "./index";
6
+ import { IStringKeyRecord } from "./utils";
6
7
  export declare enum EPaymentStatus {
7
8
  UNINITIALIZED = "UNINITIALIZED",
8
9
  PROCESSING = "PROCESSING",
@@ -0,0 +1,3 @@
1
+ export interface IStringKeyRecord<T> {
2
+ [key: string]: T;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/esm/api.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { EOrderPaymentType, EOrderStatus, EOrderType, IProductState, IStringKeyRecord } from "./index";
1
+ import { EOrderPaymentType, EOrderStatus, EOrderType, IProductState } from "./index";
2
+ import { IStringKeyRecord } from "./utils";
2
3
  export declare const aggregators: readonly ["BOLT", "GLOVO", "JUSTEAT", "TAZZ", "UBER", "UPMENU", "WOLT", "_ANY_"];
3
4
  export type TAggregator = typeof aggregators[number];
4
5
  type TOrderDir = "DESC" | "ASC";
@@ -1,7 +1,9 @@
1
+ import { IStringKeyRecord } from "./utils";
1
2
  export * from "./kiosk";
2
3
  export * from "./kioskErrors";
3
4
  export * from "./api";
4
5
  export * from "./loyalty";
6
+ export { type IStringKeyRecord } from "./utils";
5
7
  export interface IRestaurant {
6
8
  id: string;
7
9
  name: string;
@@ -509,9 +511,6 @@ interface IOrderExtra {
509
511
  [ERbiOrderExtra.CUSTOMER_NAME]?: string;
510
512
  [key: string]: string | undefined;
511
513
  }
512
- export interface IStringKeyRecord<T> {
513
- [key: string]: T;
514
- }
515
514
  export interface IOrderLog {
516
515
  timestamp?: string;
517
516
  user?: string;
@@ -769,3 +768,9 @@ export interface IUserData {
769
768
  trusted?: boolean;
770
769
  UUID: string;
771
770
  }
771
+ export interface IPublicTenantProperties extends IStringKeyRecord<string | undefined> {
772
+ defaultLanguage?: string;
773
+ allowedLanguages?: string;
774
+ currency?: string;
775
+ fiscalFromPos?: "true" | "false";
776
+ }
@@ -1,8 +1,9 @@
1
1
  import React, { ReactElement } from "react";
2
2
  import { UseFormRegisterReturn } from "react-hook-form";
3
3
  import { UseTransitionProps } from "react-spring";
4
- import { IProduct, IOrder, IProductStateSelected, IProductStateFilter, EOrderPaymentType, IKioskError, TUpsellKind, ICategory, IStringKeyRecord } from "./index";
4
+ import { IProduct, IOrder, IProductStateSelected, IProductStateFilter, EOrderPaymentType, IKioskError, TUpsellKind, ICategory } from "./index";
5
5
  import { IOrderLine } from "./index";
6
+ import { IStringKeyRecord } from "./utils";
6
7
  export declare enum EPaymentStatus {
7
8
  UNINITIALIZED = "UNINITIALIZED",
8
9
  PROCESSING = "PROCESSING",
@@ -0,0 +1,3 @@
1
+ export interface IStringKeyRecord<T> {
2
+ [key: string]: T;
3
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.30.2",
3
+ "version": "1.31.1",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",