@open-tender/types 0.2.102 → 0.2.104

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,6 @@
1
1
  import { TimezonePython } from '../datetimes';
2
2
  import { LatLng, OrderType, ServiceType } from '../global';
3
- import { CustomerCreate, LoyaltyType, NotificationChannel } from './customer';
3
+ import { CustomerCreate, LoyaltyType, NotificationArea, NotificationChannel } from './customer';
4
4
  import { RevenueCenterStatus } from './revenueCenter';
5
5
  export interface ConfigApp {
6
6
  authUrl: string;
@@ -8,11 +8,26 @@ export interface ConfigApp {
8
8
  brandId: string;
9
9
  clientId: string;
10
10
  }
11
+ export declare type OrderAppPageType = 'ACCOUNT' | 'CHECKOUT' | 'CONFIRMATION' | 'GUEST' | 'ITEM' | 'ORDER_TYPES' | 'LOCATIONS' | 'MENU' | 'MENU_CATEGORY' | 'UPSELL';
12
+ export interface OrderAppPageElement {
13
+ props: Record<string, string>;
14
+ text: Record<string, string> | null;
15
+ }
16
+ export interface OrderAppPage {
17
+ desktop: Record<string, OrderAppPageElement>;
18
+ mobile: Record<string, OrderAppPageElement>;
19
+ }
20
+ export declare type OrderAppPages = Record<OrderAppPageType, OrderAppPage>;
11
21
  export interface ConfigAcceptMarketing {
12
22
  default: boolean;
13
23
  description: string;
14
24
  title: string;
15
25
  }
26
+ export interface ConfigNotificationPreference {
27
+ notification_area: NotificationArea;
28
+ notification_channel: NotificationChannel;
29
+ }
30
+ export declare type ConfigNotificationPreferences = ConfigNotificationPreference[];
16
31
  export interface ConfigFulfillmentField {
17
32
  label: string;
18
33
  name: string;
@@ -82,6 +97,7 @@ export interface ConfigBrand {
82
97
  logo: string;
83
98
  logoLight: string;
84
99
  loyalty: ConfigLoyalty;
100
+ notification_preferences: ConfigNotificationPreferences;
85
101
  olo_id: number;
86
102
  openGraphImage: string | null;
87
103
  order_notifications: ConfigOrderNotifications | null;
@@ -1,6 +1,6 @@
1
1
  import { TimezonePython } from '../datetimes';
2
2
  import { LatLng, OrderType, ServiceType } from '../global';
3
- import { CustomerCreate, LoyaltyType, NotificationChannel } from './customer';
3
+ import { CustomerCreate, LoyaltyType, NotificationArea, NotificationChannel } from './customer';
4
4
  import { RevenueCenterStatus } from './revenueCenter';
5
5
  export interface ConfigApp {
6
6
  authUrl: string;
@@ -8,11 +8,26 @@ export interface ConfigApp {
8
8
  brandId: string;
9
9
  clientId: string;
10
10
  }
11
+ export declare type OrderAppPageType = 'ACCOUNT' | 'CHECKOUT' | 'CONFIRMATION' | 'GUEST' | 'ITEM' | 'ORDER_TYPES' | 'LOCATIONS' | 'MENU' | 'MENU_CATEGORY' | 'UPSELL';
12
+ export interface OrderAppPageElement {
13
+ props: Record<string, string>;
14
+ text: Record<string, string> | null;
15
+ }
16
+ export interface OrderAppPage {
17
+ desktop: Record<string, OrderAppPageElement>;
18
+ mobile: Record<string, OrderAppPageElement>;
19
+ }
20
+ export declare type OrderAppPages = Record<OrderAppPageType, OrderAppPage>;
11
21
  export interface ConfigAcceptMarketing {
12
22
  default: boolean;
13
23
  description: string;
14
24
  title: string;
15
25
  }
26
+ export interface ConfigNotificationPreference {
27
+ notification_area: NotificationArea;
28
+ notification_channel: NotificationChannel;
29
+ }
30
+ export declare type ConfigNotificationPreferences = ConfigNotificationPreference[];
16
31
  export interface ConfigFulfillmentField {
17
32
  label: string;
18
33
  name: string;
@@ -82,6 +97,7 @@ export interface ConfigBrand {
82
97
  logo: string;
83
98
  logoLight: string;
84
99
  loyalty: ConfigLoyalty;
100
+ notification_preferences: ConfigNotificationPreferences;
85
101
  olo_id: number;
86
102
  openGraphImage: string | null;
87
103
  order_notifications: ConfigOrderNotifications | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.2.102",
3
+ "version": "0.2.104",
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",