@open-tender/types 0.2.16 → 0.2.18
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/groupOrders.d.ts +3 -3
- 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/deals.d.ts +4 -5
- 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/menu.d.ts +0 -10
- package/dist/esm/types/api/customer/groupOrders.d.ts +3 -3
- 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/deals.d.ts +4 -5
- 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/menu.d.ts +0 -10
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISOString } from '../../datetimes';
|
|
1
|
+
import { ISOString, RequestedAt } from '../../datetimes';
|
|
2
2
|
import { ServiceType } from '../../global';
|
|
3
3
|
import { SimpleCart } from '../checkout';
|
|
4
4
|
import { Address } from './addresses';
|
|
@@ -23,10 +23,10 @@ export interface GroupOrder {
|
|
|
23
23
|
cart_id: number;
|
|
24
24
|
closed: boolean;
|
|
25
25
|
customer?: CartOwner;
|
|
26
|
-
cutoff_at:
|
|
26
|
+
cutoff_at: ISOString | null;
|
|
27
27
|
guest_count: number;
|
|
28
28
|
guest_limit: number | null;
|
|
29
|
-
requested_at:
|
|
29
|
+
requested_at: RequestedAt;
|
|
30
30
|
revenue_center_id: number;
|
|
31
31
|
service_type: ServiceType;
|
|
32
32
|
spending_limit: string | null;
|
|
@@ -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,15 +1,14 @@
|
|
|
1
1
|
import { DiscountAuthType, DiscountType, Images, Money, OrderType, ServiceType } from '../global';
|
|
2
|
-
import {
|
|
3
|
-
import { DiscountedItems } from './menu';
|
|
2
|
+
import { DiscountDayparts, DiscountItems } from './discounts';
|
|
4
3
|
import { RevenueCenter } from './revenueCenter';
|
|
5
4
|
export interface Deal {
|
|
6
5
|
amount: Money;
|
|
7
6
|
auth_type: DiscountAuthType;
|
|
8
|
-
dayparts:
|
|
7
|
+
dayparts: DiscountDayparts;
|
|
9
8
|
description: string;
|
|
10
9
|
discount_id: number;
|
|
11
10
|
discount_type: DiscountType;
|
|
12
|
-
discounted_items:
|
|
11
|
+
discounted_items: DiscountItems;
|
|
13
12
|
end_date: string;
|
|
14
13
|
images: Images;
|
|
15
14
|
max_amount: string;
|
|
@@ -21,7 +20,7 @@ export interface Deal {
|
|
|
21
20
|
name: string;
|
|
22
21
|
order_type: OrderType;
|
|
23
22
|
per_order: number;
|
|
24
|
-
required_items:
|
|
23
|
+
required_items: DiscountItems;
|
|
25
24
|
service_type: ServiceType;
|
|
26
25
|
short_description: string;
|
|
27
26
|
start_date: string;
|
|
@@ -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);
|
|
@@ -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 { ISOString } from '../../datetimes';
|
|
1
|
+
import { ISOString, RequestedAt } from '../../datetimes';
|
|
2
2
|
import { ServiceType } from '../../global';
|
|
3
3
|
import { SimpleCart } from '../checkout';
|
|
4
4
|
import { Address } from './addresses';
|
|
@@ -23,10 +23,10 @@ export interface GroupOrder {
|
|
|
23
23
|
cart_id: number;
|
|
24
24
|
closed: boolean;
|
|
25
25
|
customer?: CartOwner;
|
|
26
|
-
cutoff_at:
|
|
26
|
+
cutoff_at: ISOString | null;
|
|
27
27
|
guest_count: number;
|
|
28
28
|
guest_limit: number | null;
|
|
29
|
-
requested_at:
|
|
29
|
+
requested_at: RequestedAt;
|
|
30
30
|
revenue_center_id: number;
|
|
31
31
|
service_type: ServiceType;
|
|
32
32
|
spending_limit: string | null;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { DiscountAuthType, DiscountType, Images, Money, OrderType, ServiceType } from '../global';
|
|
2
|
-
import {
|
|
3
|
-
import { DiscountedItems } from './menu';
|
|
2
|
+
import { DiscountDayparts, DiscountItems } from './discounts';
|
|
4
3
|
import { RevenueCenter } from './revenueCenter';
|
|
5
4
|
export interface Deal {
|
|
6
5
|
amount: Money;
|
|
7
6
|
auth_type: DiscountAuthType;
|
|
8
|
-
dayparts:
|
|
7
|
+
dayparts: DiscountDayparts;
|
|
9
8
|
description: string;
|
|
10
9
|
discount_id: number;
|
|
11
10
|
discount_type: DiscountType;
|
|
12
|
-
discounted_items:
|
|
11
|
+
discounted_items: DiscountItems;
|
|
13
12
|
end_date: string;
|
|
14
13
|
images: Images;
|
|
15
14
|
max_amount: string;
|
|
@@ -21,7 +20,7 @@ export interface Deal {
|
|
|
21
20
|
name: string;
|
|
22
21
|
order_type: OrderType;
|
|
23
22
|
per_order: number;
|
|
24
|
-
required_items:
|
|
23
|
+
required_items: DiscountItems;
|
|
25
24
|
service_type: ServiceType;
|
|
26
25
|
short_description: string;
|
|
27
26
|
start_date: string;
|
|
@@ -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';
|
|
@@ -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
|
-
}
|
package/package.json
CHANGED