@open-tender/utils 0.4.19 → 0.4.20

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.
@@ -88,9 +88,12 @@ export declare const makeGroupOrderTime: (revenueCenter: RevenueCenter, serviceT
88
88
  export declare const formatTime: (time: string) => string;
89
89
  export declare const makeGroupOrderTimeStr: (requestedAt: RequestedAt | null, tz: Timezone) => string | null;
90
90
  export declare const getLastInterval: (tz: Timezone) => Date;
91
- export declare const makeIntervals: (tz: Timezone) => Array<Interval & {
91
+ export declare const makeIntervals: (tz: Timezone) => ({
92
+ start: Date;
93
+ end: Date;
94
+ } & {
92
95
  orders: Array<Partial<Order>>;
93
- }>;
96
+ })[];
94
97
  export declare const formatTimeList: (dateStr: ISOString, tz: Timezone, includeDate: boolean) => string;
95
98
  export declare const makeCartDateStr: (requestedAt: string, tz: Timezone, waitTime?: number | null) => string;
96
99
  export declare const makeOrderWindow: (orderTime: OrderTimeWithDate) => string;
@@ -88,9 +88,12 @@ export declare const makeGroupOrderTime: (revenueCenter: RevenueCenter, serviceT
88
88
  export declare const formatTime: (time: string) => string;
89
89
  export declare const makeGroupOrderTimeStr: (requestedAt: RequestedAt | null, tz: Timezone) => string | null;
90
90
  export declare const getLastInterval: (tz: Timezone) => Date;
91
- export declare const makeIntervals: (tz: Timezone) => Array<Interval & {
91
+ export declare const makeIntervals: (tz: Timezone) => ({
92
+ start: Date;
93
+ end: Date;
94
+ } & {
92
95
  orders: Array<Partial<Order>>;
93
- }>;
96
+ })[];
94
97
  export declare const formatTimeList: (dateStr: ISOString, tz: Timezone, includeDate: boolean) => string;
95
98
  export declare const makeCartDateStr: (requestedAt: string, tz: Timezone, waitTime?: number | null) => string;
96
99
  export declare const makeOrderWindow: (orderTime: OrderTimeWithDate) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.4.19",
3
+ "version": "0.4.20",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
package/dist/.DS_Store DELETED
Binary file