@orderingstack/ordering-types 1.30.2 → 1.31.0

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,3 +1,4 @@
1
+ import { IStringKeyRecord } from "./utils";
1
2
  export * from "./kiosk";
2
3
  export * from "./kioskErrors";
3
4
  export * from "./api";
@@ -509,9 +510,6 @@ interface IOrderExtra {
509
510
  [ERbiOrderExtra.CUSTOMER_NAME]?: string;
510
511
  [key: string]: string | undefined;
511
512
  }
512
- export interface IStringKeyRecord<T> {
513
- [key: string]: T;
514
- }
515
513
  export interface IOrderLog {
516
514
  timestamp?: string;
517
515
  user?: string;
@@ -769,3 +767,9 @@ export interface IUserData {
769
767
  trusted?: boolean;
770
768
  UUID: string;
771
769
  }
770
+ export interface IPublicTenantProperties extends IStringKeyRecord<string | undefined> {
771
+ defaultLanguage?: string;
772
+ allowedLanguages?: string;
773
+ currency?: string;
774
+ fiscalFromPos?: "true" | "false";
775
+ }
@@ -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,3 +1,4 @@
1
+ import { IStringKeyRecord } from "./utils";
1
2
  export * from "./kiosk";
2
3
  export * from "./kioskErrors";
3
4
  export * from "./api";
@@ -509,9 +510,6 @@ interface IOrderExtra {
509
510
  [ERbiOrderExtra.CUSTOMER_NAME]?: string;
510
511
  [key: string]: string | undefined;
511
512
  }
512
- export interface IStringKeyRecord<T> {
513
- [key: string]: T;
514
- }
515
513
  export interface IOrderLog {
516
514
  timestamp?: string;
517
515
  user?: string;
@@ -769,3 +767,9 @@ export interface IUserData {
769
767
  trusted?: boolean;
770
768
  UUID: string;
771
769
  }
770
+ export interface IPublicTenantProperties extends IStringKeyRecord<string | undefined> {
771
+ defaultLanguage?: string;
772
+ allowedLanguages?: string;
773
+ currency?: string;
774
+ fiscalFromPos?: "true" | "false";
775
+ }
@@ -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.0",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",