@open-tender/types 0.2.5 → 0.2.7

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.
@@ -331,6 +331,8 @@ export interface ConfigSettingsCheckout {
331
331
  details_servingUtensils: string | null;
332
332
  promo_code_limit: number;
333
333
  }
334
+ export declare type MenuType = 'DEFAULT' | 'SCROLLABLE';
335
+ export declare type MenuTypeApp = MenuType | 'TABS';
334
336
  export interface ConfigDisplaySetting {
335
337
  allergens: boolean;
336
338
  builderImages: boolean;
@@ -349,9 +351,9 @@ export interface ConfigDisplaySetting {
349
351
  menuImages: boolean;
350
352
  menuItemDescription: 'SHOW' | 'SHORT' | 'HIDE';
351
353
  menuItemDescriptionMobile: 'SHOW' | 'SHORT' | 'HIDE';
352
- menuType: string;
353
- menuTypeApp: string;
354
- menuTypeMobile: string;
354
+ menuType: MenuType;
355
+ menuTypeApp: MenuTypeApp;
356
+ menuTypeMobile: MenuType;
355
357
  modifierDescription: boolean;
356
358
  modifierGroupDescription: boolean;
357
359
  modifierImage: boolean;
@@ -8,3 +8,5 @@ export interface CustomerNotificationPref {
8
8
  notification_channel: NotificationChannel;
9
9
  }
10
10
  export declare type CustomerNotificationPrefs = CustomerNotificationPref[];
11
+ export declare type CustomerNotificationPrefCreate = Omit<CustomerNotificationPref, 'created_at' | 'customer_notification_preference_id'>;
12
+ export declare type CustomerNotificationPrefsCreate = CustomerNotificationPrefCreate[];
@@ -1,13 +1,26 @@
1
- import { Reward } from './rewards';
1
+ import { DateString } from '../../datetimes';
2
+ import { DiscountType, Money } from '../../global';
2
3
  export interface ThanxProgress {
3
4
  percentage: string;
4
5
  towards: string;
5
6
  }
7
+ export interface ThanxReward {
8
+ amount: Money;
9
+ description: string;
10
+ discount_type: DiscountType;
11
+ ext_id: string;
12
+ items: number[];
13
+ max_amount: Money;
14
+ min_order_size: Money;
15
+ name: string;
16
+ retire_at: DateString | null;
17
+ }
18
+ export declare type ThanxRewards = ThanxReward[];
6
19
  export interface Thanx {
7
20
  email: string;
8
21
  ext_id: string;
9
22
  first_name: string;
10
23
  last_name: string;
11
24
  progress: ThanxProgress;
12
- rewards: Array<Partial<Reward>>;
25
+ rewards: ThanxRewards;
13
26
  }
@@ -29,4 +29,4 @@ export interface Deal {
29
29
  revenue_centers?: Array<RevenueCenter>;
30
30
  channel_type?: string;
31
31
  }
32
- export declare type Deals = Array<Deal>;
32
+ export declare type Deals = Deals[];
@@ -321,7 +321,7 @@ export interface ThemeItem extends Record<string, ThemeItemStyles> {
321
321
  desktop: ThemeItemStyles;
322
322
  mobile: ThemeItemStyles;
323
323
  }
324
- export interface ThemeItemsStyles extends Record<string, string> {
324
+ export interface ThemeItemsStyles extends Record<string, string | number> {
325
325
  containerMaxWidth: string;
326
326
  gap: string;
327
327
  gapDouble: string;
@@ -329,7 +329,7 @@ export interface ThemeItemsStyles extends Record<string, string> {
329
329
  justifyContent: string;
330
330
  marginBottom: string;
331
331
  minWidth: string;
332
- perRow: string;
332
+ perRow: number;
333
333
  width: string;
334
334
  }
335
335
  export interface ThemeItems extends Record<string, ThemeItemsStyles> {
@@ -51,4 +51,4 @@ export interface Image {
51
51
  }
52
52
  export declare type Images = Image[];
53
53
  export declare type OrderNotifications = 'ALL' | 'EMAIL' | 'NEW' | 'NONE' | 'SMS';
54
- export declare type Gender = 'MALE' | 'FEMALE' | 'DECLINED' | null;
54
+ export declare type Gender = 'MALE' | 'FEMALE' | 'DECLINED';
@@ -331,6 +331,8 @@ export interface ConfigSettingsCheckout {
331
331
  details_servingUtensils: string | null;
332
332
  promo_code_limit: number;
333
333
  }
334
+ export declare type MenuType = 'DEFAULT' | 'SCROLLABLE';
335
+ export declare type MenuTypeApp = MenuType | 'TABS';
334
336
  export interface ConfigDisplaySetting {
335
337
  allergens: boolean;
336
338
  builderImages: boolean;
@@ -349,9 +351,9 @@ export interface ConfigDisplaySetting {
349
351
  menuImages: boolean;
350
352
  menuItemDescription: 'SHOW' | 'SHORT' | 'HIDE';
351
353
  menuItemDescriptionMobile: 'SHOW' | 'SHORT' | 'HIDE';
352
- menuType: string;
353
- menuTypeApp: string;
354
- menuTypeMobile: string;
354
+ menuType: MenuType;
355
+ menuTypeApp: MenuTypeApp;
356
+ menuTypeMobile: MenuType;
355
357
  modifierDescription: boolean;
356
358
  modifierGroupDescription: boolean;
357
359
  modifierImage: boolean;
@@ -8,3 +8,5 @@ export interface CustomerNotificationPref {
8
8
  notification_channel: NotificationChannel;
9
9
  }
10
10
  export declare type CustomerNotificationPrefs = CustomerNotificationPref[];
11
+ export declare type CustomerNotificationPrefCreate = Omit<CustomerNotificationPref, 'created_at' | 'customer_notification_preference_id'>;
12
+ export declare type CustomerNotificationPrefsCreate = CustomerNotificationPrefCreate[];
@@ -1,13 +1,26 @@
1
- import { Reward } from './rewards';
1
+ import { DateString } from '../../datetimes';
2
+ import { DiscountType, Money } from '../../global';
2
3
  export interface ThanxProgress {
3
4
  percentage: string;
4
5
  towards: string;
5
6
  }
7
+ export interface ThanxReward {
8
+ amount: Money;
9
+ description: string;
10
+ discount_type: DiscountType;
11
+ ext_id: string;
12
+ items: number[];
13
+ max_amount: Money;
14
+ min_order_size: Money;
15
+ name: string;
16
+ retire_at: DateString | null;
17
+ }
18
+ export declare type ThanxRewards = ThanxReward[];
6
19
  export interface Thanx {
7
20
  email: string;
8
21
  ext_id: string;
9
22
  first_name: string;
10
23
  last_name: string;
11
24
  progress: ThanxProgress;
12
- rewards: Array<Partial<Reward>>;
25
+ rewards: ThanxRewards;
13
26
  }
@@ -29,4 +29,4 @@ export interface Deal {
29
29
  revenue_centers?: Array<RevenueCenter>;
30
30
  channel_type?: string;
31
31
  }
32
- export declare type Deals = Array<Deal>;
32
+ export declare type Deals = Deals[];
@@ -321,7 +321,7 @@ export interface ThemeItem extends Record<string, ThemeItemStyles> {
321
321
  desktop: ThemeItemStyles;
322
322
  mobile: ThemeItemStyles;
323
323
  }
324
- export interface ThemeItemsStyles extends Record<string, string> {
324
+ export interface ThemeItemsStyles extends Record<string, string | number> {
325
325
  containerMaxWidth: string;
326
326
  gap: string;
327
327
  gapDouble: string;
@@ -329,7 +329,7 @@ export interface ThemeItemsStyles extends Record<string, string> {
329
329
  justifyContent: string;
330
330
  marginBottom: string;
331
331
  minWidth: string;
332
- perRow: string;
332
+ perRow: number;
333
333
  width: string;
334
334
  }
335
335
  export interface ThemeItems extends Record<string, ThemeItemsStyles> {
@@ -51,4 +51,4 @@ export interface Image {
51
51
  }
52
52
  export declare type Images = Image[];
53
53
  export declare type OrderNotifications = 'ALL' | 'EMAIL' | 'NEW' | 'NONE' | 'SMS';
54
- export declare type Gender = 'MALE' | 'FEMALE' | 'DECLINED' | null;
54
+ export declare type Gender = 'MALE' | 'FEMALE' | 'DECLINED';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
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",