@open-tender/types 0.1.1 → 0.1.3
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/.DS_Store +0 -0
- package/dist/cjs/.DS_Store +0 -0
- package/dist/cjs/types/api/announcements.d.ts +6 -6
- package/dist/cjs/types/api/config.d.ts +5 -5
- package/dist/cjs/types/api/customer/account.d.ts +1 -1
- package/dist/cjs/types/api/customer/rewards.d.ts +2 -2
- package/dist/cjs/types/api/customer/thanx.d.ts +1 -1
- package/dist/cjs/types/api/deals.d.ts +6 -6
- package/dist/cjs/types/global.d.ts +1 -1
- package/dist/esm/.DS_Store +0 -0
- package/dist/esm/types/api/announcements.d.ts +6 -6
- package/dist/esm/types/api/config.d.ts +5 -5
- package/dist/esm/types/api/customer/account.d.ts +1 -1
- package/dist/esm/types/api/customer/rewards.d.ts +2 -2
- package/dist/esm/types/api/customer/thanx.d.ts +1 -1
- package/dist/esm/types/api/deals.d.ts +6 -6
- package/dist/esm/types/global.d.ts +1 -1
- package/package.json +1 -1
package/dist/.DS_Store
CHANGED
|
Binary file
|
package/dist/cjs/.DS_Store
CHANGED
|
Binary file
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AuthType } from '../global';
|
|
2
1
|
export interface ContentImage {
|
|
3
2
|
type: 'SECONDARY_IMAGE' | 'FEATURED_IMAGE';
|
|
4
3
|
url: string | null;
|
|
@@ -24,8 +23,9 @@ export interface Announcement {
|
|
|
24
23
|
url: string | null;
|
|
25
24
|
url_text: string | null;
|
|
26
25
|
vertical: string;
|
|
27
|
-
|
|
26
|
+
imageUrl?: string | null;
|
|
28
27
|
}
|
|
28
|
+
export declare type AnnouncementPageType = 'ABOUT' | 'ACCOUNT' | 'CATERING' | 'CHECKOUT' | 'GUEST' | 'HOME' | 'MENU' | 'ORDER_TYPE';
|
|
29
29
|
export interface AnnouncementSettings {
|
|
30
30
|
announcement_page_id: number;
|
|
31
31
|
arrows_horizontal: string;
|
|
@@ -33,7 +33,7 @@ export interface AnnouncementSettings {
|
|
|
33
33
|
autoplay: boolean;
|
|
34
34
|
duration: number;
|
|
35
35
|
duration_mobile: number;
|
|
36
|
-
page:
|
|
36
|
+
page: AnnouncementPageType;
|
|
37
37
|
show_arrows: boolean;
|
|
38
38
|
show_arrows_mobile: boolean;
|
|
39
39
|
show_dots: boolean;
|
|
@@ -44,10 +44,10 @@ export interface AnnouncementSettings {
|
|
|
44
44
|
transition_mobile: number;
|
|
45
45
|
transition_type: string;
|
|
46
46
|
}
|
|
47
|
-
export declare type Announcements =
|
|
47
|
+
export declare type Announcements = Announcement[];
|
|
48
48
|
export interface AnnouncementPage {
|
|
49
49
|
entities: Announcements;
|
|
50
|
-
page:
|
|
50
|
+
page: AnnouncementPageType;
|
|
51
51
|
settings: AnnouncementSettings;
|
|
52
52
|
}
|
|
53
|
-
export declare type AnnouncementPages =
|
|
53
|
+
export declare type AnnouncementPages = AnnouncementPage[];
|
|
@@ -394,8 +394,8 @@ export interface ConfigDisplaySetting {
|
|
|
394
394
|
menuHeroChildMobile: boolean;
|
|
395
395
|
menuHeroMobile: boolean;
|
|
396
396
|
menuImages: boolean;
|
|
397
|
-
menuItemDescription:
|
|
398
|
-
menuItemDescriptionMobile:
|
|
397
|
+
menuItemDescription: 'SHOW' | 'SHORT' | 'HIDE';
|
|
398
|
+
menuItemDescriptionMobile: 'SHOW' | 'SHORT' | 'HIDE';
|
|
399
399
|
menuType: string;
|
|
400
400
|
menuTypeApp: string;
|
|
401
401
|
menuTypeMobile: string;
|
|
@@ -427,17 +427,17 @@ export interface ConfigIcon {
|
|
|
427
427
|
export interface ConfigSettings {
|
|
428
428
|
accountSections: Array<string>;
|
|
429
429
|
autoSelect: {
|
|
430
|
-
[keys in OrderType]
|
|
430
|
+
[keys in OrderType]: {
|
|
431
431
|
[keys in ServiceType]?: boolean;
|
|
432
432
|
};
|
|
433
433
|
};
|
|
434
434
|
checkout: {
|
|
435
435
|
orderTypes: {
|
|
436
|
-
[keys in OrderType]
|
|
436
|
+
[keys in OrderType]: ConfigSettingsCheckout;
|
|
437
437
|
};
|
|
438
438
|
};
|
|
439
439
|
displaySettings: {
|
|
440
|
-
[keys in OrderType]
|
|
440
|
+
[keys in OrderType]: ConfigDisplaySetting;
|
|
441
441
|
};
|
|
442
442
|
googleMaps: {
|
|
443
443
|
apiKey: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DiscountAuthType, DiscountType, OrderType, ServiceType } from '../../global';
|
|
2
2
|
import { MenuItems } from '../menu';
|
|
3
3
|
import { OrderItemImages } from '../order';
|
|
4
4
|
export interface DayPart {
|
|
@@ -14,7 +14,7 @@ export interface RewardItems {
|
|
|
14
14
|
}
|
|
15
15
|
export interface Reward {
|
|
16
16
|
amount: string;
|
|
17
|
-
auth_type:
|
|
17
|
+
auth_type: DiscountAuthType;
|
|
18
18
|
dayparts: Array<DayPart>;
|
|
19
19
|
description: string;
|
|
20
20
|
discount_id: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DayPart } from
|
|
3
|
-
import { DiscountedItems } from
|
|
4
|
-
import { OrderItemImage } from
|
|
5
|
-
import { RevenueCenter } from
|
|
1
|
+
import { DiscountAuthType, DiscountType, Money, OrderType, ServiceType } from '../global';
|
|
2
|
+
import { DayPart } from './customer';
|
|
3
|
+
import { DiscountedItems } from './menu';
|
|
4
|
+
import { OrderItemImage } from './order';
|
|
5
|
+
import { RevenueCenter } from './revenueCenter';
|
|
6
6
|
export interface Deal {
|
|
7
7
|
amount: Money;
|
|
8
|
-
auth_type:
|
|
8
|
+
auth_type: DiscountAuthType;
|
|
9
9
|
dayparts: Array<DayPart>;
|
|
10
10
|
description: string;
|
|
11
11
|
discount_id: number;
|
|
@@ -21,6 +21,7 @@ export declare type TenderTypeMap = {
|
|
|
21
21
|
};
|
|
22
22
|
export declare type CardType = 'VISA' | 'MC' | 'DISC' | 'AMEX' | 'OTHER';
|
|
23
23
|
export declare type DiscountType = 'DOLLAR' | 'PERCENTAGE';
|
|
24
|
+
export declare type DiscountAuthType = 'ACCOUNT' | 'VERIFIED' | null;
|
|
24
25
|
export declare type SurchargeType = 'DOLLAR' | 'PERCENTAGE' | 'DISTANCE' | 'TRAVEL_TIME';
|
|
25
26
|
export declare type TaxType = 'DOLLAR' | 'PERCENTAGE';
|
|
26
27
|
export declare type TaxTypeInt = 1 | 2;
|
|
@@ -36,4 +37,3 @@ export interface PicklistOption {
|
|
|
36
37
|
disabled?: boolean;
|
|
37
38
|
}
|
|
38
39
|
export declare type PicklistOptions = PicklistOption[];
|
|
39
|
-
export declare type AuthType = 'GUEST' | 'ACCOUNT' | 'VERIFIED' | 'HOME' | 'MENU' | 'ORDER_TYPE' | 'CATERING';
|
|
Binary file
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AuthType } from '../global';
|
|
2
1
|
export interface ContentImage {
|
|
3
2
|
type: 'SECONDARY_IMAGE' | 'FEATURED_IMAGE';
|
|
4
3
|
url: string | null;
|
|
@@ -24,8 +23,9 @@ export interface Announcement {
|
|
|
24
23
|
url: string | null;
|
|
25
24
|
url_text: string | null;
|
|
26
25
|
vertical: string;
|
|
27
|
-
|
|
26
|
+
imageUrl?: string | null;
|
|
28
27
|
}
|
|
28
|
+
export declare type AnnouncementPageType = 'ABOUT' | 'ACCOUNT' | 'CATERING' | 'CHECKOUT' | 'GUEST' | 'HOME' | 'MENU' | 'ORDER_TYPE';
|
|
29
29
|
export interface AnnouncementSettings {
|
|
30
30
|
announcement_page_id: number;
|
|
31
31
|
arrows_horizontal: string;
|
|
@@ -33,7 +33,7 @@ export interface AnnouncementSettings {
|
|
|
33
33
|
autoplay: boolean;
|
|
34
34
|
duration: number;
|
|
35
35
|
duration_mobile: number;
|
|
36
|
-
page:
|
|
36
|
+
page: AnnouncementPageType;
|
|
37
37
|
show_arrows: boolean;
|
|
38
38
|
show_arrows_mobile: boolean;
|
|
39
39
|
show_dots: boolean;
|
|
@@ -44,10 +44,10 @@ export interface AnnouncementSettings {
|
|
|
44
44
|
transition_mobile: number;
|
|
45
45
|
transition_type: string;
|
|
46
46
|
}
|
|
47
|
-
export declare type Announcements =
|
|
47
|
+
export declare type Announcements = Announcement[];
|
|
48
48
|
export interface AnnouncementPage {
|
|
49
49
|
entities: Announcements;
|
|
50
|
-
page:
|
|
50
|
+
page: AnnouncementPageType;
|
|
51
51
|
settings: AnnouncementSettings;
|
|
52
52
|
}
|
|
53
|
-
export declare type AnnouncementPages =
|
|
53
|
+
export declare type AnnouncementPages = AnnouncementPage[];
|
|
@@ -394,8 +394,8 @@ export interface ConfigDisplaySetting {
|
|
|
394
394
|
menuHeroChildMobile: boolean;
|
|
395
395
|
menuHeroMobile: boolean;
|
|
396
396
|
menuImages: boolean;
|
|
397
|
-
menuItemDescription:
|
|
398
|
-
menuItemDescriptionMobile:
|
|
397
|
+
menuItemDescription: 'SHOW' | 'SHORT' | 'HIDE';
|
|
398
|
+
menuItemDescriptionMobile: 'SHOW' | 'SHORT' | 'HIDE';
|
|
399
399
|
menuType: string;
|
|
400
400
|
menuTypeApp: string;
|
|
401
401
|
menuTypeMobile: string;
|
|
@@ -427,17 +427,17 @@ export interface ConfigIcon {
|
|
|
427
427
|
export interface ConfigSettings {
|
|
428
428
|
accountSections: Array<string>;
|
|
429
429
|
autoSelect: {
|
|
430
|
-
[keys in OrderType]
|
|
430
|
+
[keys in OrderType]: {
|
|
431
431
|
[keys in ServiceType]?: boolean;
|
|
432
432
|
};
|
|
433
433
|
};
|
|
434
434
|
checkout: {
|
|
435
435
|
orderTypes: {
|
|
436
|
-
[keys in OrderType]
|
|
436
|
+
[keys in OrderType]: ConfigSettingsCheckout;
|
|
437
437
|
};
|
|
438
438
|
};
|
|
439
439
|
displaySettings: {
|
|
440
|
-
[keys in OrderType]
|
|
440
|
+
[keys in OrderType]: ConfigDisplaySetting;
|
|
441
441
|
};
|
|
442
442
|
googleMaps: {
|
|
443
443
|
apiKey: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DiscountAuthType, DiscountType, OrderType, ServiceType } from '../../global';
|
|
2
2
|
import { MenuItems } from '../menu';
|
|
3
3
|
import { OrderItemImages } from '../order';
|
|
4
4
|
export interface DayPart {
|
|
@@ -14,7 +14,7 @@ export interface RewardItems {
|
|
|
14
14
|
}
|
|
15
15
|
export interface Reward {
|
|
16
16
|
amount: string;
|
|
17
|
-
auth_type:
|
|
17
|
+
auth_type: DiscountAuthType;
|
|
18
18
|
dayparts: Array<DayPart>;
|
|
19
19
|
description: string;
|
|
20
20
|
discount_id: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DayPart } from
|
|
3
|
-
import { DiscountedItems } from
|
|
4
|
-
import { OrderItemImage } from
|
|
5
|
-
import { RevenueCenter } from
|
|
1
|
+
import { DiscountAuthType, DiscountType, Money, OrderType, ServiceType } from '../global';
|
|
2
|
+
import { DayPart } from './customer';
|
|
3
|
+
import { DiscountedItems } from './menu';
|
|
4
|
+
import { OrderItemImage } from './order';
|
|
5
|
+
import { RevenueCenter } from './revenueCenter';
|
|
6
6
|
export interface Deal {
|
|
7
7
|
amount: Money;
|
|
8
|
-
auth_type:
|
|
8
|
+
auth_type: DiscountAuthType;
|
|
9
9
|
dayparts: Array<DayPart>;
|
|
10
10
|
description: string;
|
|
11
11
|
discount_id: number;
|
|
@@ -21,6 +21,7 @@ export declare type TenderTypeMap = {
|
|
|
21
21
|
};
|
|
22
22
|
export declare type CardType = 'VISA' | 'MC' | 'DISC' | 'AMEX' | 'OTHER';
|
|
23
23
|
export declare type DiscountType = 'DOLLAR' | 'PERCENTAGE';
|
|
24
|
+
export declare type DiscountAuthType = 'ACCOUNT' | 'VERIFIED' | null;
|
|
24
25
|
export declare type SurchargeType = 'DOLLAR' | 'PERCENTAGE' | 'DISTANCE' | 'TRAVEL_TIME';
|
|
25
26
|
export declare type TaxType = 'DOLLAR' | 'PERCENTAGE';
|
|
26
27
|
export declare type TaxTypeInt = 1 | 2;
|
|
@@ -36,4 +37,3 @@ export interface PicklistOption {
|
|
|
36
37
|
disabled?: boolean;
|
|
37
38
|
}
|
|
38
39
|
export declare type PicklistOptions = PicklistOption[];
|
|
39
|
-
export declare type AuthType = 'GUEST' | 'ACCOUNT' | 'VERIFIED' | 'HOME' | 'MENU' | 'ORDER_TYPE' | 'CATERING';
|
package/package.json
CHANGED