@compassdigital/sdk.typescript 4.423.0 → 4.425.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.423.0",
3
+ "version": "4.425.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
@@ -814,8 +814,19 @@ export interface GetCustomerOrdersResponseDTO {
814
814
  orders: CustomerOrder[];
815
815
  }
816
816
 
817
+ export interface ConsumerPaymentToken {
818
+ // Google Pay token object from Google Pay SDK
819
+ googlePayToken?: Record<string, any>;
820
+ // Apple Pay JWT token string
821
+ applePayToken?: string;
822
+ // FreedomPay credit card token from HPC session
823
+ freedomPayToken?: string;
824
+ // BrainTree payment method nonce
825
+ braintreeToken?: string;
826
+ }
827
+
817
828
  export interface CreateOrderPayment {
818
- token?: string | Record<string, any>;
829
+ token?: ConsumerPaymentToken;
819
830
  credit_card?: OrderCreditCard;
820
831
  badge_pay?: OrderCashlessPayment;
821
832
  stipend?: OrderCashlessPayment;
@@ -66,6 +66,8 @@ export interface Menu {
66
66
  export interface Nutrition {
67
67
  amount?: number;
68
68
  unit?: string;
69
+ // FDA-compliant formatted display string (e.g., '15 kcal', '<1 g', 'less than 5 mg')
70
+ display?: string;
69
71
  }
70
72
 
71
73
  export interface Item {
@@ -106,6 +108,7 @@ export interface Item {
106
108
  total_carbohydrate?: Nutrition;
107
109
  dietary_fiber?: Nutrition;
108
110
  sugars?: Nutrition;
111
+ total_sugars?: Nutrition;
109
112
  protein?: Nutrition;
110
113
  well_being?: Nutrition;
111
114
  [index: string]: any;