@commercengine/storefront-sdk 0.13.1 → 0.13.3
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/dist/index.d.mts +154 -64
- package/dist/index.iife.js +39 -9
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +39 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4079,7 +4079,8 @@ interface components {
|
|
|
4079
4079
|
backorder?: boolean;
|
|
4080
4080
|
on_subscription: boolean;
|
|
4081
4081
|
on_promotion: boolean;
|
|
4082
|
-
category_ids: string[];
|
|
4082
|
+
category_ids: string[]; /** @description Expanded category objects. */
|
|
4083
|
+
categories?: components["schemas"]["Category"][];
|
|
4083
4084
|
tags: string[] | null;
|
|
4084
4085
|
reviews_count: number;
|
|
4085
4086
|
reviews_rating_sum: number | null;
|
|
@@ -4475,12 +4476,20 @@ interface components {
|
|
|
4475
4476
|
* @description Loyalty Point Activity
|
|
4476
4477
|
*/
|
|
4477
4478
|
LoyaltyPointActivity: {
|
|
4478
|
-
/**
|
|
4479
|
-
|
|
4480
|
-
|
|
4479
|
+
/**
|
|
4480
|
+
* @description The action that occurred.
|
|
4481
|
+
* @enum {string}
|
|
4482
|
+
*/
|
|
4483
|
+
action?: "add" | "remove";
|
|
4484
|
+
/**
|
|
4485
|
+
* @description The activity that occurred.
|
|
4486
|
+
* @enum {string}
|
|
4487
|
+
*/
|
|
4488
|
+
activity?: "order-placed" | "credit-note-issued" | "tier-upgrade" | "tier-downgrade" | "points-expired" | "points-carryforward" | "signup" | "bonus" | "other";
|
|
4489
|
+
reference_number?: string | null;
|
|
4481
4490
|
title?: string;
|
|
4482
|
-
|
|
4483
|
-
remarks?: string; /** Format: date-time */
|
|
4491
|
+
loyalty_points?: number;
|
|
4492
|
+
remarks?: string | null; /** Format: date-time */
|
|
4484
4493
|
created_at?: string; /** Format: date-time */
|
|
4485
4494
|
modified_at?: string;
|
|
4486
4495
|
}; /** ManualPaymentMethod */
|
|
@@ -5388,17 +5397,55 @@ interface components {
|
|
|
5388
5397
|
* @description Maximum number of records returned for a page.
|
|
5389
5398
|
* @default 25
|
|
5390
5399
|
*/
|
|
5391
|
-
limit: number;
|
|
5400
|
+
limit: number; /** @description provide list of attributes for specific facets or * for all facets. All attributes supported in the filter parameter are also supported here. */
|
|
5401
|
+
facets?: string[];
|
|
5392
5402
|
/**
|
|
5393
|
-
* @description
|
|
5394
|
-
*
|
|
5395
|
-
*
|
|
5396
|
-
*
|
|
5397
|
-
*
|
|
5398
|
-
*
|
|
5399
|
-
*
|
|
5403
|
+
* @description Filter expression(s) to narrow results. Omit for no filtering.
|
|
5404
|
+
*
|
|
5405
|
+
* **Syntax:** `attribute OPERATOR value`
|
|
5406
|
+
*
|
|
5407
|
+
* **Operators:**
|
|
5408
|
+
*
|
|
5409
|
+
* | Operator | Description | Example |
|
|
5410
|
+
* |---|---|---|
|
|
5411
|
+
* | `=` | Equal to | `product_type = physical` |
|
|
5412
|
+
* | `!=` | Not equal to | `product_type != bundle` |
|
|
5413
|
+
* | `>`, `>=`, `<`, `<=` | Comparison | `rating > 4` |
|
|
5414
|
+
* | `TO` | Inclusive range (`>=` AND `<=`) | `pricing.selling_price 100 TO 500` |
|
|
5415
|
+
* | `IN [...]` | Matches any value in the list | `product_type IN [physical,bundle]` |
|
|
5416
|
+
* | `NOT IN [...]` | Excludes all values in the list | `product_type NOT IN [physical,bundle]` |
|
|
5417
|
+
* | `EXISTS` | Attribute is present (even if `null` or empty) | `tags EXISTS` |
|
|
5418
|
+
* | `NOT EXISTS` | Attribute is absent | `tags NOT EXISTS` |
|
|
5419
|
+
* | `IS NULL` | Value is `null` | `variant_id IS NULL` |
|
|
5420
|
+
* | `IS NOT NULL` | Value is not `null` | `variant_id IS NOT NULL` |
|
|
5421
|
+
* | `IS EMPTY` | Value is `""`, `[]`, or `{}` | `tags IS EMPTY` |
|
|
5422
|
+
* | `IS NOT EMPTY` | Value is not empty | `tags IS NOT EMPTY` |
|
|
5423
|
+
* | `AND` | Both conditions must match | `rating > 4 AND product_type = physical` |
|
|
5424
|
+
* | `OR` | Either condition must match | `product_type = physical OR product_type = bundle` |
|
|
5425
|
+
* | `NOT` | Negates a condition | `NOT product_type = bundle` |
|
|
5426
|
+
*
|
|
5427
|
+
* **Important rules:**
|
|
5428
|
+
* - Operators are **case-sensitive** — must be uppercase (`AND`, not `and`).
|
|
5429
|
+
* - String value comparison is **case-insensitive** — `product_type = Physical` matches `physical`.
|
|
5430
|
+
* - Operator precedence: `NOT` > `AND` > `OR`. Use parentheses to override.
|
|
5431
|
+
* - String values containing whitespace must be wrapped in single quotes.
|
|
5432
|
+
* - `IN` takes comma-separated values in square brackets.
|
|
5433
|
+
* - Maximum array nesting depth is **2 levels**.
|
|
5434
|
+
*
|
|
5435
|
+
* **Supported attributes:** `product_type`, `categories.name`, `attributes.key`, `pricing.listing_price`, `pricing.selling_price`, `pricing.tax_rate`, `product_id`, `variant_id`, `product_name`, `variant_name`, `tags`, `sku`, `stock_available`, `rating`
|
|
5436
|
+
*
|
|
5437
|
+
* **Combining conditions:**
|
|
5438
|
+
* - **String:** Use `AND`/`OR` operators inline — `"rating > 4 AND product_type = physical"`
|
|
5439
|
+
* - **Array of strings:** Conditions are combined with AND — `["rating > 4", "product_type = physical"]`
|
|
5440
|
+
* - **Nested arrays:** Inner arrays express OR, outer array expresses AND — `["product_type = physical", ["product_type = bundle", "rating > 4"]]`
|
|
5400
5441
|
*/
|
|
5401
|
-
|
|
5442
|
+
filter?: string | (string | string[])[];
|
|
5443
|
+
/**
|
|
5444
|
+
* @description Sort results by attributes. Use `asc` for ascending order and `desc` for descending order.
|
|
5445
|
+
* @example product_type:desc
|
|
5446
|
+
* @example product_name:asc
|
|
5447
|
+
*/
|
|
5448
|
+
sort?: string[];
|
|
5402
5449
|
}; /** SellerDetail */
|
|
5403
5450
|
SellerDetail: components["schemas"]["SellerInfo"] & {
|
|
5404
5451
|
description?: string;
|
|
@@ -8993,7 +9040,6 @@ interface operations {
|
|
|
8993
9040
|
success?: boolean;
|
|
8994
9041
|
content?: {
|
|
8995
9042
|
loyalty?: components["schemas"]["CustomerLoyalty"];
|
|
8996
|
-
loyalty_point_balance?: number;
|
|
8997
9043
|
};
|
|
8998
9044
|
};
|
|
8999
9045
|
};
|
|
@@ -12348,7 +12394,7 @@ declare enum Environment {
|
|
|
12348
12394
|
type AcceleratedRewardCouponPromotion = Readable<components['schemas']['AcceleratedRewardCouponPromotion']>;
|
|
12349
12395
|
type AcceleratedRewardRule = Readable<components['schemas']['AcceleratedRewardRule']>;
|
|
12350
12396
|
type AdditionalProductDetails = Readable<components['schemas']['AdditionalProductDetails']>;
|
|
12351
|
-
type
|
|
12397
|
+
type AnalyticsEventInput = Writable<components['schemas']['AnalyticsEvent']>;
|
|
12352
12398
|
type AnalyticsProvider = Readable<components['schemas']['AnalyticsProvider']>;
|
|
12353
12399
|
type AnonymousUser = Readable<components['schemas']['AnonymousUser']>;
|
|
12354
12400
|
type ApplicableCoupon = Readable<components['schemas']['ApplicableCoupon']>;
|
|
@@ -12362,6 +12408,7 @@ type BankTransfer = Readable<components['schemas']['BankTransfer']>;
|
|
|
12362
12408
|
type BooleanAttribute = Readable<components['schemas']['BooleanAttribute']>;
|
|
12363
12409
|
type Brand = Readable<components['schemas']['Brand']>;
|
|
12364
12410
|
type Business = Readable<components['schemas']['Business']>;
|
|
12411
|
+
type BusinessInput = Writable<components['schemas']['Business']>;
|
|
12365
12412
|
type BuyXGetYCouponPromotion = Readable<components['schemas']['BuyXGetYCouponPromotion']>;
|
|
12366
12413
|
type BuyXGetYRule = Readable<components['schemas']['BuyXGetYRule']>;
|
|
12367
12414
|
type BuyXGetYRuleBasedOnAmount = Readable<components['schemas']['BuyXGetYRuleBasedOnAmount']>;
|
|
@@ -12369,14 +12416,15 @@ type BuyXGetYRuleBasedOnQuantity = Readable<components['schemas']['BuyXGetYRuleB
|
|
|
12369
12416
|
type CardPayment = Readable<components['schemas']['CardPayment']>;
|
|
12370
12417
|
type CardbinInfo = Readable<components['schemas']['CardbinInfo']>;
|
|
12371
12418
|
type Cart = Readable<components['schemas']['Cart']>;
|
|
12372
|
-
type
|
|
12373
|
-
type
|
|
12419
|
+
type CartBasedFulfillmentCheckInput = Writable<components['schemas']['CartBasedFulfillmentCheck']>;
|
|
12420
|
+
type CartBasedFulfillmentOptionInput = Writable<components['schemas']['CartBasedFulfillmentOption']>;
|
|
12374
12421
|
type CartItem = Readable<components['schemas']['CartItem']>;
|
|
12375
12422
|
type CartShipment = Readable<components['schemas']['CartShipment']>;
|
|
12376
12423
|
type Category = Readable<components['schemas']['Category']>;
|
|
12377
12424
|
type CollectInStore = Readable<components['schemas']['CollectInStore']>;
|
|
12378
12425
|
type CollectInStoreAddress = Readable<components['schemas']['CollectInStoreAddress']>;
|
|
12379
12426
|
type CollectInStoreFulfillment = Readable<components['schemas']['CollectInStoreFulfillment']>;
|
|
12427
|
+
type CollectInStoreFulfillmentInput = Writable<components['schemas']['CollectInStoreFulfillment']>;
|
|
12380
12428
|
type ColorAttribute = Readable<components['schemas']['ColorAttribute']>;
|
|
12381
12429
|
type ColorOption = Readable<components['schemas']['ColorOption']>;
|
|
12382
12430
|
type Country = Readable<components['schemas']['Country']>;
|
|
@@ -12384,26 +12432,30 @@ type CountryState = Readable<components['schemas']['CountryState']>;
|
|
|
12384
12432
|
type Coupon = Readable<components['schemas']['Coupon']>;
|
|
12385
12433
|
type CouponPromotionCommonDetail = Readable<components['schemas']['CouponPromotionCommonDetail']>;
|
|
12386
12434
|
type CouponType = Readable<components['schemas']['CouponType']>;
|
|
12387
|
-
type
|
|
12388
|
-
type
|
|
12389
|
-
type
|
|
12390
|
-
type
|
|
12391
|
-
type
|
|
12435
|
+
type CreateCustomSubscriptionInput = Writable<components['schemas']['CreateCustomSubscription']>;
|
|
12436
|
+
type CreateOrderReturnInput = Writable<components['schemas']['CreateOrderReturn']>;
|
|
12437
|
+
type CreateReviewInput = Writable<components['schemas']['CreateReview']>;
|
|
12438
|
+
type CreateStandardSubscriptionInput = Writable<components['schemas']['CreateStandardSubscription']>;
|
|
12439
|
+
type CreateSubscriptionInput = Writable<components['schemas']['CreateSubscription']>;
|
|
12392
12440
|
type Currency = Readable<components['schemas']['Currency']>;
|
|
12393
12441
|
type CustomSlabsBasedOnAmount = Readable<components['schemas']['CustomSlabsBasedOnAmount']>;
|
|
12394
12442
|
type CustomSlabsBasedOnQuantity = Readable<components['schemas']['CustomSlabsBasedOnQuantity']>;
|
|
12395
12443
|
type CustomerAddress = Readable<components['schemas']['CustomerAddress']>;
|
|
12444
|
+
type CustomerAddressInput = Writable<components['schemas']['CustomerAddress']>;
|
|
12396
12445
|
type CustomerGroup = Readable<components['schemas']['CustomerGroup']>;
|
|
12446
|
+
type CustomerGroupInput = Writable<components['schemas']['CustomerGroup']>;
|
|
12397
12447
|
type CustomerLoyalty = Readable<components['schemas']['CustomerLoyalty']>;
|
|
12398
12448
|
type CustomerReadyForReview = Readable<components['schemas']['CustomerReadyForReview']>;
|
|
12399
12449
|
type CustomerReview = Readable<components['schemas']['CustomerReview']>;
|
|
12400
12450
|
type DateAttribute = Readable<components['schemas']['DateAttribute']>;
|
|
12401
12451
|
type DeliveryFulfillment = Readable<components['schemas']['DeliveryFulfillment']>;
|
|
12452
|
+
type DeliveryFulfillmentInput = Writable<components['schemas']['DeliveryFulfillment']>;
|
|
12402
12453
|
type DeliveryOption = Readable<components['schemas']['DeliveryOption']>;
|
|
12403
12454
|
type DiscountBasedPromotion = Readable<components['schemas']['DiscountBasedPromotion']>;
|
|
12404
12455
|
type DiscountCouponPromotion = Readable<components['schemas']['DiscountCouponPromotion']>;
|
|
12405
12456
|
type DiscountRule = Readable<components['schemas']['DiscountRule']>;
|
|
12406
12457
|
type Document = Readable<components['schemas']['Document']>;
|
|
12458
|
+
type DocumentInput = Writable<components['schemas']['Document']>;
|
|
12407
12459
|
type FixedAmountDiscountRule = Readable<components['schemas']['FixedAmountDiscountRule']>;
|
|
12408
12460
|
type FixedPriceCouponPromotion = Readable<components['schemas']['FixedPriceCouponPromotion']>;
|
|
12409
12461
|
type FixedPricePromotion = Readable<components['schemas']['FixedPricePromotion']>;
|
|
@@ -12415,33 +12467,35 @@ type FreeGoodsPromotion = Readable<components['schemas']['FreeGoodsPromotion']>;
|
|
|
12415
12467
|
type FreeGoodsRule = Readable<components['schemas']['FreeGoodsRule']>;
|
|
12416
12468
|
type FreeShipingCouponPromotion = Readable<components['schemas']['FreeShipingCouponPromotion']>;
|
|
12417
12469
|
type FulfillmentItem = Readable<components['schemas']['FulfillmentItem']>;
|
|
12470
|
+
type FulfillmentItemInput = Writable<components['schemas']['FulfillmentItem']>;
|
|
12418
12471
|
type FulfillmentPreference = Readable<components['schemas']['FulfillmentPreference']>;
|
|
12419
|
-
type
|
|
12420
|
-
type
|
|
12472
|
+
type FulfillmentPreferenceInput = Writable<components['schemas']['FulfillmentPreference']>;
|
|
12473
|
+
type GenerateOtpWithEmailInput = Writable<components['schemas']['GenerateOtpWithEmail']>;
|
|
12474
|
+
type GenerateOtpWithPhoneInput = Writable<components['schemas']['GenerateOtpWithPhone']>;
|
|
12421
12475
|
type GstinDetail = Readable<components['schemas']['GstinDetail']>;
|
|
12422
12476
|
type InapplicableCoupon = Readable<components['schemas']['InapplicableCoupon']>;
|
|
12423
12477
|
type InapplicablePromotion = Readable<components['schemas']['InapplicablePromotion']>;
|
|
12424
12478
|
type Item = Readable<components['schemas']['Item']>;
|
|
12425
|
-
type
|
|
12426
|
-
type
|
|
12427
|
-
type
|
|
12479
|
+
type ItemsBasedFulfillmentCheckInput = Writable<components['schemas']['ItemsBasedFulfillmentCheck']>;
|
|
12480
|
+
type JusPayExpressCheckoutInput = Writable<components['schemas']['JusPayExpressCheckout']>;
|
|
12481
|
+
type JusPayExpressCheckoutCommonFieldInput = Writable<components['schemas']['JusPayExpressCheckoutCommonField']>;
|
|
12428
12482
|
type JusPayExpressCheckoutResponse = Readable<components['schemas']['JusPayExpressCheckoutResponse']>;
|
|
12429
|
-
type
|
|
12483
|
+
type JusPayHyperCheckoutInput = Writable<components['schemas']['JusPayHyperCheckout']>;
|
|
12430
12484
|
type JusPayHyperCheckoutResponse = Readable<components['schemas']['JusPayHyperCheckoutResponse']>;
|
|
12431
|
-
type
|
|
12432
|
-
type
|
|
12485
|
+
type JusPayNewCardInput = Writable<components['schemas']['JusPayNewCard']>;
|
|
12486
|
+
type JusPaySavedCardTokenInput = Writable<components['schemas']['JusPaySavedCardToken']>;
|
|
12433
12487
|
type JuspayCardDetail = Readable<components['schemas']['JuspayCardDetail']>;
|
|
12434
12488
|
type JuspayCardPaymentMethod = Readable<components['schemas']['JuspayCardPaymentMethod']>;
|
|
12435
|
-
type
|
|
12436
|
-
type
|
|
12489
|
+
type JuspayCreateCustomerPayloadInput = Writable<components['schemas']['JuspayCreateCustomerPayload']>;
|
|
12490
|
+
type JuspayCreateOrderPayloadInput = Writable<components['schemas']['JuspayCreateOrderPayload']>;
|
|
12437
12491
|
type JuspayCustomer = Readable<components['schemas']['JuspayCustomer']>;
|
|
12438
|
-
type
|
|
12492
|
+
type JuspayNetBankingInput = Writable<components['schemas']['JuspayNetBanking']>;
|
|
12439
12493
|
type JuspayNetbankingPaymentMethod = Readable<components['schemas']['JuspayNetbankingPaymentMethod']>;
|
|
12440
12494
|
type JuspayOrder = Readable<components['schemas']['JuspayOrder']>;
|
|
12441
12495
|
type JuspayPaymentMethod = Readable<components['schemas']['JuspayPaymentMethod']>;
|
|
12442
12496
|
type JuspayPaymentMethodDetail = Readable<components['schemas']['JuspayPaymentMethodDetail']>;
|
|
12443
|
-
type
|
|
12444
|
-
type
|
|
12497
|
+
type JuspayUpiCollectInput = Writable<components['schemas']['JuspayUpiCollect']>;
|
|
12498
|
+
type JuspayUpiIntentInput = Writable<components['schemas']['JuspayUpiIntent']>;
|
|
12445
12499
|
type JuspayUpiPaymentMethod = Readable<components['schemas']['JuspayUpiPaymentMethod']>;
|
|
12446
12500
|
type JuspayWalletPaymentMethod = Readable<components['schemas']['JuspayWalletPaymentMethod']>;
|
|
12447
12501
|
type KycDocument = Readable<components['schemas']['KycDocument']>;
|
|
@@ -12456,7 +12510,9 @@ type MeasurementUnit = Readable<components['schemas']['MeasurementUnit']>;
|
|
|
12456
12510
|
type MultiSelectAttribute = Readable<components['schemas']['MultiSelectAttribute']>;
|
|
12457
12511
|
type NetbankingPayment = Readable<components['schemas']['NetbankingPayment']>;
|
|
12458
12512
|
type NotificationChannelPreferences = Readable<components['schemas']['NotificationChannelPreferences']>;
|
|
12513
|
+
type NotificationChannelPreferencesInput = Writable<components['schemas']['NotificationChannelPreferences']>;
|
|
12459
12514
|
type NotificationPreferences = Readable<components['schemas']['NotificationPreferences']>;
|
|
12515
|
+
type NotificationPreferencesInput = Writable<components['schemas']['NotificationPreferences']>;
|
|
12460
12516
|
type NumberAttribute = Readable<components['schemas']['NumberAttribute']>;
|
|
12461
12517
|
type Order = Readable<components['schemas']['Order']>;
|
|
12462
12518
|
type OrderDetail = Readable<components['schemas']['OrderDetail']>;
|
|
@@ -12466,16 +12522,18 @@ type OrderPayment = Readable<components['schemas']['OrderPayment']>;
|
|
|
12466
12522
|
type OrderRefund = Readable<components['schemas']['OrderRefund']>;
|
|
12467
12523
|
type OrderReturn = Readable<components['schemas']['OrderReturn']>;
|
|
12468
12524
|
type OrderReturnItem = Readable<components['schemas']['OrderReturnItem']>;
|
|
12525
|
+
type OrderReturnItemInput = Writable<components['schemas']['OrderReturnItem']>;
|
|
12469
12526
|
type OrderShipment = Readable<components['schemas']['OrderShipment']>;
|
|
12470
12527
|
type Pagination = Readable<components['schemas']['Pagination']>;
|
|
12471
12528
|
type PanDetail = Readable<components['schemas']['PanDetail']>;
|
|
12472
12529
|
type PartialCollectAndDelivery = Readable<components['schemas']['PartialCollectAndDelivery']>;
|
|
12473
|
-
type
|
|
12474
|
-
type
|
|
12475
|
-
type
|
|
12476
|
-
type
|
|
12530
|
+
type PartialCollectAndDeliveryInput = Writable<components['schemas']['PartialCollectAndDelivery']>;
|
|
12531
|
+
type PauseSubscriptionInput = Writable<components['schemas']['PauseSubscription']>;
|
|
12532
|
+
type PayWithCardInput = Writable<components['schemas']['PayWithCard']>;
|
|
12533
|
+
type PayWithCashInput = Writable<components['schemas']['PayWithCash']>;
|
|
12534
|
+
type PayWithUpiInput = Writable<components['schemas']['PayWithUpi']>;
|
|
12477
12535
|
type PaymentInfo = Readable<components['schemas']['PaymentInfo']>;
|
|
12478
|
-
type
|
|
12536
|
+
type PaymentMethodPayloadInput = Writable<components['schemas']['PaymentMethodPayload']>;
|
|
12479
12537
|
type PaymentProvider = Readable<components['schemas']['PaymentProvider']>;
|
|
12480
12538
|
type PayuPaymentInfo = Readable<components['schemas']['PayuPaymentInfo']>;
|
|
12481
12539
|
type PayuPaymentMethod = Readable<components['schemas']['PayuPaymentMethod']>;
|
|
@@ -12484,9 +12542,9 @@ type Pincode = Readable<components['schemas']['Pincode']>;
|
|
|
12484
12542
|
type PosDevice = Readable<components['schemas']['PosDevice']>;
|
|
12485
12543
|
type PosDeviceClaimedUser = Readable<components['schemas']['PosDeviceClaimedUser']>;
|
|
12486
12544
|
type PosLocation = Readable<components['schemas']['PosLocation']>;
|
|
12487
|
-
type
|
|
12488
|
-
type
|
|
12489
|
-
type
|
|
12545
|
+
type PosUpdateCustomerWithEmailInput = Writable<components['schemas']['PosUpdateCustomerWithEmail']>;
|
|
12546
|
+
type PosUpdateCustomerWithIdInput = Writable<components['schemas']['PosUpdateCustomerWithId']>;
|
|
12547
|
+
type PosUpdateCustomerWithPhoneInput = Writable<components['schemas']['PosUpdateCustomerWithPhone']>;
|
|
12490
12548
|
type PosUser = Readable<components['schemas']['PosUser']>;
|
|
12491
12549
|
type Product = Readable<components['schemas']['Product']>;
|
|
12492
12550
|
type ProductAttribute = Readable<components['schemas']['ProductAttribute']>;
|
|
@@ -12502,11 +12560,11 @@ type ProductSubscription = Readable<components['schemas']['ProductSubscription']
|
|
|
12502
12560
|
type ProductVideo = Readable<components['schemas']['ProductVideo']>;
|
|
12503
12561
|
type Promotion = Readable<components['schemas']['Promotion']>;
|
|
12504
12562
|
type PromotionType = Readable<components['schemas']['PromotionType']>;
|
|
12505
|
-
type
|
|
12506
|
-
type
|
|
12507
|
-
type
|
|
12563
|
+
type RegisterWithEmailPasswordInput = Writable<components['schemas']['RegisterWithEmailPassword']>;
|
|
12564
|
+
type RegisterWithPhonePasswordInput = Writable<components['schemas']['RegisterWithPhonePassword']>;
|
|
12565
|
+
type RevokeSubscriptionInput = Writable<components['schemas']['RevokeSubscription']>;
|
|
12508
12566
|
type SavedPaymentMethod = Readable<components['schemas']['SavedPaymentMethod']>;
|
|
12509
|
-
type
|
|
12567
|
+
type SearchProductInput = Writable<components['schemas']['SearchProduct']>;
|
|
12510
12568
|
type SellerDetail = Readable<components['schemas']['SellerDetail']>;
|
|
12511
12569
|
type SellerInfo = Readable<components['schemas']['SellerInfo']>;
|
|
12512
12570
|
type SellerReview = Readable<components['schemas']['SellerReview']>;
|
|
@@ -12520,17 +12578,19 @@ type SingleSelectOption = Readable<components['schemas']['SingleSelectOption']>;
|
|
|
12520
12578
|
type StoreConfig = Readable<components['schemas']['StoreConfig']>;
|
|
12521
12579
|
type StoreTemplate = Readable<components['schemas']['StoreTemplate']>;
|
|
12522
12580
|
type Subscription = Readable<components['schemas']['Subscription']>;
|
|
12523
|
-
type
|
|
12581
|
+
type SubscriptionBehaviourInput = Writable<components['schemas']['SubscriptionBehaviour']>;
|
|
12524
12582
|
type SubscriptionDetail = Readable<components['schemas']['SubscriptionDetail']>;
|
|
12525
12583
|
type SubscriptionInvoiceItem = Readable<components['schemas']['SubscriptionInvoiceItem']>;
|
|
12584
|
+
type SubscriptionInvoiceItemInput = Writable<components['schemas']['SubscriptionInvoiceItem']>;
|
|
12526
12585
|
type TextAttribute = Readable<components['schemas']['TextAttribute']>;
|
|
12527
12586
|
type UnserviceableItem = Readable<components['schemas']['UnserviceableItem']>;
|
|
12528
|
-
type
|
|
12529
|
-
type
|
|
12530
|
-
type
|
|
12531
|
-
type
|
|
12587
|
+
type UpdateCartItemInput = Writable<components['schemas']['UpdateCartItem']>;
|
|
12588
|
+
type UpdateDigitalProductSubscriptionInput = Writable<components['schemas']['UpdateDigitalProductSubscription']>;
|
|
12589
|
+
type UpdateDocumentInput = Writable<components['schemas']['UpdateDocument']>;
|
|
12590
|
+
type UpdatePhysicalProductSubscriptionInput = Writable<components['schemas']['UpdatePhysicalProductSubscription']>;
|
|
12532
12591
|
type UpiPayment = Readable<components['schemas']['UpiPayment']>;
|
|
12533
12592
|
type User = Readable<components['schemas']['User']>;
|
|
12593
|
+
type UserInput = Writable<components['schemas']['User']>;
|
|
12534
12594
|
type Variant = Readable<components['schemas']['Variant']>;
|
|
12535
12595
|
type VariantDetail = Readable<components['schemas']['VariantDetail']>;
|
|
12536
12596
|
type VariantOption = Readable<components['schemas']['VariantOption']>;
|
|
@@ -13420,19 +13480,15 @@ declare class CatalogClient extends StorefrontAPIClient {
|
|
|
13420
13480
|
/**
|
|
13421
13481
|
* Search for products
|
|
13422
13482
|
*
|
|
13423
|
-
* @param searchData - The search query and
|
|
13483
|
+
* @param searchData - The search query, filters, sort, and pagination options
|
|
13424
13484
|
* @param headers - Optional header parameters (customer_group_id, etc.)
|
|
13425
|
-
* @returns Promise with search results including
|
|
13485
|
+
* @returns Promise with search results including SKUs, facet distribution, facet stats, and pagination
|
|
13426
13486
|
*
|
|
13427
13487
|
* @example
|
|
13428
13488
|
* ```typescript
|
|
13489
|
+
* // Basic search
|
|
13429
13490
|
* const { data, error } = await sdk.catalog.searchProducts({
|
|
13430
13491
|
* query: "smartphone",
|
|
13431
|
-
* filters: {
|
|
13432
|
-
* category: ["electronics", "mobile"],
|
|
13433
|
-
* price_range: { min: 100, max: 1000 },
|
|
13434
|
-
* brand: ["Apple", "Samsung"] // facet names depend on product configuration
|
|
13435
|
-
* },
|
|
13436
13492
|
* page: 1,
|
|
13437
13493
|
* limit: 20
|
|
13438
13494
|
* });
|
|
@@ -13444,17 +13500,51 @@ declare class CatalogClient extends StorefrontAPIClient {
|
|
|
13444
13500
|
*
|
|
13445
13501
|
* console.log("Search results:", data.skus?.length || 0, "products found");
|
|
13446
13502
|
* console.log("Facet distribution:", data.facet_distribution);
|
|
13447
|
-
* console.log("
|
|
13503
|
+
* console.log("Facet stats:", data.facet_stats);
|
|
13504
|
+
* console.log("Pagination:", data.pagination);
|
|
13448
13505
|
*
|
|
13449
13506
|
* data.skus?.forEach(sku => {
|
|
13450
13507
|
* console.log(`Found: ${sku.product_name} - ${sku.pricing?.selling_price}`);
|
|
13451
13508
|
* });
|
|
13452
13509
|
*
|
|
13510
|
+
* // With filter (string expression — Meilisearch syntax)
|
|
13511
|
+
* const { data: filtered, error: filteredError } = await sdk.catalog.searchProducts({
|
|
13512
|
+
* query: "laptop",
|
|
13513
|
+
* filter: "pricing.selling_price 500 TO 2000 AND product_type = physical",
|
|
13514
|
+
* sort: ["pricing.selling_price:asc"],
|
|
13515
|
+
* facets: ["product_type", "categories.name", "tags"],
|
|
13516
|
+
* page: 1,
|
|
13517
|
+
* limit: 10
|
|
13518
|
+
* });
|
|
13519
|
+
*
|
|
13520
|
+
* // With filter (array of conditions — combined with AND)
|
|
13521
|
+
* const { data: arrayFiltered, error: arrayError } = await sdk.catalog.searchProducts({
|
|
13522
|
+
* query: "shoes",
|
|
13523
|
+
* filter: ["product_type = physical", "rating >= 4", "stock_available > 0"],
|
|
13524
|
+
* sort: ["rating:desc"],
|
|
13525
|
+
* facets: ["*"],
|
|
13526
|
+
* page: 1,
|
|
13527
|
+
* limit: 25
|
|
13528
|
+
* });
|
|
13529
|
+
*
|
|
13530
|
+
* // With filter (nested arrays — inner arrays use OR, outer uses AND)
|
|
13531
|
+
* const { data: nestedFiltered, error: nestedError } = await sdk.catalog.searchProducts({
|
|
13532
|
+
* query: "headphones",
|
|
13533
|
+
* filter: [
|
|
13534
|
+
* "pricing.selling_price 50 TO 300",
|
|
13535
|
+
* ["product_type = physical", "product_type = bundle"]
|
|
13536
|
+
* ],
|
|
13537
|
+
* page: 1,
|
|
13538
|
+
* limit: 25
|
|
13539
|
+
* });
|
|
13540
|
+
*
|
|
13453
13541
|
* // Override customer group ID for this specific request
|
|
13454
13542
|
* const { data: overrideData, error: overrideError } = await sdk.catalog.searchProducts(
|
|
13455
13543
|
* {
|
|
13456
13544
|
* query: "laptop",
|
|
13457
|
-
*
|
|
13545
|
+
* filter: "categories.name = computers",
|
|
13546
|
+
* page: 1,
|
|
13547
|
+
* limit: 20
|
|
13458
13548
|
* },
|
|
13459
13549
|
* {
|
|
13460
13550
|
* "x-customer-group-id": "01H9XYZ12345USERID" // Override default SDK config
|
|
@@ -16094,5 +16184,5 @@ declare class StorefrontSDK {
|
|
|
16094
16184
|
getDefaultHeaders(): SupportedDefaultHeaders | undefined;
|
|
16095
16185
|
}
|
|
16096
16186
|
//#endregion
|
|
16097
|
-
export { AcceleratedRewardCouponPromotion, AcceleratedRewardRule, AddProfileImageContent, AddProfileImageFormData, AddProfileImagePathParams, AddProfileImageResponse, AddToWishlistBody, AddToWishlistContent, AddToWishlistPathParams, AddToWishlistResponse, AdditionalProductDetails, AnalyticsEvent, AnalyticsProvider, AnonymousUser, ApiErrorResponse, ApiResult, ApplicableCoupon, ApplicablePromotion, AppliedCoupon, AppliedPromotion, ApplyCouponBody, ApplyCouponContent, ApplyCouponPathParams, ApplyCouponResponse, AssociatedOption, AuthClient, AuthenticateDirectOtpBody, AuthenticateDirectOtpResponse, AutoScaleBasedOnAmount, AutoScaleBasedOnQuantity, BankTransfer, BaseAPIClient, BaseSDKOptions, BooleanAttribute, Brand, BrowserTokenStorage, Business, BuyXGetYCouponPromotion, BuyXGetYRule, BuyXGetYRuleBasedOnAmount, BuyXGetYRuleBasedOnQuantity, CancelOrderBody, CancelOrderContent, CancelOrderPathParams, CancelOrderResponse, CancelPaymentRequestPathParams, CancelPaymentRequestResponse, CardPayment, CardbinInfo, Cart, CartBasedFulfillmentCheck, CartBasedFulfillmentOption, CartClient, CartItem, CartShipment, CatalogClient, Category, ChangePasswordBody, ChangePasswordContent, ChangePasswordResponse, type Channel, CheckFulfillmentBody, CheckFulfillmentContent, CheckFulfillmentResponse, CheckStoreResponse, CheckVerificationStatusBody, CheckVerificationStatusContent, CheckVerificationStatusResponse, ClaimPosDeviceContent, ClaimPosDevicePathParams, ClaimPosDeviceResponse, CollectInStore, CollectInStoreAddress, CollectInStoreFulfillment, ColorAttribute, ColorOption, CookieTokenStorage, type CookieTokenStorageOptions, Country, CountryState, Coupon, CouponPromotionCommonDetail, CouponType, CreateAddressBody, CreateAddressContent, CreateAddressPathParams, CreateAddressResponse, CreateCartAddressBody, CreateCartAddressContent, CreateCartAddressPathParams, CreateCartAddressResponse, CreateCartBody, CreateCartContent, CreateCartResponse, CreateCustomSubscription, CreateDocumentContent, CreateDocumentFormData, CreateDocumentPathParams, CreateDocumentResponse, CreateJuspayCustomerBody, CreateJuspayCustomerContent, CreateJuspayCustomerResponse, CreateJuspayOrderBody, CreateJuspayOrderContent, CreateJuspayOrderResponse, CreateMarketplaceProductReviewFormData, CreateMarketplaceProductReviewPathParams, CreateMarketplaceProductReviewResponse, CreateNotificationPreferencesBody, CreateNotificationPreferencesContent, CreateNotificationPreferencesPathParams, CreateNotificationPreferencesResponse, CreateOrderBody, CreateOrderContent, CreateOrderResponse, CreateOrderReturn, CreateOrderReturnBody, CreateOrderReturnContent, CreateOrderReturnPathParams, CreateOrderReturnResponse, CreatePosOrderBody, CreatePosOrderContent, CreatePosOrderResponse, CreateProductReviewFormData, CreateProductReviewPathParams, CreateProductReviewResponse, CreateReview, CreateStandardSubscription, CreateSubscription, CreateSubscriptionBody, CreateSubscriptionContent, CreateSubscriptionResponse, Currency, CustomSlabsBasedOnAmount, CustomSlabsBasedOnQuantity, CustomerAddress, CustomerClient, CustomerGroup, CustomerLoyalty, CustomerReadyForReview, CustomerReview, DateAttribute, DeactivateUserPathParams, DeactivateUserResponse, DebugLogger, DebugLoggerFn, DeleteAddressPathParams, DeleteAddressResponse, DeleteCartPathParams, DeleteCartResponse, DeleteDocumentPathParams, DeleteDocumentResponse, DeleteFromWishlistBody, DeleteFromWishlistContent, DeleteFromWishlistPathParams, DeleteFromWishlistResponse, DeleteUserCartPathParams, DeleteUserCartResponse, DeleteUserPathParams, DeleteUserResponse, DeliveryFulfillment, DeliveryOption, DiscountBasedPromotion, DiscountCouponPromotion, DiscountRule, Document, Environment, EvaluateCouponsContent, EvaluateCouponsPathParams, EvaluateCouponsResponse, EvaluatePromotionsContent, EvaluatePromotionsPathParams, EvaluatePromotionsResponse, FixedAmountDiscountRule, FixedPriceCouponPromotion, FixedPricePromotion, FixedPriceRule, FixedPriceRuleBasedAmount, FixedPriceRuleBasedQuantity, ForgotPasswordBody, ForgotPasswordContent, ForgotPasswordResponse, FreeGoodCouponPromotion, FreeGoodsPromotion, FreeGoodsRule, FreeShipingCouponPromotion, FulfillmentItem, FulfillmentPreference, GenerateHashBody, GenerateHashContent, GenerateHashResponse, GenerateOtpBody, GenerateOtpContent, GenerateOtpHeaderParams, GenerateOtpResponse, GenerateOtpWithEmail, GenerateOtpWithPhone, GetAddressDetailContent, GetAddressDetailPathParams, GetAddressDetailResponse, GetAnonymousTokenContent, GetAnonymousTokenResponse, GetCardInfoContent, GetCardInfoQuery, GetCardInfoResponse, GetCartContent, GetCartPathParams, GetCartResponse, GetConfigContent, GetConfigResponse, GetDocumentContent, GetDocumentPathParams, GetDocumentResponse, GetFulfillmentOptionsBody, GetFulfillmentOptionsContent, GetFulfillmentOptionsResponse, GetJuspayCustomerContent, GetJuspayCustomerPathParams, GetJuspayCustomerResponse, GetLoyaltyDetailsContent, GetLoyaltyDetailsPathParams, GetLoyaltyDetailsResponse, GetMarketplaceProductDetailContent, GetMarketplaceProductDetailHeaderParams, GetMarketplaceProductDetailPathParams, GetMarketplaceProductDetailQuery, GetMarketplaceProductDetailResponse, GetMarketplaceVariantDetailContent, GetMarketplaceVariantDetailHeaderParams, GetMarketplaceVariantDetailPathParams, GetMarketplaceVariantDetailQuery, GetMarketplaceVariantDetailResponse, GetNotificationPreferencesContent, GetNotificationPreferencesPathParams, GetNotificationPreferencesResponse, GetOrderDetailContent, GetOrderDetailPathParams, GetOrderDetailResponse, GetOrderReturnDetailContent, GetOrderReturnDetailPathParams, GetOrderReturnDetailResponse, GetPaymentStatusContent, GetPaymentStatusPathParams, GetPaymentStatusResponse, GetPosFulfillmentOptionsBody, GetPosFulfillmentOptionsContent, GetPosFulfillmentOptionsResponse, GetPosUserContent, GetPosUserPathParams, GetPosUserResponse, GetProductDetailContent, GetProductDetailHeaderParams, GetProductDetailPathParams, GetProductDetailQuery, GetProductDetailResponse, GetProfileImageContent, GetProfileImagePathParams, GetProfileImageResponse, GetSellerDetailContent, GetSellerDetailPathParams, GetSellerDetailResponse, GetSubscriptionContent, GetSubscriptionPathParams, GetSubscriptionResponse, GetUserCartContent, GetUserCartPathParams, GetUserCartResponse, GetUserDetailContent, GetUserDetailPathParams, GetUserDetailResponse, GetVariantDetailContent, GetVariantDetailHeaderParams, GetVariantDetailPathParams, GetVariantDetailQuery, GetVariantDetailResponse, GetWishlistContent, GetWishlistPathParams, GetWishlistQuery, GetWishlistResponse, GstinDetail, HeaderConfig, HelpersClient, InapplicableCoupon, InapplicablePromotion, Item, ItemsBasedFulfillmentCheck, JusPayExpressCheckout, JusPayExpressCheckoutCommonField, JusPayExpressCheckoutResponse, JusPayHyperCheckout, JusPayHyperCheckoutResponse, JusPayNewCard, JusPaySavedCardToken, JuspayCardDetail, JuspayCardPaymentMethod, JuspayCreateCustomerPayload, JuspayCreateOrderPayload, JuspayCustomer, JuspayNetBanking, JuspayNetbankingPaymentMethod, JuspayOrder, JuspayPaymentMethod, JuspayPaymentMethodDetail, JuspayUpiCollect, JuspayUpiIntent, JuspayUpiPaymentMethod, JuspayWalletPaymentMethod, KycDocument, KycDocumentConfig, ListAddressesContent, ListAddressesPathParams, ListAddressesQuery, ListAddressesResponse, ListCategoriesContent, ListCategoriesQuery, ListCategoriesResponse, ListCountriesContent, ListCountriesResponse, ListCountryPincodesContent, ListCountryPincodesPathParams, ListCountryPincodesQuery, ListCountryPincodesResponse, ListCountryStatesContent, ListCountryStatesPathParams, ListCountryStatesResponse, ListCouponsContent, ListCouponsHeaderParams, ListCouponsResponse, ListCrosssellProductsContent, ListCrosssellProductsHeaderParams, ListCrosssellProductsQuery, ListCrosssellProductsResponse, ListCustomerCardsContent, ListCustomerCardsPathParams, ListCustomerCardsResponse, ListDocumentsContent, ListDocumentsPathParams, ListDocumentsResponse, ListKycDocumentContent, ListKycDocumentResponse, ListLoyaltyActivitiesContent, ListLoyaltyActivitiesPathParams, ListLoyaltyActivitiesQuery, ListLoyaltyActivitiesResponse, ListMarketplaceCategoriesContent, ListMarketplaceCategoriesQuery, ListMarketplaceCategoriesResponse, ListMarketplaceCrosssellProductsContent, ListMarketplaceCrosssellProductsHeaderParams, ListMarketplaceCrosssellProductsQuery, ListMarketplaceCrosssellProductsResponse, ListMarketplaceProductReviewsContent, ListMarketplaceProductReviewsPathParams, ListMarketplaceProductReviewsQuery, ListMarketplaceProductReviewsResponse, ListMarketplaceProductVariantsContent, ListMarketplaceProductVariantsHeaderParams, ListMarketplaceProductVariantsPathParams, ListMarketplaceProductVariantsQuery, ListMarketplaceProductVariantsResponse, ListMarketplaceProductsContent, ListMarketplaceProductsHeaderParams, ListMarketplaceProductsQuery, ListMarketplaceProductsResponse, ListMarketplaceSimilarProductsContent, ListMarketplaceSimilarProductsHeaderParams, ListMarketplaceSimilarProductsQuery, ListMarketplaceSimilarProductsResponse, ListMarketplaceSkusContent, ListMarketplaceSkusHeaderParams, ListMarketplaceSkusQuery, ListMarketplaceSkusResponse, ListMarketplaceUpsellProductsContent, ListMarketplaceUpsellProductsHeaderParams, ListMarketplaceUpsellProductsQuery, ListMarketplaceUpsellProductsResponse, ListOrderPaymentsContent, ListOrderPaymentsPathParams, ListOrderPaymentsResponse, ListOrderRefundsContent, ListOrderRefundsPathParams, ListOrderRefundsResponse, ListOrderShipmentsContent, ListOrderShipmentsPathParams, ListOrderShipmentsResponse, ListOrdersContent, ListOrdersQuery, ListOrdersResponse, ListPaymentMethodsContent, ListPaymentMethodsQuery, ListPaymentMethodsResponse, ListPosDevicesContent, ListPosDevicesResponse, ListPosLocationsContent, ListPosLocationsResponse, ListProductReviewsContent, ListProductReviewsPathParams, ListProductReviewsQuery, ListProductReviewsResponse, ListProductVariantsContent, ListProductVariantsHeaderParams, ListProductVariantsPathParams, ListProductVariantsQuery, ListProductVariantsResponse, ListProductsContent, ListProductsHeaderParams, ListProductsQuery, ListProductsResponse, ListPromotionsContent, ListPromotionsHeaderParams, ListPromotionsResponse, ListReturnsContent, ListReturnsResponse, ListSavedPaymentMethodsContent, ListSavedPaymentMethodsPathParams, ListSavedPaymentMethodsQuery, ListSavedPaymentMethodsResponse, ListSellerReviewsContent, ListSellerReviewsPathParams, ListSellerReviewsResponse, ListSimilarProductsContent, ListSimilarProductsHeaderParams, ListSimilarProductsQuery, ListSimilarProductsResponse, ListSkusContent, ListSkusHeaderParams, ListSkusQuery, ListSkusResponse, ListSubscriptionsContent, ListSubscriptionsResponse, ListUpsellProductsContent, ListUpsellProductsHeaderParams, ListUpsellProductsQuery, ListUpsellProductsResponse, ListUserReviewsContent, ListUserReviewsPathParams, ListUserReviewsResponse, LoginPosDeviceWithEmailBody, LoginPosDeviceWithEmailContent, LoginPosDeviceWithEmailHeaderParams, LoginPosDeviceWithEmailResponse, LoginPosDeviceWithPhoneBody, LoginPosDeviceWithPhoneContent, LoginPosDeviceWithPhoneHeaderParams, LoginPosDeviceWithPhoneResponse, LoginPosDeviceWithWhatsappBody, LoginPosDeviceWithWhatsappContent, LoginPosDeviceWithWhatsappHeaderParams, LoginPosDeviceWithWhatsappResponse, LoginWithEmailBody, LoginWithEmailContent, LoginWithEmailHeaderParams, LoginWithEmailResponse, LoginWithPasswordBody, LoginWithPasswordContent, LoginWithPasswordResponse, LoginWithPhoneBody, LoginWithPhoneContent, LoginWithPhoneHeaderParams, LoginWithPhoneResponse, LoginWithWhatsappBody, LoginWithWhatsappContent, LoginWithWhatsappHeaderParams, LoginWithWhatsappResponse, LogoutContent, LogoutFromPosDeviceResponse, LogoutResponse, LotBatchDetail, LoyaltyPointActivity, ManualPaymentMethod, MarketplaceItem, MarketplaceProduct, MarketplaceProductDetail, MeasurementUnit, MemoryTokenStorage, MultiSelectAttribute, NetbankingPayment, NotificationChannelPreferences, NotificationPreferences, NumberAttribute, Order, OrderClient, OrderDetail, OrderItem, OrderList, OrderPayment, OrderRefund, OrderReturn, OrderReturnItem, OrderShipment, Pagination, PairPosDeviceBody, PairPosDeviceContent, PairPosDeviceResponse, PanDetail, PartialCollectAndDelivery, PauseSubscription, PayWithCard, PayWithCash, PayWithUpi, PaymentInfo, PaymentMethodPayload, PaymentProvider, PaymentsClient, PayuPaymentInfo, PayuPaymentMethod, PercentageDiscountRule, Pincode, PosApplyCouponBody, PosApplyCouponContent, PosApplyCouponPathParams, PosApplyCouponResponse, PosCreateCartAddressBody, PosCreateCartAddressContent, PosCreateCartAddressPathParams, PosCreateCartAddressResponse, PosCreateCartBody, PosCreateCartContent, PosCreateCartResponse, PosDeleteCartPathParams, PosDeleteCartResponse, PosDevice, PosDeviceClaimedUser, PosEvaluateCouponsContent, PosEvaluateCouponsPathParams, PosEvaluateCouponsResponse, PosEvaluatePromotionsContent, PosEvaluatePromotionsPathParams, PosEvaluatePromotionsResponse, PosGetCartContent, PosGetCartPathParams, PosGetCartResponse, PosGetPaymentStatusContent, PosGetPaymentStatusPathParams, PosGetPaymentStatusResponse, PosGetProductDetailContent, PosGetProductDetailHeaderParams, PosGetProductDetailPathParams, PosGetProductDetailQuery, PosGetProductDetailResponse, PosGetUserCartContent, PosGetUserCartPathParams, PosGetUserCartResponse, PosGetVariantDetailContent, PosGetVariantDetailHeaderParams, PosGetVariantDetailPathParams, PosGetVariantDetailQuery, PosGetVariantDetailResponse, PosListCategoriesContent, PosListCategoriesQuery, PosListCategoriesResponse, PosListCouponsContent, PosListCouponsHeaderParams, PosListCouponsResponse, PosListCrosssellProductsContent, PosListCrosssellProductsHeaderParams, PosListCrosssellProductsQuery, PosListCrosssellProductsResponse, PosListProductReviewsContent, PosListProductReviewsPathParams, PosListProductReviewsQuery, PosListProductReviewsResponse, PosListProductVariantsContent, PosListProductVariantsHeaderParams, PosListProductVariantsPathParams, PosListProductVariantsQuery, PosListProductVariantsResponse, PosListProductsContent, PosListProductsHeaderParams, PosListProductsQuery, PosListProductsResponse, PosListPromotionsContent, PosListPromotionsHeaderParams, PosListPromotionsResponse, PosListSimilarProductsContent, PosListSimilarProductsHeaderParams, PosListSimilarProductsQuery, PosListSimilarProductsResponse, PosListSkusContent, PosListSkusHeaderParams, PosListSkusQuery, PosListSkusResponse, PosListUpsellProductsContent, PosListUpsellProductsHeaderParams, PosListUpsellProductsQuery, PosListUpsellProductsResponse, PosLocation, PosRedeemCreditBalanceBody, PosRedeemCreditBalanceContent, PosRedeemCreditBalancePathParams, PosRedeemCreditBalanceResponse, PosRedeemLoyaltyPointsBody, PosRedeemLoyaltyPointsContent, PosRedeemLoyaltyPointsPathParams, PosRedeemLoyaltyPointsResponse, PosRemoveCouponContent, PosRemoveCouponPathParams, PosRemoveCouponResponse, PosRemoveCreditBalanceContent, PosRemoveCreditBalancePathParams, PosRemoveCreditBalanceResponse, PosRemoveLoyaltyPointsContent, PosRemoveLoyaltyPointsPathParams, PosRemoveLoyaltyPointsResponse, PosSearchProductsBody, PosSearchProductsContent, PosSearchProductsHeaderParams, PosSearchProductsResponse, PosUpdateCartBody, PosUpdateCartContent, PosUpdateCartPathParams, PosUpdateCartResponse, PosUpdateCustomerWithEmail, PosUpdateCustomerWithId, PosUpdateCustomerWithPhone, PosUpdateFulfillmentPreferenceBody, PosUpdateFulfillmentPreferenceContent, PosUpdateFulfillmentPreferencePathParams, PosUpdateFulfillmentPreferenceResponse, PosUser, Product, ProductAttribute, ProductBundleItem, ProductCategory, ProductDetail, ProductImage, ProductPricing, ProductPromotion, ProductReview, ProductShipping, ProductSubscription, ProductVideo, Promotion, PromotionType, RedeemCreditBalanceBody, RedeemCreditBalanceContent, RedeemCreditBalancePathParams, RedeemCreditBalanceResponse, RedeemLoyaltyPointsBody, RedeemLoyaltyPointsContent, RedeemLoyaltyPointsPathParams, RedeemLoyaltyPointsResponse, RefreshPosAccessTokenBody, RefreshPosAccessTokenContent, RefreshPosAccessTokenResponse, RefreshTokenBody, RefreshTokenContent, RefreshTokenResponse, RegisterWithEmailBody, RegisterWithEmailContent, RegisterWithEmailPassword, RegisterWithEmailResponse, RegisterWithPasswordBody, RegisterWithPasswordContent, RegisterWithPasswordResponse, RegisterWithPhoneBody, RegisterWithPhoneContent, RegisterWithPhonePassword, RegisterWithPhoneResponse, RegisterWithWhatsappBody, RegisterWithWhatsappContent, RegisterWithWhatsappResponse, RemoveCouponContent, RemoveCouponPathParams, RemoveCouponResponse, RemoveCreditBalanceContent, RemoveCreditBalancePathParams, RemoveCreditBalanceResponse, RemoveLoyaltyPointsContent, RemoveLoyaltyPointsPathParams, RemoveLoyaltyPointsResponse, RemoveProfileImagePathParams, RemoveProfileImageResponse, ResendDirectOtpBody, ResendDirectOtpContent, ResendDirectOtpResponse, ResetPasswordBody, ResetPasswordContent, ResetPasswordResponse, ResponseUtils, RetryOrderPaymentBody, RetryOrderPaymentContent, RetryOrderPaymentPathParams, RetryOrderPaymentResponse, RevokeSubscription, SavedPaymentMethod, SearchMarketplaceProductsBody, SearchMarketplaceProductsContent, SearchMarketplaceProductsHeaderParams, SearchMarketplaceProductsResponse, SearchProduct, SearchProductsBody, SearchProductsContent, SearchProductsHeaderParams, SearchProductsResponse, SellerDetail, SellerInfo, SellerReview, SellerReviewStats, Seo, ServiceProviderBasicDetail, ShipmentItem, ShipmentStatus, SingleSelectAttribute, SingleSelectOption, StoreConfig, StoreConfigClient, StoreTemplate, StorefrontAPIClient, StorefrontSDK, StorefrontSDK as default, StorefrontSDKOptions, SubscribeNewsletterBody, SubscribeNewsletterResponse, Subscription, SubscriptionBehaviour, SubscriptionDetail, SubscriptionInvoiceItem, SupportedDefaultHeaders, TextAttribute, type TokenStorage, TrackAnalyticsEventBody, TrackAnalyticsEventResponse, UnclaimPosDeviceContent, UnclaimPosDevicePathParams, UnclaimPosDeviceResponse, UnserviceableItem, UpdateAddressDetailBody, UpdateAddressDetailContent, UpdateAddressDetailPathParams, UpdateAddressDetailResponse, UpdateCartBody, UpdateCartContent, UpdateCartItem, UpdateCartPathParams, UpdateCartResponse, UpdateDigitalProductSubscription, UpdateDocument, UpdateDocumentContent, UpdateDocumentFormData, UpdateDocumentPathParams, UpdateDocumentResponse, UpdateFulfillmentPreferenceBody, UpdateFulfillmentPreferenceContent, UpdateFulfillmentPreferencePathParams, UpdateFulfillmentPreferenceResponse, UpdateNotificationPreferencesBody, UpdateNotificationPreferencesContent, UpdateNotificationPreferencesPathParams, UpdateNotificationPreferencesResponse, UpdatePhysicalProductSubscription, UpdatePosCartCustomerBody, UpdatePosCartCustomerContent, UpdatePosCartCustomerPathParams, UpdatePosCartCustomerResponse, UpdateProfileImageContent, UpdateProfileImageFormData, UpdateProfileImagePathParams, UpdateProfileImageResponse, UpdateSubscriptionBody, UpdateSubscriptionContent, UpdateSubscriptionPathParams, UpdateSubscriptionResponse, UpdateUserBody, UpdateUserContent, UpdateUserPathParams, UpdateUserResponse, UpiPayment, User, type UserInfo, Variant, VariantDetail, VariantOption, VerifyDocumentBody, VerifyDocumentContent, VerifyDocumentPathParams, VerifyDocumentResponse, VerifyOtpBody, VerifyOtpContent, VerifyOtpResponse, VerifyPosLoginOtpBody, VerifyPosLoginOtpContent, VerifyPosLoginOtpResponse, VerifyVpaContent, VerifyVpaQuery, VerifyVpaResponse, VolumeBasedCouponPromotion, VolumeBasedPromotion, VolumeBasedRule, WalletPayment, type components, createDebugMiddleware, createTimeoutMiddleware, executeRequest, extractRequestBody, getPathnameFromUrl, mergeAndTransformHeaders, mergeHeaders, type operations, type paths, transformHeaders };
|
|
16187
|
+
export { AcceleratedRewardCouponPromotion, AcceleratedRewardRule, AddProfileImageContent, AddProfileImageFormData, AddProfileImagePathParams, AddProfileImageResponse, AddToWishlistBody, AddToWishlistContent, AddToWishlistPathParams, AddToWishlistResponse, AdditionalProductDetails, AnalyticsEventInput, AnalyticsProvider, AnonymousUser, ApiErrorResponse, ApiResult, ApplicableCoupon, ApplicablePromotion, AppliedCoupon, AppliedPromotion, ApplyCouponBody, ApplyCouponContent, ApplyCouponPathParams, ApplyCouponResponse, AssociatedOption, AuthClient, AuthenticateDirectOtpBody, AuthenticateDirectOtpResponse, AutoScaleBasedOnAmount, AutoScaleBasedOnQuantity, BankTransfer, BaseAPIClient, BaseSDKOptions, BooleanAttribute, Brand, BrowserTokenStorage, Business, BusinessInput, BuyXGetYCouponPromotion, BuyXGetYRule, BuyXGetYRuleBasedOnAmount, BuyXGetYRuleBasedOnQuantity, CancelOrderBody, CancelOrderContent, CancelOrderPathParams, CancelOrderResponse, CancelPaymentRequestPathParams, CancelPaymentRequestResponse, CardPayment, CardbinInfo, Cart, CartBasedFulfillmentCheckInput, CartBasedFulfillmentOptionInput, CartClient, CartItem, CartShipment, CatalogClient, Category, ChangePasswordBody, ChangePasswordContent, ChangePasswordResponse, type Channel, CheckFulfillmentBody, CheckFulfillmentContent, CheckFulfillmentResponse, CheckStoreResponse, CheckVerificationStatusBody, CheckVerificationStatusContent, CheckVerificationStatusResponse, ClaimPosDeviceContent, ClaimPosDevicePathParams, ClaimPosDeviceResponse, CollectInStore, CollectInStoreAddress, CollectInStoreFulfillment, CollectInStoreFulfillmentInput, ColorAttribute, ColorOption, CookieTokenStorage, type CookieTokenStorageOptions, Country, CountryState, Coupon, CouponPromotionCommonDetail, CouponType, CreateAddressBody, CreateAddressContent, CreateAddressPathParams, CreateAddressResponse, CreateCartAddressBody, CreateCartAddressContent, CreateCartAddressPathParams, CreateCartAddressResponse, CreateCartBody, CreateCartContent, CreateCartResponse, CreateCustomSubscriptionInput, CreateDocumentContent, CreateDocumentFormData, CreateDocumentPathParams, CreateDocumentResponse, CreateJuspayCustomerBody, CreateJuspayCustomerContent, CreateJuspayCustomerResponse, CreateJuspayOrderBody, CreateJuspayOrderContent, CreateJuspayOrderResponse, CreateMarketplaceProductReviewFormData, CreateMarketplaceProductReviewPathParams, CreateMarketplaceProductReviewResponse, CreateNotificationPreferencesBody, CreateNotificationPreferencesContent, CreateNotificationPreferencesPathParams, CreateNotificationPreferencesResponse, CreateOrderBody, CreateOrderContent, CreateOrderResponse, CreateOrderReturnBody, CreateOrderReturnContent, CreateOrderReturnInput, CreateOrderReturnPathParams, CreateOrderReturnResponse, CreatePosOrderBody, CreatePosOrderContent, CreatePosOrderResponse, CreateProductReviewFormData, CreateProductReviewPathParams, CreateProductReviewResponse, CreateReviewInput, CreateStandardSubscriptionInput, CreateSubscriptionBody, CreateSubscriptionContent, CreateSubscriptionInput, CreateSubscriptionResponse, Currency, CustomSlabsBasedOnAmount, CustomSlabsBasedOnQuantity, CustomerAddress, CustomerAddressInput, CustomerClient, CustomerGroup, CustomerGroupInput, CustomerLoyalty, CustomerReadyForReview, CustomerReview, DateAttribute, DeactivateUserPathParams, DeactivateUserResponse, DebugLogger, DebugLoggerFn, DeleteAddressPathParams, DeleteAddressResponse, DeleteCartPathParams, DeleteCartResponse, DeleteDocumentPathParams, DeleteDocumentResponse, DeleteFromWishlistBody, DeleteFromWishlistContent, DeleteFromWishlistPathParams, DeleteFromWishlistResponse, DeleteUserCartPathParams, DeleteUserCartResponse, DeleteUserPathParams, DeleteUserResponse, DeliveryFulfillment, DeliveryFulfillmentInput, DeliveryOption, DiscountBasedPromotion, DiscountCouponPromotion, DiscountRule, Document, DocumentInput, Environment, EvaluateCouponsContent, EvaluateCouponsPathParams, EvaluateCouponsResponse, EvaluatePromotionsContent, EvaluatePromotionsPathParams, EvaluatePromotionsResponse, FixedAmountDiscountRule, FixedPriceCouponPromotion, FixedPricePromotion, FixedPriceRule, FixedPriceRuleBasedAmount, FixedPriceRuleBasedQuantity, ForgotPasswordBody, ForgotPasswordContent, ForgotPasswordResponse, FreeGoodCouponPromotion, FreeGoodsPromotion, FreeGoodsRule, FreeShipingCouponPromotion, FulfillmentItem, FulfillmentItemInput, FulfillmentPreference, FulfillmentPreferenceInput, GenerateHashBody, GenerateHashContent, GenerateHashResponse, GenerateOtpBody, GenerateOtpContent, GenerateOtpHeaderParams, GenerateOtpResponse, GenerateOtpWithEmailInput, GenerateOtpWithPhoneInput, GetAddressDetailContent, GetAddressDetailPathParams, GetAddressDetailResponse, GetAnonymousTokenContent, GetAnonymousTokenResponse, GetCardInfoContent, GetCardInfoQuery, GetCardInfoResponse, GetCartContent, GetCartPathParams, GetCartResponse, GetConfigContent, GetConfigResponse, GetDocumentContent, GetDocumentPathParams, GetDocumentResponse, GetFulfillmentOptionsBody, GetFulfillmentOptionsContent, GetFulfillmentOptionsResponse, GetJuspayCustomerContent, GetJuspayCustomerPathParams, GetJuspayCustomerResponse, GetLoyaltyDetailsContent, GetLoyaltyDetailsPathParams, GetLoyaltyDetailsResponse, GetMarketplaceProductDetailContent, GetMarketplaceProductDetailHeaderParams, GetMarketplaceProductDetailPathParams, GetMarketplaceProductDetailQuery, GetMarketplaceProductDetailResponse, GetMarketplaceVariantDetailContent, GetMarketplaceVariantDetailHeaderParams, GetMarketplaceVariantDetailPathParams, GetMarketplaceVariantDetailQuery, GetMarketplaceVariantDetailResponse, GetNotificationPreferencesContent, GetNotificationPreferencesPathParams, GetNotificationPreferencesResponse, GetOrderDetailContent, GetOrderDetailPathParams, GetOrderDetailResponse, GetOrderReturnDetailContent, GetOrderReturnDetailPathParams, GetOrderReturnDetailResponse, GetPaymentStatusContent, GetPaymentStatusPathParams, GetPaymentStatusResponse, GetPosFulfillmentOptionsBody, GetPosFulfillmentOptionsContent, GetPosFulfillmentOptionsResponse, GetPosUserContent, GetPosUserPathParams, GetPosUserResponse, GetProductDetailContent, GetProductDetailHeaderParams, GetProductDetailPathParams, GetProductDetailQuery, GetProductDetailResponse, GetProfileImageContent, GetProfileImagePathParams, GetProfileImageResponse, GetSellerDetailContent, GetSellerDetailPathParams, GetSellerDetailResponse, GetSubscriptionContent, GetSubscriptionPathParams, GetSubscriptionResponse, GetUserCartContent, GetUserCartPathParams, GetUserCartResponse, GetUserDetailContent, GetUserDetailPathParams, GetUserDetailResponse, GetVariantDetailContent, GetVariantDetailHeaderParams, GetVariantDetailPathParams, GetVariantDetailQuery, GetVariantDetailResponse, GetWishlistContent, GetWishlistPathParams, GetWishlistQuery, GetWishlistResponse, GstinDetail, HeaderConfig, HelpersClient, InapplicableCoupon, InapplicablePromotion, Item, ItemsBasedFulfillmentCheckInput, JusPayExpressCheckoutCommonFieldInput, JusPayExpressCheckoutInput, JusPayExpressCheckoutResponse, JusPayHyperCheckoutInput, JusPayHyperCheckoutResponse, JusPayNewCardInput, JusPaySavedCardTokenInput, JuspayCardDetail, JuspayCardPaymentMethod, JuspayCreateCustomerPayloadInput, JuspayCreateOrderPayloadInput, JuspayCustomer, JuspayNetBankingInput, JuspayNetbankingPaymentMethod, JuspayOrder, JuspayPaymentMethod, JuspayPaymentMethodDetail, JuspayUpiCollectInput, JuspayUpiIntentInput, JuspayUpiPaymentMethod, JuspayWalletPaymentMethod, KycDocument, KycDocumentConfig, ListAddressesContent, ListAddressesPathParams, ListAddressesQuery, ListAddressesResponse, ListCategoriesContent, ListCategoriesQuery, ListCategoriesResponse, ListCountriesContent, ListCountriesResponse, ListCountryPincodesContent, ListCountryPincodesPathParams, ListCountryPincodesQuery, ListCountryPincodesResponse, ListCountryStatesContent, ListCountryStatesPathParams, ListCountryStatesResponse, ListCouponsContent, ListCouponsHeaderParams, ListCouponsResponse, ListCrosssellProductsContent, ListCrosssellProductsHeaderParams, ListCrosssellProductsQuery, ListCrosssellProductsResponse, ListCustomerCardsContent, ListCustomerCardsPathParams, ListCustomerCardsResponse, ListDocumentsContent, ListDocumentsPathParams, ListDocumentsResponse, ListKycDocumentContent, ListKycDocumentResponse, ListLoyaltyActivitiesContent, ListLoyaltyActivitiesPathParams, ListLoyaltyActivitiesQuery, ListLoyaltyActivitiesResponse, ListMarketplaceCategoriesContent, ListMarketplaceCategoriesQuery, ListMarketplaceCategoriesResponse, ListMarketplaceCrosssellProductsContent, ListMarketplaceCrosssellProductsHeaderParams, ListMarketplaceCrosssellProductsQuery, ListMarketplaceCrosssellProductsResponse, ListMarketplaceProductReviewsContent, ListMarketplaceProductReviewsPathParams, ListMarketplaceProductReviewsQuery, ListMarketplaceProductReviewsResponse, ListMarketplaceProductVariantsContent, ListMarketplaceProductVariantsHeaderParams, ListMarketplaceProductVariantsPathParams, ListMarketplaceProductVariantsQuery, ListMarketplaceProductVariantsResponse, ListMarketplaceProductsContent, ListMarketplaceProductsHeaderParams, ListMarketplaceProductsQuery, ListMarketplaceProductsResponse, ListMarketplaceSimilarProductsContent, ListMarketplaceSimilarProductsHeaderParams, ListMarketplaceSimilarProductsQuery, ListMarketplaceSimilarProductsResponse, ListMarketplaceSkusContent, ListMarketplaceSkusHeaderParams, ListMarketplaceSkusQuery, ListMarketplaceSkusResponse, ListMarketplaceUpsellProductsContent, ListMarketplaceUpsellProductsHeaderParams, ListMarketplaceUpsellProductsQuery, ListMarketplaceUpsellProductsResponse, ListOrderPaymentsContent, ListOrderPaymentsPathParams, ListOrderPaymentsResponse, ListOrderRefundsContent, ListOrderRefundsPathParams, ListOrderRefundsResponse, ListOrderShipmentsContent, ListOrderShipmentsPathParams, ListOrderShipmentsResponse, ListOrdersContent, ListOrdersQuery, ListOrdersResponse, ListPaymentMethodsContent, ListPaymentMethodsQuery, ListPaymentMethodsResponse, ListPosDevicesContent, ListPosDevicesResponse, ListPosLocationsContent, ListPosLocationsResponse, ListProductReviewsContent, ListProductReviewsPathParams, ListProductReviewsQuery, ListProductReviewsResponse, ListProductVariantsContent, ListProductVariantsHeaderParams, ListProductVariantsPathParams, ListProductVariantsQuery, ListProductVariantsResponse, ListProductsContent, ListProductsHeaderParams, ListProductsQuery, ListProductsResponse, ListPromotionsContent, ListPromotionsHeaderParams, ListPromotionsResponse, ListReturnsContent, ListReturnsResponse, ListSavedPaymentMethodsContent, ListSavedPaymentMethodsPathParams, ListSavedPaymentMethodsQuery, ListSavedPaymentMethodsResponse, ListSellerReviewsContent, ListSellerReviewsPathParams, ListSellerReviewsResponse, ListSimilarProductsContent, ListSimilarProductsHeaderParams, ListSimilarProductsQuery, ListSimilarProductsResponse, ListSkusContent, ListSkusHeaderParams, ListSkusQuery, ListSkusResponse, ListSubscriptionsContent, ListSubscriptionsResponse, ListUpsellProductsContent, ListUpsellProductsHeaderParams, ListUpsellProductsQuery, ListUpsellProductsResponse, ListUserReviewsContent, ListUserReviewsPathParams, ListUserReviewsResponse, LoginPosDeviceWithEmailBody, LoginPosDeviceWithEmailContent, LoginPosDeviceWithEmailHeaderParams, LoginPosDeviceWithEmailResponse, LoginPosDeviceWithPhoneBody, LoginPosDeviceWithPhoneContent, LoginPosDeviceWithPhoneHeaderParams, LoginPosDeviceWithPhoneResponse, LoginPosDeviceWithWhatsappBody, LoginPosDeviceWithWhatsappContent, LoginPosDeviceWithWhatsappHeaderParams, LoginPosDeviceWithWhatsappResponse, LoginWithEmailBody, LoginWithEmailContent, LoginWithEmailHeaderParams, LoginWithEmailResponse, LoginWithPasswordBody, LoginWithPasswordContent, LoginWithPasswordResponse, LoginWithPhoneBody, LoginWithPhoneContent, LoginWithPhoneHeaderParams, LoginWithPhoneResponse, LoginWithWhatsappBody, LoginWithWhatsappContent, LoginWithWhatsappHeaderParams, LoginWithWhatsappResponse, LogoutContent, LogoutFromPosDeviceResponse, LogoutResponse, LotBatchDetail, LoyaltyPointActivity, ManualPaymentMethod, MarketplaceItem, MarketplaceProduct, MarketplaceProductDetail, MeasurementUnit, MemoryTokenStorage, MultiSelectAttribute, NetbankingPayment, NotificationChannelPreferences, NotificationChannelPreferencesInput, NotificationPreferences, NotificationPreferencesInput, NumberAttribute, Order, OrderClient, OrderDetail, OrderItem, OrderList, OrderPayment, OrderRefund, OrderReturn, OrderReturnItem, OrderReturnItemInput, OrderShipment, Pagination, PairPosDeviceBody, PairPosDeviceContent, PairPosDeviceResponse, PanDetail, PartialCollectAndDelivery, PartialCollectAndDeliveryInput, PauseSubscriptionInput, PayWithCardInput, PayWithCashInput, PayWithUpiInput, PaymentInfo, PaymentMethodPayloadInput, PaymentProvider, PaymentsClient, PayuPaymentInfo, PayuPaymentMethod, PercentageDiscountRule, Pincode, PosApplyCouponBody, PosApplyCouponContent, PosApplyCouponPathParams, PosApplyCouponResponse, PosCreateCartAddressBody, PosCreateCartAddressContent, PosCreateCartAddressPathParams, PosCreateCartAddressResponse, PosCreateCartBody, PosCreateCartContent, PosCreateCartResponse, PosDeleteCartPathParams, PosDeleteCartResponse, PosDevice, PosDeviceClaimedUser, PosEvaluateCouponsContent, PosEvaluateCouponsPathParams, PosEvaluateCouponsResponse, PosEvaluatePromotionsContent, PosEvaluatePromotionsPathParams, PosEvaluatePromotionsResponse, PosGetCartContent, PosGetCartPathParams, PosGetCartResponse, PosGetPaymentStatusContent, PosGetPaymentStatusPathParams, PosGetPaymentStatusResponse, PosGetProductDetailContent, PosGetProductDetailHeaderParams, PosGetProductDetailPathParams, PosGetProductDetailQuery, PosGetProductDetailResponse, PosGetUserCartContent, PosGetUserCartPathParams, PosGetUserCartResponse, PosGetVariantDetailContent, PosGetVariantDetailHeaderParams, PosGetVariantDetailPathParams, PosGetVariantDetailQuery, PosGetVariantDetailResponse, PosListCategoriesContent, PosListCategoriesQuery, PosListCategoriesResponse, PosListCouponsContent, PosListCouponsHeaderParams, PosListCouponsResponse, PosListCrosssellProductsContent, PosListCrosssellProductsHeaderParams, PosListCrosssellProductsQuery, PosListCrosssellProductsResponse, PosListProductReviewsContent, PosListProductReviewsPathParams, PosListProductReviewsQuery, PosListProductReviewsResponse, PosListProductVariantsContent, PosListProductVariantsHeaderParams, PosListProductVariantsPathParams, PosListProductVariantsQuery, PosListProductVariantsResponse, PosListProductsContent, PosListProductsHeaderParams, PosListProductsQuery, PosListProductsResponse, PosListPromotionsContent, PosListPromotionsHeaderParams, PosListPromotionsResponse, PosListSimilarProductsContent, PosListSimilarProductsHeaderParams, PosListSimilarProductsQuery, PosListSimilarProductsResponse, PosListSkusContent, PosListSkusHeaderParams, PosListSkusQuery, PosListSkusResponse, PosListUpsellProductsContent, PosListUpsellProductsHeaderParams, PosListUpsellProductsQuery, PosListUpsellProductsResponse, PosLocation, PosRedeemCreditBalanceBody, PosRedeemCreditBalanceContent, PosRedeemCreditBalancePathParams, PosRedeemCreditBalanceResponse, PosRedeemLoyaltyPointsBody, PosRedeemLoyaltyPointsContent, PosRedeemLoyaltyPointsPathParams, PosRedeemLoyaltyPointsResponse, PosRemoveCouponContent, PosRemoveCouponPathParams, PosRemoveCouponResponse, PosRemoveCreditBalanceContent, PosRemoveCreditBalancePathParams, PosRemoveCreditBalanceResponse, PosRemoveLoyaltyPointsContent, PosRemoveLoyaltyPointsPathParams, PosRemoveLoyaltyPointsResponse, PosSearchProductsBody, PosSearchProductsContent, PosSearchProductsHeaderParams, PosSearchProductsResponse, PosUpdateCartBody, PosUpdateCartContent, PosUpdateCartPathParams, PosUpdateCartResponse, PosUpdateCustomerWithEmailInput, PosUpdateCustomerWithIdInput, PosUpdateCustomerWithPhoneInput, PosUpdateFulfillmentPreferenceBody, PosUpdateFulfillmentPreferenceContent, PosUpdateFulfillmentPreferencePathParams, PosUpdateFulfillmentPreferenceResponse, PosUser, Product, ProductAttribute, ProductBundleItem, ProductCategory, ProductDetail, ProductImage, ProductPricing, ProductPromotion, ProductReview, ProductShipping, ProductSubscription, ProductVideo, Promotion, PromotionType, type Readable, RedeemCreditBalanceBody, RedeemCreditBalanceContent, RedeemCreditBalancePathParams, RedeemCreditBalanceResponse, RedeemLoyaltyPointsBody, RedeemLoyaltyPointsContent, RedeemLoyaltyPointsPathParams, RedeemLoyaltyPointsResponse, RefreshPosAccessTokenBody, RefreshPosAccessTokenContent, RefreshPosAccessTokenResponse, RefreshTokenBody, RefreshTokenContent, RefreshTokenResponse, RegisterWithEmailBody, RegisterWithEmailContent, RegisterWithEmailPasswordInput, RegisterWithEmailResponse, RegisterWithPasswordBody, RegisterWithPasswordContent, RegisterWithPasswordResponse, RegisterWithPhoneBody, RegisterWithPhoneContent, RegisterWithPhonePasswordInput, RegisterWithPhoneResponse, RegisterWithWhatsappBody, RegisterWithWhatsappContent, RegisterWithWhatsappResponse, RemoveCouponContent, RemoveCouponPathParams, RemoveCouponResponse, RemoveCreditBalanceContent, RemoveCreditBalancePathParams, RemoveCreditBalanceResponse, RemoveLoyaltyPointsContent, RemoveLoyaltyPointsPathParams, RemoveLoyaltyPointsResponse, RemoveProfileImagePathParams, RemoveProfileImageResponse, ResendDirectOtpBody, ResendDirectOtpContent, ResendDirectOtpResponse, ResetPasswordBody, ResetPasswordContent, ResetPasswordResponse, ResponseUtils, RetryOrderPaymentBody, RetryOrderPaymentContent, RetryOrderPaymentPathParams, RetryOrderPaymentResponse, RevokeSubscriptionInput, SavedPaymentMethod, SearchMarketplaceProductsBody, SearchMarketplaceProductsContent, SearchMarketplaceProductsHeaderParams, SearchMarketplaceProductsResponse, SearchProductInput, SearchProductsBody, SearchProductsContent, SearchProductsHeaderParams, SearchProductsResponse, SellerDetail, SellerInfo, SellerReview, SellerReviewStats, Seo, ServiceProviderBasicDetail, ShipmentItem, ShipmentStatus, SingleSelectAttribute, SingleSelectOption, StoreConfig, StoreConfigClient, StoreTemplate, StorefrontAPIClient, StorefrontSDK, StorefrontSDK as default, StorefrontSDKOptions, SubscribeNewsletterBody, SubscribeNewsletterResponse, Subscription, SubscriptionBehaviourInput, SubscriptionDetail, SubscriptionInvoiceItem, SubscriptionInvoiceItemInput, SupportedDefaultHeaders, TextAttribute, type TokenStorage, TrackAnalyticsEventBody, TrackAnalyticsEventResponse, UnclaimPosDeviceContent, UnclaimPosDevicePathParams, UnclaimPosDeviceResponse, UnserviceableItem, UpdateAddressDetailBody, UpdateAddressDetailContent, UpdateAddressDetailPathParams, UpdateAddressDetailResponse, UpdateCartBody, UpdateCartContent, UpdateCartItemInput, UpdateCartPathParams, UpdateCartResponse, UpdateDigitalProductSubscriptionInput, UpdateDocumentContent, UpdateDocumentFormData, UpdateDocumentInput, UpdateDocumentPathParams, UpdateDocumentResponse, UpdateFulfillmentPreferenceBody, UpdateFulfillmentPreferenceContent, UpdateFulfillmentPreferencePathParams, UpdateFulfillmentPreferenceResponse, UpdateNotificationPreferencesBody, UpdateNotificationPreferencesContent, UpdateNotificationPreferencesPathParams, UpdateNotificationPreferencesResponse, UpdatePhysicalProductSubscriptionInput, UpdatePosCartCustomerBody, UpdatePosCartCustomerContent, UpdatePosCartCustomerPathParams, UpdatePosCartCustomerResponse, UpdateProfileImageContent, UpdateProfileImageFormData, UpdateProfileImagePathParams, UpdateProfileImageResponse, UpdateSubscriptionBody, UpdateSubscriptionContent, UpdateSubscriptionPathParams, UpdateSubscriptionResponse, UpdateUserBody, UpdateUserContent, UpdateUserPathParams, UpdateUserResponse, UpiPayment, User, type UserInfo, UserInput, Variant, VariantDetail, VariantOption, VerifyDocumentBody, VerifyDocumentContent, VerifyDocumentPathParams, VerifyDocumentResponse, VerifyOtpBody, VerifyOtpContent, VerifyOtpResponse, VerifyPosLoginOtpBody, VerifyPosLoginOtpContent, VerifyPosLoginOtpResponse, VerifyVpaContent, VerifyVpaQuery, VerifyVpaResponse, VolumeBasedCouponPromotion, VolumeBasedPromotion, VolumeBasedRule, WalletPayment, type Writable, type components, createDebugMiddleware, createTimeoutMiddleware, executeRequest, extractRequestBody, getPathnameFromUrl, mergeAndTransformHeaders, mergeHeaders, type operations, type paths, transformHeaders };
|
|
16098
16188
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.iife.js
CHANGED
|
@@ -1745,19 +1745,15 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
1745
1745
|
/**
|
|
1746
1746
|
* Search for products
|
|
1747
1747
|
*
|
|
1748
|
-
* @param searchData - The search query and
|
|
1748
|
+
* @param searchData - The search query, filters, sort, and pagination options
|
|
1749
1749
|
* @param headers - Optional header parameters (customer_group_id, etc.)
|
|
1750
|
-
* @returns Promise with search results including
|
|
1750
|
+
* @returns Promise with search results including SKUs, facet distribution, facet stats, and pagination
|
|
1751
1751
|
*
|
|
1752
1752
|
* @example
|
|
1753
1753
|
* ```typescript
|
|
1754
|
+
* // Basic search
|
|
1754
1755
|
* const { data, error } = await sdk.catalog.searchProducts({
|
|
1755
1756
|
* query: "smartphone",
|
|
1756
|
-
* filters: {
|
|
1757
|
-
* category: ["electronics", "mobile"],
|
|
1758
|
-
* price_range: { min: 100, max: 1000 },
|
|
1759
|
-
* brand: ["Apple", "Samsung"] // facet names depend on product configuration
|
|
1760
|
-
* },
|
|
1761
1757
|
* page: 1,
|
|
1762
1758
|
* limit: 20
|
|
1763
1759
|
* });
|
|
@@ -1769,17 +1765,51 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
1769
1765
|
*
|
|
1770
1766
|
* console.log("Search results:", data.skus?.length || 0, "products found");
|
|
1771
1767
|
* console.log("Facet distribution:", data.facet_distribution);
|
|
1772
|
-
* console.log("
|
|
1768
|
+
* console.log("Facet stats:", data.facet_stats);
|
|
1769
|
+
* console.log("Pagination:", data.pagination);
|
|
1773
1770
|
*
|
|
1774
1771
|
* data.skus?.forEach(sku => {
|
|
1775
1772
|
* console.log(`Found: ${sku.product_name} - ${sku.pricing?.selling_price}`);
|
|
1776
1773
|
* });
|
|
1777
1774
|
*
|
|
1775
|
+
* // With filter (string expression — Meilisearch syntax)
|
|
1776
|
+
* const { data: filtered, error: filteredError } = await sdk.catalog.searchProducts({
|
|
1777
|
+
* query: "laptop",
|
|
1778
|
+
* filter: "pricing.selling_price 500 TO 2000 AND product_type = physical",
|
|
1779
|
+
* sort: ["pricing.selling_price:asc"],
|
|
1780
|
+
* facets: ["product_type", "categories.name", "tags"],
|
|
1781
|
+
* page: 1,
|
|
1782
|
+
* limit: 10
|
|
1783
|
+
* });
|
|
1784
|
+
*
|
|
1785
|
+
* // With filter (array of conditions — combined with AND)
|
|
1786
|
+
* const { data: arrayFiltered, error: arrayError } = await sdk.catalog.searchProducts({
|
|
1787
|
+
* query: "shoes",
|
|
1788
|
+
* filter: ["product_type = physical", "rating >= 4", "stock_available > 0"],
|
|
1789
|
+
* sort: ["rating:desc"],
|
|
1790
|
+
* facets: ["*"],
|
|
1791
|
+
* page: 1,
|
|
1792
|
+
* limit: 25
|
|
1793
|
+
* });
|
|
1794
|
+
*
|
|
1795
|
+
* // With filter (nested arrays — inner arrays use OR, outer uses AND)
|
|
1796
|
+
* const { data: nestedFiltered, error: nestedError } = await sdk.catalog.searchProducts({
|
|
1797
|
+
* query: "headphones",
|
|
1798
|
+
* filter: [
|
|
1799
|
+
* "pricing.selling_price 50 TO 300",
|
|
1800
|
+
* ["product_type = physical", "product_type = bundle"]
|
|
1801
|
+
* ],
|
|
1802
|
+
* page: 1,
|
|
1803
|
+
* limit: 25
|
|
1804
|
+
* });
|
|
1805
|
+
*
|
|
1778
1806
|
* // Override customer group ID for this specific request
|
|
1779
1807
|
* const { data: overrideData, error: overrideError } = await sdk.catalog.searchProducts(
|
|
1780
1808
|
* {
|
|
1781
1809
|
* query: "laptop",
|
|
1782
|
-
*
|
|
1810
|
+
* filter: "categories.name = computers",
|
|
1811
|
+
* page: 1,
|
|
1812
|
+
* limit: 20
|
|
1783
1813
|
* },
|
|
1784
1814
|
* {
|
|
1785
1815
|
* "x-customer-group-id": "01H9XYZ12345USERID" // Override default SDK config
|