@compassdigital/sdk.typescript 3.0.0-beta.8 → 3.0.0-rc.1
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.
- package/README.md +121 -8
- package/bin/gen.js +484 -0
- package/bin/index.js +3 -0
- package/gen.ts +99 -41
- package/lib/base.d.ts +134 -9
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +293 -48
- package/lib/base.js.map +1 -1
- package/lib/index.d.ts +592 -337
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +544 -245
- package/lib/index.js.map +1 -1
- package/lib/interface/announcement.d.ts.map +1 -0
- package/lib/interface/announcement.js +4 -0
- package/lib/interface/announcement.js.map +1 -0
- package/lib/interface/brand.d.ts.map +1 -0
- package/lib/interface/brand.js +4 -0
- package/lib/interface/brand.js.map +1 -0
- package/lib/{calendar.d.ts → interface/calendar.d.ts} +4 -1
- package/lib/interface/calendar.d.ts.map +1 -0
- package/lib/interface/calendar.js +4 -0
- package/lib/interface/calendar.js.map +1 -0
- package/lib/interface/config.d.ts.map +1 -0
- package/lib/interface/config.js +4 -0
- package/lib/interface/config.js.map +1 -0
- package/lib/interface/datalake.d.ts.map +1 -0
- package/lib/interface/datalake.js +4 -0
- package/lib/interface/datalake.js.map +1 -0
- package/lib/interface/delivery.d.ts.map +1 -0
- package/lib/interface/delivery.js +4 -0
- package/lib/interface/delivery.js.map +1 -0
- package/lib/interface/dh.d.ts.map +1 -0
- package/lib/interface/dh.js +4 -0
- package/lib/interface/dh.js.map +1 -0
- package/lib/interface/email.d.ts +21 -0
- package/lib/interface/email.d.ts.map +1 -0
- package/lib/interface/email.js +4 -0
- package/lib/interface/email.js.map +1 -0
- package/lib/interface/file.d.ts.map +1 -0
- package/lib/interface/file.js +4 -0
- package/lib/interface/file.js.map +1 -0
- package/lib/{kds.d.ts → interface/kds.d.ts} +1 -0
- package/lib/interface/kds.d.ts.map +1 -0
- package/lib/interface/kds.js +4 -0
- package/lib/interface/kds.js.map +1 -0
- package/lib/{location.d.ts → interface/location.d.ts} +50 -20
- package/lib/interface/location.d.ts.map +1 -0
- package/lib/interface/location.js +4 -0
- package/lib/interface/location.js.map +1 -0
- package/lib/interface/logger.d.ts.map +1 -0
- package/lib/interface/logger.js +4 -0
- package/lib/interface/logger.js.map +1 -0
- package/lib/interface/loyalty.d.ts.map +1 -0
- package/lib/interface/loyalty.js +4 -0
- package/lib/interface/loyalty.js.map +1 -0
- package/lib/interface/mealplan.d.ts.map +1 -0
- package/lib/interface/mealplan.js +4 -0
- package/lib/interface/mealplan.js.map +1 -0
- package/lib/interface/menu.d.ts +448 -0
- package/lib/interface/menu.d.ts.map +1 -0
- package/lib/interface/menu.js +4 -0
- package/lib/interface/menu.js.map +1 -0
- package/lib/interface/message.d.ts.map +1 -0
- package/lib/interface/message.js +4 -0
- package/lib/interface/message.js.map +1 -0
- package/lib/{order.d.ts → interface/order.d.ts} +11 -4
- package/lib/interface/order.d.ts.map +1 -0
- package/lib/interface/order.js +4 -0
- package/lib/interface/order.js.map +1 -0
- package/lib/{partner.d.ts → interface/partner.d.ts} +243 -4
- package/lib/interface/partner.d.ts.map +1 -0
- package/lib/interface/partner.js +4 -0
- package/lib/interface/partner.js.map +1 -0
- package/lib/{payment.d.ts → interface/payment.d.ts} +1 -0
- package/lib/interface/payment.d.ts.map +1 -0
- package/lib/interface/payment.js +4 -0
- package/lib/interface/payment.js.map +1 -0
- package/lib/{promo.d.ts → interface/promo.d.ts} +1 -0
- package/lib/interface/promo.d.ts.map +1 -0
- package/lib/interface/promo.js +4 -0
- package/lib/interface/promo.js.map +1 -0
- package/lib/{report.d.ts → interface/report.d.ts} +2 -0
- package/lib/interface/report.d.ts.map +1 -0
- package/lib/interface/report.js +4 -0
- package/lib/interface/report.js.map +1 -0
- package/lib/interface/schedule.d.ts.map +1 -0
- package/lib/interface/schedule.js +4 -0
- package/lib/interface/schedule.js.map +1 -0
- package/lib/{shoppingcart.d.ts → interface/shoppingcart.d.ts} +10 -1
- package/lib/interface/shoppingcart.d.ts.map +1 -0
- package/lib/interface/shoppingcart.js +4 -0
- package/lib/interface/shoppingcart.js.map +1 -0
- package/lib/interface/task.d.ts.map +1 -0
- package/lib/interface/task.js +4 -0
- package/lib/interface/task.js.map +1 -0
- package/lib/{user.d.ts → interface/user.d.ts} +19 -0
- package/lib/interface/user.d.ts.map +1 -0
- package/lib/interface/user.js +4 -0
- package/lib/interface/user.js.map +1 -0
- package/lib/interface/vote.d.ts.map +1 -0
- package/lib/interface/vote.js +4 -0
- package/lib/interface/vote.js.map +1 -0
- package/manifest.json +4 -0
- package/package.json +15 -5
- package/src/base.ts +315 -35
- package/src/index.ts +2630 -988
- package/src/{announcement.ts → interface/announcement.ts} +2 -0
- package/src/{brand.ts → interface/brand.ts} +2 -0
- package/src/{calendar.ts → interface/calendar.ts} +7 -1
- package/src/{config.ts → interface/config.ts} +2 -0
- package/src/{datalake.ts → interface/datalake.ts} +2 -0
- package/src/{delivery.ts → interface/delivery.ts} +2 -0
- package/src/{dh.ts → interface/dh.ts} +2 -0
- package/src/interface/email.ts +30 -0
- package/src/{file.ts → interface/file.ts} +2 -0
- package/src/{kds.ts → interface/kds.ts} +4 -0
- package/src/{location.ts → interface/location.ts} +76 -35
- package/src/{logger.ts → interface/logger.ts} +2 -0
- package/src/{loyalty.ts → interface/loyalty.ts} +2 -0
- package/src/{mealplan.ts → interface/mealplan.ts} +2 -0
- package/src/interface/menu.ts +649 -0
- package/src/{message.ts → interface/message.ts} +2 -0
- package/src/{order.ts → interface/order.ts} +21 -6
- package/src/{partner.ts → interface/partner.ts} +291 -5
- package/src/{payment.ts → interface/payment.ts} +4 -0
- package/src/{promo.ts → interface/promo.ts} +3 -0
- package/src/{report.ts → interface/report.ts} +4 -0
- package/src/{schedule.ts → interface/schedule.ts} +2 -0
- package/src/{shoppingcart.ts → interface/shoppingcart.ts} +14 -1
- package/src/{task.ts → interface/task.ts} +2 -0
- package/src/{user.ts → interface/user.ts} +34 -1
- package/src/{vote.ts → interface/vote.ts} +2 -0
- package/template.ejs +3 -3
- package/test/client.test.ts +192 -0
- package/test/gen.test.ts +22 -0
- package/lib/announcement.d.ts.map +0 -1
- package/lib/announcement.js +0 -3
- package/lib/announcement.js.map +0 -1
- package/lib/brand.d.ts.map +0 -1
- package/lib/brand.js +0 -3
- package/lib/brand.js.map +0 -1
- package/lib/calendar.d.ts.map +0 -1
- package/lib/calendar.js +0 -3
- package/lib/calendar.js.map +0 -1
- package/lib/config.d.ts.map +0 -1
- package/lib/config.js +0 -3
- package/lib/config.js.map +0 -1
- package/lib/datalake.d.ts.map +0 -1
- package/lib/datalake.js +0 -3
- package/lib/datalake.js.map +0 -1
- package/lib/delivery.d.ts.map +0 -1
- package/lib/delivery.js +0 -3
- package/lib/delivery.js.map +0 -1
- package/lib/dh.d.ts.map +0 -1
- package/lib/dh.js +0 -3
- package/lib/dh.js.map +0 -1
- package/lib/email.d.ts +0 -5
- package/lib/email.d.ts.map +0 -1
- package/lib/email.js +0 -3
- package/lib/email.js.map +0 -1
- package/lib/file.d.ts.map +0 -1
- package/lib/file.js +0 -3
- package/lib/file.js.map +0 -1
- package/lib/kds.d.ts.map +0 -1
- package/lib/kds.js +0 -3
- package/lib/kds.js.map +0 -1
- package/lib/location.d.ts.map +0 -1
- package/lib/location.js +0 -3
- package/lib/location.js.map +0 -1
- package/lib/logger.d.ts.map +0 -1
- package/lib/logger.js +0 -3
- package/lib/logger.js.map +0 -1
- package/lib/loyalty.d.ts.map +0 -1
- package/lib/loyalty.js +0 -3
- package/lib/loyalty.js.map +0 -1
- package/lib/mealplan.d.ts.map +0 -1
- package/lib/mealplan.js +0 -3
- package/lib/mealplan.js.map +0 -1
- package/lib/message.d.ts.map +0 -1
- package/lib/message.js +0 -3
- package/lib/message.js.map +0 -1
- package/lib/order.d.ts.map +0 -1
- package/lib/order.js +0 -3
- package/lib/order.js.map +0 -1
- package/lib/partner.d.ts.map +0 -1
- package/lib/partner.js +0 -3
- package/lib/partner.js.map +0 -1
- package/lib/payment.d.ts.map +0 -1
- package/lib/payment.js +0 -3
- package/lib/payment.js.map +0 -1
- package/lib/promo.d.ts.map +0 -1
- package/lib/promo.js +0 -3
- package/lib/promo.js.map +0 -1
- package/lib/report.d.ts.map +0 -1
- package/lib/report.js +0 -3
- package/lib/report.js.map +0 -1
- package/lib/schedule.d.ts.map +0 -1
- package/lib/schedule.js +0 -3
- package/lib/schedule.js.map +0 -1
- package/lib/shoppingcart.d.ts.map +0 -1
- package/lib/shoppingcart.js +0 -3
- package/lib/shoppingcart.js.map +0 -1
- package/lib/task.d.ts.map +0 -1
- package/lib/task.js +0 -3
- package/lib/task.js.map +0 -1
- package/lib/user.d.ts.map +0 -1
- package/lib/user.js +0 -3
- package/lib/user.js.map +0 -1
- package/lib/vote.d.ts.map +0 -1
- package/lib/vote.js +0 -3
- package/lib/vote.js.map +0 -1
- package/src/email.ts +0 -4
- /package/lib/{announcement.d.ts → interface/announcement.d.ts} +0 -0
- /package/lib/{brand.d.ts → interface/brand.d.ts} +0 -0
- /package/lib/{config.d.ts → interface/config.d.ts} +0 -0
- /package/lib/{datalake.d.ts → interface/datalake.d.ts} +0 -0
- /package/lib/{delivery.d.ts → interface/delivery.d.ts} +0 -0
- /package/lib/{dh.d.ts → interface/dh.d.ts} +0 -0
- /package/lib/{file.d.ts → interface/file.d.ts} +0 -0
- /package/lib/{logger.d.ts → interface/logger.d.ts} +0 -0
- /package/lib/{loyalty.d.ts → interface/loyalty.d.ts} +0 -0
- /package/lib/{mealplan.d.ts → interface/mealplan.d.ts} +0 -0
- /package/lib/{message.d.ts → interface/message.d.ts} +0 -0
- /package/lib/{schedule.d.ts → interface/schedule.d.ts} +0 -0
- /package/lib/{task.d.ts → interface/task.d.ts} +0 -0
- /package/lib/{vote.d.ts → interface/vote.d.ts} +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
1
3
|
export interface Error {
|
|
2
4
|
message?: string;
|
|
3
5
|
code?: number;
|
|
@@ -63,9 +65,13 @@ export interface GetCalendarPath {
|
|
|
63
65
|
id: string;
|
|
64
66
|
}
|
|
65
67
|
|
|
68
|
+
export interface GetCalendarQuery {
|
|
69
|
+
nocache?: boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
66
72
|
export type GetCalendarResponse = Calendar;
|
|
67
73
|
|
|
68
|
-
export interface GetCalendarRequest extends GetCalendarPath {}
|
|
74
|
+
export interface GetCalendarRequest extends GetCalendarQuery, GetCalendarPath {}
|
|
69
75
|
|
|
70
76
|
// PUT /calendar/{id} - Set the calendar for an id. Overrides previous record
|
|
71
77
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
3
|
+
export interface Error {
|
|
4
|
+
message?: string;
|
|
5
|
+
code?: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface Success {
|
|
9
|
+
success?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface EmailPayload {
|
|
13
|
+
from: string;
|
|
14
|
+
to: string;
|
|
15
|
+
subject?: string;
|
|
16
|
+
// Text of an email instead of template_id/data
|
|
17
|
+
text?: string;
|
|
18
|
+
template_id?: string;
|
|
19
|
+
data?: any;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// POST /email - Send an email
|
|
23
|
+
|
|
24
|
+
export type PostEmailBody = EmailPayload;
|
|
25
|
+
|
|
26
|
+
export type PostEmailResponse = Success;
|
|
27
|
+
|
|
28
|
+
export interface PostEmailRequest {
|
|
29
|
+
body: PostEmailBody;
|
|
30
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
1
3
|
export interface Error {
|
|
2
4
|
error?: string;
|
|
3
5
|
message?: string;
|
|
@@ -45,6 +47,8 @@ export interface AuthPostBodyResponse {
|
|
|
45
47
|
export interface GetKdsDevicesQuery {
|
|
46
48
|
// Unit numbers string separated with commas
|
|
47
49
|
unitNumber: string;
|
|
50
|
+
// Do not return cached device information
|
|
51
|
+
nocache?: boolean;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
export type GetKdsDevicesResponse = Units;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
1
3
|
export interface POS {
|
|
2
4
|
// pos
|
|
3
5
|
id?: string;
|
|
@@ -133,6 +135,8 @@ export interface Brand {
|
|
|
133
135
|
brand?: string;
|
|
134
136
|
// location
|
|
135
137
|
location?: string;
|
|
138
|
+
// location group
|
|
139
|
+
group?: string;
|
|
136
140
|
// payment
|
|
137
141
|
payment_provider?: string;
|
|
138
142
|
location_description?: string;
|
|
@@ -180,6 +184,7 @@ export interface Brand {
|
|
|
180
184
|
fr?: string;
|
|
181
185
|
};
|
|
182
186
|
};
|
|
187
|
+
external_id?: string;
|
|
183
188
|
[index: string]: any;
|
|
184
189
|
}
|
|
185
190
|
|
|
@@ -339,7 +344,7 @@ export interface PostOrPatchDeliveryDestination {
|
|
|
339
344
|
}
|
|
340
345
|
|
|
341
346
|
export interface DeliveryDestination {
|
|
342
|
-
//
|
|
347
|
+
// delivery_destination
|
|
343
348
|
id?: string;
|
|
344
349
|
// Name of the delivery destination
|
|
345
350
|
name: string;
|
|
@@ -442,6 +447,7 @@ export interface GetLocationQuery {
|
|
|
442
447
|
active_cafes?: any[];
|
|
443
448
|
// show additional hidden properties/entities
|
|
444
449
|
extended?: boolean;
|
|
450
|
+
nocache?: boolean;
|
|
445
451
|
}
|
|
446
452
|
|
|
447
453
|
export type GetLocationResponse = Location;
|
|
@@ -524,9 +530,13 @@ export interface PutLocationPosRequest extends PutLocationPosPath {
|
|
|
524
530
|
|
|
525
531
|
// GET /location/multigroup - Get all the top level multigroups
|
|
526
532
|
|
|
533
|
+
export interface GetLocationMultigroupsQuery {
|
|
534
|
+
nocache?: boolean;
|
|
535
|
+
}
|
|
536
|
+
|
|
527
537
|
export type GetLocationMultigroupsResponse = Multigroups;
|
|
528
538
|
|
|
529
|
-
export
|
|
539
|
+
export interface GetLocationMultigroupsRequest extends GetLocationMultigroupsQuery {}
|
|
530
540
|
|
|
531
541
|
// POST /location/multigroup - Create a new multigroup
|
|
532
542
|
|
|
@@ -558,6 +568,7 @@ export interface GetLocationMultigroupQuery {
|
|
|
558
568
|
extended?: boolean;
|
|
559
569
|
// return additional hours and deliveryHours properties in response
|
|
560
570
|
hours?: boolean;
|
|
571
|
+
nocache?: boolean;
|
|
561
572
|
}
|
|
562
573
|
|
|
563
574
|
export type GetLocationMultigroupResponse = MultiGroup;
|
|
@@ -625,6 +636,7 @@ export interface GetLocationUserMultigroupPath {
|
|
|
625
636
|
|
|
626
637
|
export interface GetLocationUserMultigroupQuery {
|
|
627
638
|
expanded?: boolean;
|
|
639
|
+
nocache?: boolean;
|
|
628
640
|
}
|
|
629
641
|
|
|
630
642
|
export type GetLocationUserMultigroupResponse = Groups;
|
|
@@ -659,6 +671,7 @@ export interface GetLocationGroupQuery {
|
|
|
659
671
|
extended?: boolean;
|
|
660
672
|
// return only groups with brands that have web_order_enabled switched on
|
|
661
673
|
web?: boolean;
|
|
674
|
+
nocache?: boolean;
|
|
662
675
|
}
|
|
663
676
|
|
|
664
677
|
export type GetLocationGroupResponse = Group;
|
|
@@ -749,53 +762,59 @@ export interface PostLocationGroupDeliverydestinationRequest
|
|
|
749
762
|
body: PostLocationGroupDeliverydestinationBody;
|
|
750
763
|
}
|
|
751
764
|
|
|
752
|
-
//
|
|
765
|
+
// PATCH /location/group/{id}/deliverydestination - Patch single or multiple delivery destinations
|
|
753
766
|
|
|
754
|
-
export interface
|
|
767
|
+
export interface PatchLocationGroupDeliverydestinationPath {
|
|
755
768
|
// Group ID
|
|
756
769
|
id: string;
|
|
757
|
-
// Delivery Destination ID
|
|
758
|
-
delivery_destination: string;
|
|
759
770
|
}
|
|
760
771
|
|
|
761
|
-
export
|
|
772
|
+
export interface PatchLocationGroupDeliverydestinationBody {
|
|
773
|
+
delivery_destinations?: PostOrPatchDeliveryDestination;
|
|
774
|
+
}
|
|
762
775
|
|
|
763
|
-
export interface
|
|
764
|
-
|
|
776
|
+
export interface PatchLocationGroupDeliverydestinationResponse {
|
|
777
|
+
delivery_destinations?: DeliveryDestination;
|
|
778
|
+
}
|
|
765
779
|
|
|
766
|
-
|
|
780
|
+
export interface PatchLocationGroupDeliverydestinationRequest
|
|
781
|
+
extends PatchLocationGroupDeliverydestinationPath {
|
|
782
|
+
body: PatchLocationGroupDeliverydestinationBody;
|
|
783
|
+
}
|
|
767
784
|
|
|
768
|
-
|
|
785
|
+
// DELETE /location/group/{id}/deliverydestination - Delete single or multiple delivery destinations
|
|
786
|
+
|
|
787
|
+
export interface DeleteLocationGroupDeliverydestinationPath {
|
|
769
788
|
// Group ID
|
|
770
789
|
id: string;
|
|
771
|
-
// Delivery Destination ID
|
|
772
|
-
delivery_destination: string;
|
|
773
790
|
}
|
|
774
791
|
|
|
775
|
-
export
|
|
792
|
+
export interface DeleteLocationGroupDeliverydestinationBody {
|
|
793
|
+
delivery_destination_ids?: string[];
|
|
794
|
+
}
|
|
776
795
|
|
|
777
|
-
export
|
|
796
|
+
export interface DeleteLocationGroupDeliverydestinationResponse {
|
|
797
|
+
deleted_delivery_destinations?: DeliveryDestination;
|
|
798
|
+
}
|
|
778
799
|
|
|
779
|
-
export interface
|
|
780
|
-
extends
|
|
781
|
-
body:
|
|
800
|
+
export interface DeleteLocationGroupDeliverydestinationRequest
|
|
801
|
+
extends DeleteLocationGroupDeliverydestinationPath {
|
|
802
|
+
body: DeleteLocationGroupDeliverydestinationBody;
|
|
782
803
|
}
|
|
783
804
|
|
|
784
|
-
//
|
|
805
|
+
// GET /location/group/{id}/deliverydestination/{delivery_destination} - Get a delivery destination
|
|
785
806
|
|
|
786
|
-
export interface
|
|
807
|
+
export interface GetLocationGroupDeliverydestinationPath {
|
|
787
808
|
// Group ID
|
|
788
809
|
id: string;
|
|
789
810
|
// Delivery Destination ID
|
|
790
811
|
delivery_destination: string;
|
|
791
812
|
}
|
|
792
813
|
|
|
793
|
-
export
|
|
794
|
-
deleted_delivery_destination?: DeliveryDestination;
|
|
795
|
-
}
|
|
814
|
+
export type GetLocationGroupDeliverydestinationResponse = DeliveryDestination;
|
|
796
815
|
|
|
797
|
-
export interface
|
|
798
|
-
extends
|
|
816
|
+
export interface GetLocationGroupDeliverydestinationRequest
|
|
817
|
+
extends GetLocationGroupDeliverydestinationPath {}
|
|
799
818
|
|
|
800
819
|
// GET /location/group/{id}/user/{user_id} - Get a location group info specific to user read permissions
|
|
801
820
|
|
|
@@ -809,6 +828,7 @@ export interface GetLocationUserGroupPath {
|
|
|
809
828
|
export interface GetLocationUserGroupQuery {
|
|
810
829
|
latitude?: number;
|
|
811
830
|
longitude?: number;
|
|
831
|
+
nocache?: boolean;
|
|
812
832
|
}
|
|
813
833
|
|
|
814
834
|
export type GetLocationUserGroupResponse = Group;
|
|
@@ -1037,6 +1057,7 @@ export interface GetLocationBrandQuery {
|
|
|
1037
1057
|
include_config?: boolean;
|
|
1038
1058
|
// show additional hidden properties/entities
|
|
1039
1059
|
extended?: boolean;
|
|
1060
|
+
nocache?: boolean;
|
|
1040
1061
|
}
|
|
1041
1062
|
|
|
1042
1063
|
export type GetLocationBrandResponse = Brand;
|
|
@@ -1090,9 +1111,13 @@ export interface PutLocationBrandRequest extends PutLocationBrandPath {
|
|
|
1090
1111
|
|
|
1091
1112
|
// GET /location/sector - Get list of all the sectors
|
|
1092
1113
|
|
|
1114
|
+
export interface GetLocationSectorsQuery {
|
|
1115
|
+
nocache?: boolean;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1093
1118
|
export type GetLocationSectorsResponse = Sectors;
|
|
1094
1119
|
|
|
1095
|
-
export
|
|
1120
|
+
export interface GetLocationSectorsRequest extends GetLocationSectorsQuery {}
|
|
1096
1121
|
|
|
1097
1122
|
// POST /location/sector - Create a new sector
|
|
1098
1123
|
|
|
@@ -1114,6 +1139,7 @@ export interface GetLocationSectorPath {
|
|
|
1114
1139
|
export interface GetLocationSectorQuery {
|
|
1115
1140
|
// Omits nested children of a sector if false
|
|
1116
1141
|
expanded?: boolean;
|
|
1142
|
+
nocache?: boolean;
|
|
1117
1143
|
}
|
|
1118
1144
|
|
|
1119
1145
|
export type GetLocationSectorResponse = Sector;
|
|
@@ -1145,15 +1171,13 @@ export interface PatchLocationSectorRequest
|
|
|
1145
1171
|
// POST /location/company - Create a new company
|
|
1146
1172
|
|
|
1147
1173
|
export interface PostLocationCompanyBody {
|
|
1148
|
-
name
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
global_images_enabled?: boolean;
|
|
1156
|
-
};
|
|
1174
|
+
// Sector name
|
|
1175
|
+
name: string;
|
|
1176
|
+
// sector
|
|
1177
|
+
sector: string;
|
|
1178
|
+
label?: any;
|
|
1179
|
+
is?: {
|
|
1180
|
+
global_images_enabled?: boolean;
|
|
1157
1181
|
};
|
|
1158
1182
|
}
|
|
1159
1183
|
|
|
@@ -1194,3 +1218,20 @@ export type PatchLocationCompanyResponse = Company;
|
|
|
1194
1218
|
export interface PatchLocationCompanyRequest extends PatchLocationCompanyPath {
|
|
1195
1219
|
body: PatchLocationCompanyBody;
|
|
1196
1220
|
}
|
|
1221
|
+
|
|
1222
|
+
// GET /location/brand/external/{external_id} - Get an individual Location filtered by external_id
|
|
1223
|
+
|
|
1224
|
+
export interface GetLocationBrandExternalPath {
|
|
1225
|
+
// external location id
|
|
1226
|
+
external_id: string;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
export interface GetLocationBrandExternalQuery {
|
|
1230
|
+
nocache?: boolean;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
export type GetLocationBrandExternalResponse = Location;
|
|
1234
|
+
|
|
1235
|
+
export interface GetLocationBrandExternalRequest
|
|
1236
|
+
extends GetLocationBrandExternalQuery,
|
|
1237
|
+
GetLocationBrandExternalPath {}
|