@compassdigital/sdk.typescript 4.41.0 → 4.42.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.
@@ -30,6 +30,8 @@ export interface CreateOrder {
30
30
  meta?: {
31
31
  // which ui the order was placed on
32
32
  source?: "web" | "mobile";
33
+ // Override for meta.active for testing purposes
34
+ active_override?: boolean;
33
35
  [index: string]: any;
34
36
  };
35
37
  //@deprecated
@@ -195,6 +197,8 @@ export interface Order {
195
197
  };
196
198
  // Indicate whether the order is active or inactive
197
199
  active?: boolean;
200
+ // Override for meta.active for testing purposes
201
+ active_override?: boolean;
198
202
  // Delivery details
199
203
  delivery?: {
200
204
  // provider
@@ -229,6 +233,8 @@ export interface Order {
229
233
  | "refunded_order"
230
234
  | "modifiers_unavailable"
231
235
  | "modified_items";
236
+ refunds?: RefundItem[];
237
+ latest_refunds?: RefundItem[];
232
238
  [index: string]: any;
233
239
  }
234
240
 
@@ -375,9 +375,11 @@ export interface Brand {
375
375
  pos?: string;
376
376
  terminals?: Record<string, any>[];
377
377
  device_mapping?: {
378
- device_type: string;
379
- site_device_id: string;
380
- }[];
378
+ [index: string]: {
379
+ device_type: string;
380
+ site_device_id: string;
381
+ }[];
382
+ };
381
383
  timeslots?: {
382
384
  time?: string;
383
385
  averagePrepTime?: string;
@@ -823,74 +825,6 @@ export interface Success {
823
825
  success?: boolean;
824
826
  }
825
827
 
826
- // POST /partner/standardcognition/shoppingcart - Calculates a shoppingcart
827
-
828
- export interface PostPartnerStandardcognitionShoppingcartBody {
829
- items: {
830
- sku?: string;
831
- quantity?: number;
832
- }[];
833
- // brand
834
- location_brand: string;
835
- // shoppingcart
836
- shoppingcart?: string;
837
- // Meta data from Standard Cognition shoppingcart
838
- meta?: Record<string, any>;
839
- }
840
-
841
- export type PostPartnerStandardcognitionShoppingcartResponse = ShoppingCartResponse;
842
-
843
- export interface PostPartnerStandardcognitionShoppingcartRequest extends BaseRequest {
844
- body: PostPartnerStandardcognitionShoppingcartBody;
845
- }
846
-
847
- // GET /partner/standardcognition/locations - Gets the locations where Standard Cognition is available
848
-
849
- export interface GetPartnerStandardcognitionLocationsQuery {
850
- // Graphql query string
851
- _query?: string;
852
- }
853
-
854
- export interface GetPartnerStandardcognitionLocationsResponse {
855
- groups?: LocationGroup[];
856
- }
857
-
858
- export interface GetPartnerStandardcognitionLocationsRequest
859
- extends BaseRequest,
860
- RequestQuery<GetPartnerStandardcognitionLocationsQuery> {}
861
-
862
- // GET /partner/standardcognition/stores - Gets the UUID for all the Standard Cognition external locations
863
-
864
- export interface GetPartnerStandardcognitionStoresQuery {
865
- // Graphql query string
866
- _query?: string;
867
- }
868
-
869
- export type GetPartnerStandardcognitionStoresResponse = CognitionStore[];
870
-
871
- export interface GetPartnerStandardcognitionStoresRequest
872
- extends BaseRequest,
873
- RequestQuery<GetPartnerStandardcognitionStoresQuery> {}
874
-
875
- // POST /partner/standardcognition/menu - Create new Standard Cognition menu from JSON files
876
-
877
- export interface PostPartnerStandardcognitionMenuBody {
878
- // CDL company ID
879
- company: string;
880
- // CDL sector ID
881
- sector: string;
882
- // CDL location brand ID
883
- location_brand: string;
884
- // Link for S3 menu file provided by Standard Cognition
885
- s3_link: string;
886
- }
887
-
888
- export type PostPartnerStandardcognitionMenuResponse = Menu;
889
-
890
- export interface PostPartnerStandardcognitionMenuRequest extends BaseRequest {
891
- body: PostPartnerStandardcognitionMenuBody;
892
- }
893
-
894
828
  // POST /partner/event/{id} - Send an event from 3rd party to our system
895
829
 
896
830
  export interface PostPartnerEventPath {