@compassdigital/sdk.typescript 3.24.0 → 3.25.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.
@@ -38,6 +38,11 @@ export interface User {
38
38
  send_emails_date_updated?: string;
39
39
  };
40
40
  mealplan_added_date?: string;
41
+ // forgot password verification details
42
+ password_verification?: {
43
+ attempts?: number;
44
+ last_accessed?: string;
45
+ };
41
46
  // phone verification details
42
47
  phone_verification?: {
43
48
  verification_code?: string;
@@ -59,6 +64,16 @@ export interface User {
59
64
  location_group?: string;
60
65
  }
61
66
 
67
+ export interface GuestUserCreate {
68
+ email?: string;
69
+ name?: {
70
+ first?: string;
71
+ last?: string;
72
+ };
73
+ // realm
74
+ realm?: string;
75
+ }
76
+
62
77
  export interface Changepassword {
63
78
  password?: string;
64
79
  new_password?: string;
@@ -101,6 +116,10 @@ export interface auth {
101
116
  profile?: User;
102
117
  }
103
118
 
119
+ export interface guestAuth {
120
+ token?: string;
121
+ }
122
+
104
123
  export type Permission = string;
105
124
 
106
125
  export interface KDSToken {
@@ -660,3 +679,13 @@ export type PutUserVerificationPhoneResponse = success;
660
679
  export interface PutUserVerificationPhoneRequest extends BaseRequest, PutUserVerificationPhonePath {
661
680
  body: PutUserVerificationPhoneBody;
662
681
  }
682
+
683
+ // POST /user/guest - Creates a guest user
684
+
685
+ export type PostUserCreatGuestUserBody = GuestUserCreate;
686
+
687
+ export type PostUserCreatGuestUserResponse = guestAuth;
688
+
689
+ export interface PostUserCreatGuestUserRequest extends BaseRequest {
690
+ body: PostUserCreatGuestUserBody;
691
+ }