@compassdigital/sdk.typescript 4.389.0 → 4.392.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.
@@ -345,6 +345,11 @@ export interface PatchCatalogItemsBulkPath {
345
345
  id: number;
346
346
  }
347
347
 
348
+ export interface PatchCatalogItemsBulkQuery {
349
+ // Update mode behavior. `raw` uses defaultsDeep logic, `simple` bypasses it.
350
+ update_mode?: 'default' | 'merge';
351
+ }
352
+
348
353
  export type PatchCatalogItemsBulkBody = {
349
354
  id?: number;
350
355
  catalog_id?: number;
@@ -367,7 +372,10 @@ export type PatchCatalogItemsBulkBody = {
367
372
 
368
373
  export type PatchCatalogItemsBulkResponse = CatalogItemResponseDTO[];
369
374
 
370
- export interface PatchCatalogItemsBulkRequest extends BaseRequest, PatchCatalogItemsBulkPath {
375
+ export interface PatchCatalogItemsBulkRequest
376
+ extends BaseRequest,
377
+ RequestQuery<PatchCatalogItemsBulkQuery>,
378
+ PatchCatalogItemsBulkPath {
371
379
  body: PatchCatalogItemsBulkBody;
372
380
  }
373
381
 
@@ -2598,11 +2598,64 @@ export interface ConsumerTender {
2598
2598
  currency?: string;
2599
2599
  }
2600
2600
 
2601
+ export interface ConsumerMealplanAuthWebview {
2602
+ // mealplan auth webview url
2603
+ url?: string;
2604
+ // mealplan auth webview method
2605
+ method?: string;
2606
+ // mealplan auth webview encoding
2607
+ encoding?: string;
2608
+ // mealplan auth webview body
2609
+ body?: Record<string, any>;
2610
+ }
2611
+
2612
+ export interface ConsumerMealplanAuthDirectName {
2613
+ // mealplan auth direct name
2614
+ en?: string;
2615
+ }
2616
+
2617
+ export interface ConsumerMealplanAuthDirectDescription {
2618
+ // mealplan auth direct description
2619
+ en?: string;
2620
+ }
2621
+
2622
+ export interface ConsumerMealplanAuthDirectUsernameField {
2623
+ // mealplan auth direct username field
2624
+ en?: string;
2625
+ }
2626
+
2627
+ export interface ConsumerMealplanAuthDirectPasswordField {
2628
+ // mealplan auth direct password field
2629
+ en?: string;
2630
+ }
2631
+
2632
+ export interface ConsumerMealplanAuthDirect {
2633
+ // mealplan auth direct name
2634
+ name?: ConsumerMealplanAuthDirectName;
2635
+ // mealplan auth direct description
2636
+ description?: ConsumerMealplanAuthDirectDescription;
2637
+ // mealplan auth direct username field
2638
+ username_field?: ConsumerMealplanAuthDirectUsernameField;
2639
+ // mealplan auth direct password field
2640
+ password_field?: ConsumerMealplanAuthDirectPasswordField;
2641
+ // mealplan auth direct username value
2642
+ username_value?: string;
2643
+ // mealplan auth direct email value
2644
+ email_value?: string;
2645
+ }
2646
+
2647
+ export interface ConsumerMealplanAuth {
2648
+ // mealplan auth webview configuration
2649
+ webview?: ConsumerMealplanAuthWebview;
2650
+ // mealplan auth direct configuration
2651
+ direct?: ConsumerMealplanAuthDirect;
2652
+ }
2653
+
2601
2654
  export interface ConsumerGetMealplanResponse {
2602
2655
  // list of mealplan tenders
2603
2656
  tenders?: ConsumerTender[];
2604
2657
  // mealplan auth configuration
2605
- auth?: Record<string, any>;
2658
+ auth?: ConsumerMealplanAuth;
2606
2659
  }
2607
2660
 
2608
2661
  export interface ConsumerPostMealplanBody {
@@ -3793,6 +3846,15 @@ export type PutConsumerShoppingcartPromoBody = PutConsumerShoppingCartPromoReque
3793
3846
 
3794
3847
  export type PutConsumerShoppingcartPromoResponse = PutConsumerShoppingCartResponse;
3795
3848
 
3849
+ // DELETE /consumer/shoppingcart/{id}/promo - Delete a promo code from a shopping cart
3850
+
3851
+ export interface DeleteConsumerShoppingcartPromoPath {
3852
+ // Shopping Cart ID as Encoded CDL ID; TODO: mark parameter as required in swagger
3853
+ id: string;
3854
+ }
3855
+
3856
+ export type DeleteConsumerShoppingcartPromoResponse = DeleteConsumerShoppingCartResponse;
3857
+
3796
3858
  // PUT /consumer/shoppingcart/{id}/checkout - Call taxjar for full tax breakdown
3797
3859
 
3798
3860
  export interface PutConsumerShoppingcartCheckoutPath {
@@ -977,7 +977,9 @@ export interface DeleteShoppingcartLockPath {
977
977
  id: string;
978
978
  }
979
979
 
980
- export type DeleteShoppingcartLockResponse = {};
980
+ export interface DeleteShoppingcartLockResponse {
981
+ success: boolean;
982
+ }
981
983
 
982
984
  export interface DeleteShoppingcartLockRequest extends BaseRequest, DeleteShoppingcartLockPath {}
983
985