@orderingstack/ordering-types 0.1.6 → 0.1.8
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/index.d.ts +13 -1
- package/dist/esm/index.d.ts +13 -1
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -181,6 +181,13 @@ export interface OrderCoupon {
|
|
|
181
181
|
coupon: string;
|
|
182
182
|
addedAt: string;
|
|
183
183
|
addedBy: string;
|
|
184
|
+
id: string;
|
|
185
|
+
data?: {
|
|
186
|
+
campaign?: string;
|
|
187
|
+
categoryId?: string;
|
|
188
|
+
enableKey?: string;
|
|
189
|
+
userId?: string;
|
|
190
|
+
};
|
|
184
191
|
}
|
|
185
192
|
export declare enum OrderStatus {
|
|
186
193
|
NEW = "NEW",
|
|
@@ -393,11 +400,16 @@ export declare enum OrderProductKind {
|
|
|
393
400
|
export interface ProductLiterals {
|
|
394
401
|
[propName: string]: any;
|
|
395
402
|
}
|
|
403
|
+
type WeekDay = "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN";
|
|
404
|
+
export type SaleChannelWeek = Partial<Record<WeekDay, {
|
|
405
|
+
from: string;
|
|
406
|
+
to: string;
|
|
407
|
+
}[]>>;
|
|
396
408
|
export interface SaleChannel {
|
|
397
409
|
active?: boolean;
|
|
398
410
|
minDeliveryTime?: string;
|
|
399
411
|
minOrderValue?: string;
|
|
400
|
-
week?:
|
|
412
|
+
week?: SaleChannelWeek;
|
|
401
413
|
}
|
|
402
414
|
export declare enum EChannelName {
|
|
403
415
|
DINE_IN = "DINE_IN",
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -181,6 +181,13 @@ export interface OrderCoupon {
|
|
|
181
181
|
coupon: string;
|
|
182
182
|
addedAt: string;
|
|
183
183
|
addedBy: string;
|
|
184
|
+
id: string;
|
|
185
|
+
data?: {
|
|
186
|
+
campaign?: string;
|
|
187
|
+
categoryId?: string;
|
|
188
|
+
enableKey?: string;
|
|
189
|
+
userId?: string;
|
|
190
|
+
};
|
|
184
191
|
}
|
|
185
192
|
export declare enum OrderStatus {
|
|
186
193
|
NEW = "NEW",
|
|
@@ -393,11 +400,16 @@ export declare enum OrderProductKind {
|
|
|
393
400
|
export interface ProductLiterals {
|
|
394
401
|
[propName: string]: any;
|
|
395
402
|
}
|
|
403
|
+
type WeekDay = "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN";
|
|
404
|
+
export type SaleChannelWeek = Partial<Record<WeekDay, {
|
|
405
|
+
from: string;
|
|
406
|
+
to: string;
|
|
407
|
+
}[]>>;
|
|
396
408
|
export interface SaleChannel {
|
|
397
409
|
active?: boolean;
|
|
398
410
|
minDeliveryTime?: string;
|
|
399
411
|
minOrderValue?: string;
|
|
400
|
-
week?:
|
|
412
|
+
week?: SaleChannelWeek;
|
|
401
413
|
}
|
|
402
414
|
export declare enum EChannelName {
|
|
403
415
|
DINE_IN = "DINE_IN",
|