@open-tender/types 0.0.8 → 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.
@@ -1,5 +1,6 @@
1
1
  import { DateString, ISOString, Time24, TimeHuman, TimezonePython } from '../../datetimes';
2
- import { ChannelType, Money, ServiceType, Weekday } from '../../global';
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;
@@ -145,7 +146,7 @@ export interface CustomerRevenueCenter {
145
146
  };
146
147
  order_times: RevenueCenterOrderTimes;
147
148
  revenue_center_id: number;
148
- revenue_center_type: ChannelType;
149
+ revenue_center_type: RevenueCenterType;
149
150
  service_types: Array<ServiceType>;
150
151
  slug: string;
151
152
  status: string;
@@ -50,3 +50,4 @@ export interface RevenueCenter {
50
50
  pickup_wait_time_id: number | null;
51
51
  temporary_pickup_wait_time_id: number | null;
52
52
  }
53
+ export declare type RevenueCenterType = 'POS' | 'OLO' | 'CATERING';
@@ -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: 'POS' | 'OLO' | 'CATERING';
98
+ revenue_center_type: RevenueCenterType;
98
99
  service_types: Array<ServiceType>;
99
100
  short_name: string;
100
101
  slug: string;
@@ -38,11 +38,15 @@ export declare type TimezoneMap = {
38
38
  export declare type RequestedAt = ISOString | 'asap';
39
39
  export interface TimeInterval {
40
40
  label: string;
41
- value: Date;
41
+ value: Date | string;
42
42
  }
43
43
  export interface TimeObject {
44
44
  name: string;
45
45
  value: number;
46
46
  disabled: boolean;
47
47
  }
48
+ export interface DatePickerTimes {
49
+ excludeTimes: Array<Date>;
50
+ interval: number;
51
+ }
48
52
  export {};
@@ -1,5 +1,6 @@
1
1
  import { DateString, ISOString, Time24, TimeHuman, TimezonePython } from '../../datetimes';
2
- import { ChannelType, Money, ServiceType, Weekday } from '../../global';
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;
@@ -145,7 +146,7 @@ export interface CustomerRevenueCenter {
145
146
  };
146
147
  order_times: RevenueCenterOrderTimes;
147
148
  revenue_center_id: number;
148
- revenue_center_type: ChannelType;
149
+ revenue_center_type: RevenueCenterType;
149
150
  service_types: Array<ServiceType>;
150
151
  slug: string;
151
152
  status: string;
@@ -50,3 +50,4 @@ export interface RevenueCenter {
50
50
  pickup_wait_time_id: number | null;
51
51
  temporary_pickup_wait_time_id: number | null;
52
52
  }
53
+ export declare type RevenueCenterType = 'POS' | 'OLO' | 'CATERING';
@@ -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: 'POS' | 'OLO' | 'CATERING';
98
+ revenue_center_type: RevenueCenterType;
98
99
  service_types: Array<ServiceType>;
99
100
  short_name: string;
100
101
  slug: string;
@@ -38,11 +38,15 @@ export declare type TimezoneMap = {
38
38
  export declare type RequestedAt = ISOString | 'asap';
39
39
  export interface TimeInterval {
40
40
  label: string;
41
- value: Date;
41
+ value: Date | string;
42
42
  }
43
43
  export interface TimeObject {
44
44
  name: string;
45
45
  value: number;
46
46
  disabled: boolean;
47
47
  }
48
+ export interface DatePickerTimes {
49
+ excludeTimes: Array<Date>;
50
+ interval: number;
51
+ }
48
52
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "A library of types 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",