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

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 +9 -126
  2. package/gen.ts +41 -86
  3. package/lib/announcement.d.ts.map +1 -0
  4. package/lib/announcement.js +3 -0
  5. package/lib/announcement.js.map +1 -0
  6. package/lib/base.d.ts +4 -141
  7. package/lib/base.d.ts.map +1 -1
  8. package/lib/base.js +35 -328
  9. package/lib/base.js.map +1 -1
  10. package/lib/brand.d.ts.map +1 -0
  11. package/lib/brand.js +3 -0
  12. package/lib/brand.js.map +1 -0
  13. package/lib/calendar.d.ts.map +1 -0
  14. package/lib/calendar.js +3 -0
  15. package/lib/calendar.js.map +1 -0
  16. package/lib/config.d.ts.map +1 -0
  17. package/lib/config.js +3 -0
  18. package/lib/config.js.map +1 -0
  19. package/lib/datalake.d.ts.map +1 -0
  20. package/lib/datalake.js +3 -0
  21. package/lib/datalake.js.map +1 -0
  22. package/lib/delivery.d.ts.map +1 -0
  23. package/lib/delivery.js +3 -0
  24. package/lib/delivery.js.map +1 -0
  25. package/lib/dh.d.ts.map +1 -0
  26. package/lib/dh.js +3 -0
  27. package/lib/dh.js.map +1 -0
  28. package/lib/email.d.ts +5 -0
  29. package/lib/email.d.ts.map +1 -0
  30. package/lib/email.js +3 -0
  31. package/lib/email.js.map +1 -0
  32. package/lib/file.d.ts.map +1 -0
  33. package/lib/file.js +3 -0
  34. package/lib/file.js.map +1 -0
  35. package/lib/index.d.ts +264 -503
  36. package/lib/index.d.ts.map +1 -1
  37. package/lib/index.js +242 -534
  38. package/lib/index.js.map +1 -1
  39. package/lib/{interface/kds.d.ts → kds.d.ts} +0 -1
  40. package/lib/kds.d.ts.map +1 -0
  41. package/lib/kds.js +3 -0
  42. package/lib/kds.js.map +1 -0
  43. package/lib/{interface/location.d.ts → location.d.ts} +18 -23
  44. package/lib/location.d.ts.map +1 -0
  45. package/lib/location.js +3 -0
  46. package/lib/location.js.map +1 -0
  47. package/lib/logger.d.ts.map +1 -0
  48. package/lib/logger.js +3 -0
  49. package/lib/logger.js.map +1 -0
  50. package/lib/loyalty.d.ts.map +1 -0
  51. package/lib/loyalty.js +3 -0
  52. package/lib/loyalty.js.map +1 -0
  53. package/lib/mealplan.d.ts.map +1 -0
  54. package/lib/mealplan.js +3 -0
  55. package/lib/mealplan.js.map +1 -0
  56. package/lib/message.d.ts.map +1 -0
  57. package/lib/message.js +3 -0
  58. package/lib/message.js.map +1 -0
  59. package/lib/{interface/order.d.ts → order.d.ts} +4 -11
  60. package/lib/order.d.ts.map +1 -0
  61. package/lib/order.js +3 -0
  62. package/lib/order.js.map +1 -0
  63. package/lib/{interface/partner.d.ts → partner.d.ts} +4 -243
  64. package/lib/partner.d.ts.map +1 -0
  65. package/lib/partner.js +3 -0
  66. package/lib/partner.js.map +1 -0
  67. package/lib/{interface/payment.d.ts → payment.d.ts} +0 -1
  68. package/lib/payment.d.ts.map +1 -0
  69. package/lib/payment.js +3 -0
  70. package/lib/payment.js.map +1 -0
  71. package/lib/promo.d.ts.map +1 -0
  72. package/lib/promo.js +3 -0
  73. package/lib/promo.js.map +1 -0
  74. package/lib/report.d.ts.map +1 -0
  75. package/lib/report.js +3 -0
  76. package/lib/report.js.map +1 -0
  77. package/lib/schedule.d.ts.map +1 -0
  78. package/lib/schedule.js +3 -0
  79. package/lib/schedule.js.map +1 -0
  80. package/lib/{interface/shoppingcart.d.ts → shoppingcart.d.ts} +1 -10
  81. package/lib/shoppingcart.d.ts.map +1 -0
  82. package/lib/shoppingcart.js +3 -0
  83. package/lib/shoppingcart.js.map +1 -0
  84. package/lib/task.d.ts.map +1 -0
  85. package/lib/task.js +3 -0
  86. package/lib/task.js.map +1 -0
  87. package/lib/{interface/user.d.ts → user.d.ts} +0 -19
  88. package/lib/user.d.ts.map +1 -0
  89. package/lib/user.js +3 -0
  90. package/lib/user.js.map +1 -0
  91. package/lib/vote.d.ts.map +1 -0
  92. package/lib/vote.js +3 -0
  93. package/lib/vote.js.map +1 -0
  94. package/manifest.json +50 -29
  95. package/package.json +5 -19
  96. package/src/{interface/announcement.ts → announcement.ts} +0 -2
  97. package/src/base.ts +17 -330
  98. package/src/{interface/brand.ts → brand.ts} +0 -2
  99. package/src/{interface/calendar.ts → calendar.ts} +0 -2
  100. package/src/{interface/config.ts → config.ts} +0 -2
  101. package/src/{interface/datalake.ts → datalake.ts} +0 -2
  102. package/src/{interface/delivery.ts → delivery.ts} +0 -2
  103. package/src/{interface/dh.ts → dh.ts} +0 -2
  104. package/src/email.ts +4 -0
  105. package/src/{interface/file.ts → file.ts} +0 -2
  106. package/src/index.ts +503 -2219
  107. package/src/{interface/kds.ts → kds.ts} +0 -4
  108. package/src/{interface/location.ts → location.ts} +33 -41
  109. package/src/{interface/logger.ts → logger.ts} +0 -2
  110. package/src/{interface/loyalty.ts → loyalty.ts} +0 -2
  111. package/src/{interface/mealplan.ts → mealplan.ts} +0 -2
  112. package/src/{interface/message.ts → message.ts} +0 -2
  113. package/src/{interface/order.ts → order.ts} +6 -21
  114. package/src/{interface/partner.ts → partner.ts} +5 -291
  115. package/src/{interface/payment.ts → payment.ts} +0 -4
  116. package/src/{interface/promo.ts → promo.ts} +0 -2
  117. package/src/{interface/report.ts → report.ts} +0 -2
  118. package/src/{interface/schedule.ts → schedule.ts} +0 -2
  119. package/src/{interface/shoppingcart.ts → shoppingcart.ts} +1 -14
  120. package/src/{interface/task.ts → task.ts} +0 -2
  121. package/src/{interface/user.ts → user.ts} +1 -34
  122. package/src/{interface/vote.ts → vote.ts} +0 -2
  123. package/template.ejs +2 -3
  124. package/bin/gen.js +0 -472
  125. package/bin/index.js +0 -3
  126. package/lib/interface/announcement.d.ts.map +0 -1
  127. package/lib/interface/announcement.js +0 -4
  128. package/lib/interface/announcement.js.map +0 -1
  129. package/lib/interface/brand.d.ts.map +0 -1
  130. package/lib/interface/brand.js +0 -4
  131. package/lib/interface/brand.js.map +0 -1
  132. package/lib/interface/calendar.d.ts.map +0 -1
  133. package/lib/interface/calendar.js +0 -4
  134. package/lib/interface/calendar.js.map +0 -1
  135. package/lib/interface/config.d.ts.map +0 -1
  136. package/lib/interface/config.js +0 -4
  137. package/lib/interface/config.js.map +0 -1
  138. package/lib/interface/datalake.d.ts.map +0 -1
  139. package/lib/interface/datalake.js +0 -4
  140. package/lib/interface/datalake.js.map +0 -1
  141. package/lib/interface/delivery.d.ts.map +0 -1
  142. package/lib/interface/delivery.js +0 -4
  143. package/lib/interface/delivery.js.map +0 -1
  144. package/lib/interface/dh.d.ts.map +0 -1
  145. package/lib/interface/dh.js +0 -4
  146. package/lib/interface/dh.js.map +0 -1
  147. package/lib/interface/email.d.ts +0 -21
  148. package/lib/interface/email.d.ts.map +0 -1
  149. package/lib/interface/email.js +0 -4
  150. package/lib/interface/email.js.map +0 -1
  151. package/lib/interface/file.d.ts.map +0 -1
  152. package/lib/interface/file.js +0 -4
  153. package/lib/interface/file.js.map +0 -1
  154. package/lib/interface/kds.d.ts.map +0 -1
  155. package/lib/interface/kds.js +0 -4
  156. package/lib/interface/kds.js.map +0 -1
  157. package/lib/interface/location.d.ts.map +0 -1
  158. package/lib/interface/location.js +0 -4
  159. package/lib/interface/location.js.map +0 -1
  160. package/lib/interface/logger.d.ts.map +0 -1
  161. package/lib/interface/logger.js +0 -4
  162. package/lib/interface/logger.js.map +0 -1
  163. package/lib/interface/loyalty.d.ts.map +0 -1
  164. package/lib/interface/loyalty.js +0 -4
  165. package/lib/interface/loyalty.js.map +0 -1
  166. package/lib/interface/mealplan.d.ts.map +0 -1
  167. package/lib/interface/mealplan.js +0 -4
  168. package/lib/interface/mealplan.js.map +0 -1
  169. package/lib/interface/menu.d.ts +0 -444
  170. package/lib/interface/menu.d.ts.map +0 -1
  171. package/lib/interface/menu.js +0 -4
  172. package/lib/interface/menu.js.map +0 -1
  173. package/lib/interface/message.d.ts.map +0 -1
  174. package/lib/interface/message.js +0 -4
  175. package/lib/interface/message.js.map +0 -1
  176. package/lib/interface/order.d.ts.map +0 -1
  177. package/lib/interface/order.js +0 -4
  178. package/lib/interface/order.js.map +0 -1
  179. package/lib/interface/partner.d.ts.map +0 -1
  180. package/lib/interface/partner.js +0 -4
  181. package/lib/interface/partner.js.map +0 -1
  182. package/lib/interface/payment.d.ts.map +0 -1
  183. package/lib/interface/payment.js +0 -4
  184. package/lib/interface/payment.js.map +0 -1
  185. package/lib/interface/promo.d.ts.map +0 -1
  186. package/lib/interface/promo.js +0 -4
  187. package/lib/interface/promo.js.map +0 -1
  188. package/lib/interface/report.d.ts.map +0 -1
  189. package/lib/interface/report.js +0 -4
  190. package/lib/interface/report.js.map +0 -1
  191. package/lib/interface/schedule.d.ts.map +0 -1
  192. package/lib/interface/schedule.js +0 -4
  193. package/lib/interface/schedule.js.map +0 -1
  194. package/lib/interface/shoppingcart.d.ts.map +0 -1
  195. package/lib/interface/shoppingcart.js +0 -4
  196. package/lib/interface/shoppingcart.js.map +0 -1
  197. package/lib/interface/task.d.ts.map +0 -1
  198. package/lib/interface/task.js +0 -4
  199. package/lib/interface/task.js.map +0 -1
  200. package/lib/interface/user.d.ts.map +0 -1
  201. package/lib/interface/user.js +0 -4
  202. package/lib/interface/user.js.map +0 -1
  203. package/lib/interface/vote.d.ts.map +0 -1
  204. package/lib/interface/vote.js +0 -4
  205. package/lib/interface/vote.js.map +0 -1
  206. package/src/interface/email.ts +0 -30
  207. package/src/interface/menu.ts +0 -644
  208. package/test/client.test.ts +0 -192
  209. package/test/gen.test.ts +0 -22
  210. /package/lib/{interface/announcement.d.ts → announcement.d.ts} +0 -0
  211. /package/lib/{interface/brand.d.ts → brand.d.ts} +0 -0
  212. /package/lib/{interface/calendar.d.ts → calendar.d.ts} +0 -0
  213. /package/lib/{interface/config.d.ts → config.d.ts} +0 -0
  214. /package/lib/{interface/datalake.d.ts → datalake.d.ts} +0 -0
  215. /package/lib/{interface/delivery.d.ts → delivery.d.ts} +0 -0
  216. /package/lib/{interface/dh.d.ts → dh.d.ts} +0 -0
  217. /package/lib/{interface/file.d.ts → file.d.ts} +0 -0
  218. /package/lib/{interface/logger.d.ts → logger.d.ts} +0 -0
  219. /package/lib/{interface/loyalty.d.ts → loyalty.d.ts} +0 -0
  220. /package/lib/{interface/mealplan.d.ts → mealplan.d.ts} +0 -0
  221. /package/lib/{interface/message.d.ts → message.d.ts} +0 -0
  222. /package/lib/{interface/promo.d.ts → promo.d.ts} +0 -0
  223. /package/lib/{interface/report.d.ts → report.d.ts} +0 -0
  224. /package/lib/{interface/schedule.d.ts → schedule.d.ts} +0 -0
  225. /package/lib/{interface/task.d.ts → task.d.ts} +0 -0
  226. /package/lib/{interface/vote.d.ts → vote.d.ts} +0 -0
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface Error {
4
2
  error?: string;
5
3
  message?: string;
@@ -47,8 +45,6 @@ export interface AuthPostBodyResponse {
47
45
  export interface GetKdsDevicesQuery {
48
46
  // Unit numbers string separated with commas
49
47
  unitNumber: string;
50
- // Do not return cached device information
51
- nocache?: boolean;
52
48
  }
53
49
 
54
50
  export type GetKdsDevicesResponse = Units;
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface POS {
4
2
  // pos
5
3
  id?: string;
@@ -135,8 +133,6 @@ export interface Brand {
135
133
  brand?: string;
136
134
  // location
137
135
  location?: string;
138
- // location group
139
- group?: string;
140
136
  // payment
141
137
  payment_provider?: string;
142
138
  location_description?: string;
@@ -343,7 +339,7 @@ export interface PostOrPatchDeliveryDestination {
343
339
  }
344
340
 
345
341
  export interface DeliveryDestination {
346
- // delivery_destination
342
+ // ID of the delivery destination
347
343
  id?: string;
348
344
  // Name of the delivery destination
349
345
  name: string;
@@ -753,59 +749,53 @@ export interface PostLocationGroupDeliverydestinationRequest
753
749
  body: PostLocationGroupDeliverydestinationBody;
754
750
  }
755
751
 
756
- // PATCH /location/group/{id}/deliverydestination - Patch single or multiple delivery destinations
752
+ // GET /location/group/{id}/deliverydestination/{delivery_destination} - Get a delivery destination
757
753
 
758
- export interface PatchLocationGroupDeliverydestinationPath {
754
+ export interface GetLocationGroupDeliverydestinationPath {
759
755
  // Group ID
760
756
  id: string;
757
+ // Delivery Destination ID
758
+ delivery_destination: string;
761
759
  }
762
760
 
763
- export interface PatchLocationGroupDeliverydestinationBody {
764
- delivery_destinations?: PostOrPatchDeliveryDestination;
765
- }
766
-
767
- export interface PatchLocationGroupDeliverydestinationResponse {
768
- delivery_destinations?: DeliveryDestination;
769
- }
761
+ export type GetLocationGroupDeliverydestinationResponse = DeliveryDestination;
770
762
 
771
- export interface PatchLocationGroupDeliverydestinationRequest
772
- extends PatchLocationGroupDeliverydestinationPath {
773
- body: PatchLocationGroupDeliverydestinationBody;
774
- }
763
+ export interface GetLocationGroupDeliverydestinationRequest
764
+ extends GetLocationGroupDeliverydestinationPath {}
775
765
 
776
- // DELETE /location/group/{id}/deliverydestination - Delete single or multiple delivery destinations
766
+ // PATCH /location/group/{id}/deliverydestination/{delivery_destination} - Patch a delivery destination
777
767
 
778
- export interface DeleteLocationGroupDeliverydestinationPath {
768
+ export interface PatchLocationGroupDeliverydestinationPath {
779
769
  // Group ID
780
770
  id: string;
771
+ // Delivery Destination ID
772
+ delivery_destination: string;
781
773
  }
782
774
 
783
- export interface DeleteLocationGroupDeliverydestinationBody {
784
- delivery_destination_ids?: string[];
785
- }
775
+ export type PatchLocationGroupDeliverydestinationBody = PostOrPatchDeliveryDestination;
786
776
 
787
- export interface DeleteLocationGroupDeliverydestinationResponse {
788
- deleted_delivery_destinations?: DeliveryDestination;
789
- }
777
+ export type PatchLocationGroupDeliverydestinationResponse = DeliveryDestination;
790
778
 
791
- export interface DeleteLocationGroupDeliverydestinationRequest
792
- extends DeleteLocationGroupDeliverydestinationPath {
793
- body: DeleteLocationGroupDeliverydestinationBody;
779
+ export interface PatchLocationGroupDeliverydestinationRequest
780
+ extends PatchLocationGroupDeliverydestinationPath {
781
+ body: PatchLocationGroupDeliverydestinationBody;
794
782
  }
795
783
 
796
- // GET /location/group/{id}/deliverydestination/{delivery_destination} - Get a delivery destination
784
+ // DELETE /location/group/{id}/deliverydestination/{delivery_destination} - Delete a delivery destination
797
785
 
798
- export interface GetLocationGroupDeliverydestinationPath {
786
+ export interface DeleteLocationGroupDeliverydestinationPath {
799
787
  // Group ID
800
788
  id: string;
801
789
  // Delivery Destination ID
802
790
  delivery_destination: string;
803
791
  }
804
792
 
805
- export type GetLocationGroupDeliverydestinationResponse = DeliveryDestination;
793
+ export interface DeleteLocationGroupDeliverydestinationResponse {
794
+ deleted_delivery_destination?: DeliveryDestination;
795
+ }
806
796
 
807
- export interface GetLocationGroupDeliverydestinationRequest
808
- extends GetLocationGroupDeliverydestinationPath {}
797
+ export interface DeleteLocationGroupDeliverydestinationRequest
798
+ extends DeleteLocationGroupDeliverydestinationPath {}
809
799
 
810
800
  // GET /location/group/{id}/user/{user_id} - Get a location group info specific to user read permissions
811
801
 
@@ -1155,13 +1145,15 @@ export interface PatchLocationSectorRequest
1155
1145
  // POST /location/company - Create a new company
1156
1146
 
1157
1147
  export interface PostLocationCompanyBody {
1158
- // Sector name
1159
- name: string;
1160
- // sector
1161
- sector: string;
1162
- label?: any;
1163
- is?: {
1164
- global_images_enabled?: boolean;
1148
+ name: {
1149
+ // Sector name
1150
+ name: string;
1151
+ // sector
1152
+ sector: string;
1153
+ label?: any;
1154
+ is?: {
1155
+ global_images_enabled?: boolean;
1156
+ };
1165
1157
  };
1166
1158
  }
1167
1159
 
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface Error {
4
2
  error?: string;
5
3
  code?: number;
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface Error {
4
2
  message?: string;
5
3
  code?: number;
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface Error {
4
2
  code?: number;
5
3
  message?: string;
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface Error {
4
2
  message?: string;
5
3
  code?: number;
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface CreateOrder {
4
2
  // brand
5
3
  location_brand?: string;
@@ -378,12 +376,12 @@ export interface GetOrderCustomerOrdersBrandRequest extends GetOrderCustomerOrde
378
376
 
379
377
  // GET /order/location/brand/{id} - Get all orders for a location Brand
380
378
 
381
- export interface GetOrderLocationBrandPath {
379
+ export interface GetOrderBrandOrdersPath {
382
380
  // The location brand ID
383
381
  id: string;
384
382
  }
385
383
 
386
- export interface GetOrderLocationBrandQuery {
384
+ export interface GetOrderBrandOrdersQuery {
387
385
  // Filter orders by their pickup date. Only return orders that have a date greater than or equal to the date in milliseconds.
388
386
  pickup_start?: number;
389
387
  // Filter orders by their pickup date. Only return orders that have a date less than or equal to the date in milliseconds.
@@ -400,11 +398,11 @@ export interface GetOrderLocationBrandQuery {
400
398
  limit?: number;
401
399
  }
402
400
 
403
- export type GetOrderLocationBrandResponse = Orders;
401
+ export type GetOrderBrandOrdersResponse = Orders;
404
402
 
405
- export interface GetOrderLocationBrandRequest
406
- extends GetOrderLocationBrandQuery,
407
- GetOrderLocationBrandPath {}
403
+ export interface GetOrderBrandOrdersRequest
404
+ extends GetOrderBrandOrdersQuery,
405
+ GetOrderBrandOrdersPath {}
408
406
 
409
407
  // GET /order/location/{id} - Get all orders for a location
410
408
 
@@ -452,8 +450,6 @@ export interface GetOrderGroupOrdersQuery {
452
450
  end?: number;
453
451
  // Filter orders by their order type
454
452
  order_type?: string;
455
- // Filter orders by brand ID. Only return orders that involve brand ID, either as the only brand, or as part of a market place order.
456
- brand?: string;
457
453
  }
458
454
 
459
455
  export interface GetOrderGroupOrdersResponse {
@@ -463,14 +459,3 @@ export interface GetOrderGroupOrdersResponse {
463
459
  export interface GetOrderGroupOrdersRequest
464
460
  extends GetOrderGroupOrdersQuery,
465
461
  GetOrderGroupOrdersPath {}
466
-
467
- // PATCH /order/{id}/checkin - Accept an order by checking in
468
-
469
- export interface PatchOrderCheckinPath {
470
- // The order ID
471
- id: string;
472
- }
473
-
474
- export type PatchOrderCheckinResponse = Order;
475
-
476
- export interface PatchOrderCheckinRequest extends PatchOrderCheckinPath {}
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface Error {
4
2
  message?: string;
5
3
  code?: number;
@@ -42,25 +40,14 @@ export interface ShoppingCart {
42
40
  _loyalty?: {
43
41
  amount?: number;
44
42
  };
45
- meta?: {
46
- // menu id
47
- menu?: string;
48
- // brand id
49
- brand?: string;
50
- [index: string]: any;
51
- };
43
+ meta?: any;
52
44
  options?: {
53
- id?: string;
54
45
  label?: {
55
46
  en?: string;
56
47
  };
57
- meta?: any;
58
48
  items?: {
59
49
  // option
60
50
  id?: string;
61
- label?: {
62
- en?: string;
63
- };
64
51
  // index
65
52
  _index?: string;
66
53
  meta?: any;
@@ -302,8 +289,6 @@ export interface LocationGroup {
302
289
  brand?: string;
303
290
  // location
304
291
  location?: string;
305
- // location group
306
- group?: string;
307
292
  // payment
308
293
  payment_provider?: string;
309
294
  location_description?: string;
@@ -410,252 +395,6 @@ export type Hours = any;
410
395
 
411
396
  export type DeliveryHours = any;
412
397
 
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
-
642
- export interface CognitionStore {
643
- // UUID for external store
644
- uuid?: string;
645
- // Store name
646
- name?: string;
647
- // Full address
648
- address?: string;
649
- city?: string;
650
- state?: string;
651
- // Abbreviated address
652
- street_address?: string;
653
- // ISO code for currency
654
- currency_code?: string;
655
- latitude?: number;
656
- longitude?: number;
657
- }
658
-
659
398
  export interface CoolrLocations {
660
399
  // location
661
400
  id?: string;
@@ -675,14 +414,14 @@ export type CoolrImages = any[];
675
414
  // POST /partner/standardcognition/shoppingcart - Calculates a shoppingcart
676
415
 
677
416
  export interface PostPartnerStandardcognitionShoppingcartBody {
678
- items: {
417
+ items?: {
679
418
  sku?: string;
680
419
  quantity?: number;
681
420
  }[];
682
421
  // brand
683
- location_brand: string;
684
- // CDL shoppingcart id. If provided, items will be added to this shoppingcart
685
- shoppingcart: string;
422
+ location_brand?: string;
423
+ // shoppingcart
424
+ shoppingcart?: string;
686
425
  }
687
426
 
688
427
  export type PostPartnerStandardcognitionShoppingcartResponse = ShoppingCart;
@@ -699,31 +438,6 @@ export interface GetPartnerStandardcognitionLocationsResponse {
699
438
 
700
439
  export type GetPartnerStandardcognitionLocationsRequest = {};
701
440
 
702
- // GET /partner/standardcognition/stores - Gets the UUID for all the Standard Cognition external locations
703
-
704
- export type GetPartnerStandardcognitionStoresResponse = CognitionStore;
705
-
706
- export type GetPartnerStandardcognitionStoresRequest = {};
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
-
727
441
  // GET /partner/coolr/locations - Gets the locations where Coolr is available
728
442
 
729
443
  export interface GetPartnerCoolrLocationsResponse {
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface Transaction {
4
2
  success?: boolean;
5
3
  [index: string]: any;
@@ -206,8 +204,6 @@ export interface PostPaymentPaymenttokenBody {
206
204
  options?: Options;
207
205
  // postal or zip code
208
206
  postal_code?: string;
209
- // flag to determine if the card should be saved or used once
210
- use_card_once?: boolean;
211
207
  }
212
208
 
213
209
  export type PostPaymentPaymenttokenResponse = PaymentMethod;
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface Error {
4
2
  message?: string;
5
3
  code?: number;
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface Success {
4
2
  success?: boolean;
5
3
  }
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface Error {
4
2
  message?: string;
5
3
  code?: number;
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface Error {
4
2
  message?: string;
5
3
  code?: number;
@@ -32,25 +30,14 @@ export interface Item {
32
30
  _loyalty?: {
33
31
  amount?: number;
34
32
  };
35
- meta?: {
36
- // menu id
37
- menu?: string;
38
- // brand id
39
- brand?: string;
40
- [index: string]: any;
41
- };
33
+ meta?: any;
42
34
  options?: {
43
- id?: string;
44
35
  label?: {
45
36
  en?: string;
46
37
  };
47
- meta?: any;
48
38
  items?: {
49
39
  // option
50
40
  id?: string;
51
- label?: {
52
- en?: string;
53
- };
54
41
  // index
55
42
  _index?: string;
56
43
  meta?: any;
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  export interface location {
4
2
  // Location ID
5
3
  location_id: string;