@compassdigital/sdk.typescript 3.0.0-beta.19 → 3.0.0-beta.21

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.
@@ -42,14 +42,25 @@ export interface ShoppingCart {
42
42
  _loyalty?: {
43
43
  amount?: number;
44
44
  };
45
- meta?: any;
45
+ meta?: {
46
+ // menu id
47
+ menu?: string;
48
+ // brand id
49
+ brand?: string;
50
+ [index: string]: any;
51
+ };
46
52
  options?: {
53
+ id?: string;
47
54
  label?: {
48
55
  en?: string;
49
56
  };
57
+ meta?: any;
50
58
  items?: {
51
59
  // option
52
60
  id?: string;
61
+ label?: {
62
+ en?: string;
63
+ };
53
64
  // index
54
65
  _index?: string;
55
66
  meta?: any;
@@ -291,6 +302,8 @@ export interface LocationGroup {
291
302
  brand?: string;
292
303
  // location
293
304
  location?: string;
305
+ // location group
306
+ group?: string;
294
307
  // payment
295
308
  payment_provider?: string;
296
309
  location_description?: string;
@@ -397,6 +410,235 @@ export type Hours = any;
397
410
 
398
411
  export type DeliveryHours = any;
399
412
 
413
+ export interface Menu {
414
+ // menu
415
+ id?: string;
416
+ date?: {
417
+ created?: string;
418
+ modified?: string;
419
+ published?: string;
420
+ };
421
+ label?: {
422
+ en?: string;
423
+ };
424
+ groups?: {
425
+ // group
426
+ id?: string;
427
+ label?: {
428
+ en?: string;
429
+ fr?: string;
430
+ };
431
+ items?: {
432
+ // item
433
+ id?: string;
434
+ label?: {
435
+ en?: string;
436
+ };
437
+ description?: {
438
+ en?: string;
439
+ };
440
+ price?: {
441
+ amount?: number;
442
+ currency?: string;
443
+ };
444
+ // Meal exchange value of the item
445
+ meal_value?: number;
446
+ sale_price?: {
447
+ amount?: number;
448
+ currency?: string;
449
+ };
450
+ // The number of units that belong to this item. For example, a dozen doughnuts should have a unit value of 12
451
+ unit?: number;
452
+ ingredients?: any[];
453
+ amount_off_exclusions?: string[];
454
+ nutrition?: {
455
+ kcal?: number;
456
+ calories?: any;
457
+ serving_size?: any;
458
+ total_fat?: any;
459
+ saturated_fat?: any;
460
+ trans_fat?: any;
461
+ cholesterol?: any;
462
+ sodium?: {
463
+ amount?: number;
464
+ unit?: string;
465
+ };
466
+ total_carbohydrate?: any;
467
+ dietary_fiber?: any;
468
+ sugars?: any;
469
+ protein?: any;
470
+ well_being?: any;
471
+ [index: string]: any;
472
+ };
473
+ certified?: {
474
+ vegan?: boolean;
475
+ vegetarian?: boolean;
476
+ seafood_watch?: boolean;
477
+ wellbeing?: boolean;
478
+ farm_to_fork?: boolean;
479
+ in_balance?: boolean;
480
+ organic?: boolean;
481
+ no_gluten_ingredients?: boolean;
482
+ halal?: boolean;
483
+ kosher?: boolean;
484
+ humane?: boolean;
485
+ locally_crafted?: boolean;
486
+ nuts?: boolean;
487
+ oracle_garden_grown?: boolean;
488
+ oracle_oyes?: boolean;
489
+ peanut_free?: boolean;
490
+ tree_nut_free?: boolean;
491
+ wheat_free?: boolean;
492
+ non_gmo?: boolean;
493
+ milk_free?: boolean;
494
+ egg_free?: boolean;
495
+ soy_free?: boolean;
496
+ fair_trade?: boolean;
497
+ rainforest_alliance?: boolean;
498
+ salt_free?: boolean;
499
+ };
500
+ options?: {
501
+ // modifier_group
502
+ id?: string;
503
+ label?: {
504
+ en?: string;
505
+ };
506
+ unique_name?: string;
507
+ items?: {
508
+ // option
509
+ id?: string;
510
+ label?: {
511
+ en?: string;
512
+ };
513
+ price?: {
514
+ amount?: number;
515
+ currency?: string;
516
+ };
517
+ sku?: number;
518
+ nutrition?: {
519
+ kcal?: number;
520
+ calories?: any;
521
+ };
522
+ certified?: {
523
+ vegan?: boolean;
524
+ };
525
+ modifier_sets?: {
526
+ category?: string;
527
+ list?: string[];
528
+ }[];
529
+ meta?: {
530
+ // chit sort order
531
+ sort_number?: number;
532
+ // menu sort order
533
+ menu_sort_number?: number;
534
+ [index: string]: any;
535
+ };
536
+ is?: {
537
+ disabled?: boolean;
538
+ hidden?: boolean;
539
+ out_of_stock?: boolean;
540
+ };
541
+ amount_off_exclusions?: any[];
542
+ }[];
543
+ min?: number;
544
+ max?: number;
545
+ is?: {
546
+ disabled?: boolean;
547
+ hidden?: boolean;
548
+ out_of_stock?: boolean;
549
+ };
550
+ meta?: {
551
+ // chit sort order
552
+ sort_number?: number;
553
+ // menu sort order
554
+ menu_sort_number?: number;
555
+ [index: string]: any;
556
+ };
557
+ [index: string]: any;
558
+ }[];
559
+ required?: boolean;
560
+ special?: boolean;
561
+ meta?: {
562
+ superplate?: {
563
+ type_id?: number;
564
+ type?: string;
565
+ };
566
+ featured?: {
567
+ sort_number?: number;
568
+ dates?: {
569
+ start?: string;
570
+ end?: string;
571
+ };
572
+ };
573
+ // chit sort order
574
+ sort_number?: number;
575
+ // menu sort order
576
+ menu_sort_number?: number;
577
+ };
578
+ category?: {
579
+ en?: string;
580
+ };
581
+ location?: string;
582
+ sku?: number;
583
+ item_number?: number;
584
+ image?: {
585
+ src?: string;
586
+ };
587
+ is_deleted?: boolean;
588
+ is?: {
589
+ disabled?: boolean;
590
+ hidden?: boolean;
591
+ meq_eligible?: boolean;
592
+ out_of_stock?: boolean;
593
+ deleted?: boolean;
594
+ featured?: boolean;
595
+ };
596
+ }[];
597
+ is_disabled?: boolean;
598
+ name?: string;
599
+ is?: {
600
+ disabled?: boolean;
601
+ hidden?: boolean;
602
+ };
603
+ meta?: {
604
+ // chit sort order
605
+ sort_number?: number;
606
+ // menu sort order
607
+ menu_sort_number?: number;
608
+ [index: string]: any;
609
+ };
610
+ }[];
611
+ // menu
612
+ parent_id?: string;
613
+ // brand
614
+ location_brand?: string;
615
+ // company
616
+ company?: string;
617
+ // sector
618
+ sector?: string;
619
+ is?: {
620
+ disabled?: boolean;
621
+ hidden?: boolean;
622
+ linked?: boolean;
623
+ promo_exemptions_enabled?: boolean;
624
+ plu_enabled?: boolean;
625
+ item_images_enabled?: boolean;
626
+ item_showcase_enabled?: boolean;
627
+ item_desc_edit_enabled?: boolean;
628
+ calories_edit_enabled?: boolean;
629
+ item_label_edit_enabled?: boolean;
630
+ };
631
+ meta?: {
632
+ // User ID
633
+ locked_by_user?: string;
634
+ // User ID
635
+ last_modified_user?: string;
636
+ [index: string]: any;
637
+ };
638
+ }
639
+
640
+ export type Group = any;
641
+
400
642
  export interface CognitionStore {
401
643
  // UUID for external store
402
644
  uuid?: string;
@@ -433,14 +675,14 @@ export type CoolrImages = any[];
433
675
  // POST /partner/standardcognition/shoppingcart - Calculates a shoppingcart
434
676
 
435
677
  export interface PostPartnerStandardcognitionShoppingcartBody {
436
- items?: {
678
+ items: {
437
679
  sku?: string;
438
680
  quantity?: number;
439
681
  }[];
440
682
  // brand
441
- location_brand?: string;
442
- // shoppingcart
443
- shoppingcart?: string;
683
+ location_brand: string;
684
+ // CDL shoppingcart id. If provided, items will be added to this shoppingcart
685
+ shoppingcart: string;
444
686
  }
445
687
 
446
688
  export type PostPartnerStandardcognitionShoppingcartResponse = ShoppingCart;
@@ -463,6 +705,25 @@ export type GetPartnerStandardcognitionStoresResponse = CognitionStore;
463
705
 
464
706
  export type GetPartnerStandardcognitionStoresRequest = {};
465
707
 
708
+ // POST /partner/standardcognition/menu - Create new Standard Cognition menu from JSON files
709
+
710
+ export interface PostPartnerStandardcognitionMenuBody {
711
+ // CDL company ID
712
+ company: string;
713
+ // CDL sector ID
714
+ sector: string;
715
+ // CDL location brand ID
716
+ location_brand: string;
717
+ // Link for S3 menu file provided by Standard Cognition
718
+ s3_link: string;
719
+ }
720
+
721
+ export type PostPartnerStandardcognitionMenuResponse = Menu;
722
+
723
+ export interface PostPartnerStandardcognitionMenuRequest {
724
+ body: PostPartnerStandardcognitionMenuBody;
725
+ }
726
+
466
727
  // GET /partner/coolr/locations - Gets the locations where Coolr is available
467
728
 
468
729
  export interface GetPartnerCoolrLocationsResponse {
@@ -32,14 +32,25 @@ export interface Item {
32
32
  _loyalty?: {
33
33
  amount?: number;
34
34
  };
35
- meta?: any;
35
+ meta?: {
36
+ // menu id
37
+ menu?: string;
38
+ // brand id
39
+ brand?: string;
40
+ [index: string]: any;
41
+ };
36
42
  options?: {
43
+ id?: string;
37
44
  label?: {
38
45
  en?: string;
39
46
  };
47
+ meta?: any;
40
48
  items?: {
41
49
  // option
42
50
  id?: string;
51
+ label?: {
52
+ en?: string;
53
+ };
43
54
  // index
44
55
  _index?: string;
45
56
  meta?: any;
@@ -33,12 +33,21 @@ export interface User {
33
33
  send_emails_date_updated?: string;
34
34
  };
35
35
  mealplan_added_date?: string;
36
+ // phone verification details
37
+ phone_verification?: {
38
+ verification_code?: string;
39
+ date_generated?: number;
40
+ failed_attempts?: number;
41
+ consecutive_failed_attempts?: number;
42
+ };
36
43
  [index: string]: any;
37
44
  };
38
45
  is?: {
39
46
  disabled?: boolean;
40
47
  // If the users email is verified
41
48
  verified?: boolean;
49
+ // User phone number verification
50
+ phone_verified?: boolean;
42
51
  };
43
52
  permissions?: Scopes;
44
53
  // User location group
@@ -586,3 +595,21 @@ export type PutUserVerifyUserEmailResponse = success;
586
595
  export interface PutUserVerifyUserEmailRequest extends PutUserVerifyUserEmailPath {
587
596
  body: PutUserVerifyUserEmailBody;
588
597
  }
598
+
599
+ // PUT /user/{id}/verification/phone - Send phone verification to user
600
+
601
+ export interface PutUserVerificationPhonePath {
602
+ // realm
603
+ id: string;
604
+ }
605
+
606
+ export interface PutUserVerificationPhoneBody {
607
+ // User phone number to be verified
608
+ phone: string;
609
+ }
610
+
611
+ export type PutUserVerificationPhoneResponse = success;
612
+
613
+ export interface PutUserVerificationPhoneRequest extends PutUserVerificationPhonePath {
614
+ body: PutUserVerificationPhoneBody;
615
+ }