@commercengine/storefront-sdk 0.4.2 → 0.4.4
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.cjs +22 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +345 -13
- package/dist/index.d.ts +345 -13
- package/dist/index.iife.js +21 -0
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2475,6 +2475,16 @@ interface components {
|
|
|
2475
2475
|
is_coupon_applied: boolean;
|
|
2476
2476
|
/** @description Code of the applied coupon. */
|
|
2477
2477
|
coupon_code: string | null;
|
|
2478
|
+
/**
|
|
2479
|
+
* Format: double
|
|
2480
|
+
* @description Discount amount due to the coupon.
|
|
2481
|
+
*/
|
|
2482
|
+
coupon_discount_amount: number;
|
|
2483
|
+
/**
|
|
2484
|
+
* Format: double
|
|
2485
|
+
* @description Discount amount due to the coupon.
|
|
2486
|
+
*/
|
|
2487
|
+
coupon_discount_percent: number;
|
|
2478
2488
|
/**
|
|
2479
2489
|
* Format: double
|
|
2480
2490
|
* @description Discount amount due to promotions(If Applied).
|
|
@@ -2482,9 +2492,9 @@ interface components {
|
|
|
2482
2492
|
promotion_discount_amount: number;
|
|
2483
2493
|
/**
|
|
2484
2494
|
* Format: double
|
|
2485
|
-
* @description Discount amount due to
|
|
2495
|
+
* @description Discount amount due to promotions(If Applied).
|
|
2486
2496
|
*/
|
|
2487
|
-
|
|
2497
|
+
promotion_discount_percent?: number;
|
|
2488
2498
|
/**
|
|
2489
2499
|
* Format: double
|
|
2490
2500
|
* @description Subtotal amount for items in the cart.
|
|
@@ -2516,6 +2526,7 @@ interface components {
|
|
|
2516
2526
|
shipping_provider_name: string | null;
|
|
2517
2527
|
courier_company_id: string | null;
|
|
2518
2528
|
courier_company_name: string | null;
|
|
2529
|
+
estimated_delivery_days: number | null;
|
|
2519
2530
|
/**
|
|
2520
2531
|
* Format: double
|
|
2521
2532
|
* @description The additional charge applied to cover the costs associated with processing, packaging, and handling an order. This fee is separate from shipping charges and may include materials, or special handling requirements.
|
|
@@ -2559,7 +2570,7 @@ interface components {
|
|
|
2559
2570
|
shipping_address: components["schemas"]["CustomerAddress"];
|
|
2560
2571
|
/** @description Details about the currency being used, including `name`, `code`, and `symbol`. */
|
|
2561
2572
|
currency: components["schemas"]["Currency"];
|
|
2562
|
-
/** @description Additional metadata associated with the cart.
|
|
2573
|
+
/** @description Additional metadata associated with the cart. */
|
|
2563
2574
|
metadata: {
|
|
2564
2575
|
[key: string]: string;
|
|
2565
2576
|
} | null;
|
|
@@ -3078,11 +3089,15 @@ interface components {
|
|
|
3078
3089
|
customer_note?: string | null;
|
|
3079
3090
|
is_promotion_applied?: boolean;
|
|
3080
3091
|
/** Format: double */
|
|
3081
|
-
promotion_discount_amount?: number
|
|
3092
|
+
promotion_discount_amount?: number;
|
|
3093
|
+
/** Format: double */
|
|
3094
|
+
promotion_discount_percent?: number;
|
|
3082
3095
|
is_coupon_applied?: boolean;
|
|
3083
3096
|
coupon_code?: string | null;
|
|
3084
3097
|
/** Format: double */
|
|
3085
|
-
coupon_discount_amount?: number
|
|
3098
|
+
coupon_discount_amount?: number;
|
|
3099
|
+
/** Format: double */
|
|
3100
|
+
coupon_discount_percent?: number;
|
|
3086
3101
|
/** @description Information about the promotional offers that have been applied to the cart. */
|
|
3087
3102
|
applied_promotions: components["schemas"]["AppliedPromotion"][];
|
|
3088
3103
|
/** @description This key provides details about the savings in cart after coupon have been applied to the cart. */
|
|
@@ -3115,7 +3130,10 @@ interface components {
|
|
|
3115
3130
|
/** Format: double */
|
|
3116
3131
|
shipping_amount_including_tax?: number;
|
|
3117
3132
|
shipping_provider_id?: string | null;
|
|
3133
|
+
shipping_provider_name?: string | null;
|
|
3118
3134
|
courier_company_id?: string | null;
|
|
3135
|
+
courier_company_name?: string | null;
|
|
3136
|
+
estimated_delivery_days?: number | null;
|
|
3119
3137
|
/** Format: double */
|
|
3120
3138
|
handling_charge_excluding_tax?: number;
|
|
3121
3139
|
/** Format: double */
|
|
@@ -3126,8 +3144,6 @@ interface components {
|
|
|
3126
3144
|
total_tax?: number;
|
|
3127
3145
|
/** Format: double */
|
|
3128
3146
|
grand_total?: number;
|
|
3129
|
-
loyalty_point_redeemed?: number;
|
|
3130
|
-
loyalty_point_earned?: number;
|
|
3131
3147
|
loyalty_points_earned?: number;
|
|
3132
3148
|
loyalty_points_redeemed?: number;
|
|
3133
3149
|
credit_balance_used?: number;
|
|
@@ -3142,6 +3158,10 @@ interface components {
|
|
|
3142
3158
|
code?: string;
|
|
3143
3159
|
symbol?: string;
|
|
3144
3160
|
};
|
|
3161
|
+
/** @description Additional metadata associated with the order. */
|
|
3162
|
+
metadata?: {
|
|
3163
|
+
[key: string]: string;
|
|
3164
|
+
} | null;
|
|
3145
3165
|
/** @description order cancellation option should be visible only if this flag is true. */
|
|
3146
3166
|
is_cancellation_allowed?: boolean;
|
|
3147
3167
|
/** @description to show refundable details in order cancellation ui. */
|
|
@@ -3160,10 +3180,7 @@ interface components {
|
|
|
3160
3180
|
*/
|
|
3161
3181
|
payment_mode?: "original-payment-mode" | "bank-transfer";
|
|
3162
3182
|
};
|
|
3163
|
-
|
|
3164
|
-
created_at?: string;
|
|
3165
|
-
/** Format: date-time */
|
|
3166
|
-
modified_at?: string;
|
|
3183
|
+
feedback?: string | null;
|
|
3167
3184
|
};
|
|
3168
3185
|
OrderItem: {
|
|
3169
3186
|
product_id: string;
|
|
@@ -3249,7 +3266,7 @@ interface components {
|
|
|
3249
3266
|
/** Format: date-time */
|
|
3250
3267
|
payment_date?: string;
|
|
3251
3268
|
payment_reference_number?: string | null;
|
|
3252
|
-
payment_method?: string;
|
|
3269
|
+
payment_method?: string | null;
|
|
3253
3270
|
icon_url?: string | null;
|
|
3254
3271
|
};
|
|
3255
3272
|
/**
|
|
@@ -4511,6 +4528,27 @@ interface components {
|
|
|
4511
4528
|
};
|
|
4512
4529
|
};
|
|
4513
4530
|
};
|
|
4531
|
+
/** @description Payload accepted */
|
|
4532
|
+
WebhookAccepted: {
|
|
4533
|
+
headers: {
|
|
4534
|
+
[name: string]: unknown;
|
|
4535
|
+
};
|
|
4536
|
+
content?: never;
|
|
4537
|
+
};
|
|
4538
|
+
/** @description Endpoint permanently removed */
|
|
4539
|
+
WebhookGone: {
|
|
4540
|
+
headers: {
|
|
4541
|
+
[name: string]: unknown;
|
|
4542
|
+
};
|
|
4543
|
+
content?: never;
|
|
4544
|
+
};
|
|
4545
|
+
/** @description Temporary server error — we will retry */
|
|
4546
|
+
WebhookServerError: {
|
|
4547
|
+
headers: {
|
|
4548
|
+
[name: string]: unknown;
|
|
4549
|
+
};
|
|
4550
|
+
content?: never;
|
|
4551
|
+
};
|
|
4514
4552
|
};
|
|
4515
4553
|
parameters: {
|
|
4516
4554
|
/** @description page number of pagination list */
|
|
@@ -8662,6 +8700,286 @@ interface operations {
|
|
|
8662
8700
|
404: components["responses"]["NotFound"];
|
|
8663
8701
|
};
|
|
8664
8702
|
};
|
|
8703
|
+
"order-created": {
|
|
8704
|
+
parameters: {
|
|
8705
|
+
query?: never;
|
|
8706
|
+
header?: never;
|
|
8707
|
+
path?: never;
|
|
8708
|
+
cookie?: never;
|
|
8709
|
+
};
|
|
8710
|
+
requestBody: {
|
|
8711
|
+
content: {
|
|
8712
|
+
"application/json": components["schemas"]["OrderDetail"];
|
|
8713
|
+
};
|
|
8714
|
+
};
|
|
8715
|
+
responses: {
|
|
8716
|
+
400: components["responses"]["BadRequest"];
|
|
8717
|
+
401: components["responses"]["Unauthorized"];
|
|
8718
|
+
410: components["responses"]["WebhookGone"];
|
|
8719
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8720
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8721
|
+
};
|
|
8722
|
+
};
|
|
8723
|
+
"order-confirmed": {
|
|
8724
|
+
parameters: {
|
|
8725
|
+
query?: never;
|
|
8726
|
+
header?: never;
|
|
8727
|
+
path?: never;
|
|
8728
|
+
cookie?: never;
|
|
8729
|
+
};
|
|
8730
|
+
requestBody: {
|
|
8731
|
+
content: {
|
|
8732
|
+
"application/json": components["schemas"]["OrderDetail"];
|
|
8733
|
+
};
|
|
8734
|
+
};
|
|
8735
|
+
responses: {
|
|
8736
|
+
400: components["responses"]["BadRequest"];
|
|
8737
|
+
401: components["responses"]["Unauthorized"];
|
|
8738
|
+
410: components["responses"]["WebhookGone"];
|
|
8739
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8740
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8741
|
+
};
|
|
8742
|
+
};
|
|
8743
|
+
"order-cancelled": {
|
|
8744
|
+
parameters: {
|
|
8745
|
+
query?: never;
|
|
8746
|
+
header?: never;
|
|
8747
|
+
path?: never;
|
|
8748
|
+
cookie?: never;
|
|
8749
|
+
};
|
|
8750
|
+
requestBody: {
|
|
8751
|
+
content: {
|
|
8752
|
+
"application/json": components["schemas"]["OrderDetail"];
|
|
8753
|
+
};
|
|
8754
|
+
};
|
|
8755
|
+
responses: {
|
|
8756
|
+
400: components["responses"]["BadRequest"];
|
|
8757
|
+
401: components["responses"]["Unauthorized"];
|
|
8758
|
+
410: components["responses"]["WebhookGone"];
|
|
8759
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8760
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8761
|
+
};
|
|
8762
|
+
};
|
|
8763
|
+
"order-completed": {
|
|
8764
|
+
parameters: {
|
|
8765
|
+
query?: never;
|
|
8766
|
+
header?: never;
|
|
8767
|
+
path?: never;
|
|
8768
|
+
cookie?: never;
|
|
8769
|
+
};
|
|
8770
|
+
requestBody: {
|
|
8771
|
+
content: {
|
|
8772
|
+
"application/json": components["schemas"]["OrderDetail"];
|
|
8773
|
+
};
|
|
8774
|
+
};
|
|
8775
|
+
responses: {
|
|
8776
|
+
400: components["responses"]["BadRequest"];
|
|
8777
|
+
401: components["responses"]["Unauthorized"];
|
|
8778
|
+
410: components["responses"]["WebhookGone"];
|
|
8779
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8780
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8781
|
+
};
|
|
8782
|
+
};
|
|
8783
|
+
"payment-success": {
|
|
8784
|
+
parameters: {
|
|
8785
|
+
query?: never;
|
|
8786
|
+
header?: never;
|
|
8787
|
+
path?: never;
|
|
8788
|
+
cookie?: never;
|
|
8789
|
+
};
|
|
8790
|
+
requestBody: {
|
|
8791
|
+
content: {
|
|
8792
|
+
"application/json": components["schemas"]["OrderPayment"];
|
|
8793
|
+
};
|
|
8794
|
+
};
|
|
8795
|
+
responses: {
|
|
8796
|
+
400: components["responses"]["BadRequest"];
|
|
8797
|
+
401: components["responses"]["Unauthorized"];
|
|
8798
|
+
410: components["responses"]["WebhookGone"];
|
|
8799
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8800
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8801
|
+
};
|
|
8802
|
+
};
|
|
8803
|
+
"payment-failed": {
|
|
8804
|
+
parameters: {
|
|
8805
|
+
query?: never;
|
|
8806
|
+
header?: never;
|
|
8807
|
+
path?: never;
|
|
8808
|
+
cookie?: never;
|
|
8809
|
+
};
|
|
8810
|
+
requestBody: {
|
|
8811
|
+
content: {
|
|
8812
|
+
"application/json": components["schemas"]["OrderPayment"];
|
|
8813
|
+
};
|
|
8814
|
+
};
|
|
8815
|
+
responses: {
|
|
8816
|
+
400: components["responses"]["BadRequest"];
|
|
8817
|
+
401: components["responses"]["Unauthorized"];
|
|
8818
|
+
410: components["responses"]["WebhookGone"];
|
|
8819
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8820
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8821
|
+
};
|
|
8822
|
+
};
|
|
8823
|
+
"payment-retried": {
|
|
8824
|
+
parameters: {
|
|
8825
|
+
query?: never;
|
|
8826
|
+
header?: never;
|
|
8827
|
+
path?: never;
|
|
8828
|
+
cookie?: never;
|
|
8829
|
+
};
|
|
8830
|
+
requestBody: {
|
|
8831
|
+
content: {
|
|
8832
|
+
"application/json": components["schemas"]["PaymentInfo"];
|
|
8833
|
+
};
|
|
8834
|
+
};
|
|
8835
|
+
responses: {
|
|
8836
|
+
400: components["responses"]["BadRequest"];
|
|
8837
|
+
401: components["responses"]["Unauthorized"];
|
|
8838
|
+
410: components["responses"]["WebhookGone"];
|
|
8839
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8840
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8841
|
+
};
|
|
8842
|
+
};
|
|
8843
|
+
"shipment-created": {
|
|
8844
|
+
parameters: {
|
|
8845
|
+
query?: never;
|
|
8846
|
+
header?: never;
|
|
8847
|
+
path?: never;
|
|
8848
|
+
cookie?: never;
|
|
8849
|
+
};
|
|
8850
|
+
requestBody: {
|
|
8851
|
+
content: {
|
|
8852
|
+
"application/json": components["schemas"]["OrderShipment"];
|
|
8853
|
+
};
|
|
8854
|
+
};
|
|
8855
|
+
responses: {
|
|
8856
|
+
400: components["responses"]["BadRequest"];
|
|
8857
|
+
401: components["responses"]["Unauthorized"];
|
|
8858
|
+
410: components["responses"]["WebhookGone"];
|
|
8859
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8860
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8861
|
+
};
|
|
8862
|
+
};
|
|
8863
|
+
"shipment-updated": {
|
|
8864
|
+
parameters: {
|
|
8865
|
+
query?: never;
|
|
8866
|
+
header?: never;
|
|
8867
|
+
path?: never;
|
|
8868
|
+
cookie?: never;
|
|
8869
|
+
};
|
|
8870
|
+
requestBody: {
|
|
8871
|
+
content: {
|
|
8872
|
+
"application/json": components["schemas"]["OrderShipment"];
|
|
8873
|
+
};
|
|
8874
|
+
};
|
|
8875
|
+
responses: {
|
|
8876
|
+
400: components["responses"]["BadRequest"];
|
|
8877
|
+
401: components["responses"]["Unauthorized"];
|
|
8878
|
+
410: components["responses"]["WebhookGone"];
|
|
8879
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8880
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8881
|
+
};
|
|
8882
|
+
};
|
|
8883
|
+
"shipment-cancelled": {
|
|
8884
|
+
parameters: {
|
|
8885
|
+
query?: never;
|
|
8886
|
+
header?: never;
|
|
8887
|
+
path?: never;
|
|
8888
|
+
cookie?: never;
|
|
8889
|
+
};
|
|
8890
|
+
requestBody: {
|
|
8891
|
+
content: {
|
|
8892
|
+
"application/json": components["schemas"]["OrderShipment"];
|
|
8893
|
+
};
|
|
8894
|
+
};
|
|
8895
|
+
responses: {
|
|
8896
|
+
400: components["responses"]["BadRequest"];
|
|
8897
|
+
401: components["responses"]["Unauthorized"];
|
|
8898
|
+
410: components["responses"]["WebhookGone"];
|
|
8899
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8900
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8901
|
+
};
|
|
8902
|
+
};
|
|
8903
|
+
"shipment-delivered": {
|
|
8904
|
+
parameters: {
|
|
8905
|
+
query?: never;
|
|
8906
|
+
header?: never;
|
|
8907
|
+
path?: never;
|
|
8908
|
+
cookie?: never;
|
|
8909
|
+
};
|
|
8910
|
+
requestBody: {
|
|
8911
|
+
content: {
|
|
8912
|
+
"application/json": components["schemas"]["OrderShipment"];
|
|
8913
|
+
};
|
|
8914
|
+
};
|
|
8915
|
+
responses: {
|
|
8916
|
+
400: components["responses"]["BadRequest"];
|
|
8917
|
+
401: components["responses"]["Unauthorized"];
|
|
8918
|
+
410: components["responses"]["WebhookGone"];
|
|
8919
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8920
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8921
|
+
};
|
|
8922
|
+
};
|
|
8923
|
+
"payment-refund-created": {
|
|
8924
|
+
parameters: {
|
|
8925
|
+
query?: never;
|
|
8926
|
+
header?: never;
|
|
8927
|
+
path?: never;
|
|
8928
|
+
cookie?: never;
|
|
8929
|
+
};
|
|
8930
|
+
requestBody: {
|
|
8931
|
+
content: {
|
|
8932
|
+
"application/json": components["schemas"]["OrderRefund"];
|
|
8933
|
+
};
|
|
8934
|
+
};
|
|
8935
|
+
responses: {
|
|
8936
|
+
400: components["responses"]["BadRequest"];
|
|
8937
|
+
401: components["responses"]["Unauthorized"];
|
|
8938
|
+
410: components["responses"]["WebhookGone"];
|
|
8939
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8940
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8941
|
+
};
|
|
8942
|
+
};
|
|
8943
|
+
"payment-refund-success": {
|
|
8944
|
+
parameters: {
|
|
8945
|
+
query?: never;
|
|
8946
|
+
header?: never;
|
|
8947
|
+
path?: never;
|
|
8948
|
+
cookie?: never;
|
|
8949
|
+
};
|
|
8950
|
+
requestBody: {
|
|
8951
|
+
content: {
|
|
8952
|
+
"application/json": components["schemas"]["OrderRefund"];
|
|
8953
|
+
};
|
|
8954
|
+
};
|
|
8955
|
+
responses: {
|
|
8956
|
+
400: components["responses"]["BadRequest"];
|
|
8957
|
+
401: components["responses"]["Unauthorized"];
|
|
8958
|
+
410: components["responses"]["WebhookGone"];
|
|
8959
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8960
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8961
|
+
};
|
|
8962
|
+
};
|
|
8963
|
+
"payment-refund-failed": {
|
|
8964
|
+
parameters: {
|
|
8965
|
+
query?: never;
|
|
8966
|
+
header?: never;
|
|
8967
|
+
path?: never;
|
|
8968
|
+
cookie?: never;
|
|
8969
|
+
};
|
|
8970
|
+
requestBody: {
|
|
8971
|
+
content: {
|
|
8972
|
+
"application/json": components["schemas"]["OrderRefund"];
|
|
8973
|
+
};
|
|
8974
|
+
};
|
|
8975
|
+
responses: {
|
|
8976
|
+
400: components["responses"]["BadRequest"];
|
|
8977
|
+
401: components["responses"]["Unauthorized"];
|
|
8978
|
+
410: components["responses"]["WebhookGone"];
|
|
8979
|
+
"2XX": components["responses"]["WebhookAccepted"];
|
|
8980
|
+
"5XX": components["responses"]["WebhookServerError"];
|
|
8981
|
+
};
|
|
8982
|
+
};
|
|
8665
8983
|
}
|
|
8666
8984
|
|
|
8667
8985
|
type ApiResult<T> = {
|
|
@@ -9792,6 +10110,16 @@ declare class CustomerClient extends StorefrontAPIClient {
|
|
|
9792
10110
|
listCustomerReviews(pathParams: ListUserReviewsPathParams): Promise<ApiResult<ListUserReviewsContent>>;
|
|
9793
10111
|
}
|
|
9794
10112
|
|
|
10113
|
+
/**
|
|
10114
|
+
* Client for interacting with store config endpoints
|
|
10115
|
+
*/
|
|
10116
|
+
declare class StoreConfigClient extends StorefrontAPIClient {
|
|
10117
|
+
/**
|
|
10118
|
+
* Get store config
|
|
10119
|
+
*/
|
|
10120
|
+
getStoreConfig(): Promise<ApiResult<GetConfigContent>>;
|
|
10121
|
+
}
|
|
10122
|
+
|
|
9795
10123
|
/**
|
|
9796
10124
|
* Token storage interface for the auth middleware
|
|
9797
10125
|
*/
|
|
@@ -10057,6 +10385,10 @@ declare class StorefrontSDK {
|
|
|
10057
10385
|
* Client for order-related endpoints
|
|
10058
10386
|
*/
|
|
10059
10387
|
readonly order: OrderClient;
|
|
10388
|
+
/**
|
|
10389
|
+
* Client for store config-related endpoints
|
|
10390
|
+
*/
|
|
10391
|
+
readonly store: StoreConfigClient;
|
|
10060
10392
|
/**
|
|
10061
10393
|
* Create a new StorefrontSDK instance
|
|
10062
10394
|
*
|
|
@@ -10146,4 +10478,4 @@ declare class StorefrontSDK {
|
|
|
10146
10478
|
getDefaultHeaders(): SupportedDefaultHeaders | undefined;
|
|
10147
10479
|
}
|
|
10148
10480
|
|
|
10149
|
-
export { type AddCardBody, type AddCardContent, type AddCardResponse, type AddProfileImageContent, type AddProfileImageFormData, type AddProfileImagePathParams, type AddProfileImageResponse, type AddToWishlistBody, type AddToWishlistContent, type AddToWishlistPathParams, type AddToWishlistResponse, type ApiErrorResponse, type ApiResult, type ApplyCouponBody, type ApplyCouponContent, type ApplyCouponPathParams, type ApplyCouponResponse, AuthClient, BrowserTokenStorage, type CancelOrderBody, type CancelOrderContent, type CancelOrderPathParams, type CancelOrderResponse, CartClient, CatalogClient, type ChangePasswordBody, type ChangePasswordContent, type ChangePasswordResponse, type CheckPincodeServiceabilityContent, type CheckPincodeServiceabilityPathParams, type CheckPincodeServiceabilityResponse, type CheckVerificationStatusBody, type CheckVerificationStatusContent, type CheckVerificationStatusResponse, CookieTokenStorage, type CookieTokenStorageOptions, type CreateAddressBody, type CreateAddressContent, type CreateAddressPathParams, type CreateAddressResponse, type CreateCartAddressBody, type CreateCartAddressContent, type CreateCartAddressPathParams, type CreateCartAddressResponse, type CreateCartBody, type CreateCartContent, type CreateCartResponse, type CreateCustomerBody, type CreateCustomerContent, type CreateCustomerResponse, type CreateDocumentContent, type CreateDocumentFormData, type CreateDocumentPathParams, type CreateDocumentResponse, type CreateJuspayCustomerBody, type CreateJuspayCustomerContent, type CreateJuspayCustomerResponse, type CreateJuspayOrderBody, type CreateJuspayOrderContent, type CreateJuspayOrderResponse, type CreateNotificationPreferencesBody, type CreateNotificationPreferencesContent, type CreateNotificationPreferencesPathParams, type CreateNotificationPreferencesResponse, type CreateOrderBody, type CreateOrderContent, type CreateOrderResponse, type CreateOrderReturnBody, type CreateOrderReturnContent, type CreateOrderReturnPathParams, type CreateOrderReturnResponse, type CreateProductReviewFormData, type CreateProductReviewPathParams, type CreateProductReviewResponse, type CreateSubscriptionBody, type CreateSubscriptionContent, type CreateSubscriptionResponse, CustomerClient, type DeactivateUserPathParams, type DeactivateUserResponse, type DebugLoggerFn, type DeleteAddressPathParams, type DeleteAddressResponse, type DeleteCartPathParams, type DeleteCartResponse, type DeleteDocumentPathParams, type DeleteDocumentResponse, type DeleteFromWishlistBody, type DeleteFromWishlistContent, type DeleteFromWishlistPathParams, type DeleteFromWishlistResponse, type DeleteUserCartPathParams, type DeleteUserCartResponse, Environment, type ForgotPasswordBody, type ForgotPasswordContent, type ForgotPasswordResponse, type GenerateHashBody, type GenerateHashContent, type GenerateHashResponse, type GenerateOtpBody, type GenerateOtpContent, type GenerateOtpResponse, type GetAddressDetailContent, type GetAddressDetailPathParams, type GetAddressDetailResponse, type GetAnonymousTokenContent, type GetAnonymousTokenResponse, type GetCartContent, type GetCartPathParams, type GetCartResponse, type GetConfigContent, type GetConfigResponse, type GetCustomerDetailContent, type GetCustomerDetailPathParams, type GetCustomerDetailResponse, type GetDocumentContent, type GetDocumentPathParams, type GetDocumentResponse, type GetJuspayCustomerContent, type GetJuspayCustomerPathParams, type GetJuspayCustomerResponse, type GetLoyaltyDetailsContent, type GetLoyaltyDetailsPathParams, type GetLoyaltyDetailsResponse, type GetNotificationPreferencesContent, type GetNotificationPreferencesPathParams, type GetNotificationPreferencesResponse, type GetOrderDetailContent, type GetOrderDetailPathParams, type GetOrderDetailResponse, type GetOrderReturnDetailContent, type GetOrderReturnDetailPathParams, type GetOrderReturnDetailResponse, type GetPaymentStatusContent, type GetPaymentStatusPathParams, type GetPaymentStatusResponse, type GetProductDetailContent, type GetProductDetailHeaderParams, type GetProductDetailPathParams, type GetProductDetailResponse, type GetProfileImageContent, type GetProfileImagePathParams, type GetProfileImageResponse, type GetShippingMethodsBody, type GetShippingMethodsContent, type GetShippingMethodsResponse, type GetSubscriptionContent, type GetSubscriptionPathParams, type GetSubscriptionResponse, type GetUserCartContent, type GetUserCartPathParams, type GetUserCartResponse, type GetUserDetailContent, type GetUserDetailPathParams, type GetUserDetailResponse, type GetVariantDetailContent, type GetVariantDetailHeaderParams, type GetVariantDetailPathParams, type GetVariantDetailResponse, type GetWishlistContent, type GetWishlistPathParams, type GetWishlistResponse, HelpersClient, type ListAddressesContent, type ListAddressesPathParams, type ListAddressesQuery, type ListAddressesResponse, type ListCategoriesContent, type ListCategoriesQuery, type ListCategoriesResponse, type ListCountriesContent, type ListCountriesResponse, type ListCountryPincodesContent, type ListCountryPincodesPathParams, type ListCountryPincodesQuery, type ListCountryPincodesResponse, type ListCountryStatesContent, type ListCountryStatesPathParams, type ListCountryStatesResponse, type ListCouponsContent, type ListCouponsHeaderParams, type ListCouponsResponse, type ListCrosssellProductsContent, type ListCrosssellProductsHeaderParams, type ListCrosssellProductsQuery, type ListCrosssellProductsResponse, type ListDocumentsContent, type ListDocumentsPathParams, type ListDocumentsResponse, type ListKycDocumentContent, type ListKycDocumentResponse, type ListLoyaltyActivitiesContent, type ListLoyaltyActivitiesPathParams, type ListLoyaltyActivitiesQuery, type ListLoyaltyActivitiesResponse, type ListOrderPaymentsContent, type ListOrderPaymentsPathParams, type ListOrderPaymentsResponse, type ListOrderRefundsContent, type ListOrderRefundsPathParams, type ListOrderRefundsResponse, type ListOrderShipmentsContent, type ListOrderShipmentsPathParams, type ListOrderShipmentsResponse, type ListOrdersContent, type ListOrdersQuery, type ListOrdersResponse, type ListPaymentMethodsContent, type ListPaymentMethodsQuery, type ListPaymentMethodsResponse, type ListProductReviewsContent, type ListProductReviewsPathParams, type ListProductReviewsQuery, type ListProductReviewsResponse, type ListProductVariantsContent, type ListProductVariantsHeaderParams, type ListProductVariantsPathParams, type ListProductVariantsResponse, type ListProductsContent, type ListProductsHeaderParams, type ListProductsQuery, type ListProductsResponse, type ListPromotionsContent, type ListPromotionsHeaderParams, type ListPromotionsResponse, type ListReturnsContent, type ListReturnsResponse, type ListSavedCardsContent, type ListSavedCardsQuery, type ListSavedCardsResponse, type ListSimilarProductsContent, type ListSimilarProductsHeaderParams, type ListSimilarProductsQuery, type ListSimilarProductsResponse, type ListSkusContent, type ListSkusHeaderParams, type ListSkusQuery, type ListSkusResponse, type ListSubscriptionsContent, type ListSubscriptionsResponse, type ListUpsellProductsContent, type ListUpsellProductsHeaderParams, type ListUpsellProductsQuery, type ListUpsellProductsResponse, type ListUserReviewsContent, type ListUserReviewsPathParams, type ListUserReviewsResponse, type LoginWithEmailBody, type LoginWithEmailContent, type LoginWithEmailResponse, type LoginWithPasswordBody, type LoginWithPasswordContent, type LoginWithPasswordResponse, type LoginWithPhoneBody, type LoginWithPhoneContent, type LoginWithPhoneResponse, type LoginWithWhatsappBody, type LoginWithWhatsappContent, type LoginWithWhatsappResponse, type LogoutContent, type LogoutResponse, MemoryTokenStorage, OrderClient, type RedeemCreditBalanceBody, type RedeemCreditBalanceContent, type RedeemCreditBalancePathParams, type RedeemCreditBalanceResponse, type RedeemGiftCardBody, type RedeemGiftCardContent, type RedeemGiftCardPathParams, type RedeemGiftCardResponse, type RedeemLoyaltyPointsBody, type RedeemLoyaltyPointsContent, type RedeemLoyaltyPointsPathParams, type RedeemLoyaltyPointsResponse, type RefreshTokenBody, type RefreshTokenContent, type RefreshTokenResponse, type RegisterWithEmailBody, type RegisterWithEmailContent, type RegisterWithEmailResponse, type RegisterWithPasswordBody, type RegisterWithPasswordContent, type RegisterWithPasswordResponse, type RegisterWithPhoneBody, type RegisterWithPhoneContent, type RegisterWithPhoneResponse, type RegisterWithWhatsappBody, type RegisterWithWhatsappContent, type RegisterWithWhatsappResponse, type RemoveCouponContent, type RemoveCouponPathParams, type RemoveCouponResponse, type RemoveCreditBalanceContent, type RemoveCreditBalancePathParams, type RemoveCreditBalanceResponse, type RemoveGiftCardContent, type RemoveGiftCardPathParams, type RemoveGiftCardResponse, type RemoveLoyaltyPointsContent, type RemoveLoyaltyPointsPathParams, type RemoveLoyaltyPointsResponse, type RemoveProfileImagePathParams, type RemoveProfileImageResponse, type ResetPasswordBody, type ResetPasswordContent, type ResetPasswordResponse, ResponseUtils, type RetryOrderPaymentBody, type RetryOrderPaymentContent, type RetryOrderPaymentPathParams, type RetryOrderPaymentResponse, type SearchProductsBody, type SearchProductsContent, type SearchProductsHeaderParams, type SearchProductsResponse, ShippingClient, StorefrontAPIClient, StorefrontSDK, type StorefrontSDKOptions, type SubscribeNewsletterBody, type SubscribeNewsletterResponse, type SupportedDefaultHeaders, type TokenStorage, type TrackAnalyticsEventBody, type TrackAnalyticsEventResponse, type UpdateAddressDetailBody, type UpdateAddressDetailContent, type UpdateAddressDetailPathParams, type UpdateAddressDetailResponse, type UpdateCartBody, type UpdateCartContent, type UpdateCartPathParams, type UpdateCartResponse, type UpdateCustomerBody, type UpdateCustomerContent, type UpdateCustomerPathParams, type UpdateCustomerResponse, type UpdateDocumentContent, type UpdateDocumentFormData, type UpdateDocumentPathParams, type UpdateDocumentResponse, type UpdateNotificationPreferencesBody, type UpdateNotificationPreferencesContent, type UpdateNotificationPreferencesPathParams, type UpdateNotificationPreferencesResponse, type UpdateProfileImageContent, type UpdateProfileImageFormData, type UpdateProfileImagePathParams, type UpdateProfileImageResponse, type UpdateShippingMethodBody, type UpdateShippingMethodContent, type UpdateShippingMethodPathParams, type UpdateShippingMethodResponse, type UpdateSubscriptionBody, type UpdateSubscriptionContent, type UpdateSubscriptionPathParams, type UpdateSubscriptionResponse, type UpdateUserBody, type UpdateUserContent, type UpdateUserPathParams, type UpdateUserResponse, type UserInfo, type VerifyDocumentBody, type VerifyDocumentContent, type VerifyDocumentPathParams, type VerifyDocumentResponse, type VerifyOtpBody, type VerifyOtpContent, type VerifyOtpResponse, type VerifyVpaContent, type VerifyVpaQuery, type VerifyVpaResponse, type components, StorefrontSDK as default, type operations, type paths };
|
|
10481
|
+
export { type AddCardBody, type AddCardContent, type AddCardResponse, type AddProfileImageContent, type AddProfileImageFormData, type AddProfileImagePathParams, type AddProfileImageResponse, type AddToWishlistBody, type AddToWishlistContent, type AddToWishlistPathParams, type AddToWishlistResponse, type ApiErrorResponse, type ApiResult, type ApplyCouponBody, type ApplyCouponContent, type ApplyCouponPathParams, type ApplyCouponResponse, AuthClient, BrowserTokenStorage, type CancelOrderBody, type CancelOrderContent, type CancelOrderPathParams, type CancelOrderResponse, CartClient, CatalogClient, type ChangePasswordBody, type ChangePasswordContent, type ChangePasswordResponse, type CheckPincodeServiceabilityContent, type CheckPincodeServiceabilityPathParams, type CheckPincodeServiceabilityResponse, type CheckVerificationStatusBody, type CheckVerificationStatusContent, type CheckVerificationStatusResponse, CookieTokenStorage, type CookieTokenStorageOptions, type CreateAddressBody, type CreateAddressContent, type CreateAddressPathParams, type CreateAddressResponse, type CreateCartAddressBody, type CreateCartAddressContent, type CreateCartAddressPathParams, type CreateCartAddressResponse, type CreateCartBody, type CreateCartContent, type CreateCartResponse, type CreateCustomerBody, type CreateCustomerContent, type CreateCustomerResponse, type CreateDocumentContent, type CreateDocumentFormData, type CreateDocumentPathParams, type CreateDocumentResponse, type CreateJuspayCustomerBody, type CreateJuspayCustomerContent, type CreateJuspayCustomerResponse, type CreateJuspayOrderBody, type CreateJuspayOrderContent, type CreateJuspayOrderResponse, type CreateNotificationPreferencesBody, type CreateNotificationPreferencesContent, type CreateNotificationPreferencesPathParams, type CreateNotificationPreferencesResponse, type CreateOrderBody, type CreateOrderContent, type CreateOrderResponse, type CreateOrderReturnBody, type CreateOrderReturnContent, type CreateOrderReturnPathParams, type CreateOrderReturnResponse, type CreateProductReviewFormData, type CreateProductReviewPathParams, type CreateProductReviewResponse, type CreateSubscriptionBody, type CreateSubscriptionContent, type CreateSubscriptionResponse, CustomerClient, type DeactivateUserPathParams, type DeactivateUserResponse, type DebugLoggerFn, type DeleteAddressPathParams, type DeleteAddressResponse, type DeleteCartPathParams, type DeleteCartResponse, type DeleteDocumentPathParams, type DeleteDocumentResponse, type DeleteFromWishlistBody, type DeleteFromWishlistContent, type DeleteFromWishlistPathParams, type DeleteFromWishlistResponse, type DeleteUserCartPathParams, type DeleteUserCartResponse, Environment, type ForgotPasswordBody, type ForgotPasswordContent, type ForgotPasswordResponse, type GenerateHashBody, type GenerateHashContent, type GenerateHashResponse, type GenerateOtpBody, type GenerateOtpContent, type GenerateOtpResponse, type GetAddressDetailContent, type GetAddressDetailPathParams, type GetAddressDetailResponse, type GetAnonymousTokenContent, type GetAnonymousTokenResponse, type GetCartContent, type GetCartPathParams, type GetCartResponse, type GetConfigContent, type GetConfigResponse, type GetCustomerDetailContent, type GetCustomerDetailPathParams, type GetCustomerDetailResponse, type GetDocumentContent, type GetDocumentPathParams, type GetDocumentResponse, type GetJuspayCustomerContent, type GetJuspayCustomerPathParams, type GetJuspayCustomerResponse, type GetLoyaltyDetailsContent, type GetLoyaltyDetailsPathParams, type GetLoyaltyDetailsResponse, type GetNotificationPreferencesContent, type GetNotificationPreferencesPathParams, type GetNotificationPreferencesResponse, type GetOrderDetailContent, type GetOrderDetailPathParams, type GetOrderDetailResponse, type GetOrderReturnDetailContent, type GetOrderReturnDetailPathParams, type GetOrderReturnDetailResponse, type GetPaymentStatusContent, type GetPaymentStatusPathParams, type GetPaymentStatusResponse, type GetProductDetailContent, type GetProductDetailHeaderParams, type GetProductDetailPathParams, type GetProductDetailResponse, type GetProfileImageContent, type GetProfileImagePathParams, type GetProfileImageResponse, type GetShippingMethodsBody, type GetShippingMethodsContent, type GetShippingMethodsResponse, type GetSubscriptionContent, type GetSubscriptionPathParams, type GetSubscriptionResponse, type GetUserCartContent, type GetUserCartPathParams, type GetUserCartResponse, type GetUserDetailContent, type GetUserDetailPathParams, type GetUserDetailResponse, type GetVariantDetailContent, type GetVariantDetailHeaderParams, type GetVariantDetailPathParams, type GetVariantDetailResponse, type GetWishlistContent, type GetWishlistPathParams, type GetWishlistResponse, HelpersClient, type ListAddressesContent, type ListAddressesPathParams, type ListAddressesQuery, type ListAddressesResponse, type ListCategoriesContent, type ListCategoriesQuery, type ListCategoriesResponse, type ListCountriesContent, type ListCountriesResponse, type ListCountryPincodesContent, type ListCountryPincodesPathParams, type ListCountryPincodesQuery, type ListCountryPincodesResponse, type ListCountryStatesContent, type ListCountryStatesPathParams, type ListCountryStatesResponse, type ListCouponsContent, type ListCouponsHeaderParams, type ListCouponsResponse, type ListCrosssellProductsContent, type ListCrosssellProductsHeaderParams, type ListCrosssellProductsQuery, type ListCrosssellProductsResponse, type ListDocumentsContent, type ListDocumentsPathParams, type ListDocumentsResponse, type ListKycDocumentContent, type ListKycDocumentResponse, type ListLoyaltyActivitiesContent, type ListLoyaltyActivitiesPathParams, type ListLoyaltyActivitiesQuery, type ListLoyaltyActivitiesResponse, type ListOrderPaymentsContent, type ListOrderPaymentsPathParams, type ListOrderPaymentsResponse, type ListOrderRefundsContent, type ListOrderRefundsPathParams, type ListOrderRefundsResponse, type ListOrderShipmentsContent, type ListOrderShipmentsPathParams, type ListOrderShipmentsResponse, type ListOrdersContent, type ListOrdersQuery, type ListOrdersResponse, type ListPaymentMethodsContent, type ListPaymentMethodsQuery, type ListPaymentMethodsResponse, type ListProductReviewsContent, type ListProductReviewsPathParams, type ListProductReviewsQuery, type ListProductReviewsResponse, type ListProductVariantsContent, type ListProductVariantsHeaderParams, type ListProductVariantsPathParams, type ListProductVariantsResponse, type ListProductsContent, type ListProductsHeaderParams, type ListProductsQuery, type ListProductsResponse, type ListPromotionsContent, type ListPromotionsHeaderParams, type ListPromotionsResponse, type ListReturnsContent, type ListReturnsResponse, type ListSavedCardsContent, type ListSavedCardsQuery, type ListSavedCardsResponse, type ListSimilarProductsContent, type ListSimilarProductsHeaderParams, type ListSimilarProductsQuery, type ListSimilarProductsResponse, type ListSkusContent, type ListSkusHeaderParams, type ListSkusQuery, type ListSkusResponse, type ListSubscriptionsContent, type ListSubscriptionsResponse, type ListUpsellProductsContent, type ListUpsellProductsHeaderParams, type ListUpsellProductsQuery, type ListUpsellProductsResponse, type ListUserReviewsContent, type ListUserReviewsPathParams, type ListUserReviewsResponse, type LoginWithEmailBody, type LoginWithEmailContent, type LoginWithEmailResponse, type LoginWithPasswordBody, type LoginWithPasswordContent, type LoginWithPasswordResponse, type LoginWithPhoneBody, type LoginWithPhoneContent, type LoginWithPhoneResponse, type LoginWithWhatsappBody, type LoginWithWhatsappContent, type LoginWithWhatsappResponse, type LogoutContent, type LogoutResponse, MemoryTokenStorage, OrderClient, type RedeemCreditBalanceBody, type RedeemCreditBalanceContent, type RedeemCreditBalancePathParams, type RedeemCreditBalanceResponse, type RedeemGiftCardBody, type RedeemGiftCardContent, type RedeemGiftCardPathParams, type RedeemGiftCardResponse, type RedeemLoyaltyPointsBody, type RedeemLoyaltyPointsContent, type RedeemLoyaltyPointsPathParams, type RedeemLoyaltyPointsResponse, type RefreshTokenBody, type RefreshTokenContent, type RefreshTokenResponse, type RegisterWithEmailBody, type RegisterWithEmailContent, type RegisterWithEmailResponse, type RegisterWithPasswordBody, type RegisterWithPasswordContent, type RegisterWithPasswordResponse, type RegisterWithPhoneBody, type RegisterWithPhoneContent, type RegisterWithPhoneResponse, type RegisterWithWhatsappBody, type RegisterWithWhatsappContent, type RegisterWithWhatsappResponse, type RemoveCouponContent, type RemoveCouponPathParams, type RemoveCouponResponse, type RemoveCreditBalanceContent, type RemoveCreditBalancePathParams, type RemoveCreditBalanceResponse, type RemoveGiftCardContent, type RemoveGiftCardPathParams, type RemoveGiftCardResponse, type RemoveLoyaltyPointsContent, type RemoveLoyaltyPointsPathParams, type RemoveLoyaltyPointsResponse, type RemoveProfileImagePathParams, type RemoveProfileImageResponse, type ResetPasswordBody, type ResetPasswordContent, type ResetPasswordResponse, ResponseUtils, type RetryOrderPaymentBody, type RetryOrderPaymentContent, type RetryOrderPaymentPathParams, type RetryOrderPaymentResponse, type SearchProductsBody, type SearchProductsContent, type SearchProductsHeaderParams, type SearchProductsResponse, ShippingClient, StoreConfigClient, StorefrontAPIClient, StorefrontSDK, type StorefrontSDKOptions, type SubscribeNewsletterBody, type SubscribeNewsletterResponse, type SupportedDefaultHeaders, type TokenStorage, type TrackAnalyticsEventBody, type TrackAnalyticsEventResponse, type UpdateAddressDetailBody, type UpdateAddressDetailContent, type UpdateAddressDetailPathParams, type UpdateAddressDetailResponse, type UpdateCartBody, type UpdateCartContent, type UpdateCartPathParams, type UpdateCartResponse, type UpdateCustomerBody, type UpdateCustomerContent, type UpdateCustomerPathParams, type UpdateCustomerResponse, type UpdateDocumentContent, type UpdateDocumentFormData, type UpdateDocumentPathParams, type UpdateDocumentResponse, type UpdateNotificationPreferencesBody, type UpdateNotificationPreferencesContent, type UpdateNotificationPreferencesPathParams, type UpdateNotificationPreferencesResponse, type UpdateProfileImageContent, type UpdateProfileImageFormData, type UpdateProfileImagePathParams, type UpdateProfileImageResponse, type UpdateShippingMethodBody, type UpdateShippingMethodContent, type UpdateShippingMethodPathParams, type UpdateShippingMethodResponse, type UpdateSubscriptionBody, type UpdateSubscriptionContent, type UpdateSubscriptionPathParams, type UpdateSubscriptionResponse, type UpdateUserBody, type UpdateUserContent, type UpdateUserPathParams, type UpdateUserResponse, type UserInfo, type VerifyDocumentBody, type VerifyDocumentContent, type VerifyDocumentPathParams, type VerifyDocumentResponse, type VerifyOtpBody, type VerifyOtpContent, type VerifyOtpResponse, type VerifyVpaContent, type VerifyVpaQuery, type VerifyVpaResponse, type components, StorefrontSDK as default, type operations, type paths };
|
package/dist/index.iife.js
CHANGED
|
@@ -33,6 +33,7 @@ var CE_SDK = (() => {
|
|
|
33
33
|
OrderClient: () => OrderClient,
|
|
34
34
|
ResponseUtils: () => ResponseUtils,
|
|
35
35
|
ShippingClient: () => ShippingClient,
|
|
36
|
+
StoreConfigClient: () => StoreConfigClient,
|
|
36
37
|
StorefrontAPIClient: () => StorefrontAPIClient,
|
|
37
38
|
StorefrontSDK: () => StorefrontSDK,
|
|
38
39
|
default: () => index_default
|
|
@@ -2774,6 +2775,16 @@ var CE_SDK = (() => {
|
|
|
2774
2775
|
}
|
|
2775
2776
|
};
|
|
2776
2777
|
|
|
2778
|
+
// src/lib/store-config.ts
|
|
2779
|
+
var StoreConfigClient = class extends StorefrontAPIClient {
|
|
2780
|
+
/**
|
|
2781
|
+
* Get store config
|
|
2782
|
+
*/
|
|
2783
|
+
async getStoreConfig() {
|
|
2784
|
+
return this.executeRequest(() => this.client.GET("/store/config"));
|
|
2785
|
+
}
|
|
2786
|
+
};
|
|
2787
|
+
|
|
2777
2788
|
// src/index.ts
|
|
2778
2789
|
var StorefrontSDK = class {
|
|
2779
2790
|
/**
|
|
@@ -2804,6 +2815,10 @@ var CE_SDK = (() => {
|
|
|
2804
2815
|
* Client for order-related endpoints
|
|
2805
2816
|
*/
|
|
2806
2817
|
order;
|
|
2818
|
+
/**
|
|
2819
|
+
* Client for store config-related endpoints
|
|
2820
|
+
*/
|
|
2821
|
+
store;
|
|
2807
2822
|
/**
|
|
2808
2823
|
* Create a new StorefrontSDK instance
|
|
2809
2824
|
*
|
|
@@ -2832,6 +2847,7 @@ var CE_SDK = (() => {
|
|
|
2832
2847
|
this.helpers = new HelpersClient(config);
|
|
2833
2848
|
this.shipping = new ShippingClient(config);
|
|
2834
2849
|
this.order = new OrderClient(config);
|
|
2850
|
+
this.store = new StoreConfigClient(config);
|
|
2835
2851
|
}
|
|
2836
2852
|
/**
|
|
2837
2853
|
* Set authentication tokens for all clients
|
|
@@ -2851,6 +2867,7 @@ var CE_SDK = (() => {
|
|
|
2851
2867
|
await this.helpers.setTokens(accessToken, refreshToken);
|
|
2852
2868
|
await this.shipping.setTokens(accessToken, refreshToken);
|
|
2853
2869
|
await this.order.setTokens(accessToken, refreshToken);
|
|
2870
|
+
await this.store.setTokens(accessToken, refreshToken);
|
|
2854
2871
|
}
|
|
2855
2872
|
/**
|
|
2856
2873
|
* Clear all authentication tokens from all clients
|
|
@@ -2867,6 +2884,7 @@ var CE_SDK = (() => {
|
|
|
2867
2884
|
await this.helpers.clearTokens();
|
|
2868
2885
|
await this.shipping.clearTokens();
|
|
2869
2886
|
await this.order.clearTokens();
|
|
2887
|
+
await this.store.clearTokens();
|
|
2870
2888
|
}
|
|
2871
2889
|
/**
|
|
2872
2890
|
* Set the API key for all clients
|
|
@@ -2881,6 +2899,7 @@ var CE_SDK = (() => {
|
|
|
2881
2899
|
this.helpers.setApiKey(apiKey);
|
|
2882
2900
|
this.shipping.setApiKey(apiKey);
|
|
2883
2901
|
this.order.setApiKey(apiKey);
|
|
2902
|
+
this.store.setApiKey(apiKey);
|
|
2884
2903
|
}
|
|
2885
2904
|
/**
|
|
2886
2905
|
* Clear the API key from all clients
|
|
@@ -2893,6 +2912,7 @@ var CE_SDK = (() => {
|
|
|
2893
2912
|
this.helpers.clearApiKey();
|
|
2894
2913
|
this.shipping.clearApiKey();
|
|
2895
2914
|
this.order.clearApiKey();
|
|
2915
|
+
this.store.clearApiKey();
|
|
2896
2916
|
}
|
|
2897
2917
|
/**
|
|
2898
2918
|
* Get the current access token if using token storage
|
|
@@ -2974,6 +2994,7 @@ var CE_SDK = (() => {
|
|
|
2974
2994
|
this.helpers["config"] = newConfig;
|
|
2975
2995
|
this.shipping["config"] = newConfig;
|
|
2976
2996
|
this.order["config"] = newConfig;
|
|
2997
|
+
this.store["config"] = newConfig;
|
|
2977
2998
|
}
|
|
2978
2999
|
/**
|
|
2979
3000
|
* Get current default headers
|