@compassdigital/sdk.typescript 3.23.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.
@@ -30,10 +30,6 @@ export interface Item {
30
30
  _promo?: {
31
31
  amount?: number;
32
32
  };
33
- // loyalty coupon applied to this item
34
- _loyalty?: {
35
- amount?: number;
36
- };
37
33
  meta?: {
38
34
  // menu id
39
35
  menu?: string;
@@ -65,6 +61,7 @@ export interface Item {
65
61
  // user specified instructions for the item
66
62
  special_instructions?: string;
67
63
  amount_off_exclusions?: string[];
64
+ added_on?: string;
68
65
  [index: string]: any;
69
66
  }
70
67
 
@@ -131,10 +128,6 @@ export interface OrderId {
131
128
  id?: string;
132
129
  }
133
130
 
134
- export interface CouponCode {
135
- code?: string;
136
- }
137
-
138
131
  export interface ShoppingCart {
139
132
  // shoppingcart
140
133
  id?: string;
@@ -156,16 +149,6 @@ export interface ShoppingCart {
156
149
  amount?: number;
157
150
  app?: string;
158
151
  };
159
- loyalty?: {
160
- coupon?: {
161
- code?: string;
162
- amount_off?: number;
163
- amount?: number;
164
- name?: string;
165
- };
166
- // Points to be earned for this shopping cart total
167
- order_loyalty_points?: boolean;
168
- };
169
152
  discount?: {
170
153
  code?: string;
171
154
  amount_off?: number;
@@ -227,6 +210,8 @@ export interface ShoppingCart {
227
210
  mx_cart?: boolean;
228
211
  // If a user's email domain is a match in a sites list of tax exempt domains
229
212
  domain_tax_exempt?: boolean;
213
+ // Indicates to clients that a tax recalculation is required
214
+ tax_calculation_required?: boolean;
230
215
  };
231
216
  meta?: {
232
217
  // Raw request from any vendor integrated with CDL
@@ -363,40 +348,6 @@ export interface PutShoppingcartCartOrderRequest extends BaseRequest, PutShoppin
363
348
  body: PutShoppingcartCartOrderBody;
364
349
  }
365
350
 
366
- // PUT /shoppingcart/{id}/loyalty/{user_id} - Apply a loyalty coupon in a ShoppingCart
367
-
368
- export interface PutShoppingcartCartLoyaltyPath {
369
- // Shopping cart ID
370
- id: string;
371
- // User ID
372
- user_id: string;
373
- }
374
-
375
- export type PutShoppingcartCartLoyaltyBody = CouponCode;
376
-
377
- export type PutShoppingcartCartLoyaltyResponse = ShoppingCart;
378
-
379
- export interface PutShoppingcartCartLoyaltyRequest
380
- extends BaseRequest,
381
- PutShoppingcartCartLoyaltyPath {
382
- body: PutShoppingcartCartLoyaltyBody;
383
- }
384
-
385
- // DELETE /shoppingcart/{id}/loyalty/{user_id} - Delete loyalty coupon in shoppingCart
386
-
387
- export interface DeleteShoppingcartCartLoyaltyPath {
388
- // Shopping cart ID
389
- id: string;
390
- // User ID
391
- user_id: string;
392
- }
393
-
394
- export type DeleteShoppingcartCartLoyaltyResponse = ShoppingCart;
395
-
396
- export interface DeleteShoppingcartCartLoyaltyRequest
397
- extends BaseRequest,
398
- DeleteShoppingcartCartLoyaltyPath {}
399
-
400
351
  // POST /shoppingcart/{id}/clone - Create a shopping cart from existing shopping cart
401
352
 
402
353
  export interface PostShoppingcartCloneCartPath {
@@ -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;
@@ -73,6 +88,10 @@ export interface Resetpassword {
73
88
  password?: string;
74
89
  }
75
90
 
91
+ export interface ResetpasswordSuccess {
92
+ code?: number;
93
+ }
94
+
76
95
  export interface VerifyEmail {
77
96
  // Token to verify user email
78
97
  verification_token: string;
@@ -97,6 +116,10 @@ export interface auth {
97
116
  profile?: User;
98
117
  }
99
118
 
119
+ export interface guestAuth {
120
+ token?: string;
121
+ }
122
+
100
123
  export type Permission = string;
101
124
 
102
125
  export interface KDSToken {
@@ -441,7 +464,7 @@ export interface PostUserResetPasswordQuery {
441
464
 
442
465
  export type PostUserResetPasswordBody = Forgotpassword;
443
466
 
444
- export type PostUserResetPasswordResponse = success;
467
+ export type PostUserResetPasswordResponse = ResetpasswordSuccess;
445
468
 
446
469
  export interface PostUserResetPasswordRequest
447
470
  extends BaseRequest,
@@ -656,3 +679,13 @@ export type PutUserVerificationPhoneResponse = success;
656
679
  export interface PutUserVerificationPhoneRequest extends BaseRequest, PutUserVerificationPhonePath {
657
680
  body: PutUserVerificationPhoneBody;
658
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
+ }