@open-tender/types 0.2.15 → 0.2.16
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.
|
@@ -40,7 +40,11 @@ export interface GroupOrderTime {
|
|
|
40
40
|
date: Date;
|
|
41
41
|
dateStr: string;
|
|
42
42
|
cutoffIso: ISOString;
|
|
43
|
-
cutoffDate: Date
|
|
43
|
+
cutoffDate: Date;
|
|
44
44
|
cutoffDateStr: string;
|
|
45
|
-
prepTime?: string;
|
|
46
45
|
}
|
|
46
|
+
export interface GroupOrderPrepTime {
|
|
47
|
+
prepTime: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const isGroupOrderPrepTime: (orderTime: GroupOrderTime | GroupOrderPrepTime) => orderTime is GroupOrderPrepTime;
|
|
50
|
+
export declare const isGroupOrderTime: (orderTime: GroupOrderTime | GroupOrderPrepTime) => orderTime is GroupOrderTime;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isGroupOrderTime = exports.isGroupOrderPrepTime = void 0;
|
|
4
|
+
const isGroupOrderPrepTime = (orderTime) => {
|
|
5
|
+
return orderTime.prepTime !== undefined;
|
|
6
|
+
};
|
|
7
|
+
exports.isGroupOrderPrepTime = isGroupOrderPrepTime;
|
|
8
|
+
const isGroupOrderTime = (orderTime) => {
|
|
9
|
+
return orderTime.isAdjusted !== undefined;
|
|
10
|
+
};
|
|
11
|
+
exports.isGroupOrderTime = isGroupOrderTime;
|
|
@@ -40,7 +40,11 @@ export interface GroupOrderTime {
|
|
|
40
40
|
date: Date;
|
|
41
41
|
dateStr: string;
|
|
42
42
|
cutoffIso: ISOString;
|
|
43
|
-
cutoffDate: Date
|
|
43
|
+
cutoffDate: Date;
|
|
44
44
|
cutoffDateStr: string;
|
|
45
|
-
prepTime?: string;
|
|
46
45
|
}
|
|
46
|
+
export interface GroupOrderPrepTime {
|
|
47
|
+
prepTime: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const isGroupOrderPrepTime: (orderTime: GroupOrderTime | GroupOrderPrepTime) => orderTime is GroupOrderPrepTime;
|
|
50
|
+
export declare const isGroupOrderTime: (orderTime: GroupOrderTime | GroupOrderPrepTime) => orderTime is GroupOrderTime;
|
package/package.json
CHANGED