@open-tender/types 0.2.9 → 0.2.10

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.
@@ -22,7 +22,7 @@ export interface ConfigFulfillment {
22
22
  button: string;
23
23
  description: string;
24
24
  title: string;
25
- fields: Array<ConfigFulfillmentField>;
25
+ fields: ConfigFulfillmentField[];
26
26
  }
27
27
  export interface ConfigLoyaltyTermsThreshold {
28
28
  description: string;
@@ -92,7 +92,7 @@ export interface ConfigContentField {
92
92
  subtitle: string;
93
93
  empty?: string;
94
94
  }
95
- export declare type HomeOrderTypes = 'CATERING' | 'DELIVERY' | 'DONATIONS' | 'GIFT_CARDS' | 'GROUP' | 'MERCH' | 'OUTPOST' | 'PICKUP' | 'WALKIN';
95
+ export declare type ConfigOrderTypes = 'CATERING' | 'DELIVERY' | 'DONATIONS' | 'GIFT_CARDS' | 'GROUP' | 'MERCH' | 'OUTPOST' | 'PICKUP' | 'WALKIN';
96
96
  export interface ConfigContent {
97
97
  about: {
98
98
  background: string;
@@ -243,7 +243,7 @@ export interface ConfigContent {
243
243
  content: string;
244
244
  mobile: string;
245
245
  orderTypes: {
246
- [keys in HomeOrderTypes]: ConfigContentField;
246
+ [keys in ConfigOrderTypes]: ConfigContentField;
247
247
  };
248
248
  showHero: boolean;
249
249
  };
@@ -271,7 +271,7 @@ export interface ConfigContent {
271
271
  content: string;
272
272
  mobile: string;
273
273
  orderTypes: {
274
- [keys in HomeOrderTypes]: ConfigContentField;
274
+ [keys in ConfigOrderTypes]: ConfigContentField;
275
275
  };
276
276
  showDescriptions: boolean;
277
277
  showDescriptionsMobile: boolean;
@@ -366,19 +366,48 @@ export interface ConfigDisplaySetting {
366
366
  storePhone: boolean;
367
367
  tags: boolean;
368
368
  }
369
- export interface LocationAnchor {
369
+ export interface GoogleMapsCenter {
370
+ lat: number;
371
+ lng: number;
372
+ }
373
+ export interface GoogleMapsAnchor {
370
374
  x: number;
371
375
  y: number;
372
376
  }
373
- export interface ConfigIconSize {
377
+ export interface GoogleMapsIconSize {
374
378
  height: number;
375
379
  width: number;
376
380
  }
377
- export interface ConfigIcon {
378
- anchor: LocationAnchor | null;
379
- size: ConfigIconSize;
381
+ export interface GoogleMapsIcon {
382
+ anchor: GoogleMapsAnchor | null;
383
+ size: GoogleMapsIconSize;
380
384
  url: string;
381
385
  }
386
+ export interface GoogleMapsIcons {
387
+ location: GoogleMapsIcon;
388
+ locationSelected: GoogleMapsIcon;
389
+ user: GoogleMapsIcon;
390
+ }
391
+ export interface GoogleMapsStyles {
392
+ backgroundColor: string;
393
+ featureColor: string;
394
+ labelColor: string;
395
+ roadColor: string;
396
+ waterColor: string;
397
+ }
398
+ export interface GoogleMaps {
399
+ apiKey: string;
400
+ apiKeyApp: string;
401
+ defaultCenter: GoogleMapsCenter;
402
+ icons: GoogleMapsIcons;
403
+ styles: GoogleMapsStyles;
404
+ zoom: number;
405
+ }
406
+ export interface ConfigRecaptcha {
407
+ addCard: boolean;
408
+ donations: boolean;
409
+ giftCards: boolean;
410
+ }
382
411
  export interface ConfigSettings {
383
412
  accountSections: Array<string>;
384
413
  autoSelect: {
@@ -394,35 +423,11 @@ export interface ConfigSettings {
394
423
  displaySettings: {
395
424
  [keys in OrderType]: ConfigDisplaySetting;
396
425
  };
397
- googleMaps: {
398
- apiKey: string;
399
- apiKeyApp: string;
400
- defaultCenter: {
401
- lat: number;
402
- lng: number;
403
- };
404
- icons: {
405
- location: ConfigIcon;
406
- locationSelected: ConfigIcon;
407
- user: ConfigIcon;
408
- };
409
- styles: {
410
- backgroundColor: string;
411
- featureColor: string;
412
- labelColor: string;
413
- roadColor: string;
414
- waterColor: string;
415
- };
416
- zoom: number;
417
- };
426
+ googleMaps: GoogleMaps;
418
427
  locationName: {
419
- [keys in ServiceType | 'OUTPOST']: Array<string>;
428
+ [keys in ServiceType | 'OUTPOST']: string[];
420
429
  };
421
430
  maxDistance: number;
422
- orderTypes: Array<HomeOrderTypes>;
423
- recaptcha: {
424
- addCard: boolean;
425
- donations: boolean;
426
- giftCards: boolean;
427
- };
431
+ orderTypes: ConfigOrderTypes[];
432
+ recaptcha: ConfigRecaptcha;
428
433
  }
@@ -21,7 +21,7 @@ export interface CreditCardData {
21
21
  is_default?: boolean;
22
22
  token?: string;
23
23
  }
24
- export interface CreditCardErrors {
24
+ export interface CreditCardErrors extends Record<string, string | undefined> {
25
25
  acct?: string;
26
26
  exp?: string;
27
27
  cvv?: string;
@@ -7,9 +7,6 @@ export interface Auth {
7
7
  export interface LoginData {
8
8
  email: string;
9
9
  password: string;
10
- first_name?: string;
11
- last_name?: string;
12
- phone?: string;
13
10
  }
14
11
  export interface ResetPasswordData {
15
12
  new_password: string;
@@ -1,5 +1,2 @@
1
1
  "use strict";
2
- // import { DateString } from '../../datetimes'
3
- // import { Gender, OrderNotifications } from '../../global'
4
- // import { CustomerNotificationPrefs } from './communicationPreferences'
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // export interface CustomerWithRelated extends Customer {
4
- // allergens?: Allergens
5
- // favorites?: Favorites
6
- // gift_cards?: GiftCards
7
- // }
@@ -16,10 +16,11 @@ export interface GiftCardPurchased {
16
16
  balance: string;
17
17
  card_number: string;
18
18
  }
19
+ export declare type GiftCardsPurchased = GiftCardPurchased[];
19
20
  export interface GiftCardPurchaseData {
20
21
  amount: string;
21
22
  quantity: number;
22
- email: string;
23
+ email?: string;
23
24
  }
24
25
  export interface GiftCardsPurchase {
25
26
  credit_card: CreditCardData | CreditCardSaved;
@@ -1,7 +1,3 @@
1
- export interface Brand {
2
- name: string;
3
- }
4
- export declare type Brands = Array<Brand>;
5
1
  export interface GuestData {
6
2
  first_name: string;
7
3
  email: string;
@@ -264,6 +264,7 @@ export interface DisplayItem {
264
264
  notes?: string | null;
265
265
  nutritionalInfo: NutritionalInfo | null;
266
266
  quantity: number;
267
+ points: null;
267
268
  price: Money;
268
269
  shortDescription: string | null;
269
270
  signature?: string;
@@ -22,7 +22,7 @@ export interface ConfigFulfillment {
22
22
  button: string;
23
23
  description: string;
24
24
  title: string;
25
- fields: Array<ConfigFulfillmentField>;
25
+ fields: ConfigFulfillmentField[];
26
26
  }
27
27
  export interface ConfigLoyaltyTermsThreshold {
28
28
  description: string;
@@ -92,7 +92,7 @@ export interface ConfigContentField {
92
92
  subtitle: string;
93
93
  empty?: string;
94
94
  }
95
- export declare type HomeOrderTypes = 'CATERING' | 'DELIVERY' | 'DONATIONS' | 'GIFT_CARDS' | 'GROUP' | 'MERCH' | 'OUTPOST' | 'PICKUP' | 'WALKIN';
95
+ export declare type ConfigOrderTypes = 'CATERING' | 'DELIVERY' | 'DONATIONS' | 'GIFT_CARDS' | 'GROUP' | 'MERCH' | 'OUTPOST' | 'PICKUP' | 'WALKIN';
96
96
  export interface ConfigContent {
97
97
  about: {
98
98
  background: string;
@@ -243,7 +243,7 @@ export interface ConfigContent {
243
243
  content: string;
244
244
  mobile: string;
245
245
  orderTypes: {
246
- [keys in HomeOrderTypes]: ConfigContentField;
246
+ [keys in ConfigOrderTypes]: ConfigContentField;
247
247
  };
248
248
  showHero: boolean;
249
249
  };
@@ -271,7 +271,7 @@ export interface ConfigContent {
271
271
  content: string;
272
272
  mobile: string;
273
273
  orderTypes: {
274
- [keys in HomeOrderTypes]: ConfigContentField;
274
+ [keys in ConfigOrderTypes]: ConfigContentField;
275
275
  };
276
276
  showDescriptions: boolean;
277
277
  showDescriptionsMobile: boolean;
@@ -366,19 +366,48 @@ export interface ConfigDisplaySetting {
366
366
  storePhone: boolean;
367
367
  tags: boolean;
368
368
  }
369
- export interface LocationAnchor {
369
+ export interface GoogleMapsCenter {
370
+ lat: number;
371
+ lng: number;
372
+ }
373
+ export interface GoogleMapsAnchor {
370
374
  x: number;
371
375
  y: number;
372
376
  }
373
- export interface ConfigIconSize {
377
+ export interface GoogleMapsIconSize {
374
378
  height: number;
375
379
  width: number;
376
380
  }
377
- export interface ConfigIcon {
378
- anchor: LocationAnchor | null;
379
- size: ConfigIconSize;
381
+ export interface GoogleMapsIcon {
382
+ anchor: GoogleMapsAnchor | null;
383
+ size: GoogleMapsIconSize;
380
384
  url: string;
381
385
  }
386
+ export interface GoogleMapsIcons {
387
+ location: GoogleMapsIcon;
388
+ locationSelected: GoogleMapsIcon;
389
+ user: GoogleMapsIcon;
390
+ }
391
+ export interface GoogleMapsStyles {
392
+ backgroundColor: string;
393
+ featureColor: string;
394
+ labelColor: string;
395
+ roadColor: string;
396
+ waterColor: string;
397
+ }
398
+ export interface GoogleMaps {
399
+ apiKey: string;
400
+ apiKeyApp: string;
401
+ defaultCenter: GoogleMapsCenter;
402
+ icons: GoogleMapsIcons;
403
+ styles: GoogleMapsStyles;
404
+ zoom: number;
405
+ }
406
+ export interface ConfigRecaptcha {
407
+ addCard: boolean;
408
+ donations: boolean;
409
+ giftCards: boolean;
410
+ }
382
411
  export interface ConfigSettings {
383
412
  accountSections: Array<string>;
384
413
  autoSelect: {
@@ -394,35 +423,11 @@ export interface ConfigSettings {
394
423
  displaySettings: {
395
424
  [keys in OrderType]: ConfigDisplaySetting;
396
425
  };
397
- googleMaps: {
398
- apiKey: string;
399
- apiKeyApp: string;
400
- defaultCenter: {
401
- lat: number;
402
- lng: number;
403
- };
404
- icons: {
405
- location: ConfigIcon;
406
- locationSelected: ConfigIcon;
407
- user: ConfigIcon;
408
- };
409
- styles: {
410
- backgroundColor: string;
411
- featureColor: string;
412
- labelColor: string;
413
- roadColor: string;
414
- waterColor: string;
415
- };
416
- zoom: number;
417
- };
426
+ googleMaps: GoogleMaps;
418
427
  locationName: {
419
- [keys in ServiceType | 'OUTPOST']: Array<string>;
428
+ [keys in ServiceType | 'OUTPOST']: string[];
420
429
  };
421
430
  maxDistance: number;
422
- orderTypes: Array<HomeOrderTypes>;
423
- recaptcha: {
424
- addCard: boolean;
425
- donations: boolean;
426
- giftCards: boolean;
427
- };
431
+ orderTypes: ConfigOrderTypes[];
432
+ recaptcha: ConfigRecaptcha;
428
433
  }
@@ -21,7 +21,7 @@ export interface CreditCardData {
21
21
  is_default?: boolean;
22
22
  token?: string;
23
23
  }
24
- export interface CreditCardErrors {
24
+ export interface CreditCardErrors extends Record<string, string | undefined> {
25
25
  acct?: string;
26
26
  exp?: string;
27
27
  cvv?: string;
@@ -7,9 +7,6 @@ export interface Auth {
7
7
  export interface LoginData {
8
8
  email: string;
9
9
  password: string;
10
- first_name?: string;
11
- last_name?: string;
12
- phone?: string;
13
10
  }
14
11
  export interface ResetPasswordData {
15
12
  new_password: string;
@@ -1,4 +1 @@
1
- // import { DateString } from '../../datetimes'
2
- // import { Gender, OrderNotifications } from '../../global'
3
- // import { CustomerNotificationPrefs } from './communicationPreferences'
4
1
  export {};
@@ -1,6 +1 @@
1
1
  export {};
2
- // export interface CustomerWithRelated extends Customer {
3
- // allergens?: Allergens
4
- // favorites?: Favorites
5
- // gift_cards?: GiftCards
6
- // }
@@ -16,10 +16,11 @@ export interface GiftCardPurchased {
16
16
  balance: string;
17
17
  card_number: string;
18
18
  }
19
+ export declare type GiftCardsPurchased = GiftCardPurchased[];
19
20
  export interface GiftCardPurchaseData {
20
21
  amount: string;
21
22
  quantity: number;
22
- email: string;
23
+ email?: string;
23
24
  }
24
25
  export interface GiftCardsPurchase {
25
26
  credit_card: CreditCardData | CreditCardSaved;
@@ -1,7 +1,3 @@
1
- export interface Brand {
2
- name: string;
3
- }
4
- export declare type Brands = Array<Brand>;
5
1
  export interface GuestData {
6
2
  first_name: string;
7
3
  email: string;
@@ -264,6 +264,7 @@ export interface DisplayItem {
264
264
  notes?: string | null;
265
265
  nutritionalInfo: NutritionalInfo | null;
266
266
  quantity: number;
267
+ points: null;
267
268
  price: Money;
268
269
  shortDescription: string | null;
269
270
  signature?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
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",