@orderingstack/ordering-types 0.1.5 → 0.1.7
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 +19 -14
- package/dist/esm/index.d.ts +19 -14
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -307,23 +307,23 @@ export interface OrderLog {
|
|
|
307
307
|
lines?: string[];
|
|
308
308
|
}
|
|
309
309
|
export interface OrderLine {
|
|
310
|
-
|
|
311
|
-
creator?: string;
|
|
312
|
-
created: string;
|
|
313
|
-
updated: string;
|
|
314
|
-
source: string;
|
|
315
|
-
quantity: number;
|
|
316
|
-
price: number;
|
|
317
|
-
productId: string;
|
|
318
|
-
product: OrderProduct;
|
|
319
|
-
productConfig: ProductConfig;
|
|
320
|
-
bom: Object;
|
|
321
|
-
status: OrderLineStatus;
|
|
310
|
+
bom?: Object;
|
|
322
311
|
comments?: OrderComment[];
|
|
312
|
+
created: string;
|
|
313
|
+
creator?: string;
|
|
323
314
|
discounts?: Discount[];
|
|
324
315
|
extra: Extra;
|
|
325
316
|
hash: string;
|
|
326
|
-
|
|
317
|
+
id: string;
|
|
318
|
+
price: string;
|
|
319
|
+
product: OrderProduct;
|
|
320
|
+
productConfig: ProductConfig;
|
|
321
|
+
productId: string;
|
|
322
|
+
quantity: number;
|
|
323
|
+
source: string;
|
|
324
|
+
status: OrderLineStatus;
|
|
325
|
+
total: string;
|
|
326
|
+
updated: string;
|
|
327
327
|
}
|
|
328
328
|
export interface SlipEntry {
|
|
329
329
|
item: string;
|
|
@@ -393,11 +393,16 @@ export declare enum OrderProductKind {
|
|
|
393
393
|
export interface ProductLiterals {
|
|
394
394
|
[propName: string]: any;
|
|
395
395
|
}
|
|
396
|
+
type WeekDay = "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN";
|
|
397
|
+
export type SaleChannelWeek = Partial<Record<WeekDay, {
|
|
398
|
+
from: string;
|
|
399
|
+
to: string;
|
|
400
|
+
}[]>>;
|
|
396
401
|
export interface SaleChannel {
|
|
397
402
|
active?: boolean;
|
|
398
403
|
minDeliveryTime?: string;
|
|
399
404
|
minOrderValue?: string;
|
|
400
|
-
week?:
|
|
405
|
+
week?: SaleChannelWeek;
|
|
401
406
|
}
|
|
402
407
|
export declare enum EChannelName {
|
|
403
408
|
DINE_IN = "DINE_IN",
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -307,23 +307,23 @@ export interface OrderLog {
|
|
|
307
307
|
lines?: string[];
|
|
308
308
|
}
|
|
309
309
|
export interface OrderLine {
|
|
310
|
-
|
|
311
|
-
creator?: string;
|
|
312
|
-
created: string;
|
|
313
|
-
updated: string;
|
|
314
|
-
source: string;
|
|
315
|
-
quantity: number;
|
|
316
|
-
price: number;
|
|
317
|
-
productId: string;
|
|
318
|
-
product: OrderProduct;
|
|
319
|
-
productConfig: ProductConfig;
|
|
320
|
-
bom: Object;
|
|
321
|
-
status: OrderLineStatus;
|
|
310
|
+
bom?: Object;
|
|
322
311
|
comments?: OrderComment[];
|
|
312
|
+
created: string;
|
|
313
|
+
creator?: string;
|
|
323
314
|
discounts?: Discount[];
|
|
324
315
|
extra: Extra;
|
|
325
316
|
hash: string;
|
|
326
|
-
|
|
317
|
+
id: string;
|
|
318
|
+
price: string;
|
|
319
|
+
product: OrderProduct;
|
|
320
|
+
productConfig: ProductConfig;
|
|
321
|
+
productId: string;
|
|
322
|
+
quantity: number;
|
|
323
|
+
source: string;
|
|
324
|
+
status: OrderLineStatus;
|
|
325
|
+
total: string;
|
|
326
|
+
updated: string;
|
|
327
327
|
}
|
|
328
328
|
export interface SlipEntry {
|
|
329
329
|
item: string;
|
|
@@ -393,11 +393,16 @@ export declare enum OrderProductKind {
|
|
|
393
393
|
export interface ProductLiterals {
|
|
394
394
|
[propName: string]: any;
|
|
395
395
|
}
|
|
396
|
+
type WeekDay = "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN";
|
|
397
|
+
export type SaleChannelWeek = Partial<Record<WeekDay, {
|
|
398
|
+
from: string;
|
|
399
|
+
to: string;
|
|
400
|
+
}[]>>;
|
|
396
401
|
export interface SaleChannel {
|
|
397
402
|
active?: boolean;
|
|
398
403
|
minDeliveryTime?: string;
|
|
399
404
|
minOrderValue?: string;
|
|
400
|
-
week?:
|
|
405
|
+
week?: SaleChannelWeek;
|
|
401
406
|
}
|
|
402
407
|
export declare enum EChannelName {
|
|
403
408
|
DINE_IN = "DINE_IN",
|