@open-tender/types 0.0.11 → 0.0.12

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,4 +1,4 @@
1
- import { DisplayPage } from '../global';
1
+ import { AuthType } from '../global';
2
2
  export interface Announcement {
3
3
  announcement_id: number;
4
4
  display_order: number;
@@ -27,7 +27,7 @@ export interface AnnouncementSettings {
27
27
  autoplay: boolean;
28
28
  duration: number;
29
29
  duration_mobile: number;
30
- page: DisplayPage;
30
+ page: AuthType;
31
31
  show_arrows: boolean;
32
32
  show_arrows_mobile: boolean;
33
33
  show_dots: boolean;
@@ -41,7 +41,7 @@ export interface AnnouncementSettings {
41
41
  export declare type Announcements = Array<Announcement>;
42
42
  export interface AnnouncementPage {
43
43
  entities: Announcements;
44
- page: DisplayPage;
44
+ page: AuthType;
45
45
  settings: AnnouncementSettings;
46
46
  }
47
47
  export declare type AnnouncementPages = Array<AnnouncementPage>;
@@ -1,4 +1,4 @@
1
- import { DiscountType, DisplayPage, OrderType, ServiceType } from '../../global';
1
+ import { DiscountType, AuthType, OrderType, ServiceType } from '../../global';
2
2
  import { MenuItems } from '../menu';
3
3
  import { OrderItemImage } 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: DisplayPage;
17
+ auth_type: AuthType;
18
18
  dayparts: Array<DayPart>;
19
19
  description: string;
20
20
  discount_id: number;
@@ -0,0 +1,30 @@
1
+ import { AuthType, DiscountType, Money, OrderType, ServiceType } from "../global";
2
+ import { DayPart } from "./customer";
3
+ import { DiscountedItems } from "./menu";
4
+ import { OrderItemImage } from "./order";
5
+ export interface Deal {
6
+ amount: Money;
7
+ auth_type: AuthType;
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: Array<OrderItemImage>;
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
+ }
30
+ export declare type Deals = Array<Deal>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -133,3 +133,13 @@ export interface MenuVars {
133
133
  requestedAt: RequestedAt;
134
134
  }
135
135
  export declare type SoldOut = number[];
136
+ export interface DiscountedItem {
137
+ id: number;
138
+ category_id: number;
139
+ name: string;
140
+ short_name: string;
141
+ }
142
+ export interface DiscountedItems {
143
+ items: Array<DiscountedItem>;
144
+ quantity: number;
145
+ }
@@ -36,4 +36,4 @@ export interface PicklistOption {
36
36
  disabled?: boolean;
37
37
  }
38
38
  export declare type PicklistOptions = PicklistOption[];
39
- export declare type DisplayPage = 'GUEST' | 'ACCOUNT';
39
+ export declare type AuthType = 'GUEST' | 'ACCOUNT';
@@ -1,4 +1,4 @@
1
- import { DisplayPage } from '../global';
1
+ import { AuthType } from '../global';
2
2
  export interface Announcement {
3
3
  announcement_id: number;
4
4
  display_order: number;
@@ -27,7 +27,7 @@ export interface AnnouncementSettings {
27
27
  autoplay: boolean;
28
28
  duration: number;
29
29
  duration_mobile: number;
30
- page: DisplayPage;
30
+ page: AuthType;
31
31
  show_arrows: boolean;
32
32
  show_arrows_mobile: boolean;
33
33
  show_dots: boolean;
@@ -41,7 +41,7 @@ export interface AnnouncementSettings {
41
41
  export declare type Announcements = Array<Announcement>;
42
42
  export interface AnnouncementPage {
43
43
  entities: Announcements;
44
- page: DisplayPage;
44
+ page: AuthType;
45
45
  settings: AnnouncementSettings;
46
46
  }
47
47
  export declare type AnnouncementPages = Array<AnnouncementPage>;
@@ -1,4 +1,4 @@
1
- import { DiscountType, DisplayPage, OrderType, ServiceType } from '../../global';
1
+ import { DiscountType, AuthType, OrderType, ServiceType } from '../../global';
2
2
  import { MenuItems } from '../menu';
3
3
  import { OrderItemImage } 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: DisplayPage;
17
+ auth_type: AuthType;
18
18
  dayparts: Array<DayPart>;
19
19
  description: string;
20
20
  discount_id: number;
@@ -0,0 +1,30 @@
1
+ import { AuthType, DiscountType, Money, OrderType, ServiceType } from "../global";
2
+ import { DayPart } from "./customer";
3
+ import { DiscountedItems } from "./menu";
4
+ import { OrderItemImage } from "./order";
5
+ export interface Deal {
6
+ amount: Money;
7
+ auth_type: AuthType;
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: Array<OrderItemImage>;
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
+ }
30
+ export declare type Deals = Array<Deal>;
@@ -0,0 +1 @@
1
+ export {};
@@ -133,3 +133,13 @@ export interface MenuVars {
133
133
  requestedAt: RequestedAt;
134
134
  }
135
135
  export declare type SoldOut = number[];
136
+ export interface DiscountedItem {
137
+ id: number;
138
+ category_id: number;
139
+ name: string;
140
+ short_name: string;
141
+ }
142
+ export interface DiscountedItems {
143
+ items: Array<DiscountedItem>;
144
+ quantity: number;
145
+ }
@@ -36,4 +36,4 @@ export interface PicklistOption {
36
36
  disabled?: boolean;
37
37
  }
38
38
  export declare type PicklistOptions = PicklistOption[];
39
- export declare type DisplayPage = 'GUEST' | 'ACCOUNT';
39
+ export declare type AuthType = 'GUEST' | 'ACCOUNT';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
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",