@compassdigital/sdk.typescript 4.34.0 → 4.36.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.
@@ -143,7 +143,7 @@ export interface GetSearchOrderQuery {
143
143
  // Filter orders by customer email
144
144
  email?: string;
145
145
  // Filter orders by order type
146
- order_type?: "frictionless" | "delivery" | "pickup" | "scan_and_go";
146
+ order_type?: ("frictionless" | "delivery" | "pickup" | "scan_and_go")[];
147
147
  // Filter orders by order status/progress
148
148
  status?: "ready" | "accepted" | "delivered" | "in_progress" | "out_for_delivery" | "created";
149
149
  // Graphql query string
@@ -816,3 +816,32 @@ export interface PostUserEmbedurlResponse {
816
816
  export interface PostUserEmbedurlRequest extends BaseRequest {
817
817
  body: PostUserEmbedurlBody;
818
818
  }
819
+
820
+ // GET /user/profile - Returns user profile with limited information
821
+
822
+ export interface GetUserProfileQuery {
823
+ // user's email address
824
+ email: string;
825
+ // app realm
826
+ realm: string;
827
+ // Graphql query string
828
+ _query?: string;
829
+ }
830
+
831
+ export interface GetUserProfileResponse {
832
+ // user
833
+ id?: string;
834
+ name?: {
835
+ first?: string;
836
+ last?: string;
837
+ };
838
+ email?: string;
839
+ // User phone number
840
+ phone?: number;
841
+ date?: {
842
+ created?: string;
843
+ modified?: string;
844
+ };
845
+ }
846
+
847
+ export interface GetUserProfileRequest extends BaseRequest, RequestQuery<GetUserProfileQuery> {}