@open-tender/types 0.2.63 → 0.2.64

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 { OrderType, ServiceType } from '../global';
3
- import { LoyaltyType, NotificationChannel } from './customer';
3
+ import { CustomerCreate, LoyaltyType, NotificationChannel } from './customer';
4
4
  import { RevenueCenterStatus } from './revenueCenter';
5
5
  export interface ConfigApp {
6
6
  authUrl: string;
@@ -290,7 +290,9 @@ export interface ConfigContent {
290
290
  };
291
291
  orders: ConfigContentField;
292
292
  pointsShop: ConfigContentField;
293
- profile: ConfigContentField;
293
+ profile: ConfigContentField & {
294
+ displayed: (keyof CustomerCreate)[];
295
+ };
294
296
  refunds: ConfigContentField & {
295
297
  background: string;
296
298
  content: Array<string>;
@@ -313,6 +315,7 @@ export interface ConfigContent {
313
315
  signUp: ConfigContentField & {
314
316
  back: string;
315
317
  background: string;
318
+ displayed: (keyof CustomerCreate)[];
316
319
  };
317
320
  upsells: {
318
321
  cart: ConfigContentField & {
@@ -2,10 +2,11 @@ import { DateString } from '../../datetimes';
2
2
  import { Gender, OrderNotifications } from '../../global';
3
3
  import { Allergens } from '../allergens';
4
4
  import { Favorites } from '../favorite';
5
- import { CustomerNotificationPrefs } from './communicationPreferences';
5
+ import { CustomerNotificationPrefs, NotificationChannel } from './communicationPreferences';
6
6
  import { GiftCards } from './giftCards';
7
7
  export interface CustomerCreate {
8
8
  birth_date?: DateString | null;
9
+ communications?: NotificationChannel[];
9
10
  company?: string;
10
11
  email: string;
11
12
  first_name: string;
@@ -1,6 +1,6 @@
1
1
  import { TimezonePython } from '../datetimes';
2
2
  import { OrderType, ServiceType } from '../global';
3
- import { LoyaltyType, NotificationChannel } from './customer';
3
+ import { CustomerCreate, LoyaltyType, NotificationChannel } from './customer';
4
4
  import { RevenueCenterStatus } from './revenueCenter';
5
5
  export interface ConfigApp {
6
6
  authUrl: string;
@@ -290,7 +290,9 @@ export interface ConfigContent {
290
290
  };
291
291
  orders: ConfigContentField;
292
292
  pointsShop: ConfigContentField;
293
- profile: ConfigContentField;
293
+ profile: ConfigContentField & {
294
+ displayed: (keyof CustomerCreate)[];
295
+ };
294
296
  refunds: ConfigContentField & {
295
297
  background: string;
296
298
  content: Array<string>;
@@ -313,6 +315,7 @@ export interface ConfigContent {
313
315
  signUp: ConfigContentField & {
314
316
  back: string;
315
317
  background: string;
318
+ displayed: (keyof CustomerCreate)[];
316
319
  };
317
320
  upsells: {
318
321
  cart: ConfigContentField & {
@@ -2,10 +2,11 @@ import { DateString } from '../../datetimes';
2
2
  import { Gender, OrderNotifications } from '../../global';
3
3
  import { Allergens } from '../allergens';
4
4
  import { Favorites } from '../favorite';
5
- import { CustomerNotificationPrefs } from './communicationPreferences';
5
+ import { CustomerNotificationPrefs, NotificationChannel } from './communicationPreferences';
6
6
  import { GiftCards } from './giftCards';
7
7
  export interface CustomerCreate {
8
8
  birth_date?: DateString | null;
9
+ communications?: NotificationChannel[];
9
10
  company?: string;
10
11
  email: string;
11
12
  first_name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.2.63",
3
+ "version": "0.2.64",
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",