@open-tender/types 0.0.7 → 0.0.9
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/types/api/customer/revenueCenters.d.ts +8 -3
- package/dist/cjs/types/api/revenueCenter.d.ts +1 -0
- package/dist/cjs/types/api/store.d.ts +2 -1
- package/dist/cjs/types/datetimes.d.ts +13 -0
- package/dist/esm/types/api/customer/revenueCenters.d.ts +8 -3
- package/dist/esm/types/api/revenueCenter.d.ts +1 -0
- package/dist/esm/types/api/store.d.ts +2 -1
- package/dist/esm/types/datetimes.d.ts +13 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DateString, ISOString, Time24, TimeHuman, TimezonePython } from '../../datetimes';
|
|
2
|
-
import {
|
|
2
|
+
import { Money, ServiceType, Weekday } from '../../global';
|
|
3
|
+
import { RevenueCenterType } from '../revenueCenter';
|
|
3
4
|
export interface RevenueCenterAddress {
|
|
4
5
|
city: string;
|
|
5
6
|
cross_streets: string;
|
|
@@ -40,6 +41,8 @@ export interface ValidTime {
|
|
|
40
41
|
is_orderable: boolean;
|
|
41
42
|
minutes: number;
|
|
42
43
|
time: string;
|
|
44
|
+
interval: number;
|
|
45
|
+
times: ValidTimes | null;
|
|
43
46
|
}
|
|
44
47
|
export declare type ValidTimes = Array<ValidTime>;
|
|
45
48
|
export interface HolidayItem extends Hours {
|
|
@@ -81,7 +84,9 @@ export interface CustomerRevenueCenterSettings {
|
|
|
81
84
|
};
|
|
82
85
|
group_ordering: RevenueCenterGroupOrdering;
|
|
83
86
|
holidays: {
|
|
84
|
-
[key
|
|
87
|
+
[key: DateString]: {
|
|
88
|
+
[key in ServiceType]?: HolidayItem | null;
|
|
89
|
+
};
|
|
85
90
|
};
|
|
86
91
|
lead_time_in_hours: number;
|
|
87
92
|
order_maximum: {
|
|
@@ -141,7 +146,7 @@ export interface CustomerRevenueCenter {
|
|
|
141
146
|
};
|
|
142
147
|
order_times: RevenueCenterOrderTimes;
|
|
143
148
|
revenue_center_id: number;
|
|
144
|
-
revenue_center_type:
|
|
149
|
+
revenue_center_type: RevenueCenterType;
|
|
145
150
|
service_types: Array<ServiceType>;
|
|
146
151
|
slug: string;
|
|
147
152
|
status: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TimeString, TimezonePython } from '../datetimes';
|
|
2
2
|
import { Decimal, Money, ServiceType, TenderType, Url, Weekday } from '../global';
|
|
3
|
+
import { RevenueCenterType } from './revenueCenter';
|
|
3
4
|
export declare type PaymentProcessor = 'NONE' | 'CARDCONNECT' | 'VANTIV' | 'CLOVER' | 'NMI';
|
|
4
5
|
export interface PaymentProcessing {
|
|
5
6
|
integration: PaymentProcessor;
|
|
@@ -94,7 +95,7 @@ export interface Store {
|
|
|
94
95
|
receipt_header: string;
|
|
95
96
|
receipt_phone: boolean;
|
|
96
97
|
revenue_center_id: number;
|
|
97
|
-
revenue_center_type:
|
|
98
|
+
revenue_center_type: RevenueCenterType;
|
|
98
99
|
service_types: Array<ServiceType>;
|
|
99
100
|
short_name: string;
|
|
100
101
|
slug: string;
|
|
@@ -36,4 +36,17 @@ export declare type TimezoneMap = {
|
|
|
36
36
|
[Property in TimezonePython]: Timezone;
|
|
37
37
|
};
|
|
38
38
|
export declare type RequestedAt = ISOString | 'asap';
|
|
39
|
+
export interface TimeInterval {
|
|
40
|
+
label: string;
|
|
41
|
+
value: Date | string;
|
|
42
|
+
}
|
|
43
|
+
export interface TimeObject {
|
|
44
|
+
name: string;
|
|
45
|
+
value: number;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface DatePickerTimes {
|
|
49
|
+
excludeTimes: Array<Date>;
|
|
50
|
+
interval: number;
|
|
51
|
+
}
|
|
39
52
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DateString, ISOString, Time24, TimeHuman, TimezonePython } from '../../datetimes';
|
|
2
|
-
import {
|
|
2
|
+
import { Money, ServiceType, Weekday } from '../../global';
|
|
3
|
+
import { RevenueCenterType } from '../revenueCenter';
|
|
3
4
|
export interface RevenueCenterAddress {
|
|
4
5
|
city: string;
|
|
5
6
|
cross_streets: string;
|
|
@@ -40,6 +41,8 @@ export interface ValidTime {
|
|
|
40
41
|
is_orderable: boolean;
|
|
41
42
|
minutes: number;
|
|
42
43
|
time: string;
|
|
44
|
+
interval: number;
|
|
45
|
+
times: ValidTimes | null;
|
|
43
46
|
}
|
|
44
47
|
export declare type ValidTimes = Array<ValidTime>;
|
|
45
48
|
export interface HolidayItem extends Hours {
|
|
@@ -81,7 +84,9 @@ export interface CustomerRevenueCenterSettings {
|
|
|
81
84
|
};
|
|
82
85
|
group_ordering: RevenueCenterGroupOrdering;
|
|
83
86
|
holidays: {
|
|
84
|
-
[key
|
|
87
|
+
[key: DateString]: {
|
|
88
|
+
[key in ServiceType]?: HolidayItem | null;
|
|
89
|
+
};
|
|
85
90
|
};
|
|
86
91
|
lead_time_in_hours: number;
|
|
87
92
|
order_maximum: {
|
|
@@ -141,7 +146,7 @@ export interface CustomerRevenueCenter {
|
|
|
141
146
|
};
|
|
142
147
|
order_times: RevenueCenterOrderTimes;
|
|
143
148
|
revenue_center_id: number;
|
|
144
|
-
revenue_center_type:
|
|
149
|
+
revenue_center_type: RevenueCenterType;
|
|
145
150
|
service_types: Array<ServiceType>;
|
|
146
151
|
slug: string;
|
|
147
152
|
status: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TimeString, TimezonePython } from '../datetimes';
|
|
2
2
|
import { Decimal, Money, ServiceType, TenderType, Url, Weekday } from '../global';
|
|
3
|
+
import { RevenueCenterType } from './revenueCenter';
|
|
3
4
|
export declare type PaymentProcessor = 'NONE' | 'CARDCONNECT' | 'VANTIV' | 'CLOVER' | 'NMI';
|
|
4
5
|
export interface PaymentProcessing {
|
|
5
6
|
integration: PaymentProcessor;
|
|
@@ -94,7 +95,7 @@ export interface Store {
|
|
|
94
95
|
receipt_header: string;
|
|
95
96
|
receipt_phone: boolean;
|
|
96
97
|
revenue_center_id: number;
|
|
97
|
-
revenue_center_type:
|
|
98
|
+
revenue_center_type: RevenueCenterType;
|
|
98
99
|
service_types: Array<ServiceType>;
|
|
99
100
|
short_name: string;
|
|
100
101
|
slug: string;
|
|
@@ -36,4 +36,17 @@ export declare type TimezoneMap = {
|
|
|
36
36
|
[Property in TimezonePython]: Timezone;
|
|
37
37
|
};
|
|
38
38
|
export declare type RequestedAt = ISOString | 'asap';
|
|
39
|
+
export interface TimeInterval {
|
|
40
|
+
label: string;
|
|
41
|
+
value: Date | string;
|
|
42
|
+
}
|
|
43
|
+
export interface TimeObject {
|
|
44
|
+
name: string;
|
|
45
|
+
value: number;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface DatePickerTimes {
|
|
49
|
+
excludeTimes: Array<Date>;
|
|
50
|
+
interval: number;
|
|
51
|
+
}
|
|
39
52
|
export {};
|
package/package.json
CHANGED