@compassdigital/sdk.typescript 3.0.0-beta.9 → 3.0.0-rc.2

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 (226) hide show
  1. package/README.md +121 -8
  2. package/bin/gen.js +484 -0
  3. package/bin/index.js +3 -0
  4. package/gen.ts +98 -40
  5. package/lib/base.d.ts +129 -9
  6. package/lib/base.d.ts.map +1 -1
  7. package/lib/base.js +276 -53
  8. package/lib/base.js.map +1 -1
  9. package/lib/index.d.ts +592 -337
  10. package/lib/index.d.ts.map +1 -1
  11. package/lib/index.js +317 -18
  12. package/lib/index.js.map +1 -1
  13. package/lib/interface/announcement.d.ts.map +1 -0
  14. package/lib/interface/announcement.js +4 -0
  15. package/lib/interface/announcement.js.map +1 -0
  16. package/lib/interface/brand.d.ts.map +1 -0
  17. package/lib/interface/brand.js +4 -0
  18. package/lib/interface/brand.js.map +1 -0
  19. package/lib/{calendar.d.ts → interface/calendar.d.ts} +4 -1
  20. package/lib/interface/calendar.d.ts.map +1 -0
  21. package/lib/interface/calendar.js +4 -0
  22. package/lib/interface/calendar.js.map +1 -0
  23. package/lib/interface/config.d.ts.map +1 -0
  24. package/lib/interface/config.js +4 -0
  25. package/lib/interface/config.js.map +1 -0
  26. package/lib/interface/datalake.d.ts.map +1 -0
  27. package/lib/interface/datalake.js +4 -0
  28. package/lib/interface/datalake.js.map +1 -0
  29. package/lib/interface/delivery.d.ts.map +1 -0
  30. package/lib/interface/delivery.js +4 -0
  31. package/lib/interface/delivery.js.map +1 -0
  32. package/lib/interface/dh.d.ts.map +1 -0
  33. package/lib/interface/dh.js +4 -0
  34. package/lib/interface/dh.js.map +1 -0
  35. package/lib/interface/email.d.ts +21 -0
  36. package/lib/interface/email.d.ts.map +1 -0
  37. package/lib/interface/email.js +4 -0
  38. package/lib/interface/email.js.map +1 -0
  39. package/lib/interface/file.d.ts.map +1 -0
  40. package/lib/interface/file.js +4 -0
  41. package/lib/interface/file.js.map +1 -0
  42. package/lib/{kds.d.ts → interface/kds.d.ts} +1 -0
  43. package/lib/interface/kds.d.ts.map +1 -0
  44. package/lib/interface/kds.js +4 -0
  45. package/lib/interface/kds.js.map +1 -0
  46. package/lib/{location.d.ts → interface/location.d.ts} +53 -23
  47. package/lib/interface/location.d.ts.map +1 -0
  48. package/lib/interface/location.js +4 -0
  49. package/lib/interface/location.js.map +1 -0
  50. package/lib/interface/logger.d.ts.map +1 -0
  51. package/lib/interface/logger.js +4 -0
  52. package/lib/interface/logger.js.map +1 -0
  53. package/lib/interface/loyalty.d.ts.map +1 -0
  54. package/lib/interface/loyalty.js +4 -0
  55. package/lib/interface/loyalty.js.map +1 -0
  56. package/lib/interface/mealplan.d.ts.map +1 -0
  57. package/lib/interface/mealplan.js +4 -0
  58. package/lib/interface/mealplan.js.map +1 -0
  59. package/lib/interface/menu.d.ts +448 -0
  60. package/lib/interface/menu.d.ts.map +1 -0
  61. package/lib/interface/menu.js +4 -0
  62. package/lib/interface/menu.js.map +1 -0
  63. package/lib/interface/message.d.ts.map +1 -0
  64. package/lib/interface/message.js +4 -0
  65. package/lib/interface/message.js.map +1 -0
  66. package/lib/{order.d.ts → interface/order.d.ts} +11 -4
  67. package/lib/interface/order.d.ts.map +1 -0
  68. package/lib/interface/order.js +4 -0
  69. package/lib/interface/order.js.map +1 -0
  70. package/lib/{partner.d.ts → interface/partner.d.ts} +243 -4
  71. package/lib/interface/partner.d.ts.map +1 -0
  72. package/lib/interface/partner.js +4 -0
  73. package/lib/interface/partner.js.map +1 -0
  74. package/lib/{payment.d.ts → interface/payment.d.ts} +1 -0
  75. package/lib/interface/payment.d.ts.map +1 -0
  76. package/lib/interface/payment.js +4 -0
  77. package/lib/interface/payment.js.map +1 -0
  78. package/lib/{promo.d.ts → interface/promo.d.ts} +1 -0
  79. package/lib/interface/promo.d.ts.map +1 -0
  80. package/lib/interface/promo.js +4 -0
  81. package/lib/interface/promo.js.map +1 -0
  82. package/lib/{report.d.ts → interface/report.d.ts} +2 -0
  83. package/lib/interface/report.d.ts.map +1 -0
  84. package/lib/interface/report.js +4 -0
  85. package/lib/interface/report.js.map +1 -0
  86. package/lib/interface/schedule.d.ts.map +1 -0
  87. package/lib/interface/schedule.js +4 -0
  88. package/lib/interface/schedule.js.map +1 -0
  89. package/lib/{shoppingcart.d.ts → interface/shoppingcart.d.ts} +10 -1
  90. package/lib/interface/shoppingcart.d.ts.map +1 -0
  91. package/lib/interface/shoppingcart.js +4 -0
  92. package/lib/interface/shoppingcart.js.map +1 -0
  93. package/lib/interface/task.d.ts.map +1 -0
  94. package/lib/interface/task.js +4 -0
  95. package/lib/interface/task.js.map +1 -0
  96. package/lib/{user.d.ts → interface/user.d.ts} +19 -0
  97. package/lib/interface/user.d.ts.map +1 -0
  98. package/lib/interface/user.js +4 -0
  99. package/lib/interface/user.js.map +1 -0
  100. package/lib/interface/vote.d.ts.map +1 -0
  101. package/lib/interface/vote.js +4 -0
  102. package/lib/interface/vote.js.map +1 -0
  103. package/manifest.json +4 -0
  104. package/package.json +15 -5
  105. package/src/base.ts +274 -43
  106. package/src/index.ts +1319 -764
  107. package/src/{announcement.ts → interface/announcement.ts} +2 -0
  108. package/src/{brand.ts → interface/brand.ts} +2 -0
  109. package/src/{calendar.ts → interface/calendar.ts} +7 -1
  110. package/src/{config.ts → interface/config.ts} +2 -0
  111. package/src/{datalake.ts → interface/datalake.ts} +2 -0
  112. package/src/{delivery.ts → interface/delivery.ts} +2 -0
  113. package/src/{dh.ts → interface/dh.ts} +2 -0
  114. package/src/interface/email.ts +30 -0
  115. package/src/{file.ts → interface/file.ts} +2 -0
  116. package/src/{kds.ts → interface/kds.ts} +4 -0
  117. package/src/{location.ts → interface/location.ts} +79 -38
  118. package/src/{logger.ts → interface/logger.ts} +2 -0
  119. package/src/{loyalty.ts → interface/loyalty.ts} +2 -0
  120. package/src/{mealplan.ts → interface/mealplan.ts} +2 -0
  121. package/src/interface/menu.ts +649 -0
  122. package/src/{message.ts → interface/message.ts} +2 -0
  123. package/src/{order.ts → interface/order.ts} +21 -6
  124. package/src/{partner.ts → interface/partner.ts} +291 -5
  125. package/src/{payment.ts → interface/payment.ts} +4 -0
  126. package/src/{promo.ts → interface/promo.ts} +3 -0
  127. package/src/{report.ts → interface/report.ts} +4 -0
  128. package/src/{schedule.ts → interface/schedule.ts} +2 -0
  129. package/src/{shoppingcart.ts → interface/shoppingcart.ts} +14 -1
  130. package/src/{task.ts → interface/task.ts} +2 -0
  131. package/src/{user.ts → interface/user.ts} +34 -1
  132. package/src/{vote.ts → interface/vote.ts} +2 -0
  133. package/template.ejs +3 -3
  134. package/test/client.test.ts +192 -0
  135. package/test/gen.test.ts +22 -0
  136. package/lib/announcement.d.ts.map +0 -1
  137. package/lib/announcement.js +0 -3
  138. package/lib/announcement.js.map +0 -1
  139. package/lib/brand.d.ts.map +0 -1
  140. package/lib/brand.js +0 -3
  141. package/lib/brand.js.map +0 -1
  142. package/lib/calendar.d.ts.map +0 -1
  143. package/lib/calendar.js +0 -3
  144. package/lib/calendar.js.map +0 -1
  145. package/lib/config.d.ts.map +0 -1
  146. package/lib/config.js +0 -3
  147. package/lib/config.js.map +0 -1
  148. package/lib/datalake.d.ts.map +0 -1
  149. package/lib/datalake.js +0 -3
  150. package/lib/datalake.js.map +0 -1
  151. package/lib/delivery.d.ts.map +0 -1
  152. package/lib/delivery.js +0 -3
  153. package/lib/delivery.js.map +0 -1
  154. package/lib/dh.d.ts.map +0 -1
  155. package/lib/dh.js +0 -3
  156. package/lib/dh.js.map +0 -1
  157. package/lib/email.d.ts +0 -5
  158. package/lib/email.d.ts.map +0 -1
  159. package/lib/email.js +0 -3
  160. package/lib/email.js.map +0 -1
  161. package/lib/file.d.ts.map +0 -1
  162. package/lib/file.js +0 -3
  163. package/lib/file.js.map +0 -1
  164. package/lib/kds.d.ts.map +0 -1
  165. package/lib/kds.js +0 -3
  166. package/lib/kds.js.map +0 -1
  167. package/lib/location.d.ts.map +0 -1
  168. package/lib/location.js +0 -3
  169. package/lib/location.js.map +0 -1
  170. package/lib/logger.d.ts.map +0 -1
  171. package/lib/logger.js +0 -3
  172. package/lib/logger.js.map +0 -1
  173. package/lib/loyalty.d.ts.map +0 -1
  174. package/lib/loyalty.js +0 -3
  175. package/lib/loyalty.js.map +0 -1
  176. package/lib/mealplan.d.ts.map +0 -1
  177. package/lib/mealplan.js +0 -3
  178. package/lib/mealplan.js.map +0 -1
  179. package/lib/message.d.ts.map +0 -1
  180. package/lib/message.js +0 -3
  181. package/lib/message.js.map +0 -1
  182. package/lib/order.d.ts.map +0 -1
  183. package/lib/order.js +0 -3
  184. package/lib/order.js.map +0 -1
  185. package/lib/partner.d.ts.map +0 -1
  186. package/lib/partner.js +0 -3
  187. package/lib/partner.js.map +0 -1
  188. package/lib/payment.d.ts.map +0 -1
  189. package/lib/payment.js +0 -3
  190. package/lib/payment.js.map +0 -1
  191. package/lib/promo.d.ts.map +0 -1
  192. package/lib/promo.js +0 -3
  193. package/lib/promo.js.map +0 -1
  194. package/lib/report.d.ts.map +0 -1
  195. package/lib/report.js +0 -3
  196. package/lib/report.js.map +0 -1
  197. package/lib/schedule.d.ts.map +0 -1
  198. package/lib/schedule.js +0 -3
  199. package/lib/schedule.js.map +0 -1
  200. package/lib/shoppingcart.d.ts.map +0 -1
  201. package/lib/shoppingcart.js +0 -3
  202. package/lib/shoppingcart.js.map +0 -1
  203. package/lib/task.d.ts.map +0 -1
  204. package/lib/task.js +0 -3
  205. package/lib/task.js.map +0 -1
  206. package/lib/user.d.ts.map +0 -1
  207. package/lib/user.js +0 -3
  208. package/lib/user.js.map +0 -1
  209. package/lib/vote.d.ts.map +0 -1
  210. package/lib/vote.js +0 -3
  211. package/lib/vote.js.map +0 -1
  212. package/src/email.ts +0 -4
  213. /package/lib/{announcement.d.ts → interface/announcement.d.ts} +0 -0
  214. /package/lib/{brand.d.ts → interface/brand.d.ts} +0 -0
  215. /package/lib/{config.d.ts → interface/config.d.ts} +0 -0
  216. /package/lib/{datalake.d.ts → interface/datalake.d.ts} +0 -0
  217. /package/lib/{delivery.d.ts → interface/delivery.d.ts} +0 -0
  218. /package/lib/{dh.d.ts → interface/dh.d.ts} +0 -0
  219. /package/lib/{file.d.ts → interface/file.d.ts} +0 -0
  220. /package/lib/{logger.d.ts → interface/logger.d.ts} +0 -0
  221. /package/lib/{loyalty.d.ts → interface/loyalty.d.ts} +0 -0
  222. /package/lib/{mealplan.d.ts → interface/mealplan.d.ts} +0 -0
  223. /package/lib/{message.d.ts → interface/message.d.ts} +0 -0
  224. /package/lib/{schedule.d.ts → interface/schedule.d.ts} +0 -0
  225. /package/lib/{task.d.ts → interface/task.d.ts} +0 -0
  226. /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
  code?: number;
3
5
  message?: string;
@@ -1,3 +1,5 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
1
3
  export interface Brand {
2
4
  // brand
3
5
  id?: string;
@@ -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
 
@@ -1,3 +1,5 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
1
3
  export type CreateConfig = any;
2
4
 
3
5
  export interface Config {
@@ -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
  code?: number;
@@ -1,3 +1,5 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
1
3
  export interface Error {
2
4
  code?: number;
3
5
  message?: string;
@@ -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
  code?: number;
@@ -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
  message?: string;
3
5
  code?: number;
@@ -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
 
@@ -328,7 +333,7 @@ export interface Groups {
328
333
  groups?: Group[];
329
334
  }
330
335
 
331
- export interface PostOrPatchDeliveryDestination {
336
+ export interface PostDeliveryDestination {
332
337
  // Name of the delivery destination
333
338
  name: string;
334
339
  // Boolean to indicate whether the delivery destination is a foodlocker or not
@@ -339,8 +344,8 @@ export interface PostOrPatchDeliveryDestination {
339
344
  }
340
345
 
341
346
  export interface DeliveryDestination {
342
- // ID of the delivery destination
343
- id?: string;
347
+ // delivery_destination
348
+ id: string;
344
349
  // Name of the delivery destination
345
350
  name: string;
346
351
  // Boolean to indicate whether the delivery destination is a foodlocker or not
@@ -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 type GetLocationMultigroupsRequest = {};
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;
@@ -740,7 +753,7 @@ export interface PostLocationGroupDeliverydestinationPath {
740
753
  id: string;
741
754
  }
742
755
 
743
- export type PostLocationGroupDeliverydestinationBody = PostOrPatchDeliveryDestination;
756
+ export type PostLocationGroupDeliverydestinationBody = PostDeliveryDestination;
744
757
 
745
758
  export type PostLocationGroupDeliverydestinationResponse = DeliveryDestination;
746
759
 
@@ -749,53 +762,59 @@ export interface PostLocationGroupDeliverydestinationRequest
749
762
  body: PostLocationGroupDeliverydestinationBody;
750
763
  }
751
764
 
752
- // GET /location/group/{id}/deliverydestination/{delivery_destination} - Get a delivery destination
765
+ // PATCH /location/group/{id}/deliverydestination - Patch single or multiple delivery destinations
753
766
 
754
- export interface GetLocationGroupDeliverydestinationPath {
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 type GetLocationGroupDeliverydestinationResponse = DeliveryDestination;
772
+ export interface PatchLocationGroupDeliverydestinationBody {
773
+ delivery_destinations: DeliveryDestination[];
774
+ }
762
775
 
763
- export interface GetLocationGroupDeliverydestinationRequest
764
- extends GetLocationGroupDeliverydestinationPath {}
776
+ export interface PatchLocationGroupDeliverydestinationResponse {
777
+ delivery_destinations: DeliveryDestination[];
778
+ }
765
779
 
766
- // PATCH /location/group/{id}/deliverydestination/{delivery_destination} - Patch a delivery destination
780
+ export interface PatchLocationGroupDeliverydestinationRequest
781
+ extends PatchLocationGroupDeliverydestinationPath {
782
+ body: PatchLocationGroupDeliverydestinationBody;
783
+ }
767
784
 
768
- export interface PatchLocationGroupDeliverydestinationPath {
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 type PatchLocationGroupDeliverydestinationBody = PostOrPatchDeliveryDestination;
792
+ export interface DeleteLocationGroupDeliverydestinationBody {
793
+ delivery_destination_ids: string[];
794
+ }
776
795
 
777
- export type PatchLocationGroupDeliverydestinationResponse = DeliveryDestination;
796
+ export interface DeleteLocationGroupDeliverydestinationResponse {
797
+ deleted_delivery_destinations: DeliveryDestination[];
798
+ }
778
799
 
779
- export interface PatchLocationGroupDeliverydestinationRequest
780
- extends PatchLocationGroupDeliverydestinationPath {
781
- body: PatchLocationGroupDeliverydestinationBody;
800
+ export interface DeleteLocationGroupDeliverydestinationRequest
801
+ extends DeleteLocationGroupDeliverydestinationPath {
802
+ body: DeleteLocationGroupDeliverydestinationBody;
782
803
  }
783
804
 
784
- // DELETE /location/group/{id}/deliverydestination/{delivery_destination} - Delete a delivery destination
805
+ // GET /location/group/{id}/deliverydestination/{delivery_destination} - Get a delivery destination
785
806
 
786
- export interface DeleteLocationGroupDeliverydestinationPath {
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 interface DeleteLocationGroupDeliverydestinationResponse {
794
- deleted_delivery_destination?: DeliveryDestination;
795
- }
814
+ export type GetLocationGroupDeliverydestinationResponse = DeliveryDestination;
796
815
 
797
- export interface DeleteLocationGroupDeliverydestinationRequest
798
- extends DeleteLocationGroupDeliverydestinationPath {}
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 type GetLocationSectorsRequest = {};
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
- // Sector name
1150
- name: string;
1151
- // sector
1152
- sector: string;
1153
- label?: any;
1154
- is?: {
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 {}
@@ -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
  code?: number;
@@ -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;
@@ -1,3 +1,5 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
1
3
  export interface Error {
2
4
  code?: number;
3
5
  message?: string;