@open-tender/types 0.2.18 → 0.2.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.
@@ -1,6 +1,7 @@
1
- import { ISOString, RequestedAt } from '../../datetimes';
1
+ import { ISOString, RequestedAt, TimezonePython } from '../../datetimes';
2
2
  import { ServiceType } from '../../global';
3
3
  import { SimpleCart } from '../checkout';
4
+ import { RevenueCenterType } from '../revenueCenter';
4
5
  import { Address } from './addresses';
5
6
  export interface CartOwner {
6
7
  customer_id: number;
@@ -16,6 +17,13 @@ export interface GroupOrderGuest extends GroupOrderGuestCreate {
16
17
  cart_guest_id: number;
17
18
  }
18
19
  export declare type GroupOrderGuests = GroupOrderGuest[];
20
+ export interface GroupOrderRevenueCenter {
21
+ is_outpost: boolean;
22
+ name: string;
23
+ revenue_center_id: number;
24
+ revenue_center_type: RevenueCenterType;
25
+ timezone: TimezonePython;
26
+ }
19
27
  export interface GroupOrder {
20
28
  address: Address | null;
21
29
  cart: SimpleCart;
@@ -33,6 +41,10 @@ export interface GroupOrder {
33
41
  token: string;
34
42
  }
35
43
  export declare type GroupOrders = GroupOrder[];
44
+ export interface GroupOrderExpanded extends GroupOrder {
45
+ revenue_center: GroupOrderRevenueCenter;
46
+ }
47
+ export declare type GroupOrdersExpanded = GroupOrderExpanded[];
36
48
  export interface GroupOrderTime {
37
49
  isAdjusted: boolean;
38
50
  firstIso: ISOString;
@@ -1,5 +1,5 @@
1
1
  import { OrdersKds } from './pos';
2
- export declare type PrepStatus = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'COMPLETED' | 'FULFILLED' | 'TAKE_OUT';
2
+ export declare type PrepStatus = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'COMPLETED' | 'FULFILLED';
3
3
  export declare type PrepStatusMap = {
4
4
  [Property in PrepStatus]: PrepStatus;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { DateString, ISOStringOffset, RequestedAt, TimeHuman, TimezonePython } from '../datetimes';
1
+ import { DateString, ISOString, ISOStringOffset, RequestedAt, TimeHuman, TimezonePython } from '../datetimes';
2
2
  import { CardType, CardTypeName, ChannelType, DiscountAuthType, DiscountType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, TenderType } from '../global';
3
3
  import { CreditCard, CreditCards } from './creditCards';
4
4
  import { Address, Customer, GiftCard, HouseAccounts } from './customer';
@@ -119,16 +119,16 @@ export interface OrderGiftCard {
119
119
  }
120
120
  export declare type OrderGiftCards = OrderGiftCard[];
121
121
  export interface OrderPrep {
122
- completed_at: ISOStringOffset | null;
123
- created_at: ISOStringOffset;
122
+ completed_at: ISOString | null;
123
+ created_at: ISOString;
124
124
  daily_id: string;
125
- done_at: ISOStringOffset | null;
126
- expected_at: ISOStringOffset | null;
127
- fire_at: ISOStringOffset | null;
125
+ done_at: ISOString | null;
126
+ expected_at: ISOString | null;
127
+ fire_at: ISOString | null;
128
128
  is_in_prep_queue: boolean;
129
129
  prep_status: PrepStatus;
130
- ready_at: ISOStringOffset | null;
131
- requested_at: ISOStringOffset;
130
+ ready_at: ISOString | null;
131
+ requested_at: ISOString;
132
132
  }
133
133
  export interface OrderRating {
134
134
  comments: string | null;
@@ -1,6 +1,7 @@
1
- import { ISOString, RequestedAt } from '../../datetimes';
1
+ import { ISOString, RequestedAt, TimezonePython } from '../../datetimes';
2
2
  import { ServiceType } from '../../global';
3
3
  import { SimpleCart } from '../checkout';
4
+ import { RevenueCenterType } from '../revenueCenter';
4
5
  import { Address } from './addresses';
5
6
  export interface CartOwner {
6
7
  customer_id: number;
@@ -16,6 +17,13 @@ export interface GroupOrderGuest extends GroupOrderGuestCreate {
16
17
  cart_guest_id: number;
17
18
  }
18
19
  export declare type GroupOrderGuests = GroupOrderGuest[];
20
+ export interface GroupOrderRevenueCenter {
21
+ is_outpost: boolean;
22
+ name: string;
23
+ revenue_center_id: number;
24
+ revenue_center_type: RevenueCenterType;
25
+ timezone: TimezonePython;
26
+ }
19
27
  export interface GroupOrder {
20
28
  address: Address | null;
21
29
  cart: SimpleCart;
@@ -33,6 +41,10 @@ export interface GroupOrder {
33
41
  token: string;
34
42
  }
35
43
  export declare type GroupOrders = GroupOrder[];
44
+ export interface GroupOrderExpanded extends GroupOrder {
45
+ revenue_center: GroupOrderRevenueCenter;
46
+ }
47
+ export declare type GroupOrdersExpanded = GroupOrderExpanded[];
36
48
  export interface GroupOrderTime {
37
49
  isAdjusted: boolean;
38
50
  firstIso: ISOString;
@@ -1,5 +1,5 @@
1
1
  import { OrdersKds } from './pos';
2
- export declare type PrepStatus = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'COMPLETED' | 'FULFILLED' | 'TAKE_OUT';
2
+ export declare type PrepStatus = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'COMPLETED' | 'FULFILLED';
3
3
  export declare type PrepStatusMap = {
4
4
  [Property in PrepStatus]: PrepStatus;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { DateString, ISOStringOffset, RequestedAt, TimeHuman, TimezonePython } from '../datetimes';
1
+ import { DateString, ISOString, ISOStringOffset, RequestedAt, TimeHuman, TimezonePython } from '../datetimes';
2
2
  import { CardType, CardTypeName, ChannelType, DiscountAuthType, DiscountType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, TenderType } from '../global';
3
3
  import { CreditCard, CreditCards } from './creditCards';
4
4
  import { Address, Customer, GiftCard, HouseAccounts } from './customer';
@@ -119,16 +119,16 @@ export interface OrderGiftCard {
119
119
  }
120
120
  export declare type OrderGiftCards = OrderGiftCard[];
121
121
  export interface OrderPrep {
122
- completed_at: ISOStringOffset | null;
123
- created_at: ISOStringOffset;
122
+ completed_at: ISOString | null;
123
+ created_at: ISOString;
124
124
  daily_id: string;
125
- done_at: ISOStringOffset | null;
126
- expected_at: ISOStringOffset | null;
127
- fire_at: ISOStringOffset | null;
125
+ done_at: ISOString | null;
126
+ expected_at: ISOString | null;
127
+ fire_at: ISOString | null;
128
128
  is_in_prep_queue: boolean;
129
129
  prep_status: PrepStatus;
130
- ready_at: ISOStringOffset | null;
131
- requested_at: ISOStringOffset;
130
+ ready_at: ISOString | null;
131
+ requested_at: ISOString;
132
132
  }
133
133
  export interface OrderRating {
134
134
  comments: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
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",
@@ -1,43 +0,0 @@
1
- import { DiscountAuthType, DiscountType, Images, OrderType, ServiceType } from '../../global';
2
- import { MenuItems } from '../menu';
3
- export interface DayPart {
4
- daypart_id: number;
5
- end_time: string;
6
- name: string;
7
- order_type: OrderType;
8
- start_time: string;
9
- }
10
- export interface RewardItems {
11
- items: MenuItems;
12
- quantity: number;
13
- }
14
- export interface Reward {
15
- amount: string;
16
- auth_type: DiscountAuthType;
17
- dayparts: Array<DayPart>;
18
- description: string;
19
- discount_id: number;
20
- discount_type: DiscountType;
21
- discounted_items: RewardItems;
22
- end_date: string;
23
- images: Images;
24
- max_amount: string;
25
- max_order_size: string;
26
- max_redemptions: number;
27
- max_redemptions_per: number;
28
- min_amount: string;
29
- min_order_size: string;
30
- name: string;
31
- order_type: OrderType;
32
- per_order: number;
33
- required_items: RewardItems;
34
- service_type: ServiceType;
35
- short_description: string;
36
- start_date: string;
37
- title: string;
38
- ext_id?: string;
39
- expiration?: any;
40
- imageUrl?: string;
41
- channel_type?: string;
42
- }
43
- export declare type Rewards = Array<Reward>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,31 +0,0 @@
1
- import { DiscountAuthType, DiscountType, Images, Money, OrderType, ServiceType } from '../global';
2
- import { DiscountDayparts, DiscountItems } from './discounts';
3
- import { RevenueCenter } from './revenueCenter';
4
- export interface Deal {
5
- amount: Money;
6
- auth_type: DiscountAuthType;
7
- dayparts: DiscountDayparts;
8
- description: string;
9
- discount_id: number;
10
- discount_type: DiscountType;
11
- discounted_items: DiscountItems;
12
- end_date: string;
13
- images: Images;
14
- max_amount: string;
15
- max_order_size: string;
16
- max_redemptions: number;
17
- max_redemptions_per: number;
18
- min_amount: string;
19
- min_order_size: string;
20
- name: string;
21
- order_type: OrderType;
22
- per_order: number;
23
- required_items: DiscountItems;
24
- service_type: ServiceType;
25
- short_description: string;
26
- start_date: string;
27
- title: string;
28
- revenue_centers?: RevenueCenter[];
29
- channel_type?: string;
30
- }
31
- export declare type Deals = Deal[];
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,43 +0,0 @@
1
- import { DiscountAuthType, DiscountType, Images, OrderType, ServiceType } from '../../global';
2
- import { MenuItems } from '../menu';
3
- export interface DayPart {
4
- daypart_id: number;
5
- end_time: string;
6
- name: string;
7
- order_type: OrderType;
8
- start_time: string;
9
- }
10
- export interface RewardItems {
11
- items: MenuItems;
12
- quantity: number;
13
- }
14
- export interface Reward {
15
- amount: string;
16
- auth_type: DiscountAuthType;
17
- dayparts: Array<DayPart>;
18
- description: string;
19
- discount_id: number;
20
- discount_type: DiscountType;
21
- discounted_items: RewardItems;
22
- end_date: string;
23
- images: Images;
24
- max_amount: string;
25
- max_order_size: string;
26
- max_redemptions: number;
27
- max_redemptions_per: number;
28
- min_amount: string;
29
- min_order_size: string;
30
- name: string;
31
- order_type: OrderType;
32
- per_order: number;
33
- required_items: RewardItems;
34
- service_type: ServiceType;
35
- short_description: string;
36
- start_date: string;
37
- title: string;
38
- ext_id?: string;
39
- expiration?: any;
40
- imageUrl?: string;
41
- channel_type?: string;
42
- }
43
- export declare type Rewards = Array<Reward>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,31 +0,0 @@
1
- import { DiscountAuthType, DiscountType, Images, Money, OrderType, ServiceType } from '../global';
2
- import { DiscountDayparts, DiscountItems } from './discounts';
3
- import { RevenueCenter } from './revenueCenter';
4
- export interface Deal {
5
- amount: Money;
6
- auth_type: DiscountAuthType;
7
- dayparts: DiscountDayparts;
8
- description: string;
9
- discount_id: number;
10
- discount_type: DiscountType;
11
- discounted_items: DiscountItems;
12
- end_date: string;
13
- images: Images;
14
- max_amount: string;
15
- max_order_size: string;
16
- max_redemptions: number;
17
- max_redemptions_per: number;
18
- min_amount: string;
19
- min_order_size: string;
20
- name: string;
21
- order_type: OrderType;
22
- per_order: number;
23
- required_items: DiscountItems;
24
- service_type: ServiceType;
25
- short_description: string;
26
- start_date: string;
27
- title: string;
28
- revenue_centers?: RevenueCenter[];
29
- channel_type?: string;
30
- }
31
- export declare type Deals = Deal[];
@@ -1 +0,0 @@
1
- export {};