@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 +2 -1
- package/dist/cjs/index.d.ts +8 -3
- package/dist/cjs/kiosk.d.ts +2 -1
- package/dist/cjs/utils.d.ts +3 -0
- package/dist/cjs/utils.js +2 -0
- package/dist/esm/api.d.ts +2 -1
- package/dist/esm/index.d.ts +8 -3
- package/dist/esm/kiosk.d.ts +2 -1
- package/dist/esm/utils.d.ts +3 -0
- package/dist/esm/utils.js +1 -0
- package/package.json +1 -1
package/dist/cjs/api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EOrderPaymentType, EOrderStatus, EOrderType, IProductState
|
|
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";
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/dist/cjs/kiosk.d.ts
CHANGED
|
@@ -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
|
|
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",
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EOrderPaymentType, EOrderStatus, EOrderType, IProductState
|
|
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";
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/dist/esm/kiosk.d.ts
CHANGED
|
@@ -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
|
|
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 @@
|
|
|
1
|
+
export {};
|