@compassdigital/sdk.typescript 3.20.0 → 3.22.0

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.
Files changed (82) hide show
  1. package/lib/index.d.ts +177 -0
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +192 -0
  4. package/lib/index.js.map +1 -1
  5. package/lib/interface/announcement.d.ts +7 -13
  6. package/lib/interface/announcement.d.ts.map +1 -1
  7. package/lib/interface/calendar.d.ts +7 -13
  8. package/lib/interface/calendar.d.ts.map +1 -1
  9. package/lib/interface/compassconnect.d.ts +2 -3
  10. package/lib/interface/compassconnect.d.ts.map +1 -1
  11. package/lib/interface/config.d.ts +10 -19
  12. package/lib/interface/config.d.ts.map +1 -1
  13. package/lib/interface/datalake.d.ts +3 -5
  14. package/lib/interface/datalake.d.ts.map +1 -1
  15. package/lib/interface/email.d.ts +2 -3
  16. package/lib/interface/email.d.ts.map +1 -1
  17. package/lib/interface/file.d.ts +3 -5
  18. package/lib/interface/file.d.ts.map +1 -1
  19. package/lib/interface/kds.d.ts +7 -13
  20. package/lib/interface/kds.d.ts.map +1 -1
  21. package/lib/interface/location.d.ts +53 -105
  22. package/lib/interface/location.d.ts.map +1 -1
  23. package/lib/interface/loyalty.d.ts +351 -0
  24. package/lib/interface/loyalty.d.ts.map +1 -0
  25. package/lib/interface/loyalty.js +4 -0
  26. package/lib/interface/loyalty.js.map +1 -0
  27. package/lib/interface/mealplan.d.ts +12 -23
  28. package/lib/interface/mealplan.d.ts.map +1 -1
  29. package/lib/interface/menu.d.ts +27 -53
  30. package/lib/interface/menu.d.ts.map +1 -1
  31. package/lib/interface/notification.d.ts +7 -13
  32. package/lib/interface/notification.d.ts.map +1 -1
  33. package/lib/interface/order.d.ts +15 -29
  34. package/lib/interface/order.d.ts.map +1 -1
  35. package/lib/interface/partner.d.ts +8 -15
  36. package/lib/interface/partner.d.ts.map +1 -1
  37. package/lib/interface/payment.d.ts +15 -29
  38. package/lib/interface/payment.d.ts.map +1 -1
  39. package/lib/interface/permission.d.ts +10 -19
  40. package/lib/interface/permission.d.ts.map +1 -1
  41. package/lib/interface/promo.d.ts +17 -33
  42. package/lib/interface/promo.d.ts.map +1 -1
  43. package/lib/interface/report.d.ts +8 -15
  44. package/lib/interface/report.d.ts.map +1 -1
  45. package/lib/interface/shoppingcart.d.ts +15 -29
  46. package/lib/interface/shoppingcart.d.ts.map +1 -1
  47. package/lib/interface/task.d.ts +11 -21
  48. package/lib/interface/task.d.ts.map +1 -1
  49. package/lib/interface/user.d.ts +29 -57
  50. package/lib/interface/user.d.ts.map +1 -1
  51. package/lib/interface/util.d.ts +9 -2
  52. package/lib/interface/util.d.ts.map +1 -1
  53. package/lib/interface/vendor.d.ts +17 -33
  54. package/lib/interface/vendor.d.ts.map +1 -1
  55. package/manifest.json +4 -0
  56. package/package.json +2 -2
  57. package/src/index.ts +481 -0
  58. package/src/interface/announcement.ts +10 -18
  59. package/src/interface/calendar.ts +12 -19
  60. package/src/interface/compassconnect.ts +3 -4
  61. package/src/interface/config.ts +10 -24
  62. package/src/interface/datalake.ts +3 -6
  63. package/src/interface/email.ts +2 -3
  64. package/src/interface/file.ts +3 -5
  65. package/src/interface/kds.ts +7 -17
  66. package/src/interface/location.ts +105 -143
  67. package/src/interface/loyalty.ts +558 -0
  68. package/src/interface/mealplan.ts +13 -27
  69. package/src/interface/menu.ts +42 -74
  70. package/src/interface/notification.ts +7 -16
  71. package/src/interface/order.ts +27 -43
  72. package/src/interface/partner.ts +8 -20
  73. package/src/interface/payment.ts +21 -35
  74. package/src/interface/permission.ts +14 -24
  75. package/src/interface/promo.ts +21 -41
  76. package/src/interface/report.ts +21 -23
  77. package/src/interface/shoppingcart.ts +27 -33
  78. package/src/interface/sms.ts +1 -1
  79. package/src/interface/task.ts +17 -31
  80. package/src/interface/user.ts +45 -72
  81. package/src/interface/util.ts +10 -2
  82. package/src/interface/vendor.ts +24 -42
@@ -1,4 +1,4 @@
1
- import { RequestQuery, RequestContext } from "./util";
1
+ import { RequestQuery, BaseRequest } from "./util";
2
2
  export interface Success {
3
3
  success: boolean;
4
4
  }
@@ -49,42 +49,36 @@ export interface GetKdsDevicesQuery {
49
49
  nocache?: boolean;
50
50
  }
51
51
  export declare type GetKdsDevicesResponse = Units;
52
- export interface GetKdsDevicesRequest extends RequestQuery<GetKdsDevicesQuery> {
53
- context?: RequestContext;
52
+ export interface GetKdsDevicesRequest extends BaseRequest, RequestQuery<GetKdsDevicesQuery> {
54
53
  }
55
54
  export declare type PostKdsDeviceAuthBody = AuthPostBody;
56
55
  export declare type PostKdsDeviceAuthResponse = AuthPostBodyResponse;
57
- export interface PostKdsDeviceAuthRequest {
56
+ export interface PostKdsDeviceAuthRequest extends BaseRequest {
58
57
  body: PostKdsDeviceAuthBody;
59
- context?: RequestContext;
60
58
  }
61
59
  export interface DeleteKdsDeviceAuthPath {
62
60
  device_id: string;
63
61
  }
64
62
  export declare type DeleteKdsDeviceAuthResponse = Error;
65
- export interface DeleteKdsDeviceAuthRequest extends DeleteKdsDeviceAuthPath {
66
- context?: RequestContext;
63
+ export interface DeleteKdsDeviceAuthRequest extends BaseRequest, DeleteKdsDeviceAuthPath {
67
64
  }
68
65
  export interface PatchKdsDeviceInfoPath {
69
66
  device_id: string;
70
67
  }
71
68
  export declare type PatchKdsDeviceInfoBody = DeviceInfo;
72
69
  export declare type PatchKdsDeviceInfoResponse = DeviceInfo;
73
- export interface PatchKdsDeviceInfoRequest extends PatchKdsDeviceInfoPath {
70
+ export interface PatchKdsDeviceInfoRequest extends BaseRequest, PatchKdsDeviceInfoPath {
74
71
  body: PatchKdsDeviceInfoBody;
75
- context?: RequestContext;
76
72
  }
77
73
  export interface DeleteKdsDeviceInfoPath {
78
74
  device_id: string;
79
75
  }
80
76
  export declare type DeleteKdsDeviceInfoResponse = Success;
81
- export interface DeleteKdsDeviceInfoRequest extends DeleteKdsDeviceInfoPath {
82
- context?: RequestContext;
77
+ export interface DeleteKdsDeviceInfoRequest extends BaseRequest, DeleteKdsDeviceInfoPath {
83
78
  }
84
79
  export interface GetKdsSwaggerResponse {
85
80
  [index: string]: any;
86
81
  }
87
- export interface GetKdsSwaggerRequest {
88
- context?: RequestContext;
82
+ export interface GetKdsSwaggerRequest extends BaseRequest {
89
83
  }
90
84
  //# sourceMappingURL=kds.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kds.d.ts","sourceRoot":"","sources":["../../src/interface/kds.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAEtD,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE;QACL,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,EAAE,CAAC;CACL;AAED,MAAM,WAAW,YAAY;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,EAAE,CAAC,EAAE;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;IACF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM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BAA2B,SAAQ,WAAW,EAAE,uBAAuB;CAAG;AAI3F,MAAM,WAAW,qBAAqB;IACpC,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,MAAM,WAAW,oBAAqB,SAAQ,WAAW;CAAG"}
@@ -1,4 +1,4 @@
1
- import { RequestQuery, RequestContext } from "./util";
1
+ import { RequestQuery, BaseRequest } from "./util";
2
2
  export interface POS {
3
3
  id?: string;
4
4
  type?: string;
@@ -342,13 +342,11 @@ export interface BadRequest {
342
342
  export declare type PartnerStatus = string;
343
343
  export declare type PostLocationBody = Location;
344
344
  export declare type PostLocationResponse = Location;
345
- export interface PostLocationRequest {
345
+ export interface PostLocationRequest extends BaseRequest {
346
346
  body: PostLocationBody;
347
- context?: RequestContext;
348
347
  }
349
348
  export declare type GetLocationsResponse = Locations;
350
- export interface GetLocationsRequest {
351
- context?: RequestContext;
349
+ export interface GetLocationsRequest extends BaseRequest {
352
350
  }
353
351
  export interface GetLocationSearchQuery {
354
352
  lat?: number;
@@ -356,8 +354,7 @@ export interface GetLocationSearchQuery {
356
354
  operation_id?: number;
357
355
  }
358
356
  export declare type GetLocationSearchResponse = Locations;
359
- export interface GetLocationSearchRequest extends RequestQuery<GetLocationSearchQuery> {
360
- context?: RequestContext;
357
+ export interface GetLocationSearchRequest extends BaseRequest, RequestQuery<GetLocationSearchQuery> {
361
358
  }
362
359
  export interface GetLocationPath {
363
360
  id: string;
@@ -369,17 +366,15 @@ export interface GetLocationQuery {
369
366
  nocache?: boolean;
370
367
  }
371
368
  export declare type GetLocationResponse = Location;
372
- export interface GetLocationRequest extends RequestQuery<GetLocationQuery>, GetLocationPath {
373
- context?: RequestContext;
369
+ export interface GetLocationRequest extends BaseRequest, RequestQuery<GetLocationQuery>, GetLocationPath {
374
370
  }
375
371
  export interface PutLocationPath {
376
372
  id: string;
377
373
  }
378
374
  export declare type PutLocationBody = Location;
379
375
  export declare type PutLocationResponse = Location;
380
- export interface PutLocationRequest extends PutLocationPath {
376
+ export interface PutLocationRequest extends BaseRequest, PutLocationPath {
381
377
  body: PutLocationBody;
382
- context?: RequestContext;
383
378
  }
384
379
  export interface DeleteLocationPath {
385
380
  id: string;
@@ -388,47 +383,41 @@ export interface DeleteLocationBody {
388
383
  brands?: Brand[];
389
384
  }
390
385
  export declare type DeleteLocationResponse = Location;
391
- export interface DeleteLocationRequest extends DeleteLocationPath {
386
+ export interface DeleteLocationRequest extends BaseRequest, DeleteLocationPath {
392
387
  body: DeleteLocationBody;
393
- context?: RequestContext;
394
388
  }
395
389
  export interface PatchLocationPath {
396
390
  id: string;
397
391
  }
398
392
  export declare type PatchLocationBody = Location;
399
393
  export declare type PatchLocationResponse = Location;
400
- export interface PatchLocationRequest extends PatchLocationPath {
394
+ export interface PatchLocationRequest extends BaseRequest, PatchLocationPath {
401
395
  body: PatchLocationBody;
402
- context?: RequestContext;
403
396
  }
404
397
  export interface GetLocationPosPath {
405
398
  id: string;
406
399
  }
407
400
  export declare type GetLocationPosResponse = POS;
408
- export interface GetLocationPosRequest extends GetLocationPosPath {
409
- context?: RequestContext;
401
+ export interface GetLocationPosRequest extends BaseRequest, GetLocationPosPath {
410
402
  }
411
403
  export interface PutLocationPosPath {
412
404
  id: string;
413
405
  }
414
406
  export declare type PutLocationPosBody = POS;
415
407
  export declare type PutLocationPosResponse = POS;
416
- export interface PutLocationPosRequest extends PutLocationPosPath {
408
+ export interface PutLocationPosRequest extends BaseRequest, PutLocationPosPath {
417
409
  body: PutLocationPosBody;
418
- context?: RequestContext;
419
410
  }
420
411
  export interface GetLocationMultigroupsQuery {
421
412
  nocache?: boolean;
422
413
  }
423
414
  export declare type GetLocationMultigroupsResponse = Multigroups;
424
- export interface GetLocationMultigroupsRequest extends RequestQuery<GetLocationMultigroupsQuery> {
425
- context?: RequestContext;
415
+ export interface GetLocationMultigroupsRequest extends BaseRequest, RequestQuery<GetLocationMultigroupsQuery> {
426
416
  }
427
417
  export declare type PostLocationMultigroupBody = MultiGroup;
428
418
  export declare type PostLocationMultigroupResponse = MultiGroup;
429
- export interface PostLocationMultigroupRequest {
419
+ export interface PostLocationMultigroupRequest extends BaseRequest {
430
420
  body: PostLocationMultigroupBody;
431
- context?: RequestContext;
432
421
  }
433
422
  export interface GetLocationMultigroupPath {
434
423
  id: string;
@@ -446,17 +435,15 @@ export interface GetLocationMultigroupQuery {
446
435
  nocache?: boolean;
447
436
  }
448
437
  export declare type GetLocationMultigroupResponse = MultiGroup;
449
- export interface GetLocationMultigroupRequest extends RequestQuery<GetLocationMultigroupQuery>, GetLocationMultigroupPath {
450
- context?: RequestContext;
438
+ export interface GetLocationMultigroupRequest extends BaseRequest, RequestQuery<GetLocationMultigroupQuery>, GetLocationMultigroupPath {
451
439
  }
452
440
  export interface PutLocationMultigroupPath {
453
441
  id: string;
454
442
  }
455
443
  export declare type PutLocationMultigroupBody = MultiGroup;
456
444
  export declare type PutLocationMultigroupResponse = MultiGroup;
457
- export interface PutLocationMultigroupRequest extends PutLocationMultigroupPath {
445
+ export interface PutLocationMultigroupRequest extends BaseRequest, PutLocationMultigroupPath {
458
446
  body: PutLocationMultigroupBody;
459
- context?: RequestContext;
460
447
  }
461
448
  export interface DeleteLocationMultigroupPath {
462
449
  id: string;
@@ -465,18 +452,16 @@ export interface DeleteLocationMultigroupBody {
465
452
  groups?: Group[];
466
453
  }
467
454
  export declare type DeleteLocationMultigroupResponse = MultiGroup;
468
- export interface DeleteLocationMultigroupRequest extends DeleteLocationMultigroupPath {
455
+ export interface DeleteLocationMultigroupRequest extends BaseRequest, DeleteLocationMultigroupPath {
469
456
  body: DeleteLocationMultigroupBody;
470
- context?: RequestContext;
471
457
  }
472
458
  export interface PatchLocationMultigroupPath {
473
459
  id: string;
474
460
  }
475
461
  export declare type PatchLocationMultigroupBody = MultiGroup;
476
462
  export declare type PatchLocationMultigroupResponse = MultiGroup;
477
- export interface PatchLocationMultigroupRequest extends PatchLocationMultigroupPath {
463
+ export interface PatchLocationMultigroupRequest extends BaseRequest, PatchLocationMultigroupPath {
478
464
  body: PatchLocationMultigroupBody;
479
- context?: RequestContext;
480
465
  }
481
466
  export interface GetLocationUserMultigroupPath {
482
467
  id: string;
@@ -487,14 +472,12 @@ export interface GetLocationUserMultigroupQuery {
487
472
  nocache?: boolean;
488
473
  }
489
474
  export declare type GetLocationUserMultigroupResponse = Groups;
490
- export interface GetLocationUserMultigroupRequest extends RequestQuery<GetLocationUserMultigroupQuery>, GetLocationUserMultigroupPath {
491
- context?: RequestContext;
475
+ export interface GetLocationUserMultigroupRequest extends BaseRequest, RequestQuery<GetLocationUserMultigroupQuery>, GetLocationUserMultigroupPath {
492
476
  }
493
477
  export declare type PostLocationGroupBody = Group;
494
478
  export declare type PostLocationGroupResponse = Group;
495
- export interface PostLocationGroupRequest {
479
+ export interface PostLocationGroupRequest extends BaseRequest {
496
480
  body: PostLocationGroupBody;
497
- context?: RequestContext;
498
481
  }
499
482
  export interface GetLocationGroupPath {
500
483
  id: string;
@@ -511,17 +494,15 @@ export interface GetLocationGroupQuery {
511
494
  nocache?: boolean;
512
495
  }
513
496
  export declare type GetLocationGroupResponse = Group;
514
- export interface GetLocationGroupRequest extends RequestQuery<GetLocationGroupQuery>, GetLocationGroupPath {
515
- context?: RequestContext;
497
+ export interface GetLocationGroupRequest extends BaseRequest, RequestQuery<GetLocationGroupQuery>, GetLocationGroupPath {
516
498
  }
517
499
  export interface PutLocationGroupPath {
518
500
  id: string;
519
501
  }
520
502
  export declare type PutLocationGroupBody = Group;
521
503
  export declare type PutLocationGroupResponse = Group;
522
- export interface PutLocationGroupRequest extends PutLocationGroupPath {
504
+ export interface PutLocationGroupRequest extends BaseRequest, PutLocationGroupPath {
523
505
  body: PutLocationGroupBody;
524
- context?: RequestContext;
525
506
  }
526
507
  export interface DeleteLocationGroupPath {
527
508
  id: string;
@@ -530,18 +511,16 @@ export interface DeleteLocationGroupBody {
530
511
  locations?: Location[];
531
512
  }
532
513
  export declare type DeleteLocationGroupResponse = Group;
533
- export interface DeleteLocationGroupRequest extends DeleteLocationGroupPath {
514
+ export interface DeleteLocationGroupRequest extends BaseRequest, DeleteLocationGroupPath {
534
515
  body: DeleteLocationGroupBody;
535
- context?: RequestContext;
536
516
  }
537
517
  export interface PatchLocationGroupPath {
538
518
  id: string;
539
519
  }
540
520
  export declare type PatchLocationGroupBody = Group;
541
521
  export declare type PatchLocationGroupResponse = Group;
542
- export interface PatchLocationGroupRequest extends PatchLocationGroupPath {
522
+ export interface PatchLocationGroupRequest extends BaseRequest, PatchLocationGroupPath {
543
523
  body: PatchLocationGroupBody;
544
- context?: RequestContext;
545
524
  }
546
525
  export interface GetLocationGroupDeliverydestinationsPath {
547
526
  id: string;
@@ -552,17 +531,15 @@ export interface GetLocationGroupDeliverydestinationsQuery {
552
531
  export interface GetLocationGroupDeliverydestinationsResponse {
553
532
  delivery_destinations?: DeliveryDestinations;
554
533
  }
555
- export interface GetLocationGroupDeliverydestinationsRequest extends RequestQuery<GetLocationGroupDeliverydestinationsQuery>, GetLocationGroupDeliverydestinationsPath {
556
- context?: RequestContext;
534
+ export interface GetLocationGroupDeliverydestinationsRequest extends BaseRequest, RequestQuery<GetLocationGroupDeliverydestinationsQuery>, GetLocationGroupDeliverydestinationsPath {
557
535
  }
558
536
  export interface PostLocationGroupDeliverydestinationPath {
559
537
  id: string;
560
538
  }
561
539
  export declare type PostLocationGroupDeliverydestinationBody = PostDeliveryDestination;
562
540
  export declare type PostLocationGroupDeliverydestinationResponse = DeliveryDestination;
563
- export interface PostLocationGroupDeliverydestinationRequest extends PostLocationGroupDeliverydestinationPath {
541
+ export interface PostLocationGroupDeliverydestinationRequest extends BaseRequest, PostLocationGroupDeliverydestinationPath {
564
542
  body: PostLocationGroupDeliverydestinationBody;
565
- context?: RequestContext;
566
543
  }
567
544
  export interface PatchLocationGroupDeliverydestinationPath {
568
545
  id: string;
@@ -573,9 +550,8 @@ export interface PatchLocationGroupDeliverydestinationBody {
573
550
  export interface PatchLocationGroupDeliverydestinationResponse {
574
551
  delivery_destinations: DeliveryDestination[];
575
552
  }
576
- export interface PatchLocationGroupDeliverydestinationRequest extends PatchLocationGroupDeliverydestinationPath {
553
+ export interface PatchLocationGroupDeliverydestinationRequest extends BaseRequest, PatchLocationGroupDeliverydestinationPath {
577
554
  body: PatchLocationGroupDeliverydestinationBody;
578
- context?: RequestContext;
579
555
  }
580
556
  export interface DeleteLocationGroupDeliverydestinationPath {
581
557
  id: string;
@@ -586,17 +562,15 @@ export interface DeleteLocationGroupDeliverydestinationBody {
586
562
  export interface DeleteLocationGroupDeliverydestinationResponse {
587
563
  deleted_delivery_destinations: DeliveryDestination[];
588
564
  }
589
- export interface DeleteLocationGroupDeliverydestinationRequest extends DeleteLocationGroupDeliverydestinationPath {
565
+ export interface DeleteLocationGroupDeliverydestinationRequest extends BaseRequest, DeleteLocationGroupDeliverydestinationPath {
590
566
  body: DeleteLocationGroupDeliverydestinationBody;
591
- context?: RequestContext;
592
567
  }
593
568
  export interface GetLocationGroupDeliverydestinationPath {
594
569
  id: string;
595
570
  delivery_destination: string;
596
571
  }
597
572
  export declare type GetLocationGroupDeliverydestinationResponse = DeliveryDestination;
598
- export interface GetLocationGroupDeliverydestinationRequest extends GetLocationGroupDeliverydestinationPath {
599
- context?: RequestContext;
573
+ export interface GetLocationGroupDeliverydestinationRequest extends BaseRequest, GetLocationGroupDeliverydestinationPath {
600
574
  }
601
575
  export interface GetLocationUserGroupPath {
602
576
  id: string;
@@ -608,21 +582,18 @@ export interface GetLocationUserGroupQuery {
608
582
  nocache?: boolean;
609
583
  }
610
584
  export declare type GetLocationUserGroupResponse = Group;
611
- export interface GetLocationUserGroupRequest extends RequestQuery<GetLocationUserGroupQuery>, GetLocationUserGroupPath {
612
- context?: RequestContext;
585
+ export interface GetLocationUserGroupRequest extends BaseRequest, RequestQuery<GetLocationUserGroupQuery>, GetLocationUserGroupPath {
613
586
  }
614
587
  export interface GetLocationBrandsResponse {
615
588
  brands?: Brands;
616
589
  }
617
- export interface GetLocationBrandsRequest {
618
- context?: RequestContext;
590
+ export interface GetLocationBrandsRequest extends BaseRequest {
619
591
  }
620
592
  export interface GetLocationBrandDestinationsPath {
621
593
  id: string;
622
594
  }
623
595
  export declare type GetLocationBrandDestinationsResponse = DeliveryDestinationIDs;
624
- export interface GetLocationBrandDestinationsRequest extends GetLocationBrandDestinationsPath {
625
- context?: RequestContext;
596
+ export interface GetLocationBrandDestinationsRequest extends BaseRequest, GetLocationBrandDestinationsPath {
626
597
  }
627
598
  export interface PostLocationBrandDocumentPath {
628
599
  id: string;
@@ -635,9 +606,8 @@ export interface PostLocationBrandDocumentBody {
635
606
  };
636
607
  }
637
608
  export declare type PostLocationBrandDocumentResponse = BrandDocumentsResponse;
638
- export interface PostLocationBrandDocumentRequest extends PostLocationBrandDocumentPath {
609
+ export interface PostLocationBrandDocumentRequest extends BaseRequest, PostLocationBrandDocumentPath {
639
610
  body: PostLocationBrandDocumentBody;
640
- context?: RequestContext;
641
611
  }
642
612
  export interface PatchLocationBrandDocumentPath {
643
613
  id: string;
@@ -645,8 +615,7 @@ export interface PatchLocationBrandDocumentPath {
645
615
  export interface PatchLocationBrandDocumentResponse {
646
616
  document?: BrandDocument;
647
617
  }
648
- export interface PatchLocationBrandDocumentRequest extends PatchLocationBrandDocumentPath {
649
- context?: RequestContext;
618
+ export interface PatchLocationBrandDocumentRequest extends BaseRequest, PatchLocationBrandDocumentPath {
650
619
  }
651
620
  export interface DeleteLocationBrandDocumentPath {
652
621
  id: string;
@@ -654,15 +623,13 @@ export interface DeleteLocationBrandDocumentPath {
654
623
  export interface DeleteLocationBrandDocumentResponse {
655
624
  deleted_document?: BrandDocument;
656
625
  }
657
- export interface DeleteLocationBrandDocumentRequest extends DeleteLocationBrandDocumentPath {
658
- context?: RequestContext;
626
+ export interface DeleteLocationBrandDocumentRequest extends BaseRequest, DeleteLocationBrandDocumentPath {
659
627
  }
660
628
  export interface GetLocationBrandDocumentsPath {
661
629
  id: string;
662
630
  }
663
631
  export declare type GetLocationBrandDocumentsResponse = BrandDocumentsResponse;
664
- export interface GetLocationBrandDocumentsRequest extends GetLocationBrandDocumentsPath {
665
- context?: RequestContext;
632
+ export interface GetLocationBrandDocumentsRequest extends BaseRequest, GetLocationBrandDocumentsPath {
666
633
  }
667
634
  export interface GetLocationBrandTimeslotsPath {
668
635
  id: string;
@@ -672,8 +639,7 @@ export interface GetLocationBrandTimeslotsQuery {
672
639
  limit?: number;
673
640
  }
674
641
  export declare type GetLocationBrandTimeslotsResponse = TimeSlots;
675
- export interface GetLocationBrandTimeslotsRequest extends RequestQuery<GetLocationBrandTimeslotsQuery>, GetLocationBrandTimeslotsPath {
676
- context?: RequestContext;
642
+ export interface GetLocationBrandTimeslotsRequest extends BaseRequest, RequestQuery<GetLocationBrandTimeslotsQuery>, GetLocationBrandTimeslotsPath {
677
643
  }
678
644
  export interface PostLocationMarketplaceTimeslotsQuery {
679
645
  date?: number;
@@ -681,9 +647,8 @@ export interface PostLocationMarketplaceTimeslotsQuery {
681
647
  }
682
648
  export declare type PostLocationMarketplaceTimeslotsBody = MarketPlace;
683
649
  export declare type PostLocationMarketplaceTimeslotsResponse = TimeSlots;
684
- export interface PostLocationMarketplaceTimeslotsRequest extends RequestQuery<PostLocationMarketplaceTimeslotsQuery> {
650
+ export interface PostLocationMarketplaceTimeslotsRequest extends BaseRequest, RequestQuery<PostLocationMarketplaceTimeslotsQuery> {
685
651
  body: PostLocationMarketplaceTimeslotsBody;
686
- context?: RequestContext;
687
652
  }
688
653
  export interface PostLocationMarketplaceTimeslotsDeliveryQuery {
689
654
  date?: number;
@@ -691,9 +656,8 @@ export interface PostLocationMarketplaceTimeslotsDeliveryQuery {
691
656
  }
692
657
  export declare type PostLocationMarketplaceTimeslotsDeliveryBody = MarketPlace;
693
658
  export declare type PostLocationMarketplaceTimeslotsDeliveryResponse = TimeSlots;
694
- export interface PostLocationMarketplaceTimeslotsDeliveryRequest extends RequestQuery<PostLocationMarketplaceTimeslotsDeliveryQuery> {
659
+ export interface PostLocationMarketplaceTimeslotsDeliveryRequest extends BaseRequest, RequestQuery<PostLocationMarketplaceTimeslotsDeliveryQuery> {
695
660
  body: PostLocationMarketplaceTimeslotsDeliveryBody;
696
- context?: RequestContext;
697
661
  }
698
662
  export interface GetLocationBrandMenuTimeslotsPath {
699
663
  id: string;
@@ -704,8 +668,7 @@ export interface GetLocationBrandMenuTimeslotsQuery {
704
668
  limit?: number;
705
669
  }
706
670
  export declare type GetLocationBrandMenuTimeslotsResponse = TimeSlots;
707
- export interface GetLocationBrandMenuTimeslotsRequest extends RequestQuery<GetLocationBrandMenuTimeslotsQuery>, GetLocationBrandMenuTimeslotsPath {
708
- context?: RequestContext;
671
+ export interface GetLocationBrandMenuTimeslotsRequest extends BaseRequest, RequestQuery<GetLocationBrandMenuTimeslotsQuery>, GetLocationBrandMenuTimeslotsPath {
709
672
  }
710
673
  export interface GetLocationBrandDeliveryTimeslotsPath {
711
674
  id: string;
@@ -715,8 +678,7 @@ export interface GetLocationBrandDeliveryTimeslotsQuery {
715
678
  limit?: number;
716
679
  }
717
680
  export declare type GetLocationBrandDeliveryTimeslotsResponse = TimeSlots;
718
- export interface GetLocationBrandDeliveryTimeslotsRequest extends RequestQuery<GetLocationBrandDeliveryTimeslotsQuery>, GetLocationBrandDeliveryTimeslotsPath {
719
- context?: RequestContext;
681
+ export interface GetLocationBrandDeliveryTimeslotsRequest extends BaseRequest, RequestQuery<GetLocationBrandDeliveryTimeslotsQuery>, GetLocationBrandDeliveryTimeslotsPath {
720
682
  }
721
683
  export interface GetLocationBrandMenuDeliveryTimeslostsPath {
722
684
  id: string;
@@ -727,14 +689,12 @@ export interface GetLocationBrandMenuDeliveryTimeslostsQuery {
727
689
  limit?: number;
728
690
  }
729
691
  export declare type GetLocationBrandMenuDeliveryTimeslostsResponse = TimeSlots;
730
- export interface GetLocationBrandMenuDeliveryTimeslostsRequest extends RequestQuery<GetLocationBrandMenuDeliveryTimeslostsQuery>, GetLocationBrandMenuDeliveryTimeslostsPath {
731
- context?: RequestContext;
692
+ export interface GetLocationBrandMenuDeliveryTimeslostsRequest extends BaseRequest, RequestQuery<GetLocationBrandMenuDeliveryTimeslostsQuery>, GetLocationBrandMenuDeliveryTimeslostsPath {
732
693
  }
733
694
  export declare type PostLocationBrandBody = Brand;
734
695
  export declare type PostLocationBrandResponse = Brand;
735
- export interface PostLocationBrandRequest {
696
+ export interface PostLocationBrandRequest extends BaseRequest {
736
697
  body: PostLocationBrandBody;
737
- context?: RequestContext;
738
698
  }
739
699
  export interface GetLocationBrandPath {
740
700
  id: string;
@@ -745,48 +705,42 @@ export interface GetLocationBrandQuery {
745
705
  nocache?: boolean;
746
706
  }
747
707
  export declare type GetLocationBrandResponse = Brand;
748
- export interface GetLocationBrandRequest extends RequestQuery<GetLocationBrandQuery>, GetLocationBrandPath {
749
- context?: RequestContext;
708
+ export interface GetLocationBrandRequest extends BaseRequest, RequestQuery<GetLocationBrandQuery>, GetLocationBrandPath {
750
709
  }
751
710
  export interface PatchLocationBrandPath {
752
711
  id: string;
753
712
  }
754
713
  export declare type PatchLocationBrandBody = Brand;
755
714
  export declare type PatchLocationBrandResponse = Brand;
756
- export interface PatchLocationBrandRequest extends PatchLocationBrandPath {
715
+ export interface PatchLocationBrandRequest extends BaseRequest, PatchLocationBrandPath {
757
716
  body: PatchLocationBrandBody;
758
- context?: RequestContext;
759
717
  }
760
718
  export interface DeleteLocationBrandPath {
761
719
  id: string;
762
720
  }
763
721
  export declare type DeleteLocationBrandBody = Brand;
764
722
  export declare type DeleteLocationBrandResponse = Brand;
765
- export interface DeleteLocationBrandRequest extends DeleteLocationBrandPath {
723
+ export interface DeleteLocationBrandRequest extends BaseRequest, DeleteLocationBrandPath {
766
724
  body: DeleteLocationBrandBody;
767
- context?: RequestContext;
768
725
  }
769
726
  export interface PutLocationBrandPath {
770
727
  id: string;
771
728
  }
772
729
  export declare type PutLocationBrandBody = Brand;
773
730
  export declare type PutLocationBrandResponse = Brand;
774
- export interface PutLocationBrandRequest extends PutLocationBrandPath {
731
+ export interface PutLocationBrandRequest extends BaseRequest, PutLocationBrandPath {
775
732
  body: PutLocationBrandBody;
776
- context?: RequestContext;
777
733
  }
778
734
  export interface GetLocationSectorsQuery {
779
735
  nocache?: boolean;
780
736
  }
781
737
  export declare type GetLocationSectorsResponse = Sectors;
782
- export interface GetLocationSectorsRequest extends RequestQuery<GetLocationSectorsQuery> {
783
- context?: RequestContext;
738
+ export interface GetLocationSectorsRequest extends BaseRequest, RequestQuery<GetLocationSectorsQuery> {
784
739
  }
785
740
  export declare type PostLocationSectorBody = CreateSector;
786
741
  export declare type PostLocationSectorResponse = Sector;
787
- export interface PostLocationSectorRequest {
742
+ export interface PostLocationSectorRequest extends BaseRequest {
788
743
  body: PostLocationSectorBody;
789
- context?: RequestContext;
790
744
  }
791
745
  export interface GetLocationSectorPath {
792
746
  id: string;
@@ -796,8 +750,7 @@ export interface GetLocationSectorQuery {
796
750
  nocache?: boolean;
797
751
  }
798
752
  export declare type GetLocationSectorResponse = Sector;
799
- export interface GetLocationSectorRequest extends RequestQuery<GetLocationSectorQuery>, GetLocationSectorPath {
800
- context?: RequestContext;
753
+ export interface GetLocationSectorRequest extends BaseRequest, RequestQuery<GetLocationSectorQuery>, GetLocationSectorPath {
801
754
  }
802
755
  export interface PatchLocationSectorPath {
803
756
  id: string;
@@ -807,9 +760,8 @@ export interface PatchLocationSectorQuery {
807
760
  }
808
761
  export declare type PatchLocationSectorBody = CreateSector;
809
762
  export declare type PatchLocationSectorResponse = Sector;
810
- export interface PatchLocationSectorRequest extends RequestQuery<PatchLocationSectorQuery>, PatchLocationSectorPath {
763
+ export interface PatchLocationSectorRequest extends BaseRequest, RequestQuery<PatchLocationSectorQuery>, PatchLocationSectorPath {
811
764
  body: PatchLocationSectorBody;
812
- context?: RequestContext;
813
765
  }
814
766
  export interface PostLocationCompanyBody {
815
767
  name: string;
@@ -820,9 +772,8 @@ export interface PostLocationCompanyBody {
820
772
  };
821
773
  }
822
774
  export declare type PostLocationCompanyResponse = Company;
823
- export interface PostLocationCompanyRequest {
775
+ export interface PostLocationCompanyRequest extends BaseRequest {
824
776
  body: PostLocationCompanyBody;
825
- context?: RequestContext;
826
777
  }
827
778
  export interface GetLocationCompanyPath {
828
779
  id: string;
@@ -831,17 +782,15 @@ export interface GetLocationCompanyQuery {
831
782
  expanded?: boolean;
832
783
  }
833
784
  export declare type GetLocationCompanyResponse = Company;
834
- export interface GetLocationCompanyRequest extends RequestQuery<GetLocationCompanyQuery>, GetLocationCompanyPath {
835
- context?: RequestContext;
785
+ export interface GetLocationCompanyRequest extends BaseRequest, RequestQuery<GetLocationCompanyQuery>, GetLocationCompanyPath {
836
786
  }
837
787
  export interface PatchLocationCompanyPath {
838
788
  id: string;
839
789
  }
840
790
  export declare type PatchLocationCompanyBody = CompanyUpdateBody;
841
791
  export declare type PatchLocationCompanyResponse = Company;
842
- export interface PatchLocationCompanyRequest extends PatchLocationCompanyPath {
792
+ export interface PatchLocationCompanyRequest extends BaseRequest, PatchLocationCompanyPath {
843
793
  body: PatchLocationCompanyBody;
844
- context?: RequestContext;
845
794
  }
846
795
  export interface DeleteLocationRecordPath {
847
796
  id: string;
@@ -852,7 +801,6 @@ export interface DeleteLocationRecordQuery {
852
801
  export interface DeleteLocationRecordResponse {
853
802
  [index: string]: any;
854
803
  }
855
- export interface DeleteLocationRecordRequest extends RequestQuery<DeleteLocationRecordQuery>, DeleteLocationRecordPath {
856
- context?: RequestContext;
804
+ export interface DeleteLocationRecordRequest extends BaseRequest, RequestQuery<DeleteLocationRecordQuery>, DeleteLocationRecordPath {
857
805
  }
858
806
  //# sourceMappingURL=location.d.ts.map