@commercengine/pos 0.3.1 → 0.3.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.ts +348 -266
- package/dist/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -803,6 +803,26 @@ interface paths {
|
|
|
803
803
|
patch?: never;
|
|
804
804
|
trace?: never;
|
|
805
805
|
};
|
|
806
|
+
"/pos/users/{id}": {
|
|
807
|
+
parameters: {
|
|
808
|
+
query?: never;
|
|
809
|
+
header?: never;
|
|
810
|
+
path?: never;
|
|
811
|
+
cookie?: never;
|
|
812
|
+
};
|
|
813
|
+
/**
|
|
814
|
+
* Get POS User
|
|
815
|
+
* @description Get POS User
|
|
816
|
+
*/
|
|
817
|
+
get: operations["get-pos-user"];
|
|
818
|
+
put?: never;
|
|
819
|
+
post?: never;
|
|
820
|
+
delete?: never;
|
|
821
|
+
options?: never;
|
|
822
|
+
head?: never;
|
|
823
|
+
patch?: never;
|
|
824
|
+
trace?: never;
|
|
825
|
+
};
|
|
806
826
|
}
|
|
807
827
|
interface components {
|
|
808
828
|
schemas: {
|
|
@@ -2098,27 +2118,27 @@ interface components {
|
|
|
2098
2118
|
};
|
|
2099
2119
|
/** PosUser */
|
|
2100
2120
|
PosUser: {
|
|
2101
|
-
id
|
|
2102
|
-
first_name
|
|
2103
|
-
last_name
|
|
2104
|
-
phone
|
|
2121
|
+
id: string;
|
|
2122
|
+
first_name: string;
|
|
2123
|
+
last_name: string | null;
|
|
2124
|
+
phone: string;
|
|
2105
2125
|
/** Format: email */
|
|
2106
|
-
email
|
|
2107
|
-
channel
|
|
2108
|
-
id
|
|
2109
|
-
name
|
|
2126
|
+
email: string;
|
|
2127
|
+
channel: {
|
|
2128
|
+
id: string;
|
|
2129
|
+
name: string;
|
|
2110
2130
|
};
|
|
2111
|
-
device
|
|
2112
|
-
id
|
|
2113
|
-
name
|
|
2131
|
+
device: {
|
|
2132
|
+
id: string;
|
|
2133
|
+
name: string;
|
|
2114
2134
|
} | null;
|
|
2115
|
-
location
|
|
2116
|
-
id
|
|
2117
|
-
name
|
|
2135
|
+
location: {
|
|
2136
|
+
id: string;
|
|
2137
|
+
name: string;
|
|
2118
2138
|
};
|
|
2119
|
-
roles
|
|
2120
|
-
location_id
|
|
2121
|
-
location_name
|
|
2139
|
+
roles: {
|
|
2140
|
+
location_id: string;
|
|
2141
|
+
location_name: string;
|
|
2122
2142
|
role_id?: string;
|
|
2123
2143
|
role_name?: string;
|
|
2124
2144
|
}[];
|
|
@@ -4228,6 +4248,36 @@ interface operations {
|
|
|
4228
4248
|
401: components["responses"]["Unauthorized"];
|
|
4229
4249
|
};
|
|
4230
4250
|
};
|
|
4251
|
+
"get-pos-user": {
|
|
4252
|
+
parameters: {
|
|
4253
|
+
query?: never;
|
|
4254
|
+
header?: never;
|
|
4255
|
+
path: {
|
|
4256
|
+
/** @description User ID */
|
|
4257
|
+
id: string;
|
|
4258
|
+
};
|
|
4259
|
+
cookie?: never;
|
|
4260
|
+
};
|
|
4261
|
+
requestBody?: never;
|
|
4262
|
+
responses: {
|
|
4263
|
+
/** @description OK */
|
|
4264
|
+
200: {
|
|
4265
|
+
headers: {
|
|
4266
|
+
[name: string]: unknown;
|
|
4267
|
+
};
|
|
4268
|
+
content: {
|
|
4269
|
+
"application/json": {
|
|
4270
|
+
message: string;
|
|
4271
|
+
success: boolean;
|
|
4272
|
+
content: {
|
|
4273
|
+
user: components["schemas"]["PosUser"];
|
|
4274
|
+
};
|
|
4275
|
+
};
|
|
4276
|
+
};
|
|
4277
|
+
};
|
|
4278
|
+
401: components["responses"]["Unauthorized"];
|
|
4279
|
+
};
|
|
4280
|
+
};
|
|
4231
4281
|
"order-created": {
|
|
4232
4282
|
parameters: {
|
|
4233
4283
|
query?: never;
|
|
@@ -5328,6 +5378,8 @@ interface components$1 {
|
|
|
5328
5378
|
* @description order list model
|
|
5329
5379
|
*/
|
|
5330
5380
|
OrderList: {
|
|
5381
|
+
/** @description Order id. Same as order number. */
|
|
5382
|
+
id?: string;
|
|
5331
5383
|
/** @description Unique number associated with the order. */
|
|
5332
5384
|
order_number?: string;
|
|
5333
5385
|
/**
|
|
@@ -5347,8 +5399,8 @@ interface components$1 {
|
|
|
5347
5399
|
payment_status?: "pending" | "success" | "failed" | "partially_paid" | "refunded";
|
|
5348
5400
|
/** @description Date and time when the payment for the order was successfully processed. */
|
|
5349
5401
|
payment_success_date?: string | null;
|
|
5350
|
-
/** @
|
|
5351
|
-
|
|
5402
|
+
/** @enum {unknown} */
|
|
5403
|
+
fulfillment_type?: "collect-in-store" | "delivery";
|
|
5352
5404
|
/** @description Indicates whether the order includes subscription items. */
|
|
5353
5405
|
on_subscription?: boolean;
|
|
5354
5406
|
/**
|
|
@@ -5378,6 +5430,14 @@ interface components$1 {
|
|
|
5378
5430
|
code?: string;
|
|
5379
5431
|
symbol?: string;
|
|
5380
5432
|
};
|
|
5433
|
+
sales_channel?: {
|
|
5434
|
+
id?: string;
|
|
5435
|
+
name?: string;
|
|
5436
|
+
type?: string;
|
|
5437
|
+
};
|
|
5438
|
+
metadata?: {
|
|
5439
|
+
[key: string]: string;
|
|
5440
|
+
};
|
|
5381
5441
|
/** Format: date-time */
|
|
5382
5442
|
created_at?: string;
|
|
5383
5443
|
/** Format: date-time */
|
|
@@ -5447,7 +5507,10 @@ interface components$1 {
|
|
|
5447
5507
|
/** Format: date-time */
|
|
5448
5508
|
modified_at?: string;
|
|
5449
5509
|
};
|
|
5450
|
-
/**
|
|
5510
|
+
/**
|
|
5511
|
+
* Pagination
|
|
5512
|
+
* @description pagination metadata structure
|
|
5513
|
+
*/
|
|
5451
5514
|
Pagination: {
|
|
5452
5515
|
total_records?: number;
|
|
5453
5516
|
total_pages?: number;
|
|
@@ -6693,249 +6756,252 @@ declare enum Environment {
|
|
|
6693
6756
|
*/
|
|
6694
6757
|
//#endregion
|
|
6695
6758
|
//#region src/types/pos-api-types.d.ts
|
|
6696
|
-
type AcceleratedRewardCouponPromotion = components[
|
|
6697
|
-
type AcceleratedRewardRule = components[
|
|
6698
|
-
type AdditionalProductDetails = components[
|
|
6699
|
-
type ApplicableCoupon = components[
|
|
6700
|
-
type ApplicablePromotion = components[
|
|
6701
|
-
type AppliedCoupon = components[
|
|
6702
|
-
type AppliedPromotion = components[
|
|
6703
|
-
type AssociatedOption = components[
|
|
6704
|
-
type AutoScaleBasedOnAmount = components[
|
|
6705
|
-
type AutoScaleBasedOnQuantity = components[
|
|
6706
|
-
type BankTransfer = components[
|
|
6707
|
-
type BooleanAttribute = components[
|
|
6708
|
-
type BuyXGetYCouponPromotion = components[
|
|
6709
|
-
type BuyXGetYRule = components[
|
|
6710
|
-
type BuyXGetYRuleBasedOnAmount = components[
|
|
6711
|
-
type BuyXGetYRuleBasedOnQuantity = components[
|
|
6712
|
-
type CardPayment = components[
|
|
6713
|
-
type Cart = components[
|
|
6714
|
-
type CartBasedServiceabilityCheck = components[
|
|
6715
|
-
type CartItem = components[
|
|
6716
|
-
type Category = components[
|
|
6717
|
-
type CollectInStore = components[
|
|
6718
|
-
type CollectInStoreFulfillment = components[
|
|
6719
|
-
type ColorAttribute = components[
|
|
6720
|
-
type ColorOption = components[
|
|
6721
|
-
type Coupon = components[
|
|
6722
|
-
type CouponPromotionCommonDetail = components[
|
|
6723
|
-
type CouponType = components[
|
|
6724
|
-
type Currency = components[
|
|
6725
|
-
type CustomSlabsBasedOnAmount = components[
|
|
6726
|
-
type CustomSlabsBasedOnQuantity = components[
|
|
6727
|
-
type CustomerAddress = components[
|
|
6728
|
-
type DateAttribute = components[
|
|
6729
|
-
type DeliveryFulfillment = components[
|
|
6730
|
-
type DiscountBasedPromotion = components[
|
|
6731
|
-
type DiscountCouponPromotion = components[
|
|
6732
|
-
type DiscountRule = components[
|
|
6733
|
-
type FixedAmountDiscountRule = components[
|
|
6734
|
-
type FixedPriceCouponPromotion = components[
|
|
6735
|
-
type FixedPricePromotion = components[
|
|
6736
|
-
type FixedPriceRule = components[
|
|
6737
|
-
type FixedPriceRuleBasedAmount = components[
|
|
6738
|
-
type FixedPriceRuleBasedQuantity = components[
|
|
6739
|
-
type FreeGoodCouponPromotion = components[
|
|
6740
|
-
type FreeGoodsPromotion = components[
|
|
6741
|
-
type FreeGoodsRule = components[
|
|
6742
|
-
type FreeShipingCouponPromotion = components[
|
|
6743
|
-
type InapplicableCoupon = components[
|
|
6744
|
-
type InapplicablePromotion = components[
|
|
6745
|
-
type Item = components[
|
|
6746
|
-
type JuspayPaymentGatewayParams = components[
|
|
6747
|
-
type MultiSelectAttribute = components[
|
|
6748
|
-
type NetbankingPayment = components[
|
|
6749
|
-
type NumberAttribute = components[
|
|
6750
|
-
type Order = components[
|
|
6751
|
-
type OrderDetail = components[
|
|
6752
|
-
type OrderItem = components[
|
|
6753
|
-
type OrderPayment = components[
|
|
6754
|
-
type OrderRefund = components[
|
|
6755
|
-
type OrderShipment = components[
|
|
6756
|
-
type Pagination = components[
|
|
6757
|
-
type PayWithCard = components[
|
|
6758
|
-
type PayWithCash = components[
|
|
6759
|
-
type PayWithPaymentGateway = components[
|
|
6760
|
-
type PayWithUpi = components[
|
|
6761
|
-
type PaymentGateway = components[
|
|
6762
|
-
type PaymentGatewayParams = components[
|
|
6763
|
-
type PaymentInfo = components[
|
|
6764
|
-
type PayuPaymentGatewayParams = components[
|
|
6765
|
-
type PercentageDiscountRule = components[
|
|
6766
|
-
type PincodeServiceability = components[
|
|
6767
|
-
type PosDevice = components[
|
|
6768
|
-
type PosLocation = components[
|
|
6769
|
-
type PosUpdateCustomerWithEmail = components[
|
|
6770
|
-
type PosUpdateCustomerWithId = components[
|
|
6771
|
-
type PosUpdateCustomerWithPhone = components[
|
|
6772
|
-
type PosUser = components[
|
|
6773
|
-
type Product = components[
|
|
6774
|
-
type ProductAttribute = components[
|
|
6775
|
-
type ProductBundleItem = components[
|
|
6776
|
-
type ProductCategory = components[
|
|
6777
|
-
type ProductDetail = components[
|
|
6778
|
-
type ProductImage = components[
|
|
6779
|
-
type ProductPricing = components[
|
|
6780
|
-
type ProductPromotion = components[
|
|
6781
|
-
type ProductReview = components[
|
|
6782
|
-
type ProductShipping = components[
|
|
6783
|
-
type ProductSubscription = components[
|
|
6784
|
-
type ProductVideo = components[
|
|
6785
|
-
type Promotion = components[
|
|
6786
|
-
type PromotionType = components[
|
|
6787
|
-
type SearchProduct = components[
|
|
6788
|
-
type Seo = components[
|
|
6789
|
-
type ShipmentItem = components[
|
|
6790
|
-
type SingleSelectAttribute = components[
|
|
6791
|
-
type SingleSelectOption = components[
|
|
6792
|
-
type TextAttribute = components[
|
|
6793
|
-
type UpdateCartItem = components[
|
|
6794
|
-
type UpiPayment = components[
|
|
6795
|
-
type Variant = components[
|
|
6796
|
-
type VariantDetail = components[
|
|
6797
|
-
type VariantOption = components[
|
|
6798
|
-
type VolumeBasedCouponPromotion = components[
|
|
6799
|
-
type VolumeBasedPromotion = components[
|
|
6800
|
-
type VolumeBasedRule = components[
|
|
6801
|
-
type WalletPayment = components[
|
|
6802
|
-
type LoginPosDeviceWithEmailResponse = paths[
|
|
6803
|
-
type LoginPosDeviceWithEmailContent = LoginPosDeviceWithEmailResponse[
|
|
6804
|
-
type LoginPosDeviceWithEmailBody = NonNullable<paths[
|
|
6805
|
-
type LoginPosDeviceWithPhoneResponse = paths[
|
|
6806
|
-
type LoginPosDeviceWithPhoneContent = LoginPosDeviceWithPhoneResponse[
|
|
6807
|
-
type LoginPosDeviceWithPhoneBody = NonNullable<paths[
|
|
6808
|
-
type LoginPosDeviceWithWhatsappResponse = paths[
|
|
6809
|
-
type LoginPosDeviceWithWhatsappContent = LoginPosDeviceWithWhatsappResponse[
|
|
6810
|
-
type LoginPosDeviceWithWhatsappBody = NonNullable<paths[
|
|
6811
|
-
type LogoutFromPosDeviceResponse = paths[
|
|
6812
|
-
type PairPosDeviceResponse = paths[
|
|
6813
|
-
type PairPosDeviceContent = PairPosDeviceResponse[
|
|
6814
|
-
type PairPosDeviceBody = NonNullable<paths[
|
|
6815
|
-
type RefreshPosAccessTokenResponse = paths[
|
|
6816
|
-
type RefreshPosAccessTokenContent = RefreshPosAccessTokenResponse[
|
|
6817
|
-
type RefreshPosAccessTokenBody = NonNullable<paths[
|
|
6818
|
-
type VerifyPosLoginOtpResponse = paths[
|
|
6819
|
-
type VerifyPosLoginOtpContent = VerifyPosLoginOtpResponse[
|
|
6820
|
-
type VerifyPosLoginOtpBody = NonNullable<paths[
|
|
6821
|
-
type PosCreateCartResponse = paths[
|
|
6822
|
-
type PosCreateCartContent = PosCreateCartResponse[
|
|
6823
|
-
type PosCreateCartBody = NonNullable<paths[
|
|
6824
|
-
type PosListCouponsResponse = paths[
|
|
6825
|
-
type PosListCouponsContent = PosListCouponsResponse[
|
|
6826
|
-
type PosListCouponsHeaderParams = paths[
|
|
6827
|
-
type PosListPromotionsResponse = paths[
|
|
6828
|
-
type PosListPromotionsContent = PosListPromotionsResponse[
|
|
6829
|
-
type PosListPromotionsHeaderParams = paths[
|
|
6830
|
-
type PosGetCartResponse = paths[
|
|
6831
|
-
type PosGetCartContent = PosGetCartResponse[
|
|
6832
|
-
type PosGetCartPathParams = paths[
|
|
6833
|
-
type PosDeleteCartResponse = paths[
|
|
6834
|
-
type PosDeleteCartPathParams = paths[
|
|
6835
|
-
type PosCreateCartAddressResponse = paths[
|
|
6836
|
-
type PosCreateCartAddressContent = PosCreateCartAddressResponse[
|
|
6837
|
-
type PosCreateCartAddressPathParams = paths[
|
|
6838
|
-
type PosCreateCartAddressBody = NonNullable<paths[
|
|
6839
|
-
type PosApplyCouponResponse = paths[
|
|
6840
|
-
type PosApplyCouponContent = PosApplyCouponResponse[
|
|
6841
|
-
type PosApplyCouponPathParams = paths[
|
|
6842
|
-
type PosApplyCouponBody = NonNullable<paths[
|
|
6843
|
-
type PosRemoveCouponResponse = paths[
|
|
6844
|
-
type PosRemoveCouponContent = PosRemoveCouponResponse[
|
|
6845
|
-
type PosRemoveCouponPathParams = paths[
|
|
6846
|
-
type PosRedeemCreditBalanceResponse = paths[
|
|
6847
|
-
type PosRedeemCreditBalanceContent = PosRedeemCreditBalanceResponse[
|
|
6848
|
-
type PosRedeemCreditBalancePathParams = paths[
|
|
6849
|
-
type PosRedeemCreditBalanceBody = NonNullable<paths[
|
|
6850
|
-
type PosRemoveCreditBalanceResponse = paths[
|
|
6851
|
-
type PosRemoveCreditBalanceContent = PosRemoveCreditBalanceResponse[
|
|
6852
|
-
type PosRemoveCreditBalancePathParams = paths[
|
|
6853
|
-
type PosEvaluateCouponsResponse = paths[
|
|
6854
|
-
type PosEvaluateCouponsContent = PosEvaluateCouponsResponse[
|
|
6855
|
-
type PosEvaluateCouponsPathParams = paths[
|
|
6856
|
-
type PosEvaluatePromotionsResponse = paths[
|
|
6857
|
-
type PosEvaluatePromotionsContent = PosEvaluatePromotionsResponse[
|
|
6858
|
-
type PosEvaluatePromotionsPathParams = paths[
|
|
6859
|
-
type PosUpdateFulfillmentPreferenceResponse = paths[
|
|
6860
|
-
type PosUpdateFulfillmentPreferencePathParams = paths[
|
|
6861
|
-
type PosUpdateFulfillmentPreferenceBody = NonNullable<paths[
|
|
6862
|
-
type PosUpdateCartResponse = paths[
|
|
6863
|
-
type PosUpdateCartContent = PosUpdateCartResponse[
|
|
6864
|
-
type PosUpdateCartPathParams = paths[
|
|
6865
|
-
type PosUpdateCartBody = NonNullable<paths[
|
|
6866
|
-
type PosRedeemLoyaltyPointsResponse = paths[
|
|
6867
|
-
type PosRedeemLoyaltyPointsContent = PosRedeemLoyaltyPointsResponse[
|
|
6868
|
-
type PosRedeemLoyaltyPointsPathParams = paths[
|
|
6869
|
-
type PosRedeemLoyaltyPointsBody = NonNullable<paths[
|
|
6870
|
-
type PosRemoveLoyaltyPointsResponse = paths[
|
|
6871
|
-
type PosRemoveLoyaltyPointsContent = PosRemoveLoyaltyPointsResponse[
|
|
6872
|
-
type PosRemoveLoyaltyPointsPathParams = paths[
|
|
6873
|
-
type UpdatePosCartCustomerResponse = paths[
|
|
6874
|
-
type UpdatePosCartCustomerContent = UpdatePosCartCustomerResponse[
|
|
6875
|
-
type UpdatePosCartCustomerPathParams = paths[
|
|
6876
|
-
type UpdatePosCartCustomerBody = NonNullable<paths[
|
|
6877
|
-
type PosListCategoriesResponse = paths[
|
|
6878
|
-
type PosListCategoriesContent = PosListCategoriesResponse[
|
|
6879
|
-
type PosListCategoriesQuery = paths[
|
|
6880
|
-
type PosListProductsResponse = paths[
|
|
6881
|
-
type PosListProductsContent = PosListProductsResponse[
|
|
6882
|
-
type PosListProductsQuery = paths[
|
|
6883
|
-
type PosListProductsHeaderParams = paths[
|
|
6884
|
-
type PosListCrosssellProductsResponse = paths[
|
|
6885
|
-
type PosListCrosssellProductsContent = PosListCrosssellProductsResponse[
|
|
6886
|
-
type PosListCrosssellProductsQuery = paths[
|
|
6887
|
-
type PosListCrosssellProductsHeaderParams = paths[
|
|
6888
|
-
type PosSearchProductsResponse = paths[
|
|
6889
|
-
type PosSearchProductsContent = PosSearchProductsResponse[
|
|
6890
|
-
type PosSearchProductsHeaderParams = paths[
|
|
6891
|
-
type PosSearchProductsBody = NonNullable<paths[
|
|
6892
|
-
type PosListSimilarProductsResponse = paths[
|
|
6893
|
-
type PosListSimilarProductsContent = PosListSimilarProductsResponse[
|
|
6894
|
-
type PosListSimilarProductsQuery = paths[
|
|
6895
|
-
type PosListSimilarProductsHeaderParams = paths[
|
|
6896
|
-
type PosListUpsellProductsResponse = paths[
|
|
6897
|
-
type PosListUpsellProductsContent = PosListUpsellProductsResponse[
|
|
6898
|
-
type PosListUpsellProductsQuery = paths[
|
|
6899
|
-
type PosListUpsellProductsHeaderParams = paths[
|
|
6900
|
-
type PosGetProductDetailResponse = paths[
|
|
6901
|
-
type PosGetProductDetailContent = PosGetProductDetailResponse[
|
|
6902
|
-
type PosGetProductDetailPathParams = paths[
|
|
6903
|
-
type PosGetProductDetailHeaderParams = paths[
|
|
6904
|
-
type PosListProductReviewsResponse = paths[
|
|
6905
|
-
type PosListProductReviewsContent = PosListProductReviewsResponse[
|
|
6906
|
-
type PosListProductReviewsQuery = paths[
|
|
6907
|
-
type PosListProductReviewsPathParams = paths[
|
|
6908
|
-
type PosListProductVariantsResponse = paths[
|
|
6909
|
-
type PosListProductVariantsContent = PosListProductVariantsResponse[
|
|
6910
|
-
type PosListProductVariantsPathParams = paths[
|
|
6911
|
-
type PosListProductVariantsHeaderParams = paths[
|
|
6912
|
-
type PosGetVariantDetailResponse = paths[
|
|
6913
|
-
type PosGetVariantDetailContent = PosGetVariantDetailResponse[
|
|
6914
|
-
type PosGetVariantDetailPathParams = paths[
|
|
6915
|
-
type PosGetVariantDetailHeaderParams = paths[
|
|
6916
|
-
type PosListSkusResponse = paths[
|
|
6917
|
-
type PosListSkusContent = PosListSkusResponse[
|
|
6918
|
-
type PosListSkusQuery = paths[
|
|
6919
|
-
type PosListSkusHeaderParams = paths[
|
|
6920
|
-
type ListPosDevicesResponse = paths[
|
|
6921
|
-
type ListPosDevicesContent = ListPosDevicesResponse[
|
|
6922
|
-
type ClaimPosDeviceResponse = paths[
|
|
6923
|
-
type ClaimPosDevicePathParams = paths[
|
|
6924
|
-
type UnclaimPosDeviceResponse = paths[
|
|
6925
|
-
type UnclaimPosDevicePathParams = paths[
|
|
6926
|
-
type GetPosFulfillmentOptionsResponse = paths[
|
|
6927
|
-
type GetPosFulfillmentOptionsContent = GetPosFulfillmentOptionsResponse[
|
|
6928
|
-
type GetPosFulfillmentOptionsBody = NonNullable<paths[
|
|
6929
|
-
type ListPosLocationsResponse = paths[
|
|
6930
|
-
type ListPosLocationsContent = ListPosLocationsResponse[
|
|
6931
|
-
type CreatePosOrderResponse = paths[
|
|
6932
|
-
type CreatePosOrderContent = CreatePosOrderResponse[
|
|
6933
|
-
type CreatePosOrderBody = NonNullable<paths[
|
|
6934
|
-
type PosGetPaymentStatusResponse = paths[
|
|
6935
|
-
type PosGetPaymentStatusContent = PosGetPaymentStatusResponse[
|
|
6936
|
-
type PosGetPaymentStatusPathParams = paths[
|
|
6937
|
-
type PosListPaymentOptionsResponse = paths[
|
|
6938
|
-
type PosListPaymentOptionsContent = PosListPaymentOptionsResponse[
|
|
6759
|
+
type AcceleratedRewardCouponPromotion = components["schemas"]["AcceleratedRewardCouponPromotion"];
|
|
6760
|
+
type AcceleratedRewardRule = components["schemas"]["AcceleratedRewardRule"];
|
|
6761
|
+
type AdditionalProductDetails = components["schemas"]["AdditionalProductDetails"];
|
|
6762
|
+
type ApplicableCoupon = components["schemas"]["ApplicableCoupon"];
|
|
6763
|
+
type ApplicablePromotion = components["schemas"]["ApplicablePromotion"];
|
|
6764
|
+
type AppliedCoupon = components["schemas"]["AppliedCoupon"];
|
|
6765
|
+
type AppliedPromotion = components["schemas"]["AppliedPromotion"];
|
|
6766
|
+
type AssociatedOption = components["schemas"]["AssociatedOption"];
|
|
6767
|
+
type AutoScaleBasedOnAmount = components["schemas"]["AutoScaleBasedOnAmount"];
|
|
6768
|
+
type AutoScaleBasedOnQuantity = components["schemas"]["AutoScaleBasedOnQuantity"];
|
|
6769
|
+
type BankTransfer = components["schemas"]["BankTransfer"];
|
|
6770
|
+
type BooleanAttribute = components["schemas"]["BooleanAttribute"];
|
|
6771
|
+
type BuyXGetYCouponPromotion = components["schemas"]["BuyXGetYCouponPromotion"];
|
|
6772
|
+
type BuyXGetYRule = components["schemas"]["BuyXGetYRule"];
|
|
6773
|
+
type BuyXGetYRuleBasedOnAmount = components["schemas"]["BuyXGetYRuleBasedOnAmount"];
|
|
6774
|
+
type BuyXGetYRuleBasedOnQuantity = components["schemas"]["BuyXGetYRuleBasedOnQuantity"];
|
|
6775
|
+
type CardPayment = components["schemas"]["CardPayment"];
|
|
6776
|
+
type Cart = components["schemas"]["Cart"];
|
|
6777
|
+
type CartBasedServiceabilityCheck = components["schemas"]["CartBasedServiceabilityCheck"];
|
|
6778
|
+
type CartItem = components["schemas"]["CartItem"];
|
|
6779
|
+
type Category = components["schemas"]["Category"];
|
|
6780
|
+
type CollectInStore = components["schemas"]["CollectInStore"];
|
|
6781
|
+
type CollectInStoreFulfillment = components["schemas"]["CollectInStoreFulfillment"];
|
|
6782
|
+
type ColorAttribute = components["schemas"]["ColorAttribute"];
|
|
6783
|
+
type ColorOption = components["schemas"]["ColorOption"];
|
|
6784
|
+
type Coupon = components["schemas"]["Coupon"];
|
|
6785
|
+
type CouponPromotionCommonDetail = components["schemas"]["CouponPromotionCommonDetail"];
|
|
6786
|
+
type CouponType = components["schemas"]["CouponType"];
|
|
6787
|
+
type Currency = components["schemas"]["Currency"];
|
|
6788
|
+
type CustomSlabsBasedOnAmount = components["schemas"]["CustomSlabsBasedOnAmount"];
|
|
6789
|
+
type CustomSlabsBasedOnQuantity = components["schemas"]["CustomSlabsBasedOnQuantity"];
|
|
6790
|
+
type CustomerAddress = components["schemas"]["CustomerAddress"];
|
|
6791
|
+
type DateAttribute = components["schemas"]["DateAttribute"];
|
|
6792
|
+
type DeliveryFulfillment = components["schemas"]["DeliveryFulfillment"];
|
|
6793
|
+
type DiscountBasedPromotion = components["schemas"]["DiscountBasedPromotion"];
|
|
6794
|
+
type DiscountCouponPromotion = components["schemas"]["DiscountCouponPromotion"];
|
|
6795
|
+
type DiscountRule = components["schemas"]["DiscountRule"];
|
|
6796
|
+
type FixedAmountDiscountRule = components["schemas"]["FixedAmountDiscountRule"];
|
|
6797
|
+
type FixedPriceCouponPromotion = components["schemas"]["FixedPriceCouponPromotion"];
|
|
6798
|
+
type FixedPricePromotion = components["schemas"]["FixedPricePromotion"];
|
|
6799
|
+
type FixedPriceRule = components["schemas"]["FixedPriceRule"];
|
|
6800
|
+
type FixedPriceRuleBasedAmount = components["schemas"]["FixedPriceRuleBasedAmount"];
|
|
6801
|
+
type FixedPriceRuleBasedQuantity = components["schemas"]["FixedPriceRuleBasedQuantity"];
|
|
6802
|
+
type FreeGoodCouponPromotion = components["schemas"]["FreeGoodCouponPromotion"];
|
|
6803
|
+
type FreeGoodsPromotion = components["schemas"]["FreeGoodsPromotion"];
|
|
6804
|
+
type FreeGoodsRule = components["schemas"]["FreeGoodsRule"];
|
|
6805
|
+
type FreeShipingCouponPromotion = components["schemas"]["FreeShipingCouponPromotion"];
|
|
6806
|
+
type InapplicableCoupon = components["schemas"]["InapplicableCoupon"];
|
|
6807
|
+
type InapplicablePromotion = components["schemas"]["InapplicablePromotion"];
|
|
6808
|
+
type Item = components["schemas"]["Item"];
|
|
6809
|
+
type JuspayPaymentGatewayParams = components["schemas"]["JuspayPaymentGatewayParams"];
|
|
6810
|
+
type MultiSelectAttribute = components["schemas"]["MultiSelectAttribute"];
|
|
6811
|
+
type NetbankingPayment = components["schemas"]["NetbankingPayment"];
|
|
6812
|
+
type NumberAttribute = components["schemas"]["NumberAttribute"];
|
|
6813
|
+
type Order = components["schemas"]["Order"];
|
|
6814
|
+
type OrderDetail = components["schemas"]["OrderDetail"];
|
|
6815
|
+
type OrderItem = components["schemas"]["OrderItem"];
|
|
6816
|
+
type OrderPayment = components["schemas"]["OrderPayment"];
|
|
6817
|
+
type OrderRefund = components["schemas"]["OrderRefund"];
|
|
6818
|
+
type OrderShipment = components["schemas"]["OrderShipment"];
|
|
6819
|
+
type Pagination = components["schemas"]["Pagination"];
|
|
6820
|
+
type PayWithCard = components["schemas"]["PayWithCard"];
|
|
6821
|
+
type PayWithCash = components["schemas"]["PayWithCash"];
|
|
6822
|
+
type PayWithPaymentGateway = components["schemas"]["PayWithPaymentGateway"];
|
|
6823
|
+
type PayWithUpi = components["schemas"]["PayWithUpi"];
|
|
6824
|
+
type PaymentGateway = components["schemas"]["PaymentGateway"];
|
|
6825
|
+
type PaymentGatewayParams = components["schemas"]["PaymentGatewayParams"];
|
|
6826
|
+
type PaymentInfo = components["schemas"]["PaymentInfo"];
|
|
6827
|
+
type PayuPaymentGatewayParams = components["schemas"]["PayuPaymentGatewayParams"];
|
|
6828
|
+
type PercentageDiscountRule = components["schemas"]["PercentageDiscountRule"];
|
|
6829
|
+
type PincodeServiceability = components["schemas"]["PincodeServiceability"];
|
|
6830
|
+
type PosDevice = components["schemas"]["PosDevice"];
|
|
6831
|
+
type PosLocation = components["schemas"]["PosLocation"];
|
|
6832
|
+
type PosUpdateCustomerWithEmail = components["schemas"]["PosUpdateCustomerWithEmail"];
|
|
6833
|
+
type PosUpdateCustomerWithId = components["schemas"]["PosUpdateCustomerWithId"];
|
|
6834
|
+
type PosUpdateCustomerWithPhone = components["schemas"]["PosUpdateCustomerWithPhone"];
|
|
6835
|
+
type PosUser = components["schemas"]["PosUser"];
|
|
6836
|
+
type Product = components["schemas"]["Product"];
|
|
6837
|
+
type ProductAttribute = components["schemas"]["ProductAttribute"];
|
|
6838
|
+
type ProductBundleItem = components["schemas"]["ProductBundleItem"];
|
|
6839
|
+
type ProductCategory = components["schemas"]["ProductCategory"];
|
|
6840
|
+
type ProductDetail = components["schemas"]["ProductDetail"];
|
|
6841
|
+
type ProductImage = components["schemas"]["ProductImage"];
|
|
6842
|
+
type ProductPricing = components["schemas"]["ProductPricing"];
|
|
6843
|
+
type ProductPromotion = components["schemas"]["ProductPromotion"];
|
|
6844
|
+
type ProductReview = components["schemas"]["ProductReview"];
|
|
6845
|
+
type ProductShipping = components["schemas"]["ProductShipping"];
|
|
6846
|
+
type ProductSubscription = components["schemas"]["ProductSubscription"];
|
|
6847
|
+
type ProductVideo = components["schemas"]["ProductVideo"];
|
|
6848
|
+
type Promotion = components["schemas"]["Promotion"];
|
|
6849
|
+
type PromotionType = components["schemas"]["PromotionType"];
|
|
6850
|
+
type SearchProduct = components["schemas"]["SearchProduct"];
|
|
6851
|
+
type Seo = components["schemas"]["Seo"];
|
|
6852
|
+
type ShipmentItem = components["schemas"]["ShipmentItem"];
|
|
6853
|
+
type SingleSelectAttribute = components["schemas"]["SingleSelectAttribute"];
|
|
6854
|
+
type SingleSelectOption = components["schemas"]["SingleSelectOption"];
|
|
6855
|
+
type TextAttribute = components["schemas"]["TextAttribute"];
|
|
6856
|
+
type UpdateCartItem = components["schemas"]["UpdateCartItem"];
|
|
6857
|
+
type UpiPayment = components["schemas"]["UpiPayment"];
|
|
6858
|
+
type Variant = components["schemas"]["Variant"];
|
|
6859
|
+
type VariantDetail = components["schemas"]["VariantDetail"];
|
|
6860
|
+
type VariantOption = components["schemas"]["VariantOption"];
|
|
6861
|
+
type VolumeBasedCouponPromotion = components["schemas"]["VolumeBasedCouponPromotion"];
|
|
6862
|
+
type VolumeBasedPromotion = components["schemas"]["VolumeBasedPromotion"];
|
|
6863
|
+
type VolumeBasedRule = components["schemas"]["VolumeBasedRule"];
|
|
6864
|
+
type WalletPayment = components["schemas"]["WalletPayment"];
|
|
6865
|
+
type LoginPosDeviceWithEmailResponse = paths["/pos/auth/login/email"]["post"]["responses"][200]["content"]["application/json"];
|
|
6866
|
+
type LoginPosDeviceWithEmailContent = LoginPosDeviceWithEmailResponse["content"];
|
|
6867
|
+
type LoginPosDeviceWithEmailBody = NonNullable<paths["/pos/auth/login/email"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6868
|
+
type LoginPosDeviceWithPhoneResponse = paths["/pos/auth/login/phone"]["post"]["responses"][200]["content"]["application/json"];
|
|
6869
|
+
type LoginPosDeviceWithPhoneContent = LoginPosDeviceWithPhoneResponse["content"];
|
|
6870
|
+
type LoginPosDeviceWithPhoneBody = NonNullable<paths["/pos/auth/login/phone"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6871
|
+
type LoginPosDeviceWithWhatsappResponse = paths["/pos/auth/login/whatsapp"]["post"]["responses"][200]["content"]["application/json"];
|
|
6872
|
+
type LoginPosDeviceWithWhatsappContent = LoginPosDeviceWithWhatsappResponse["content"];
|
|
6873
|
+
type LoginPosDeviceWithWhatsappBody = NonNullable<paths["/pos/auth/login/whatsapp"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6874
|
+
type LogoutFromPosDeviceResponse = paths["/pos/auth/logout"]["post"]["responses"][200]["content"]["application/json"];
|
|
6875
|
+
type PairPosDeviceResponse = paths["/pos/auth/pair-device"]["post"]["responses"][200]["content"]["application/json"];
|
|
6876
|
+
type PairPosDeviceContent = PairPosDeviceResponse["content"];
|
|
6877
|
+
type PairPosDeviceBody = NonNullable<paths["/pos/auth/pair-device"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6878
|
+
type RefreshPosAccessTokenResponse = paths["/pos/auth/refresh-token"]["post"]["responses"][200]["content"]["application/json"];
|
|
6879
|
+
type RefreshPosAccessTokenContent = RefreshPosAccessTokenResponse["content"];
|
|
6880
|
+
type RefreshPosAccessTokenBody = NonNullable<paths["/pos/auth/refresh-token"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6881
|
+
type VerifyPosLoginOtpResponse = paths["/pos/auth/verify-otp"]["post"]["responses"][200]["content"]["application/json"];
|
|
6882
|
+
type VerifyPosLoginOtpContent = VerifyPosLoginOtpResponse["content"];
|
|
6883
|
+
type VerifyPosLoginOtpBody = NonNullable<paths["/pos/auth/verify-otp"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6884
|
+
type PosCreateCartResponse = paths["/pos/carts"]["post"]["responses"][200]["content"]["application/json"];
|
|
6885
|
+
type PosCreateCartContent = PosCreateCartResponse["content"];
|
|
6886
|
+
type PosCreateCartBody = NonNullable<paths["/pos/carts"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6887
|
+
type PosListCouponsResponse = paths["/pos/carts/available-coupons"]["get"]["responses"][200]["content"]["application/json"];
|
|
6888
|
+
type PosListCouponsContent = PosListCouponsResponse["content"];
|
|
6889
|
+
type PosListCouponsHeaderParams = paths["/pos/carts/available-coupons"]["get"]["parameters"]["header"];
|
|
6890
|
+
type PosListPromotionsResponse = paths["/pos/carts/available-promotions"]["get"]["responses"][200]["content"]["application/json"];
|
|
6891
|
+
type PosListPromotionsContent = PosListPromotionsResponse["content"];
|
|
6892
|
+
type PosListPromotionsHeaderParams = paths["/pos/carts/available-promotions"]["get"]["parameters"]["header"];
|
|
6893
|
+
type PosGetCartResponse = paths["/pos/carts/{id}"]["get"]["responses"][200]["content"]["application/json"];
|
|
6894
|
+
type PosGetCartContent = PosGetCartResponse["content"];
|
|
6895
|
+
type PosGetCartPathParams = paths["/pos/carts/{id}"]["get"]["parameters"]["path"];
|
|
6896
|
+
type PosDeleteCartResponse = paths["/pos/carts/{id}"]["delete"]["responses"][200]["content"]["application/json"];
|
|
6897
|
+
type PosDeleteCartPathParams = paths["/pos/carts/{id}"]["delete"]["parameters"]["path"];
|
|
6898
|
+
type PosCreateCartAddressResponse = paths["/pos/carts/{id}/address"]["post"]["responses"][200]["content"]["application/json"];
|
|
6899
|
+
type PosCreateCartAddressContent = PosCreateCartAddressResponse["content"];
|
|
6900
|
+
type PosCreateCartAddressPathParams = paths["/pos/carts/{id}/address"]["post"]["parameters"]["path"];
|
|
6901
|
+
type PosCreateCartAddressBody = NonNullable<paths["/pos/carts/{id}/address"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6902
|
+
type PosApplyCouponResponse = paths["/pos/carts/{id}/coupon"]["post"]["responses"][200]["content"]["application/json"];
|
|
6903
|
+
type PosApplyCouponContent = PosApplyCouponResponse["content"];
|
|
6904
|
+
type PosApplyCouponPathParams = paths["/pos/carts/{id}/coupon"]["post"]["parameters"]["path"];
|
|
6905
|
+
type PosApplyCouponBody = NonNullable<paths["/pos/carts/{id}/coupon"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6906
|
+
type PosRemoveCouponResponse = paths["/pos/carts/{id}/coupon"]["delete"]["responses"][200]["content"]["application/json"];
|
|
6907
|
+
type PosRemoveCouponContent = PosRemoveCouponResponse["content"];
|
|
6908
|
+
type PosRemoveCouponPathParams = paths["/pos/carts/{id}/coupon"]["delete"]["parameters"]["path"];
|
|
6909
|
+
type PosRedeemCreditBalanceResponse = paths["/pos/carts/{id}/credit-balance"]["post"]["responses"][200]["content"]["application/json"];
|
|
6910
|
+
type PosRedeemCreditBalanceContent = PosRedeemCreditBalanceResponse["content"];
|
|
6911
|
+
type PosRedeemCreditBalancePathParams = paths["/pos/carts/{id}/credit-balance"]["post"]["parameters"]["path"];
|
|
6912
|
+
type PosRedeemCreditBalanceBody = NonNullable<paths["/pos/carts/{id}/credit-balance"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6913
|
+
type PosRemoveCreditBalanceResponse = paths["/pos/carts/{id}/credit-balance"]["delete"]["responses"][200]["content"]["application/json"];
|
|
6914
|
+
type PosRemoveCreditBalanceContent = PosRemoveCreditBalanceResponse["content"];
|
|
6915
|
+
type PosRemoveCreditBalancePathParams = paths["/pos/carts/{id}/credit-balance"]["delete"]["parameters"]["path"];
|
|
6916
|
+
type PosEvaluateCouponsResponse = paths["/pos/carts/{id}/evaluate-coupons"]["get"]["responses"][200]["content"]["application/json"];
|
|
6917
|
+
type PosEvaluateCouponsContent = PosEvaluateCouponsResponse["content"];
|
|
6918
|
+
type PosEvaluateCouponsPathParams = paths["/pos/carts/{id}/evaluate-coupons"]["get"]["parameters"]["path"];
|
|
6919
|
+
type PosEvaluatePromotionsResponse = paths["/pos/carts/{id}/evaluate-promotions"]["get"]["responses"][200]["content"]["application/json"];
|
|
6920
|
+
type PosEvaluatePromotionsContent = PosEvaluatePromotionsResponse["content"];
|
|
6921
|
+
type PosEvaluatePromotionsPathParams = paths["/pos/carts/{id}/evaluate-promotions"]["get"]["parameters"]["path"];
|
|
6922
|
+
type PosUpdateFulfillmentPreferenceResponse = paths["/pos/carts/{id}/fulfillment-preference"]["post"]["responses"][200]["content"]["application/json"];
|
|
6923
|
+
type PosUpdateFulfillmentPreferencePathParams = paths["/pos/carts/{id}/fulfillment-preference"]["post"]["parameters"]["path"];
|
|
6924
|
+
type PosUpdateFulfillmentPreferenceBody = NonNullable<paths["/pos/carts/{id}/fulfillment-preference"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6925
|
+
type PosUpdateCartResponse = paths["/pos/carts/{id}/items"]["post"]["responses"][200]["content"]["application/json"];
|
|
6926
|
+
type PosUpdateCartContent = PosUpdateCartResponse["content"];
|
|
6927
|
+
type PosUpdateCartPathParams = paths["/pos/carts/{id}/items"]["post"]["parameters"]["path"];
|
|
6928
|
+
type PosUpdateCartBody = NonNullable<paths["/pos/carts/{id}/items"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6929
|
+
type PosRedeemLoyaltyPointsResponse = paths["/pos/carts/{id}/loyalty-points"]["post"]["responses"][200]["content"]["application/json"];
|
|
6930
|
+
type PosRedeemLoyaltyPointsContent = PosRedeemLoyaltyPointsResponse["content"];
|
|
6931
|
+
type PosRedeemLoyaltyPointsPathParams = paths["/pos/carts/{id}/loyalty-points"]["post"]["parameters"]["path"];
|
|
6932
|
+
type PosRedeemLoyaltyPointsBody = NonNullable<paths["/pos/carts/{id}/loyalty-points"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6933
|
+
type PosRemoveLoyaltyPointsResponse = paths["/pos/carts/{id}/loyalty-points"]["delete"]["responses"][200]["content"]["application/json"];
|
|
6934
|
+
type PosRemoveLoyaltyPointsContent = PosRemoveLoyaltyPointsResponse["content"];
|
|
6935
|
+
type PosRemoveLoyaltyPointsPathParams = paths["/pos/carts/{id}/loyalty-points"]["delete"]["parameters"]["path"];
|
|
6936
|
+
type UpdatePosCartCustomerResponse = paths["/pos/carts/{id}/update-customer"]["post"]["responses"][200]["content"]["application/json"];
|
|
6937
|
+
type UpdatePosCartCustomerContent = UpdatePosCartCustomerResponse["content"];
|
|
6938
|
+
type UpdatePosCartCustomerPathParams = paths["/pos/carts/{id}/update-customer"]["post"]["parameters"]["path"];
|
|
6939
|
+
type UpdatePosCartCustomerBody = NonNullable<paths["/pos/carts/{id}/update-customer"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6940
|
+
type PosListCategoriesResponse = paths["/pos/catalog/categories"]["get"]["responses"][200]["content"]["application/json"];
|
|
6941
|
+
type PosListCategoriesContent = PosListCategoriesResponse["content"];
|
|
6942
|
+
type PosListCategoriesQuery = paths["/pos/catalog/categories"]["get"]["parameters"]["query"];
|
|
6943
|
+
type PosListProductsResponse = paths["/pos/catalog/products"]["get"]["responses"][200]["content"]["application/json"];
|
|
6944
|
+
type PosListProductsContent = PosListProductsResponse["content"];
|
|
6945
|
+
type PosListProductsQuery = paths["/pos/catalog/products"]["get"]["parameters"]["query"];
|
|
6946
|
+
type PosListProductsHeaderParams = paths["/pos/catalog/products"]["get"]["parameters"]["header"];
|
|
6947
|
+
type PosListCrosssellProductsResponse = paths["/pos/catalog/products/cross-sell"]["get"]["responses"][200]["content"]["application/json"];
|
|
6948
|
+
type PosListCrosssellProductsContent = PosListCrosssellProductsResponse["content"];
|
|
6949
|
+
type PosListCrosssellProductsQuery = paths["/pos/catalog/products/cross-sell"]["get"]["parameters"]["query"];
|
|
6950
|
+
type PosListCrosssellProductsHeaderParams = paths["/pos/catalog/products/cross-sell"]["get"]["parameters"]["header"];
|
|
6951
|
+
type PosSearchProductsResponse = paths["/pos/catalog/products/search"]["post"]["responses"][200]["content"]["application/json"];
|
|
6952
|
+
type PosSearchProductsContent = PosSearchProductsResponse["content"];
|
|
6953
|
+
type PosSearchProductsHeaderParams = paths["/pos/catalog/products/search"]["post"]["parameters"]["header"];
|
|
6954
|
+
type PosSearchProductsBody = NonNullable<paths["/pos/catalog/products/search"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6955
|
+
type PosListSimilarProductsResponse = paths["/pos/catalog/products/similar"]["get"]["responses"][200]["content"]["application/json"];
|
|
6956
|
+
type PosListSimilarProductsContent = PosListSimilarProductsResponse["content"];
|
|
6957
|
+
type PosListSimilarProductsQuery = paths["/pos/catalog/products/similar"]["get"]["parameters"]["query"];
|
|
6958
|
+
type PosListSimilarProductsHeaderParams = paths["/pos/catalog/products/similar"]["get"]["parameters"]["header"];
|
|
6959
|
+
type PosListUpsellProductsResponse = paths["/pos/catalog/products/up-sell"]["get"]["responses"][200]["content"]["application/json"];
|
|
6960
|
+
type PosListUpsellProductsContent = PosListUpsellProductsResponse["content"];
|
|
6961
|
+
type PosListUpsellProductsQuery = paths["/pos/catalog/products/up-sell"]["get"]["parameters"]["query"];
|
|
6962
|
+
type PosListUpsellProductsHeaderParams = paths["/pos/catalog/products/up-sell"]["get"]["parameters"]["header"];
|
|
6963
|
+
type PosGetProductDetailResponse = paths["/pos/catalog/products/{product_id_or_slug}"]["get"]["responses"][200]["content"]["application/json"];
|
|
6964
|
+
type PosGetProductDetailContent = PosGetProductDetailResponse["content"];
|
|
6965
|
+
type PosGetProductDetailPathParams = paths["/pos/catalog/products/{product_id_or_slug}"]["get"]["parameters"]["path"];
|
|
6966
|
+
type PosGetProductDetailHeaderParams = paths["/pos/catalog/products/{product_id_or_slug}"]["get"]["parameters"]["header"];
|
|
6967
|
+
type PosListProductReviewsResponse = paths["/pos/catalog/products/{product_id}/reviews"]["get"]["responses"][200]["content"]["application/json"];
|
|
6968
|
+
type PosListProductReviewsContent = PosListProductReviewsResponse["content"];
|
|
6969
|
+
type PosListProductReviewsQuery = paths["/pos/catalog/products/{product_id}/reviews"]["get"]["parameters"]["query"];
|
|
6970
|
+
type PosListProductReviewsPathParams = paths["/pos/catalog/products/{product_id}/reviews"]["get"]["parameters"]["path"];
|
|
6971
|
+
type PosListProductVariantsResponse = paths["/pos/catalog/products/{product_id}/variants"]["get"]["responses"][200]["content"]["application/json"];
|
|
6972
|
+
type PosListProductVariantsContent = PosListProductVariantsResponse["content"];
|
|
6973
|
+
type PosListProductVariantsPathParams = paths["/pos/catalog/products/{product_id}/variants"]["get"]["parameters"]["path"];
|
|
6974
|
+
type PosListProductVariantsHeaderParams = paths["/pos/catalog/products/{product_id}/variants"]["get"]["parameters"]["header"];
|
|
6975
|
+
type PosGetVariantDetailResponse = paths["/pos/catalog/products/{product_id}/variants/{variant_id}"]["get"]["responses"][200]["content"]["application/json"];
|
|
6976
|
+
type PosGetVariantDetailContent = PosGetVariantDetailResponse["content"];
|
|
6977
|
+
type PosGetVariantDetailPathParams = paths["/pos/catalog/products/{product_id}/variants/{variant_id}"]["get"]["parameters"]["path"];
|
|
6978
|
+
type PosGetVariantDetailHeaderParams = paths["/pos/catalog/products/{product_id}/variants/{variant_id}"]["get"]["parameters"]["header"];
|
|
6979
|
+
type PosListSkusResponse = paths["/pos/catalog/skus"]["get"]["responses"][200]["content"]["application/json"];
|
|
6980
|
+
type PosListSkusContent = PosListSkusResponse["content"];
|
|
6981
|
+
type PosListSkusQuery = paths["/pos/catalog/skus"]["get"]["parameters"]["query"];
|
|
6982
|
+
type PosListSkusHeaderParams = paths["/pos/catalog/skus"]["get"]["parameters"]["header"];
|
|
6983
|
+
type ListPosDevicesResponse = paths["/pos/devices"]["get"]["responses"][200]["content"]["application/json"];
|
|
6984
|
+
type ListPosDevicesContent = ListPosDevicesResponse["content"];
|
|
6985
|
+
type ClaimPosDeviceResponse = paths["/pos/devices/{id}/claim"]["post"]["responses"][200]["content"]["application/json"];
|
|
6986
|
+
type ClaimPosDevicePathParams = paths["/pos/devices/{id}/claim"]["post"]["parameters"]["path"];
|
|
6987
|
+
type UnclaimPosDeviceResponse = paths["/pos/devices/{id}/unclaim"]["post"]["responses"][200]["content"]["application/json"];
|
|
6988
|
+
type UnclaimPosDevicePathParams = paths["/pos/devices/{id}/unclaim"]["post"]["parameters"]["path"];
|
|
6989
|
+
type GetPosFulfillmentOptionsResponse = paths["/pos/fulfillment-options"]["post"]["responses"][200]["content"]["application/json"];
|
|
6990
|
+
type GetPosFulfillmentOptionsContent = GetPosFulfillmentOptionsResponse["content"];
|
|
6991
|
+
type GetPosFulfillmentOptionsBody = NonNullable<paths["/pos/fulfillment-options"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6992
|
+
type ListPosLocationsResponse = paths["/pos/locations"]["get"]["responses"][200]["content"]["application/json"];
|
|
6993
|
+
type ListPosLocationsContent = ListPosLocationsResponse["content"];
|
|
6994
|
+
type CreatePosOrderResponse = paths["/pos/orders"]["post"]["responses"][200]["content"]["application/json"];
|
|
6995
|
+
type CreatePosOrderContent = CreatePosOrderResponse["content"];
|
|
6996
|
+
type CreatePosOrderBody = NonNullable<paths["/pos/orders"]["post"]["requestBody"]>["content"]["application/json"];
|
|
6997
|
+
type PosGetPaymentStatusResponse = paths["/pos/orders/{order_number}/payment-status"]["get"]["responses"][200]["content"]["application/json"];
|
|
6998
|
+
type PosGetPaymentStatusContent = PosGetPaymentStatusResponse["content"];
|
|
6999
|
+
type PosGetPaymentStatusPathParams = paths["/pos/orders/{order_number}/payment-status"]["get"]["parameters"]["path"];
|
|
7000
|
+
type PosListPaymentOptionsResponse = paths["/pos/payments/payment-options"]["get"]["responses"][200]["content"]["application/json"];
|
|
7001
|
+
type PosListPaymentOptionsContent = PosListPaymentOptionsResponse["content"];
|
|
7002
|
+
type GetPosUserResponse = paths["/pos/users/{id}"]["get"]["responses"][200]["content"]["application/json"];
|
|
7003
|
+
type GetPosUserContent = GetPosUserResponse["content"];
|
|
7004
|
+
type GetPosUserPathParams = paths["/pos/users/{id}"]["get"]["parameters"]["path"];
|
|
6939
7005
|
//#endregion
|
|
6940
7006
|
//#region src/types/admin-pos-api-types.d.ts
|
|
6941
7007
|
type PosListInventoryResponse = paths$1["/pos/catalog/inventories"]["get"]["responses"][200]["content"]["application/json"];
|
|
@@ -7108,6 +7174,24 @@ declare class PosClient extends PosAPIClient {
|
|
|
7108
7174
|
* ```
|
|
7109
7175
|
*/
|
|
7110
7176
|
refreshAccessToken(body: RefreshPosAccessTokenBody): Promise<ApiResult<RefreshPosAccessTokenContent>>;
|
|
7177
|
+
/**
|
|
7178
|
+
* Get POS user details
|
|
7179
|
+
* @param pathParams - User ID
|
|
7180
|
+
* @returns Promise with user details
|
|
7181
|
+
* @example
|
|
7182
|
+
* ```typescript
|
|
7183
|
+
* const { data, error } = await pos.getUser({
|
|
7184
|
+
* id: "01H9USER12345ABCDE"
|
|
7185
|
+
* });
|
|
7186
|
+
*
|
|
7187
|
+
* if (error) {
|
|
7188
|
+
* console.error("Failed to get user:", error.message);
|
|
7189
|
+
* } else {
|
|
7190
|
+
* console.log("User:", data.user);
|
|
7191
|
+
* }
|
|
7192
|
+
* ```
|
|
7193
|
+
*/
|
|
7194
|
+
getUser(pathParams: GetPosUserPathParams): Promise<ApiResult<GetPosUserContent>>;
|
|
7111
7195
|
/**
|
|
7112
7196
|
* Logout
|
|
7113
7197
|
* @returns Promise with logout confirmation
|
|
@@ -8702,8 +8786,6 @@ interface UserInfo {
|
|
|
8702
8786
|
lastName: string;
|
|
8703
8787
|
storeId: string;
|
|
8704
8788
|
isLoggedIn: boolean;
|
|
8705
|
-
customerId: string | null;
|
|
8706
|
-
customerGroupId: string | null;
|
|
8707
8789
|
roles: {
|
|
8708
8790
|
roleId: string;
|
|
8709
8791
|
roleName: string;
|
|
@@ -8896,5 +8978,5 @@ declare class PosSDK {
|
|
|
8896
8978
|
getTenantId(): Promise<string | null>;
|
|
8897
8979
|
}
|
|
8898
8980
|
//#endregion
|
|
8899
|
-
export { AcceleratedRewardCouponPromotion, AcceleratedRewardRule, AdditionalProductDetails, ApiErrorResponse, ApiResult, ApplicableCoupon, ApplicablePromotion, AppliedCoupon, AppliedPromotion, AssociatedOption, AutoScaleBasedOnAmount, AutoScaleBasedOnQuantity, BankTransfer, BaseAPIClient, BaseSDKOptions, BooleanAttribute, BrowserTokenStorage, BuyXGetYCouponPromotion, BuyXGetYRule, BuyXGetYRuleBasedOnAmount, BuyXGetYRuleBasedOnQuantity, CardPayment, Cart, CartBasedServiceabilityCheck, CartItem, Category, ClaimPosDevicePathParams, ClaimPosDeviceResponse, CollectInStore, CollectInStoreFulfillment, ColorAttribute, ColorOption, Coupon, CouponPromotionCommonDetail, CouponType, CreatePosOrderBody, CreatePosOrderContent, CreatePosOrderResponse, Currency, CustomSlabsBasedOnAmount, CustomSlabsBasedOnQuantity, CustomerAddress, DateAttribute, DebugLogger, DebugLoggerFn, DeliveryFulfillment, DiscountBasedPromotion, DiscountCouponPromotion, DiscountRule, Environment, FixedAmountDiscountRule, FixedPriceCouponPromotion, FixedPricePromotion, FixedPriceRule, FixedPriceRuleBasedAmount, FixedPriceRuleBasedQuantity, FreeGoodCouponPromotion, FreeGoodsPromotion, FreeGoodsRule, FreeShipingCouponPromotion, GetPosFulfillmentOptionsBody, GetPosFulfillmentOptionsContent, GetPosFulfillmentOptionsResponse, HeaderConfig, InapplicableCoupon, InapplicablePromotion, Item, JuspayPaymentGatewayParams, ListPosDevicesContent, ListPosDevicesResponse, ListPosLocationsContent, ListPosLocationsResponse, LoginPosDeviceWithEmailBody, LoginPosDeviceWithEmailContent, LoginPosDeviceWithEmailResponse, LoginPosDeviceWithPhoneBody, LoginPosDeviceWithPhoneContent, LoginPosDeviceWithPhoneResponse, LoginPosDeviceWithWhatsappBody, LoginPosDeviceWithWhatsappContent, LoginPosDeviceWithWhatsappResponse, LogoutFromPosDeviceResponse, MemoryTokenStorage, MultiSelectAttribute, NetbankingPayment, NumberAttribute, Order, OrderDetail, OrderItem, OrderPayment, OrderRefund, OrderShipment, Pagination, PairPosDeviceBody, PairPosDeviceContent, PairPosDeviceResponse, PayWithCard, PayWithCash, PayWithPaymentGateway, PayWithUpi, PaymentGateway, PaymentGatewayParams, PaymentInfo, PayuPaymentGatewayParams, PercentageDiscountRule, PincodeServiceability, PosAPIClient, PosApplyCouponBody, PosApplyCouponContent, PosApplyCouponPathParams, PosApplyCouponResponse, PosClient, PosCreateCartAddressBody, PosCreateCartAddressContent, PosCreateCartAddressPathParams, PosCreateCartAddressResponse, PosCreateCartBody, PosCreateCartContent, PosCreateCartResponse, PosDeleteCartPathParams, PosDeleteCartResponse, PosDevice, PosEvaluateCouponsContent, PosEvaluateCouponsPathParams, PosEvaluateCouponsResponse, PosEvaluatePromotionsContent, PosEvaluatePromotionsPathParams, PosEvaluatePromotionsResponse, PosGetCartContent, PosGetCartPathParams, PosGetCartResponse, PosGetPaymentStatusContent, PosGetPaymentStatusPathParams, PosGetPaymentStatusResponse, PosGetProductDetailContent, PosGetProductDetailHeaderParams, PosGetProductDetailPathParams, PosGetProductDetailResponse, PosGetVariantDetailContent, PosGetVariantDetailHeaderParams, PosGetVariantDetailPathParams, PosGetVariantDetailResponse, PosListCategoriesContent, PosListCategoriesQuery, PosListCategoriesResponse, PosListCouponsContent, PosListCouponsHeaderParams, PosListCouponsResponse, PosListCrosssellProductsContent, PosListCrosssellProductsHeaderParams, PosListCrosssellProductsQuery, PosListCrosssellProductsResponse, PosListPaymentOptionsContent, PosListPaymentOptionsResponse, PosListProductReviewsContent, PosListProductReviewsPathParams, PosListProductReviewsQuery, PosListProductReviewsResponse, PosListProductVariantsContent, PosListProductVariantsHeaderParams, PosListProductVariantsPathParams, 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, PosSDK, PosSDK as default, PosSDKOptions, PosSearchProductsBody, PosSearchProductsContent, PosSearchProductsHeaderParams, PosSearchProductsResponse, PosUpdateCartBody, PosUpdateCartContent, PosUpdateCartPathParams, PosUpdateCartResponse, PosUpdateCustomerWithEmail, PosUpdateCustomerWithId, PosUpdateCustomerWithPhone, PosUpdateFulfillmentPreferenceBody, PosUpdateFulfillmentPreferencePathParams, PosUpdateFulfillmentPreferenceResponse, PosUser, Product, ProductAttribute, ProductBundleItem, ProductCategory, ProductDetail, ProductImage, ProductPricing, ProductPromotion, ProductReview, ProductShipping, ProductSubscription, ProductVideo, Promotion, PromotionType, RefreshPosAccessTokenBody, RefreshPosAccessTokenContent, RefreshPosAccessTokenResponse, ResponseUtils, SearchProduct, Seo, ShipmentItem, SingleSelectAttribute, SingleSelectOption, SupportedDefaultHeaders, TextAttribute, type TokenStorage, UnclaimPosDevicePathParams, UnclaimPosDeviceResponse, UpdateCartItem, UpdatePosCartCustomerBody, UpdatePosCartCustomerContent, UpdatePosCartCustomerPathParams, UpdatePosCartCustomerResponse, UpiPayment, type UserInfo, Variant, VariantDetail, VariantOption, VerifyPosLoginOtpBody, VerifyPosLoginOtpContent, VerifyPosLoginOtpResponse, VolumeBasedCouponPromotion, VolumeBasedPromotion, VolumeBasedRule, WalletPayment, type components, createDebugMiddleware, createTimeoutMiddleware, executeRequest, extractRequestBody, getPathnameFromUrl, mergeAndTransformHeaders, mergeHeaders, type operations, type paths, transformHeaders };
|
|
8981
|
+
export { AcceleratedRewardCouponPromotion, AcceleratedRewardRule, AdditionalProductDetails, ApiErrorResponse, ApiResult, ApplicableCoupon, ApplicablePromotion, AppliedCoupon, AppliedPromotion, AssociatedOption, AutoScaleBasedOnAmount, AutoScaleBasedOnQuantity, BankTransfer, BaseAPIClient, BaseSDKOptions, BooleanAttribute, BrowserTokenStorage, BuyXGetYCouponPromotion, BuyXGetYRule, BuyXGetYRuleBasedOnAmount, BuyXGetYRuleBasedOnQuantity, CardPayment, Cart, CartBasedServiceabilityCheck, CartItem, Category, ClaimPosDevicePathParams, ClaimPosDeviceResponse, CollectInStore, CollectInStoreFulfillment, ColorAttribute, ColorOption, Coupon, CouponPromotionCommonDetail, CouponType, CreatePosOrderBody, CreatePosOrderContent, CreatePosOrderResponse, Currency, CustomSlabsBasedOnAmount, CustomSlabsBasedOnQuantity, CustomerAddress, DateAttribute, DebugLogger, DebugLoggerFn, DeliveryFulfillment, DiscountBasedPromotion, DiscountCouponPromotion, DiscountRule, Environment, FixedAmountDiscountRule, FixedPriceCouponPromotion, FixedPricePromotion, FixedPriceRule, FixedPriceRuleBasedAmount, FixedPriceRuleBasedQuantity, FreeGoodCouponPromotion, FreeGoodsPromotion, FreeGoodsRule, FreeShipingCouponPromotion, GetPosFulfillmentOptionsBody, GetPosFulfillmentOptionsContent, GetPosFulfillmentOptionsResponse, GetPosUserContent, GetPosUserPathParams, GetPosUserResponse, HeaderConfig, InapplicableCoupon, InapplicablePromotion, Item, JuspayPaymentGatewayParams, ListPosDevicesContent, ListPosDevicesResponse, ListPosLocationsContent, ListPosLocationsResponse, LoginPosDeviceWithEmailBody, LoginPosDeviceWithEmailContent, LoginPosDeviceWithEmailResponse, LoginPosDeviceWithPhoneBody, LoginPosDeviceWithPhoneContent, LoginPosDeviceWithPhoneResponse, LoginPosDeviceWithWhatsappBody, LoginPosDeviceWithWhatsappContent, LoginPosDeviceWithWhatsappResponse, LogoutFromPosDeviceResponse, MemoryTokenStorage, MultiSelectAttribute, NetbankingPayment, NumberAttribute, Order, OrderDetail, OrderItem, OrderPayment, OrderRefund, OrderShipment, Pagination, PairPosDeviceBody, PairPosDeviceContent, PairPosDeviceResponse, PayWithCard, PayWithCash, PayWithPaymentGateway, PayWithUpi, PaymentGateway, PaymentGatewayParams, PaymentInfo, PayuPaymentGatewayParams, PercentageDiscountRule, PincodeServiceability, PosAPIClient, PosApplyCouponBody, PosApplyCouponContent, PosApplyCouponPathParams, PosApplyCouponResponse, PosClient, PosCreateCartAddressBody, PosCreateCartAddressContent, PosCreateCartAddressPathParams, PosCreateCartAddressResponse, PosCreateCartBody, PosCreateCartContent, PosCreateCartResponse, PosDeleteCartPathParams, PosDeleteCartResponse, PosDevice, PosEvaluateCouponsContent, PosEvaluateCouponsPathParams, PosEvaluateCouponsResponse, PosEvaluatePromotionsContent, PosEvaluatePromotionsPathParams, PosEvaluatePromotionsResponse, PosGetCartContent, PosGetCartPathParams, PosGetCartResponse, PosGetPaymentStatusContent, PosGetPaymentStatusPathParams, PosGetPaymentStatusResponse, PosGetProductDetailContent, PosGetProductDetailHeaderParams, PosGetProductDetailPathParams, PosGetProductDetailResponse, PosGetVariantDetailContent, PosGetVariantDetailHeaderParams, PosGetVariantDetailPathParams, PosGetVariantDetailResponse, PosListCategoriesContent, PosListCategoriesQuery, PosListCategoriesResponse, PosListCouponsContent, PosListCouponsHeaderParams, PosListCouponsResponse, PosListCrosssellProductsContent, PosListCrosssellProductsHeaderParams, PosListCrosssellProductsQuery, PosListCrosssellProductsResponse, PosListPaymentOptionsContent, PosListPaymentOptionsResponse, PosListProductReviewsContent, PosListProductReviewsPathParams, PosListProductReviewsQuery, PosListProductReviewsResponse, PosListProductVariantsContent, PosListProductVariantsHeaderParams, PosListProductVariantsPathParams, 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, PosSDK, PosSDK as default, PosSDKOptions, PosSearchProductsBody, PosSearchProductsContent, PosSearchProductsHeaderParams, PosSearchProductsResponse, PosUpdateCartBody, PosUpdateCartContent, PosUpdateCartPathParams, PosUpdateCartResponse, PosUpdateCustomerWithEmail, PosUpdateCustomerWithId, PosUpdateCustomerWithPhone, PosUpdateFulfillmentPreferenceBody, PosUpdateFulfillmentPreferencePathParams, PosUpdateFulfillmentPreferenceResponse, PosUser, Product, ProductAttribute, ProductBundleItem, ProductCategory, ProductDetail, ProductImage, ProductPricing, ProductPromotion, ProductReview, ProductShipping, ProductSubscription, ProductVideo, Promotion, PromotionType, RefreshPosAccessTokenBody, RefreshPosAccessTokenContent, RefreshPosAccessTokenResponse, ResponseUtils, SearchProduct, Seo, ShipmentItem, SingleSelectAttribute, SingleSelectOption, SupportedDefaultHeaders, TextAttribute, type TokenStorage, UnclaimPosDevicePathParams, UnclaimPosDeviceResponse, UpdateCartItem, UpdatePosCartCustomerBody, UpdatePosCartCustomerContent, UpdatePosCartCustomerPathParams, UpdatePosCartCustomerResponse, UpiPayment, type UserInfo, Variant, VariantDetail, VariantOption, VerifyPosLoginOtpBody, VerifyPosLoginOtpContent, VerifyPosLoginOtpResponse, VolumeBasedCouponPromotion, VolumeBasedPromotion, VolumeBasedRule, WalletPayment, type components, createDebugMiddleware, createTimeoutMiddleware, executeRequest, extractRequestBody, getPathnameFromUrl, mergeAndTransformHeaders, mergeHeaders, type operations, type paths, transformHeaders };
|
|
8900
8982
|
//# sourceMappingURL=index.d.ts.map
|