@compassdigital/sdk.typescript 4.41.1 → 4.43.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
@@ -378,6 +378,7 @@ export interface Brand {
378
378
  [index: string]: {
379
379
  device_type: string;
380
380
  site_device_id: string;
381
+ business_units: string[];
381
382
  }[];
382
383
  };
383
384
  timeslots?: {
@@ -825,74 +826,6 @@ export interface Success {
825
826
  success?: boolean;
826
827
  }
827
828
 
828
- // POST /partner/standardcognition/shoppingcart - Calculates a shoppingcart
829
-
830
- export interface PostPartnerStandardcognitionShoppingcartBody {
831
- items: {
832
- sku?: string;
833
- quantity?: number;
834
- }[];
835
- // brand
836
- location_brand: string;
837
- // shoppingcart
838
- shoppingcart?: string;
839
- // Meta data from Standard Cognition shoppingcart
840
- meta?: Record<string, any>;
841
- }
842
-
843
- export type PostPartnerStandardcognitionShoppingcartResponse = ShoppingCartResponse;
844
-
845
- export interface PostPartnerStandardcognitionShoppingcartRequest extends BaseRequest {
846
- body: PostPartnerStandardcognitionShoppingcartBody;
847
- }
848
-
849
- // GET /partner/standardcognition/locations - Gets the locations where Standard Cognition is available
850
-
851
- export interface GetPartnerStandardcognitionLocationsQuery {
852
- // Graphql query string
853
- _query?: string;
854
- }
855
-
856
- export interface GetPartnerStandardcognitionLocationsResponse {
857
- groups?: LocationGroup[];
858
- }
859
-
860
- export interface GetPartnerStandardcognitionLocationsRequest
861
- extends BaseRequest,
862
- RequestQuery<GetPartnerStandardcognitionLocationsQuery> {}
863
-
864
- // GET /partner/standardcognition/stores - Gets the UUID for all the Standard Cognition external locations
865
-
866
- export interface GetPartnerStandardcognitionStoresQuery {
867
- // Graphql query string
868
- _query?: string;
869
- }
870
-
871
- export type GetPartnerStandardcognitionStoresResponse = CognitionStore[];
872
-
873
- export interface GetPartnerStandardcognitionStoresRequest
874
- extends BaseRequest,
875
- RequestQuery<GetPartnerStandardcognitionStoresQuery> {}
876
-
877
- // POST /partner/standardcognition/menu - Create new Standard Cognition menu from JSON files
878
-
879
- export interface PostPartnerStandardcognitionMenuBody {
880
- // CDL company ID
881
- company: string;
882
- // CDL sector ID
883
- sector: string;
884
- // CDL location brand ID
885
- location_brand: string;
886
- // Link for S3 menu file provided by Standard Cognition
887
- s3_link: string;
888
- }
889
-
890
- export type PostPartnerStandardcognitionMenuResponse = Menu;
891
-
892
- export interface PostPartnerStandardcognitionMenuRequest extends BaseRequest {
893
- body: PostPartnerStandardcognitionMenuBody;
894
- }
895
-
896
829
  // POST /partner/event/{id} - Send an event from 3rd party to our system
897
830
 
898
831
  export interface PostPartnerEventPath {
@@ -720,23 +720,6 @@ export interface PostUserCheckInRequest extends BaseRequest, PostUserCheckInPath
720
720
  body: PostUserCheckInBody;
721
721
  }
722
722
 
723
- // PATCH /user/{id}/checkin/{checkin_id} - Update check-in
724
-
725
- export interface PatchUserCheckinPath {
726
- // UserId of user who wants to checkin
727
- id: string;
728
- // Checkin id
729
- checkin_id: string;
730
- }
731
-
732
- export type PatchUserCheckinBody = PatchCheckin;
733
-
734
- export type PatchUserCheckinResponse = Checkin;
735
-
736
- export interface PatchUserCheckinRequest extends BaseRequest, PatchUserCheckinPath {
737
- body: PatchUserCheckinBody;
738
- }
739
-
740
723
  // GET /user/checkin/search - Search check-in
741
724
 
742
725
  export interface GetUserSearchCheckInQuery {