@open-tender/types 0.2.17 → 0.2.19
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/index.d.ts +0 -1
- package/dist/cjs/types/api/customer/index.js +1 -1
- package/dist/cjs/types/api/discounts.d.ts +48 -15
- package/dist/cjs/types/api/index.d.ts +0 -1
- package/dist/cjs/types/api/index.js +1 -1
- package/dist/cjs/types/api/kds.d.ts +1 -1
- package/dist/cjs/types/api/menu.d.ts +0 -10
- package/dist/cjs/types/api/order.d.ts +8 -8
- package/dist/esm/types/api/customer/index.d.ts +0 -1
- package/dist/esm/types/api/customer/index.js +1 -1
- package/dist/esm/types/api/discounts.d.ts +48 -15
- package/dist/esm/types/api/index.d.ts +0 -1
- package/dist/esm/types/api/index.js +1 -1
- package/dist/esm/types/api/kds.d.ts +1 -1
- package/dist/esm/types/api/menu.d.ts +0 -10
- package/dist/esm/types/api/order.d.ts +8 -8
- package/package.json +1 -1
- package/dist/cjs/types/api/customer/rewards.d.ts +0 -43
- package/dist/cjs/types/api/customer/rewards.js +0 -2
- package/dist/cjs/types/api/deals.d.ts +0 -32
- package/dist/cjs/types/api/deals.js +0 -2
- package/dist/esm/types/api/customer/rewards.d.ts +0 -43
- package/dist/esm/types/api/customer/rewards.js +0 -1
- package/dist/esm/types/api/deals.d.ts +0 -32
- package/dist/esm/types/api/deals.js +0 -1
|
@@ -10,6 +10,6 @@ tslib_1.__exportStar(require("./loyalty"), exports);
|
|
|
10
10
|
tslib_1.__exportStar(require("./groupOrders"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./allergens"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./houseAccounts"), exports);
|
|
13
|
-
|
|
13
|
+
// export * from './rewards'
|
|
14
14
|
tslib_1.__exportStar(require("./qrcode"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./thanx"), exports);
|
|
@@ -1,20 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DateString, TimeString } from '../datetimes';
|
|
2
|
+
import { ChannelType, DiscountAuthType, DiscountType, Images, Money, OrderType, ServiceType } from '../global';
|
|
3
|
+
export interface DiscountDaypart {
|
|
4
|
+
daypart_id: number;
|
|
5
|
+
end_time: TimeString;
|
|
6
|
+
name: string;
|
|
7
|
+
order_type: OrderType;
|
|
8
|
+
start_time: TimeString;
|
|
9
|
+
}
|
|
10
|
+
export declare type DiscountDayparts = DiscountDaypart[];
|
|
11
|
+
export interface DiscountItem {
|
|
3
12
|
id: number;
|
|
13
|
+
category_id: number;
|
|
4
14
|
name: string;
|
|
5
|
-
|
|
6
|
-
|
|
15
|
+
short_name: string;
|
|
16
|
+
}
|
|
17
|
+
export interface DiscountItems {
|
|
18
|
+
items: DiscountItem[];
|
|
19
|
+
quantity: number;
|
|
20
|
+
}
|
|
21
|
+
export interface DiscountRevenueCenter {
|
|
22
|
+
name: string;
|
|
23
|
+
revenue_center_id: number;
|
|
24
|
+
}
|
|
25
|
+
export declare type DiscountRevenueCenters = DiscountRevenueCenter[];
|
|
26
|
+
export interface Discount {
|
|
7
27
|
amount: Money;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
28
|
+
auth_type: DiscountAuthType;
|
|
29
|
+
channel_type: ChannelType | null;
|
|
30
|
+
dayparts: DiscountDayparts;
|
|
31
|
+
description: string;
|
|
32
|
+
discount_id: number;
|
|
33
|
+
discount_type: DiscountType;
|
|
34
|
+
discounted_items: DiscountItems;
|
|
35
|
+
end_date: DateString | null;
|
|
36
|
+
images: Images;
|
|
37
|
+
max_amount: Money | null;
|
|
38
|
+
max_order_size: Money | null;
|
|
39
|
+
max_redemptions: number | null;
|
|
40
|
+
max_redemptions_per: number | null;
|
|
41
|
+
min_amount: Money | null;
|
|
42
|
+
min_order_size: Money | null;
|
|
43
|
+
name: string;
|
|
44
|
+
order_type: OrderType | null;
|
|
45
|
+
per_order: number | null;
|
|
46
|
+
required_items: DiscountItems;
|
|
47
|
+
revenue_centers: DiscountRevenueCenters;
|
|
17
48
|
service_type: ServiceType | null;
|
|
18
|
-
|
|
49
|
+
short_description: string;
|
|
50
|
+
start_date: DateString | null;
|
|
51
|
+
title: string;
|
|
19
52
|
}
|
|
20
|
-
export declare type Discounts =
|
|
53
|
+
export declare type Discounts = Discount[];
|
|
@@ -11,7 +11,7 @@ tslib_1.__exportStar(require("./completedOrders"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./config"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./creditCards"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./customer"), exports);
|
|
14
|
-
|
|
14
|
+
// export * from './deals'
|
|
15
15
|
tslib_1.__exportStar(require("./device"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./discounts"), exports);
|
|
17
17
|
tslib_1.__exportStar(require("./donations"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OrdersKds } from './pos';
|
|
2
|
-
export declare type PrepStatus = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'COMPLETED' | 'FULFILLED'
|
|
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
|
};
|
|
@@ -150,13 +150,3 @@ export interface MenuCartErrors {
|
|
|
150
150
|
newCart: Cart;
|
|
151
151
|
errors: CartErrors | null;
|
|
152
152
|
}
|
|
153
|
-
export interface DiscountedItem {
|
|
154
|
-
id: number;
|
|
155
|
-
category_id: number;
|
|
156
|
-
name: string;
|
|
157
|
-
short_name: string;
|
|
158
|
-
}
|
|
159
|
-
export interface DiscountedItems {
|
|
160
|
-
items: DiscountedItem[];
|
|
161
|
-
quantity: number;
|
|
162
|
-
}
|
|
@@ -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:
|
|
123
|
-
created_at:
|
|
122
|
+
completed_at: ISOString | null;
|
|
123
|
+
created_at: ISOString;
|
|
124
124
|
daily_id: string;
|
|
125
|
-
done_at:
|
|
126
|
-
expected_at:
|
|
127
|
-
fire_at:
|
|
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:
|
|
131
|
-
requested_at:
|
|
130
|
+
ready_at: ISOString | null;
|
|
131
|
+
requested_at: ISOString;
|
|
132
132
|
}
|
|
133
133
|
export interface OrderRating {
|
|
134
134
|
comments: string | null;
|
|
@@ -1,20 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DateString, TimeString } from '../datetimes';
|
|
2
|
+
import { ChannelType, DiscountAuthType, DiscountType, Images, Money, OrderType, ServiceType } from '../global';
|
|
3
|
+
export interface DiscountDaypart {
|
|
4
|
+
daypart_id: number;
|
|
5
|
+
end_time: TimeString;
|
|
6
|
+
name: string;
|
|
7
|
+
order_type: OrderType;
|
|
8
|
+
start_time: TimeString;
|
|
9
|
+
}
|
|
10
|
+
export declare type DiscountDayparts = DiscountDaypart[];
|
|
11
|
+
export interface DiscountItem {
|
|
3
12
|
id: number;
|
|
13
|
+
category_id: number;
|
|
4
14
|
name: string;
|
|
5
|
-
|
|
6
|
-
|
|
15
|
+
short_name: string;
|
|
16
|
+
}
|
|
17
|
+
export interface DiscountItems {
|
|
18
|
+
items: DiscountItem[];
|
|
19
|
+
quantity: number;
|
|
20
|
+
}
|
|
21
|
+
export interface DiscountRevenueCenter {
|
|
22
|
+
name: string;
|
|
23
|
+
revenue_center_id: number;
|
|
24
|
+
}
|
|
25
|
+
export declare type DiscountRevenueCenters = DiscountRevenueCenter[];
|
|
26
|
+
export interface Discount {
|
|
7
27
|
amount: Money;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
28
|
+
auth_type: DiscountAuthType;
|
|
29
|
+
channel_type: ChannelType | null;
|
|
30
|
+
dayparts: DiscountDayparts;
|
|
31
|
+
description: string;
|
|
32
|
+
discount_id: number;
|
|
33
|
+
discount_type: DiscountType;
|
|
34
|
+
discounted_items: DiscountItems;
|
|
35
|
+
end_date: DateString | null;
|
|
36
|
+
images: Images;
|
|
37
|
+
max_amount: Money | null;
|
|
38
|
+
max_order_size: Money | null;
|
|
39
|
+
max_redemptions: number | null;
|
|
40
|
+
max_redemptions_per: number | null;
|
|
41
|
+
min_amount: Money | null;
|
|
42
|
+
min_order_size: Money | null;
|
|
43
|
+
name: string;
|
|
44
|
+
order_type: OrderType | null;
|
|
45
|
+
per_order: number | null;
|
|
46
|
+
required_items: DiscountItems;
|
|
47
|
+
revenue_centers: DiscountRevenueCenters;
|
|
17
48
|
service_type: ServiceType | null;
|
|
18
|
-
|
|
49
|
+
short_description: string;
|
|
50
|
+
start_date: DateString | null;
|
|
51
|
+
title: string;
|
|
19
52
|
}
|
|
20
|
-
export declare type Discounts =
|
|
53
|
+
export declare type Discounts = Discount[];
|
|
@@ -8,7 +8,7 @@ export * from './completedOrders';
|
|
|
8
8
|
export * from './config';
|
|
9
9
|
export * from './creditCards';
|
|
10
10
|
export * from './customer';
|
|
11
|
-
export * from './deals'
|
|
11
|
+
// export * from './deals'
|
|
12
12
|
export * from './device';
|
|
13
13
|
export * from './discounts';
|
|
14
14
|
export * from './donations';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OrdersKds } from './pos';
|
|
2
|
-
export declare type PrepStatus = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'COMPLETED' | 'FULFILLED'
|
|
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
|
};
|
|
@@ -150,13 +150,3 @@ export interface MenuCartErrors {
|
|
|
150
150
|
newCart: Cart;
|
|
151
151
|
errors: CartErrors | null;
|
|
152
152
|
}
|
|
153
|
-
export interface DiscountedItem {
|
|
154
|
-
id: number;
|
|
155
|
-
category_id: number;
|
|
156
|
-
name: string;
|
|
157
|
-
short_name: string;
|
|
158
|
-
}
|
|
159
|
-
export interface DiscountedItems {
|
|
160
|
-
items: DiscountedItem[];
|
|
161
|
-
quantity: number;
|
|
162
|
-
}
|
|
@@ -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:
|
|
123
|
-
created_at:
|
|
122
|
+
completed_at: ISOString | null;
|
|
123
|
+
created_at: ISOString;
|
|
124
124
|
daily_id: string;
|
|
125
|
-
done_at:
|
|
126
|
-
expected_at:
|
|
127
|
-
fire_at:
|
|
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:
|
|
131
|
-
requested_at:
|
|
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,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,32 +0,0 @@
|
|
|
1
|
-
import { DiscountAuthType, DiscountType, Images, Money, OrderType, ServiceType } from '../global';
|
|
2
|
-
import { DayPart } from './customer';
|
|
3
|
-
import { DiscountedItems } from './menu';
|
|
4
|
-
import { RevenueCenter } from './revenueCenter';
|
|
5
|
-
export interface Deal {
|
|
6
|
-
amount: Money;
|
|
7
|
-
auth_type: DiscountAuthType;
|
|
8
|
-
dayparts: Array<DayPart>;
|
|
9
|
-
description: string;
|
|
10
|
-
discount_id: number;
|
|
11
|
-
discount_type: DiscountType;
|
|
12
|
-
discounted_items: DiscountedItems;
|
|
13
|
-
end_date: string;
|
|
14
|
-
images: Images;
|
|
15
|
-
max_amount: string;
|
|
16
|
-
max_order_size: string;
|
|
17
|
-
max_redemptions: number;
|
|
18
|
-
max_redemptions_per: number;
|
|
19
|
-
min_amount: string;
|
|
20
|
-
min_order_size: string;
|
|
21
|
-
name: string;
|
|
22
|
-
order_type: OrderType;
|
|
23
|
-
per_order: number;
|
|
24
|
-
required_items: DiscountedItems;
|
|
25
|
-
service_type: ServiceType;
|
|
26
|
-
short_description: string;
|
|
27
|
-
start_date: string;
|
|
28
|
-
title: string;
|
|
29
|
-
revenue_centers?: RevenueCenter[];
|
|
30
|
-
channel_type?: string;
|
|
31
|
-
}
|
|
32
|
-
export declare type Deals = Deal[];
|
|
@@ -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,32 +0,0 @@
|
|
|
1
|
-
import { DiscountAuthType, DiscountType, Images, Money, OrderType, ServiceType } from '../global';
|
|
2
|
-
import { DayPart } from './customer';
|
|
3
|
-
import { DiscountedItems } from './menu';
|
|
4
|
-
import { RevenueCenter } from './revenueCenter';
|
|
5
|
-
export interface Deal {
|
|
6
|
-
amount: Money;
|
|
7
|
-
auth_type: DiscountAuthType;
|
|
8
|
-
dayparts: Array<DayPart>;
|
|
9
|
-
description: string;
|
|
10
|
-
discount_id: number;
|
|
11
|
-
discount_type: DiscountType;
|
|
12
|
-
discounted_items: DiscountedItems;
|
|
13
|
-
end_date: string;
|
|
14
|
-
images: Images;
|
|
15
|
-
max_amount: string;
|
|
16
|
-
max_order_size: string;
|
|
17
|
-
max_redemptions: number;
|
|
18
|
-
max_redemptions_per: number;
|
|
19
|
-
min_amount: string;
|
|
20
|
-
min_order_size: string;
|
|
21
|
-
name: string;
|
|
22
|
-
order_type: OrderType;
|
|
23
|
-
per_order: number;
|
|
24
|
-
required_items: DiscountedItems;
|
|
25
|
-
service_type: ServiceType;
|
|
26
|
-
short_description: string;
|
|
27
|
-
start_date: string;
|
|
28
|
-
title: string;
|
|
29
|
-
revenue_centers?: RevenueCenter[];
|
|
30
|
-
channel_type?: string;
|
|
31
|
-
}
|
|
32
|
-
export declare type Deals = Deal[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|