@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 +2 -1
- package/dist/cjs/index.d.ts +7 -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 +7 -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,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
|
+
}
|
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,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
|
+
}
|
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 {};
|