ce-storefront 0.3.17 → 0.3.19
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/FUNCTIONS.md +2 -2
- package/README.md +108 -129
- package/docs/sdks/addresses/README.md +363 -4
- package/docs/sdks/auth/README.md +0 -72
- package/docs/sdks/{cestorefrontaddresses → cestorefrontreviews}/README.md +34 -123
- package/docs/sdks/cestorefrontuser/README.md +735 -6
- package/docs/sdks/customers/README.md +18 -192
- package/docs/sdks/juspay/README.md +15 -15
- package/docs/sdks/loyalty/README.md +81 -0
- package/docs/sdks/notificationpreferences/README.md +162 -4
- package/docs/sdks/orders/README.md +5 -163
- package/docs/sdks/payments/README.md +95 -15
- package/docs/sdks/products/README.md +94 -15
- package/docs/sdks/{cards → refunds}/README.md +11 -12
- package/docs/sdks/reviews/README.md +13 -17
- package/docs/sdks/{catalogproducts → shipments}/README.md +12 -12
- package/docs/sdks/{shipment → shipping}/README.md +5 -5
- package/docs/sdks/{catalogskus → skus}/README.md +3 -3
- package/docs/sdks/user/README.md +0 -425
- package/docs/sdks/utils/README.md +72 -0
- package/docs/sdks/wishlist/README.md +5 -5
- package/esm/funcs/{authUsersAddProfileImage.d.ts → authUserAddProfileImage.d.ts} +2 -2
- package/esm/funcs/authUserAddProfileImage.d.ts.map +1 -0
- package/esm/funcs/{authUsersAddProfileImage.js → authUserAddProfileImage.js} +2 -2
- package/esm/funcs/authUserAddProfileImage.js.map +1 -0
- package/esm/funcs/{authUserDeactivate.d.ts → authUserDeactivateAccount.d.ts} +2 -2
- package/esm/funcs/authUserDeactivateAccount.d.ts.map +1 -0
- package/esm/funcs/{authUserDeactivate.js → authUserDeactivateAccount.js} +2 -2
- package/esm/funcs/authUserDeactivateAccount.js.map +1 -0
- package/esm/funcs/{userDeleteProfileImage.d.ts → authUserDeleteProfileImage.d.ts} +2 -2
- package/esm/funcs/authUserDeleteProfileImage.d.ts.map +1 -0
- package/esm/funcs/{userDeleteProfileImage.js → authUserDeleteProfileImage.js} +2 -2
- package/esm/funcs/authUserDeleteProfileImage.js.map +1 -0
- package/esm/funcs/{usersGet.d.ts → authUserGet.d.ts} +2 -2
- package/esm/funcs/authUserGet.d.ts.map +1 -0
- package/esm/funcs/{usersGet.js → authUserGet.js} +2 -2
- package/esm/funcs/authUserGet.js.map +1 -0
- package/esm/funcs/{usersGetProfileImage.d.ts → authUserGetProfileImage.d.ts} +2 -2
- package/esm/funcs/authUserGetProfileImage.d.ts.map +1 -0
- package/esm/funcs/{usersGetProfileImage.js → authUserGetProfileImage.js} +2 -2
- package/esm/funcs/authUserGetProfileImage.js.map +1 -0
- package/esm/funcs/{authLogout.d.ts → authUserLogout.d.ts} +2 -2
- package/esm/funcs/authUserLogout.d.ts.map +1 -0
- package/esm/funcs/{authLogout.js → authUserLogout.js} +2 -2
- package/esm/funcs/authUserLogout.js.map +1 -0
- package/esm/funcs/{userResetPassword.d.ts → authUserResetPassword.d.ts} +2 -2
- package/esm/funcs/authUserResetPassword.d.ts.map +1 -0
- package/esm/funcs/{userResetPassword.js → authUserResetPassword.js} +2 -2
- package/esm/funcs/authUserResetPassword.js.map +1 -0
- package/esm/funcs/{userUpdate.d.ts → authUserUpdate.d.ts} +2 -2
- package/esm/funcs/authUserUpdate.d.ts.map +1 -0
- package/esm/funcs/{userUpdate.js → authUserUpdate.js} +2 -2
- package/esm/funcs/authUserUpdate.js.map +1 -0
- package/esm/funcs/{userUpdateProfileImage.d.ts → authUserUpdateProfileImage.d.ts} +2 -2
- package/esm/funcs/authUserUpdateProfileImage.d.ts.map +1 -0
- package/esm/funcs/{userUpdateProfileImage.js → authUserUpdateProfileImage.js} +2 -2
- package/esm/funcs/authUserUpdateProfileImage.js.map +1 -0
- package/esm/funcs/{addressesGet.d.ts → catalogProductsGetCrossSells.d.ts} +4 -4
- package/esm/funcs/catalogProductsGetCrossSells.d.ts.map +1 -0
- package/esm/funcs/{productsListCrossSells.js → catalogProductsGetCrossSells.js} +2 -2
- package/esm/funcs/catalogProductsGetCrossSells.js.map +1 -0
- package/esm/funcs/{productsGetSimilar.d.ts → catalogProductsGetSimilar.d.ts} +2 -2
- package/esm/funcs/catalogProductsGetSimilar.d.ts.map +1 -0
- package/esm/funcs/{productsGetSimilar.js → catalogProductsGetSimilar.js} +2 -2
- package/esm/funcs/catalogProductsGetSimilar.js.map +1 -0
- package/esm/funcs/{productsGetUpsells.d.ts → catalogProductsGetUpsells.d.ts} +2 -2
- package/esm/funcs/catalogProductsGetUpsells.d.ts.map +1 -0
- package/esm/funcs/{productsGetUpsells.js → catalogProductsGetUpsells.js} +2 -2
- package/esm/funcs/catalogProductsGetUpsells.js.map +1 -0
- package/esm/funcs/{productsList.d.ts → catalogProductsList.d.ts} +2 -2
- package/esm/funcs/{customersAddAddress.d.ts.map → catalogProductsList.d.ts.map} +1 -1
- package/esm/funcs/{productsList.js → catalogProductsList.js} +2 -2
- package/esm/funcs/catalogProductsList.js.map +1 -0
- package/esm/funcs/{catalogProductReviewsCreate.d.ts → catalogProductsReviewsCreate.d.ts} +2 -2
- package/esm/funcs/catalogProductsReviewsCreate.d.ts.map +1 -0
- package/esm/funcs/{catalogProductReviewsCreate.js → catalogProductsReviewsCreate.js} +2 -2
- package/esm/funcs/catalogProductsReviewsCreate.js.map +1 -0
- package/esm/funcs/{customersUpdate.d.ts → customersAddressesAdd.d.ts} +4 -4
- package/esm/funcs/customersAddressesAdd.d.ts.map +1 -0
- package/esm/funcs/{customersAddAddress.js → customersAddressesAdd.js} +2 -2
- package/esm/funcs/customersAddressesAdd.js.map +1 -0
- package/esm/funcs/customersAddressesGet.d.ts +16 -0
- package/esm/funcs/customersAddressesGet.d.ts.map +1 -0
- package/esm/funcs/{addressesGet.js → customersAddressesGet.js} +2 -2
- package/esm/funcs/customersAddressesGet.js.map +1 -0
- package/esm/funcs/{customersGet.d.ts → customersGetCustomersId.d.ts} +2 -2
- package/esm/funcs/customersGetCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersGet.js → customersGetCustomersId.js} +2 -2
- package/esm/funcs/customersGetCustomersId.js.map +1 -0
- package/esm/funcs/{loyaltyPointsListActivities.d.ts → customersLoyaltyListActivities.d.ts} +2 -2
- package/esm/funcs/customersLoyaltyListActivities.d.ts.map +1 -0
- package/esm/funcs/{loyaltyPointsListActivities.js → customersLoyaltyListActivities.js} +2 -2
- package/esm/funcs/customersLoyaltyListActivities.js.map +1 -0
- package/esm/funcs/{customersCreate.d.ts → customersPostCustomers.d.ts} +2 -2
- package/esm/funcs/customersPostCustomers.d.ts.map +1 -0
- package/esm/funcs/{customersCreate.js → customersPostCustomers.js} +2 -2
- package/esm/funcs/customersPostCustomers.js.map +1 -0
- package/esm/funcs/customersPutCustomersId.d.ts +16 -0
- package/esm/funcs/customersPutCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersUpdate.js → customersPutCustomersId.js} +2 -2
- package/esm/funcs/customersPutCustomersId.js.map +1 -0
- package/esm/funcs/{ordersGetPaymentStatus.d.ts → customersReviewsList.d.ts} +4 -4
- package/esm/funcs/{usersGetProfileImage.d.ts.map → customersReviewsList.d.ts.map} +1 -1
- package/esm/funcs/{customersGetReviews.js → customersReviewsList.js} +2 -2
- package/esm/funcs/{usersGetProfileImage.js.map → customersReviewsList.js.map} +1 -1
- package/esm/funcs/{juspayGetCustomer.d.ts → juspayGetPaymentsJuspayCustomer.d.ts} +2 -2
- package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +1 -0
- package/esm/funcs/{juspayGetCustomer.js → juspayGetPaymentsJuspayCustomer.js} +2 -2
- package/esm/funcs/{juspayCreateOrder.js.map → juspayGetPaymentsJuspayCustomer.js.map} +1 -1
- package/esm/funcs/{wishlistRemoveItem.d.ts → juspayPostPaymentsJuspayCreateCustomer.d.ts} +5 -4
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +1 -0
- package/esm/funcs/{juspayCreateCustomer.js → juspayPostPaymentsJuspayCreateCustomer.js} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +1 -0
- package/esm/funcs/{juspayCreateOrder.d.ts → juspayPostPaymentsJuspayCreateOrder.d.ts} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +1 -0
- package/esm/funcs/{juspayCreateOrder.js → juspayPostPaymentsJuspayCreateOrder.js} +2 -2
- package/esm/funcs/{juspayGetCustomer.js.map → juspayPostPaymentsJuspayCreateOrder.js.map} +1 -1
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts +15 -0
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +1 -0
- package/esm/funcs/{ordersGetPaymentStatus.js → ordersGetOrdersIdPaymentStatus.js} +2 -2
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +1 -0
- package/esm/funcs/{ordersGetRefunds.d.ts → ordersRefundsList.d.ts} +2 -2
- package/esm/funcs/{userResetPassword.d.ts.map → ordersRefundsList.d.ts.map} +1 -1
- package/esm/funcs/{ordersGetRefunds.js → ordersRefundsList.js} +2 -2
- package/esm/funcs/ordersRefundsList.js.map +1 -0
- package/esm/funcs/{ordersGetShipments.d.ts → ordersShipmentsList.d.ts} +2 -2
- package/esm/funcs/ordersShipmentsList.d.ts.map +1 -0
- package/esm/funcs/{ordersGetShipments.js → ordersShipmentsList.js} +2 -2
- package/esm/funcs/ordersShipmentsList.js.map +1 -0
- package/esm/funcs/{paymentsListMethods.d.ts → paymentsGetMethods.d.ts} +2 -2
- package/esm/funcs/{authUserDeactivate.d.ts.map → paymentsGetMethods.d.ts.map} +1 -1
- package/esm/funcs/{paymentsListMethods.js → paymentsGetMethods.js} +2 -2
- package/esm/funcs/paymentsGetMethods.js.map +1 -0
- package/esm/funcs/{paymentsCardsList.d.ts → paymentsGetPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsCardsList.js → paymentsGetPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.js.map +1 -0
- package/esm/funcs/{paymentsVerifyVpa.d.ts → paymentsGetPaymentsVerifyVpa.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +1 -0
- package/esm/funcs/{paymentsVerifyVpa.js → paymentsGetPaymentsVerifyVpa.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +1 -0
- package/esm/funcs/{paymentsAddCard.d.ts → paymentsPostPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsAddCard.js → paymentsPostPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.js.map +1 -0
- package/esm/funcs/{shipmentCheckPincodeServiceability.d.ts → shippingCheckPincodeServiceability.d.ts} +2 -2
- package/esm/funcs/{shipmentCheckPincodeServiceability.d.ts.map → shippingCheckPincodeServiceability.d.ts.map} +1 -1
- package/esm/funcs/{shipmentCheckPincodeServiceability.js → shippingCheckPincodeServiceability.js} +2 -2
- package/esm/funcs/{shipmentCheckPincodeServiceability.js.map → shippingCheckPincodeServiceability.js.map} +1 -1
- package/esm/funcs/{usersCreateNotificationPreferences.d.ts → userNotificationPreferencesCreate.d.ts} +2 -2
- package/esm/funcs/userNotificationPreferencesCreate.d.ts.map +1 -0
- package/esm/funcs/{usersCreateNotificationPreferences.js → userNotificationPreferencesCreate.js} +2 -2
- package/esm/funcs/userNotificationPreferencesCreate.js.map +1 -0
- package/esm/funcs/{authUserNotificationPreferencesGet.d.ts → userNotificationPreferencesGet.d.ts} +2 -2
- package/esm/funcs/userNotificationPreferencesGet.d.ts.map +1 -0
- package/esm/funcs/{authUserNotificationPreferencesGet.js → userNotificationPreferencesGet.js} +2 -2
- package/esm/funcs/userNotificationPreferencesGet.js.map +1 -0
- package/esm/funcs/{userUpdateNotificationPreferences.d.ts → userNotificationPreferencesUpdate.d.ts} +2 -2
- package/esm/funcs/{userUpdateNotificationPreferences.d.ts.map → userNotificationPreferencesUpdate.d.ts.map} +1 -1
- package/esm/funcs/{userUpdateNotificationPreferences.js → userNotificationPreferencesUpdate.js} +2 -2
- package/esm/funcs/{userUpdateNotificationPreferences.js.map → userNotificationPreferencesUpdate.js.map} +1 -1
- package/esm/funcs/{utilsCountriesGet.d.ts → utilsGetCountries.d.ts} +2 -2
- package/esm/funcs/{utilsCountriesGet.d.ts.map → utilsGetCountries.d.ts.map} +1 -1
- package/esm/funcs/{utilsCountriesGet.js → utilsGetCountries.js} +2 -2
- package/esm/funcs/{utilsCountriesGet.js.map → utilsGetCountries.js.map} +1 -1
- package/esm/funcs/{customersAddAddress.d.ts → wishlistDelete.d.ts} +4 -4
- package/esm/funcs/wishlistDelete.d.ts.map +1 -0
- package/esm/funcs/{wishlistRemoveItem.js → wishlistDelete.js} +2 -2
- package/esm/funcs/wishlistDelete.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/sdk/addresses.d.ts +28 -0
- package/esm/sdk/addresses.d.ts.map +1 -1
- package/esm/sdk/addresses.js +42 -2
- package/esm/sdk/addresses.js.map +1 -1
- package/esm/sdk/auth.d.ts +0 -10
- package/esm/sdk/auth.d.ts.map +1 -1
- package/esm/sdk/auth.js +0 -14
- package/esm/sdk/auth.js.map +1 -1
- package/esm/sdk/catalog.d.ts +5 -2
- package/esm/sdk/catalog.d.ts.map +1 -1
- package/esm/sdk/catalog.js +6 -2
- package/esm/sdk/catalog.js.map +1 -1
- package/esm/sdk/cestorefrontreviews.d.ts +19 -0
- package/esm/sdk/cestorefrontreviews.d.ts.map +1 -0
- package/esm/sdk/cestorefrontreviews.js +28 -0
- package/esm/sdk/cestorefrontreviews.js.map +1 -0
- package/esm/sdk/cestorefrontuser.d.ts +64 -4
- package/esm/sdk/cestorefrontuser.d.ts.map +1 -1
- package/esm/sdk/cestorefrontuser.js +92 -6
- package/esm/sdk/cestorefrontuser.js.map +1 -1
- package/esm/sdk/customers.d.ts +8 -19
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/customers.js +15 -31
- package/esm/sdk/customers.js.map +1 -1
- package/esm/sdk/juspay.d.ts +3 -3
- package/esm/sdk/juspay.d.ts.map +1 -1
- package/esm/sdk/juspay.js +9 -9
- package/esm/sdk/juspay.js.map +1 -1
- package/esm/sdk/loyalty.d.ts +7 -0
- package/esm/sdk/loyalty.d.ts.map +1 -1
- package/esm/sdk/loyalty.js +10 -0
- package/esm/sdk/loyalty.js.map +1 -1
- package/esm/sdk/notificationpreferences.d.ts +14 -0
- package/esm/sdk/notificationpreferences.d.ts.map +1 -1
- package/esm/sdk/notificationpreferences.js +22 -2
- package/esm/sdk/notificationpreferences.js.map +1 -1
- package/esm/sdk/orders.d.ts +7 -15
- package/esm/sdk/orders.d.ts.map +1 -1
- package/esm/sdk/orders.js +11 -23
- package/esm/sdk/orders.js.map +1 -1
- package/esm/sdk/payments.d.ts +10 -6
- package/esm/sdk/payments.d.ts.map +1 -1
- package/esm/sdk/payments.js +19 -13
- package/esm/sdk/payments.js.map +1 -1
- package/esm/sdk/products.d.ts +14 -1
- package/esm/sdk/products.d.ts.map +1 -1
- package/esm/sdk/products.js +27 -9
- package/esm/sdk/products.js.map +1 -1
- package/esm/sdk/refunds.d.ts +12 -0
- package/esm/sdk/refunds.d.ts.map +1 -0
- package/esm/sdk/refunds.js +18 -0
- package/esm/sdk/refunds.js.map +1 -0
- package/esm/sdk/reviews.d.ts +3 -3
- package/esm/sdk/reviews.d.ts.map +1 -1
- package/esm/sdk/reviews.js +4 -4
- package/esm/sdk/reviews.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -27
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +3 -35
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/shipments.d.ts +12 -0
- package/esm/sdk/shipments.d.ts.map +1 -0
- package/esm/sdk/shipments.js +18 -0
- package/esm/sdk/shipments.js.map +1 -0
- package/esm/sdk/{shipment.d.ts → shipping.d.ts} +2 -2
- package/esm/sdk/{shipment.d.ts.map → shipping.d.ts.map} +1 -1
- package/esm/sdk/{shipment.js → shipping.js} +4 -4
- package/esm/sdk/{shipment.js.map → shipping.js.map} +1 -1
- package/esm/sdk/{catalogskus.d.ts → skus.d.ts} +2 -2
- package/esm/sdk/skus.d.ts.map +1 -0
- package/esm/sdk/{catalogskus.js → skus.js} +2 -2
- package/esm/sdk/skus.js.map +1 -0
- package/esm/sdk/user.d.ts +4 -37
- package/esm/sdk/user.d.ts.map +1 -1
- package/esm/sdk/user.js +3 -50
- package/esm/sdk/user.js.map +1 -1
- package/esm/sdk/utils.d.ts +7 -3
- package/esm/sdk/utils.d.ts.map +1 -1
- package/esm/sdk/utils.js +9 -3
- package/esm/sdk/utils.js.map +1 -1
- package/esm/sdk/wishlist.d.ts +1 -1
- package/esm/sdk/wishlist.d.ts.map +1 -1
- package/esm/sdk/wishlist.js +3 -3
- package/esm/sdk/wishlist.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{authUsersAddProfileImage.ts → authUserAddProfileImage.ts} +1 -1
- package/src/funcs/{authUserDeactivate.ts → authUserDeactivateAccount.ts} +1 -1
- package/src/funcs/{userDeleteProfileImage.ts → authUserDeleteProfileImage.ts} +1 -1
- package/src/funcs/{usersGet.ts → authUserGet.ts} +1 -1
- package/src/funcs/{usersGetProfileImage.ts → authUserGetProfileImage.ts} +1 -1
- package/src/funcs/{authLogout.ts → authUserLogout.ts} +1 -1
- package/src/funcs/{userResetPassword.ts → authUserResetPassword.ts} +1 -1
- package/src/funcs/{userUpdate.ts → authUserUpdate.ts} +1 -1
- package/src/funcs/{userUpdateProfileImage.ts → authUserUpdateProfileImage.ts} +1 -1
- package/src/funcs/{productsListCrossSells.ts → catalogProductsGetCrossSells.ts} +1 -1
- package/src/funcs/{productsGetSimilar.ts → catalogProductsGetSimilar.ts} +1 -1
- package/src/funcs/{productsGetUpsells.ts → catalogProductsGetUpsells.ts} +1 -1
- package/src/funcs/{productsList.ts → catalogProductsList.ts} +1 -1
- package/src/funcs/{catalogProductReviewsCreate.ts → catalogProductsReviewsCreate.ts} +1 -1
- package/src/funcs/{customersAddAddress.ts → customersAddressesAdd.ts} +1 -1
- package/src/funcs/{addressesGet.ts → customersAddressesGet.ts} +1 -1
- package/src/funcs/{customersGet.ts → customersGetCustomersId.ts} +1 -1
- package/src/funcs/{loyaltyPointsListActivities.ts → customersLoyaltyListActivities.ts} +1 -1
- package/src/funcs/{customersCreate.ts → customersPostCustomers.ts} +1 -1
- package/src/funcs/{customersUpdate.ts → customersPutCustomersId.ts} +1 -1
- package/src/funcs/{customersGetReviews.ts → customersReviewsList.ts} +1 -1
- package/src/funcs/{juspayGetCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
- package/src/funcs/{juspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
- package/src/funcs/{juspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
- package/src/funcs/{ordersGetPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
- package/src/funcs/{ordersGetRefunds.ts → ordersRefundsList.ts} +1 -1
- package/src/funcs/{ordersGetShipments.ts → ordersShipmentsList.ts} +1 -1
- package/src/funcs/{paymentsListMethods.ts → paymentsGetMethods.ts} +1 -1
- package/src/funcs/{paymentsCardsList.ts → paymentsGetPaymentsCards.ts} +1 -1
- package/src/funcs/{paymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
- package/src/funcs/{paymentsAddCard.ts → paymentsPostPaymentsCards.ts} +1 -1
- package/src/funcs/{shipmentCheckPincodeServiceability.ts → shippingCheckPincodeServiceability.ts} +1 -1
- package/src/funcs/{usersCreateNotificationPreferences.ts → userNotificationPreferencesCreate.ts} +1 -1
- package/src/funcs/{authUserNotificationPreferencesGet.ts → userNotificationPreferencesGet.ts} +1 -1
- package/src/funcs/{userUpdateNotificationPreferences.ts → userNotificationPreferencesUpdate.ts} +1 -1
- package/src/funcs/{utilsCountriesGet.ts → utilsGetCountries.ts} +1 -1
- package/src/funcs/{wishlistRemoveItem.ts → wishlistDelete.ts} +1 -1
- package/src/lib/config.ts +2 -2
- package/src/sdk/addresses.ts +74 -2
- package/src/sdk/auth.ts +0 -22
- package/src/sdk/catalog.ts +10 -4
- package/src/sdk/cestorefrontreviews.ts +45 -0
- package/src/sdk/cestorefrontuser.ts +160 -8
- package/src/sdk/customers.ts +19 -49
- package/src/sdk/juspay.ts +9 -9
- package/src/sdk/loyalty.ts +18 -0
- package/src/sdk/notificationpreferences.ts +38 -2
- package/src/sdk/orders.ts +15 -39
- package/src/sdk/payments.ts +27 -15
- package/src/sdk/products.ts +39 -9
- package/src/sdk/{cards.ts → refunds.ts} +7 -7
- package/src/sdk/reviews.ts +6 -6
- package/src/sdk/sdk.ts +4 -54
- package/src/sdk/shipments.ts +27 -0
- package/src/sdk/{shipment.ts → shipping.ts} +3 -3
- package/src/sdk/{catalogskus.ts → skus.ts} +1 -1
- package/src/sdk/user.ts +6 -90
- package/src/sdk/utils.ts +14 -4
- package/src/sdk/wishlist.ts +3 -3
- package/docs/sdks/authuser/README.md +0 -80
- package/docs/sdks/catalogproductreviews/README.md +0 -97
- package/docs/sdks/cestorefrontproducts/README.md +0 -6
- package/docs/sdks/cestorefrontusers/README.md +0 -92
- package/docs/sdks/countries/README.md +0 -79
- package/docs/sdks/loyaltypoints/README.md +0 -88
- package/docs/sdks/users/README.md +0 -240
- package/esm/funcs/addressesGet.d.ts.map +0 -1
- package/esm/funcs/addressesGet.js.map +0 -1
- package/esm/funcs/authLogout.d.ts.map +0 -1
- package/esm/funcs/authLogout.js.map +0 -1
- package/esm/funcs/authUserDeactivate.js.map +0 -1
- package/esm/funcs/authUserNotificationPreferencesGet.d.ts.map +0 -1
- package/esm/funcs/authUserNotificationPreferencesGet.js.map +0 -1
- package/esm/funcs/authUsersAddProfileImage.d.ts.map +0 -1
- package/esm/funcs/authUsersAddProfileImage.js.map +0 -1
- package/esm/funcs/catalogProductReviewsCreate.d.ts.map +0 -1
- package/esm/funcs/catalogProductReviewsCreate.js.map +0 -1
- package/esm/funcs/customersAddAddress.js.map +0 -1
- package/esm/funcs/customersCreate.d.ts.map +0 -1
- package/esm/funcs/customersCreate.js.map +0 -1
- package/esm/funcs/customersGet.d.ts.map +0 -1
- package/esm/funcs/customersGet.js.map +0 -1
- package/esm/funcs/customersGetReviews.d.ts +0 -15
- package/esm/funcs/customersGetReviews.d.ts.map +0 -1
- package/esm/funcs/customersGetReviews.js.map +0 -1
- package/esm/funcs/customersUpdate.d.ts.map +0 -1
- package/esm/funcs/customersUpdate.js.map +0 -1
- package/esm/funcs/juspayCreateCustomer.d.ts +0 -17
- package/esm/funcs/juspayCreateCustomer.d.ts.map +0 -1
- package/esm/funcs/juspayCreateCustomer.js.map +0 -1
- package/esm/funcs/juspayCreateOrder.d.ts.map +0 -1
- package/esm/funcs/juspayGetCustomer.d.ts.map +0 -1
- package/esm/funcs/loyaltyPointsListActivities.d.ts.map +0 -1
- package/esm/funcs/loyaltyPointsListActivities.js.map +0 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts.map +0 -1
- package/esm/funcs/ordersGetPaymentStatus.js.map +0 -1
- package/esm/funcs/ordersGetRefunds.d.ts.map +0 -1
- package/esm/funcs/ordersGetRefunds.js.map +0 -1
- package/esm/funcs/ordersGetShipments.d.ts.map +0 -1
- package/esm/funcs/ordersGetShipments.js.map +0 -1
- package/esm/funcs/paymentsAddCard.d.ts.map +0 -1
- package/esm/funcs/paymentsAddCard.js.map +0 -1
- package/esm/funcs/paymentsCardsList.d.ts.map +0 -1
- package/esm/funcs/paymentsCardsList.js.map +0 -1
- package/esm/funcs/paymentsListMethods.d.ts.map +0 -1
- package/esm/funcs/paymentsListMethods.js.map +0 -1
- package/esm/funcs/paymentsVerifyVpa.d.ts.map +0 -1
- package/esm/funcs/paymentsVerifyVpa.js.map +0 -1
- package/esm/funcs/productsGetSimilar.d.ts.map +0 -1
- package/esm/funcs/productsGetSimilar.js.map +0 -1
- package/esm/funcs/productsGetUpsells.d.ts.map +0 -1
- package/esm/funcs/productsGetUpsells.js.map +0 -1
- package/esm/funcs/productsList.d.ts.map +0 -1
- package/esm/funcs/productsList.js.map +0 -1
- package/esm/funcs/productsListCrossSells.d.ts +0 -16
- package/esm/funcs/productsListCrossSells.d.ts.map +0 -1
- package/esm/funcs/productsListCrossSells.js.map +0 -1
- package/esm/funcs/userDeleteProfileImage.d.ts.map +0 -1
- package/esm/funcs/userDeleteProfileImage.js.map +0 -1
- package/esm/funcs/userResetPassword.js.map +0 -1
- package/esm/funcs/userUpdate.d.ts.map +0 -1
- package/esm/funcs/userUpdate.js.map +0 -1
- package/esm/funcs/userUpdateProfileImage.d.ts.map +0 -1
- package/esm/funcs/userUpdateProfileImage.js.map +0 -1
- package/esm/funcs/usersCreateNotificationPreferences.d.ts.map +0 -1
- package/esm/funcs/usersCreateNotificationPreferences.js.map +0 -1
- package/esm/funcs/usersGet.d.ts.map +0 -1
- package/esm/funcs/usersGet.js.map +0 -1
- package/esm/funcs/wishlistRemoveItem.d.ts.map +0 -1
- package/esm/funcs/wishlistRemoveItem.js.map +0 -1
- package/esm/sdk/authuser.d.ts +0 -12
- package/esm/sdk/authuser.d.ts.map +0 -1
- package/esm/sdk/authuser.js +0 -18
- package/esm/sdk/authuser.js.map +0 -1
- package/esm/sdk/cards.d.ts +0 -12
- package/esm/sdk/cards.d.ts.map +0 -1
- package/esm/sdk/cards.js +0 -18
- package/esm/sdk/cards.js.map +0 -1
- package/esm/sdk/catalogproductreviews.d.ts +0 -12
- package/esm/sdk/catalogproductreviews.d.ts.map +0 -1
- package/esm/sdk/catalogproductreviews.js +0 -18
- package/esm/sdk/catalogproductreviews.js.map +0 -1
- package/esm/sdk/catalogproducts.d.ts +0 -12
- package/esm/sdk/catalogproducts.d.ts.map +0 -1
- package/esm/sdk/catalogproducts.js +0 -18
- package/esm/sdk/catalogproducts.js.map +0 -1
- package/esm/sdk/catalogskus.d.ts.map +0 -1
- package/esm/sdk/catalogskus.js.map +0 -1
- package/esm/sdk/cestorefrontaddresses.d.ts +0 -26
- package/esm/sdk/cestorefrontaddresses.d.ts.map +0 -1
- package/esm/sdk/cestorefrontaddresses.js +0 -38
- package/esm/sdk/cestorefrontaddresses.js.map +0 -1
- package/esm/sdk/cestorefrontproducts.d.ts +0 -10
- package/esm/sdk/cestorefrontproducts.d.ts.map +0 -1
- package/esm/sdk/cestorefrontproducts.js +0 -15
- package/esm/sdk/cestorefrontproducts.js.map +0 -1
- package/esm/sdk/cestorefrontusers.d.ts +0 -12
- package/esm/sdk/cestorefrontusers.d.ts.map +0 -1
- package/esm/sdk/cestorefrontusers.js +0 -18
- package/esm/sdk/cestorefrontusers.js.map +0 -1
- package/esm/sdk/countries.d.ts +0 -12
- package/esm/sdk/countries.d.ts.map +0 -1
- package/esm/sdk/countries.js +0 -18
- package/esm/sdk/countries.js.map +0 -1
- package/esm/sdk/loyaltypoints.d.ts +0 -12
- package/esm/sdk/loyaltypoints.d.ts.map +0 -1
- package/esm/sdk/loyaltypoints.js +0 -18
- package/esm/sdk/loyaltypoints.js.map +0 -1
- package/esm/sdk/users.d.ts +0 -26
- package/esm/sdk/users.d.ts.map +0 -1
- package/esm/sdk/users.js +0 -38
- package/esm/sdk/users.js.map +0 -1
- package/src/sdk/authuser.ts +0 -27
- package/src/sdk/catalogproductreviews.ts +0 -27
- package/src/sdk/catalogproducts.ts +0 -27
- package/src/sdk/cestorefrontaddresses.ts +0 -63
- package/src/sdk/cestorefrontproducts.ts +0 -19
- package/src/sdk/cestorefrontusers.ts +0 -27
- package/src/sdk/countries.ts +0 -25
- package/src/sdk/loyaltypoints.ts +0 -27
- package/src/sdk/users.ts +0 -63
package/src/sdk/products.ts
CHANGED
|
@@ -2,15 +2,28 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { catalogProductsGet } from "../funcs/catalogProductsGet.js";
|
|
6
|
+
import { catalogProductsGetCrossSells } from "../funcs/catalogProductsGetCrossSells.js";
|
|
7
|
+
import { catalogProductsGetSimilar } from "../funcs/catalogProductsGetSimilar.js";
|
|
8
|
+
import { catalogProductsGetUpsells } from "../funcs/catalogProductsGetUpsells.js";
|
|
9
|
+
import { catalogProductsList } from "../funcs/catalogProductsList.js";
|
|
9
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import * as operations from "../models/operations/index.js";
|
|
11
12
|
import { unwrapAsync } from "../types/fp.js";
|
|
13
|
+
import { CeStorefrontReviews } from "./cestorefrontreviews.js";
|
|
14
|
+
import { Variants } from "./variants.js";
|
|
12
15
|
|
|
13
16
|
export class Products extends ClientSDK {
|
|
17
|
+
private _variants?: Variants;
|
|
18
|
+
get variants(): Variants {
|
|
19
|
+
return (this._variants ??= new Variants(this._options));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
private _reviews?: CeStorefrontReviews;
|
|
23
|
+
get reviews(): CeStorefrontReviews {
|
|
24
|
+
return (this._reviews ??= new CeStorefrontReviews(this._options));
|
|
25
|
+
}
|
|
26
|
+
|
|
14
27
|
/**
|
|
15
28
|
* List all products
|
|
16
29
|
*
|
|
@@ -21,7 +34,24 @@ export class Products extends ClientSDK {
|
|
|
21
34
|
request: operations.GetProductsRequest,
|
|
22
35
|
options?: RequestOptions,
|
|
23
36
|
): Promise<operations.GetProductsResponseBody> {
|
|
24
|
-
return unwrapAsync(
|
|
37
|
+
return unwrapAsync(catalogProductsList(
|
|
38
|
+
this,
|
|
39
|
+
request,
|
|
40
|
+
options,
|
|
41
|
+
));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Retrieve a product detail
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Commerce Engine will return the corresponding product information.
|
|
49
|
+
*/
|
|
50
|
+
async get(
|
|
51
|
+
request: operations.GetProductDetailsRequest,
|
|
52
|
+
options?: RequestOptions,
|
|
53
|
+
): Promise<operations.GetProductDetailsResponseBody> {
|
|
54
|
+
return unwrapAsync(catalogProductsGet(
|
|
25
55
|
this,
|
|
26
56
|
request,
|
|
27
57
|
options,
|
|
@@ -38,7 +68,7 @@ export class Products extends ClientSDK {
|
|
|
38
68
|
request: operations.GetSimilarRequest,
|
|
39
69
|
options?: RequestOptions,
|
|
40
70
|
): Promise<operations.GetSimilarResponseBody> {
|
|
41
|
-
return unwrapAsync(
|
|
71
|
+
return unwrapAsync(catalogProductsGetSimilar(
|
|
42
72
|
this,
|
|
43
73
|
request,
|
|
44
74
|
options,
|
|
@@ -55,7 +85,7 @@ export class Products extends ClientSDK {
|
|
|
55
85
|
request: operations.GetUpSellRequest,
|
|
56
86
|
options?: RequestOptions,
|
|
57
87
|
): Promise<operations.GetUpSellResponseBody> {
|
|
58
|
-
return unwrapAsync(
|
|
88
|
+
return unwrapAsync(catalogProductsGetUpsells(
|
|
59
89
|
this,
|
|
60
90
|
request,
|
|
61
91
|
options,
|
|
@@ -68,11 +98,11 @@ export class Products extends ClientSDK {
|
|
|
68
98
|
* @remarks
|
|
69
99
|
* Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.
|
|
70
100
|
*/
|
|
71
|
-
async
|
|
101
|
+
async getCrossSells(
|
|
72
102
|
request: operations.GetCrossSellRequest,
|
|
73
103
|
options?: RequestOptions,
|
|
74
104
|
): Promise<operations.GetCrossSellResponseBody> {
|
|
75
|
-
return unwrapAsync(
|
|
105
|
+
return unwrapAsync(catalogProductsGetCrossSells(
|
|
76
106
|
this,
|
|
77
107
|
request,
|
|
78
108
|
options,
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { ordersRefundsList } from "../funcs/ordersRefundsList.js";
|
|
6
6
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
7
|
import * as operations from "../models/operations/index.js";
|
|
8
8
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
9
|
|
|
10
|
-
export class
|
|
10
|
+
export class Refunds extends ClientSDK {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Retrieve order refunds
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* Retrieve order refunds
|
|
16
16
|
*/
|
|
17
17
|
async list(
|
|
18
|
-
request: operations.
|
|
18
|
+
request: operations.GetOrdersIdRefundsRequest,
|
|
19
19
|
options?: RequestOptions,
|
|
20
|
-
): Promise<operations.
|
|
21
|
-
return unwrapAsync(
|
|
20
|
+
): Promise<operations.GetOrdersIdRefundsResponseBody> {
|
|
21
|
+
return unwrapAsync(ordersRefundsList(
|
|
22
22
|
this,
|
|
23
23
|
request,
|
|
24
24
|
options,
|
package/src/sdk/reviews.ts
CHANGED
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { customersReviewsList } from "../funcs/customersReviewsList.js";
|
|
6
6
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
7
|
import * as operations from "../models/operations/index.js";
|
|
8
8
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
9
|
|
|
10
10
|
export class Reviews extends ClientSDK {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Retrieve all reviews
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* Retrieve all reviews
|
|
16
16
|
*/
|
|
17
17
|
async list(
|
|
18
|
-
request: operations.
|
|
18
|
+
request: operations.GetCustomersUserIdReviewsRequest,
|
|
19
19
|
options?: RequestOptions,
|
|
20
|
-
): Promise<operations.
|
|
21
|
-
return unwrapAsync(
|
|
20
|
+
): Promise<operations.GetCustomersUserIdReviewsResponseBody> {
|
|
21
|
+
return unwrapAsync(customersReviewsList(
|
|
22
22
|
this,
|
|
23
23
|
request,
|
|
24
24
|
options,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -3,58 +3,28 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
-
import { Addresses } from "./addresses.js";
|
|
7
6
|
import { Analytics } from "./analytics.js";
|
|
8
7
|
import { Auth } from "./auth.js";
|
|
9
|
-
import { AuthUser } from "./authuser.js";
|
|
10
8
|
import { Campaigns } from "./campaigns.js";
|
|
11
9
|
import { Carts } from "./carts.js";
|
|
12
10
|
import { Catalog } from "./catalog.js";
|
|
13
|
-
import { CatalogProductReviews } from "./catalogproductreviews.js";
|
|
14
|
-
import { CatalogProducts } from "./catalogproducts.js";
|
|
15
|
-
import { CatalogSkus } from "./catalogskus.js";
|
|
16
11
|
import { Checkout } from "./checkout.js";
|
|
17
12
|
import { Customers } from "./customers.js";
|
|
18
13
|
import { Juspay } from "./juspay.js";
|
|
19
|
-
import { LoyaltyPoints } from "./loyaltypoints.js";
|
|
20
14
|
import { Offers } from "./offers.js";
|
|
21
15
|
import { Orders } from "./orders.js";
|
|
22
16
|
import { Payments } from "./payments.js";
|
|
23
|
-
import {
|
|
24
|
-
import { Shipment } from "./shipment.js";
|
|
17
|
+
import { Shipping } from "./shipping.js";
|
|
25
18
|
import { User } from "./user.js";
|
|
26
|
-
import { Users } from "./users.js";
|
|
27
19
|
import { Utils } from "./utils.js";
|
|
28
20
|
import { Wishlist } from "./wishlist.js";
|
|
29
21
|
|
|
30
22
|
export class CeStorefront extends ClientSDK {
|
|
31
|
-
private _products?: Products;
|
|
32
|
-
get products(): Products {
|
|
33
|
-
return (this._products ??= new Products(this._options));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
private _catalogSkus?: CatalogSkus;
|
|
37
|
-
get catalogSkus(): CatalogSkus {
|
|
38
|
-
return (this._catalogSkus ??= new CatalogSkus(this._options));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
private _catalogProducts?: CatalogProducts;
|
|
42
|
-
get catalogProducts(): CatalogProducts {
|
|
43
|
-
return (this._catalogProducts ??= new CatalogProducts(this._options));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
23
|
private _catalog?: Catalog;
|
|
47
24
|
get catalog(): Catalog {
|
|
48
25
|
return (this._catalog ??= new Catalog(this._options));
|
|
49
26
|
}
|
|
50
27
|
|
|
51
|
-
private _catalogProductReviews?: CatalogProductReviews;
|
|
52
|
-
get catalogProductReviews(): CatalogProductReviews {
|
|
53
|
-
return (this._catalogProductReviews ??= new CatalogProductReviews(
|
|
54
|
-
this._options,
|
|
55
|
-
));
|
|
56
|
-
}
|
|
57
|
-
|
|
58
28
|
private _carts?: Carts;
|
|
59
29
|
get carts(): Carts {
|
|
60
30
|
return (this._carts ??= new Carts(this._options));
|
|
@@ -80,24 +50,14 @@ export class CeStorefront extends ClientSDK {
|
|
|
80
50
|
return (this._customers ??= new Customers(this._options));
|
|
81
51
|
}
|
|
82
52
|
|
|
83
|
-
private _addresses?: Addresses;
|
|
84
|
-
get addresses(): Addresses {
|
|
85
|
-
return (this._addresses ??= new Addresses(this._options));
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private _loyaltyPoints?: LoyaltyPoints;
|
|
89
|
-
get loyaltyPoints(): LoyaltyPoints {
|
|
90
|
-
return (this._loyaltyPoints ??= new LoyaltyPoints(this._options));
|
|
91
|
-
}
|
|
92
|
-
|
|
93
53
|
private _orders?: Orders;
|
|
94
54
|
get orders(): Orders {
|
|
95
55
|
return (this._orders ??= new Orders(this._options));
|
|
96
56
|
}
|
|
97
57
|
|
|
98
|
-
private
|
|
99
|
-
get
|
|
100
|
-
return (this.
|
|
58
|
+
private _shipping?: Shipping;
|
|
59
|
+
get shipping(): Shipping {
|
|
60
|
+
return (this._shipping ??= new Shipping(this._options));
|
|
101
61
|
}
|
|
102
62
|
|
|
103
63
|
private _auth?: Auth;
|
|
@@ -105,21 +65,11 @@ export class CeStorefront extends ClientSDK {
|
|
|
105
65
|
return (this._auth ??= new Auth(this._options));
|
|
106
66
|
}
|
|
107
67
|
|
|
108
|
-
private _users?: Users;
|
|
109
|
-
get users(): Users {
|
|
110
|
-
return (this._users ??= new Users(this._options));
|
|
111
|
-
}
|
|
112
|
-
|
|
113
68
|
private _user?: User;
|
|
114
69
|
get user(): User {
|
|
115
70
|
return (this._user ??= new User(this._options));
|
|
116
71
|
}
|
|
117
72
|
|
|
118
|
-
private _authUser?: AuthUser;
|
|
119
|
-
get authUser(): AuthUser {
|
|
120
|
-
return (this._authUser ??= new AuthUser(this._options));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
73
|
private _payments?: Payments;
|
|
124
74
|
get payments(): Payments {
|
|
125
75
|
return (this._payments ??= new Payments(this._options));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ordersShipmentsList } from "../funcs/ordersShipmentsList.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class Shipments extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve order shipments
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Retrieve order shipments
|
|
16
|
+
*/
|
|
17
|
+
async list(
|
|
18
|
+
request: operations.GetOrdersIdShipmentsRequest,
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): Promise<operations.GetOrdersIdShipmentsResponseBody> {
|
|
21
|
+
return unwrapAsync(ordersShipmentsList(
|
|
22
|
+
this,
|
|
23
|
+
request,
|
|
24
|
+
options,
|
|
25
|
+
));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { shippingCheckPincodeServiceability } from "../funcs/shippingCheckPincodeServiceability.js";
|
|
6
6
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
7
|
import * as operations from "../models/operations/index.js";
|
|
8
8
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
9
|
|
|
10
|
-
export class
|
|
10
|
+
export class Shipping extends ClientSDK {
|
|
11
11
|
/**
|
|
12
12
|
* Check pincode serviceability
|
|
13
13
|
*
|
|
@@ -18,7 +18,7 @@ export class Shipment extends ClientSDK {
|
|
|
18
18
|
request: operations.GetShipmentPincodeServiceabilityRequest,
|
|
19
19
|
options?: RequestOptions,
|
|
20
20
|
): Promise<operations.GetShipmentPincodeServiceabilityResponseBody> {
|
|
21
|
-
return unwrapAsync(
|
|
21
|
+
return unwrapAsync(shippingCheckPincodeServiceability(
|
|
22
22
|
this,
|
|
23
23
|
request,
|
|
24
24
|
options,
|
|
@@ -7,7 +7,7 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
7
7
|
import * as operations from "../models/operations/index.js";
|
|
8
8
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
9
|
|
|
10
|
-
export class
|
|
10
|
+
export class Skus extends ClientSDK {
|
|
11
11
|
/**
|
|
12
12
|
* List all SKUs
|
|
13
13
|
*
|
package/src/sdk/user.ts
CHANGED
|
@@ -2,98 +2,14 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { userUpdate } from "../funcs/userUpdate.js";
|
|
8
|
-
import { userUpdateNotificationPreferences } from "../funcs/userUpdateNotificationPreferences.js";
|
|
9
|
-
import { userUpdateProfileImage } from "../funcs/userUpdateProfileImage.js";
|
|
10
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
-
import * as operations from "../models/operations/index.js";
|
|
12
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
5
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { NotificationPreferences } from "./notificationpreferences.js";
|
|
13
7
|
|
|
14
8
|
export class User extends ClientSDK {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* The Update User API helps to efficiently modify and enhance user information within the system, ensuring that user profiles remain accurate and up-to-date. This API provides a secure and flexible mechanism for updating specific details while maintaining adherence to established conventions.
|
|
20
|
-
*/
|
|
21
|
-
async update(
|
|
22
|
-
request: operations.PutAuthUserIdRequest,
|
|
23
|
-
options?: RequestOptions,
|
|
24
|
-
): Promise<operations.PutAuthUserIdResponseBody> {
|
|
25
|
-
return unwrapAsync(userUpdate(
|
|
26
|
-
this,
|
|
27
|
-
request,
|
|
28
|
-
options,
|
|
29
|
-
));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Update profile image
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* The Profile Image API streamlines the process of updating profile images associating with user accounts, offering a user-centric approach to visual identity customization. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution. Overall, the Profile Image API enhances user engagement by seamlessly integrating personalized visual elements into digital platforms.
|
|
37
|
-
*/
|
|
38
|
-
async updateProfileImage(
|
|
39
|
-
request: operations.PutAuthUserIdProfileImageRequest,
|
|
40
|
-
options?: RequestOptions,
|
|
41
|
-
): Promise<operations.PutAuthUserIdProfileImageResponseBody> {
|
|
42
|
-
return unwrapAsync(userUpdateProfileImage(
|
|
43
|
-
this,
|
|
44
|
-
request,
|
|
45
|
-
options,
|
|
46
|
-
));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Delete profile image
|
|
51
|
-
*
|
|
52
|
-
* @remarks
|
|
53
|
-
* Delete profile image API streamlines the process of removing profile images associating with user accounts. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution.
|
|
54
|
-
*/
|
|
55
|
-
async deleteProfileImage(
|
|
56
|
-
request: operations.DeleteAuthUserIdProfileImageRequest,
|
|
57
|
-
options?: RequestOptions,
|
|
58
|
-
): Promise<operations.DeleteAuthUserIdProfileImageResponseBody> {
|
|
59
|
-
return unwrapAsync(userDeleteProfileImage(
|
|
60
|
-
this,
|
|
61
|
-
request,
|
|
62
|
-
options,
|
|
63
|
-
));
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Reset password
|
|
68
|
-
*
|
|
69
|
-
* @remarks
|
|
70
|
-
* Reset password
|
|
71
|
-
*/
|
|
72
|
-
async resetPassword(
|
|
73
|
-
request: operations.PostAuthResetPasswordRequestBody,
|
|
74
|
-
options?: RequestOptions,
|
|
75
|
-
): Promise<operations.PostAuthResetPasswordResponseBody> {
|
|
76
|
-
return unwrapAsync(userResetPassword(
|
|
77
|
-
this,
|
|
78
|
-
request,
|
|
79
|
-
options,
|
|
80
|
-
));
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Update user notification preferences
|
|
85
|
-
*
|
|
86
|
-
* @remarks
|
|
87
|
-
* Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
|
|
88
|
-
*/
|
|
89
|
-
async updateNotificationPreferences(
|
|
90
|
-
request: operations.PutAuthUserIdNotificationPreferencesRequest,
|
|
91
|
-
options?: RequestOptions,
|
|
92
|
-
): Promise<operations.PutAuthUserIdNotificationPreferencesResponseBody> {
|
|
93
|
-
return unwrapAsync(userUpdateNotificationPreferences(
|
|
94
|
-
this,
|
|
95
|
-
request,
|
|
96
|
-
options,
|
|
9
|
+
private _notificationPreferences?: NotificationPreferences;
|
|
10
|
+
get notificationPreferences(): NotificationPreferences {
|
|
11
|
+
return (this._notificationPreferences ??= new NotificationPreferences(
|
|
12
|
+
this._options,
|
|
97
13
|
));
|
|
98
14
|
}
|
|
99
15
|
}
|
package/src/sdk/utils.ts
CHANGED
|
@@ -2,17 +2,27 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { utilsGetCountries } from "../funcs/utilsGetCountries.js";
|
|
5
6
|
import { utilsGetPincodes } from "../funcs/utilsGetPincodes.js";
|
|
6
7
|
import { utilsGetStates } from "../funcs/utilsGetStates.js";
|
|
7
8
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
9
|
import * as operations from "../models/operations/index.js";
|
|
9
10
|
import { unwrapAsync } from "../types/fp.js";
|
|
10
|
-
import { Countries } from "./countries.js";
|
|
11
11
|
|
|
12
12
|
export class Utils extends ClientSDK {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve all countries
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Retrieve all countries
|
|
18
|
+
*/
|
|
19
|
+
async getCountries(
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): Promise<operations.GetCommonCountriesResponseBody> {
|
|
22
|
+
return unwrapAsync(utilsGetCountries(
|
|
23
|
+
this,
|
|
24
|
+
options,
|
|
25
|
+
));
|
|
16
26
|
}
|
|
17
27
|
|
|
18
28
|
/**
|
package/src/sdk/wishlist.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { wishlistAdd } from "../funcs/wishlistAdd.js";
|
|
6
|
+
import { wishlistDelete } from "../funcs/wishlistDelete.js";
|
|
6
7
|
import { wishlistGet } from "../funcs/wishlistGet.js";
|
|
7
|
-
import { wishlistRemoveItem } from "../funcs/wishlistRemoveItem.js";
|
|
8
8
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
9
|
import * as operations from "../models/operations/index.js";
|
|
10
10
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -50,11 +50,11 @@ export class Wishlist extends ClientSDK {
|
|
|
50
50
|
* @remarks
|
|
51
51
|
* Remove product from wishlist
|
|
52
52
|
*/
|
|
53
|
-
async
|
|
53
|
+
async delete(
|
|
54
54
|
request: operations.DeleteWishlistRequest,
|
|
55
55
|
options?: RequestOptions,
|
|
56
56
|
): Promise<operations.DeleteWishlistResponseBody> {
|
|
57
|
-
return unwrapAsync(
|
|
57
|
+
return unwrapAsync(wishlistDelete(
|
|
58
58
|
this,
|
|
59
59
|
request,
|
|
60
60
|
options,
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
# AuthUser
|
|
2
|
-
(*authUser*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [forgotPassword](#forgotpassword) - Forgot password
|
|
9
|
-
|
|
10
|
-
## forgotPassword
|
|
11
|
-
|
|
12
|
-
The Forgot Password API provides a secure mechanism for users to initiate the password recovery process. This API provides one-time password (OTP) token, which facilitas the resetting of user’s account password.
|
|
13
|
-
|
|
14
|
-
### Example Usage
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import { CeStorefront } from "ce-storefront";
|
|
18
|
-
|
|
19
|
-
const ceStorefront = new CeStorefront({
|
|
20
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
async function run() {
|
|
24
|
-
const result = await ceStorefront.authUser.forgotPassword({});
|
|
25
|
-
|
|
26
|
-
// Handle the result
|
|
27
|
-
console.log(result);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
run();
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Standalone function
|
|
34
|
-
|
|
35
|
-
The standalone function version of this method:
|
|
36
|
-
|
|
37
|
-
```typescript
|
|
38
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
39
|
-
import { authUserForgotPassword } from "ce-storefront/funcs/authUserForgotPassword.js";
|
|
40
|
-
|
|
41
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
42
|
-
// You can create one instance of it to use across an application.
|
|
43
|
-
const ceStorefront = new CeStorefrontCore({
|
|
44
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
async function run() {
|
|
48
|
-
const res = await authUserForgotPassword(ceStorefront, {});
|
|
49
|
-
|
|
50
|
-
if (!res.ok) {
|
|
51
|
-
throw res.error;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const { value: result } = res;
|
|
55
|
-
|
|
56
|
-
// Handle the result
|
|
57
|
-
console.log(result);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
run();
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Parameters
|
|
64
|
-
|
|
65
|
-
| Parameter | Type | Required | Description |
|
|
66
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
67
|
-
| `request` | [operations.PostAuthForgotPasswordRequestBody](../../models/operations/postauthforgotpasswordrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
68
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
69
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
70
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
71
|
-
|
|
72
|
-
### Response
|
|
73
|
-
|
|
74
|
-
**Promise\<[operations.PostAuthForgotPasswordResponseBody](../../models/operations/postauthforgotpasswordresponsebody.md)\>**
|
|
75
|
-
|
|
76
|
-
### Errors
|
|
77
|
-
|
|
78
|
-
| Error Type | Status Code | Content Type |
|
|
79
|
-
| -------------- | -------------- | -------------- |
|
|
80
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# CatalogProductReviews
|
|
2
|
-
(*catalogProductReviews*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [create](#create) - Create product review
|
|
9
|
-
|
|
10
|
-
## create
|
|
11
|
-
|
|
12
|
-
Create a product review
|
|
13
|
-
|
|
14
|
-
### Example Usage
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import { CeStorefront } from "ce-storefront";
|
|
18
|
-
|
|
19
|
-
const ceStorefront = new CeStorefront({
|
|
20
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
async function run() {
|
|
24
|
-
const result = await ceStorefront.catalogProductReviews.create({
|
|
25
|
-
productId: "<id>",
|
|
26
|
-
createReview: {
|
|
27
|
-
orderNumber: "<value>",
|
|
28
|
-
rating: 4865.89,
|
|
29
|
-
userId: "<id>",
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
// Handle the result
|
|
34
|
-
console.log(result);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
run();
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Standalone function
|
|
41
|
-
|
|
42
|
-
The standalone function version of this method:
|
|
43
|
-
|
|
44
|
-
```typescript
|
|
45
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
46
|
-
import { catalogProductReviewsCreate } from "ce-storefront/funcs/catalogProductReviewsCreate.js";
|
|
47
|
-
|
|
48
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
49
|
-
// You can create one instance of it to use across an application.
|
|
50
|
-
const ceStorefront = new CeStorefrontCore({
|
|
51
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
async function run() {
|
|
55
|
-
const res = await catalogProductReviewsCreate(ceStorefront, {
|
|
56
|
-
productId: "<id>",
|
|
57
|
-
createReview: {
|
|
58
|
-
orderNumber: "<value>",
|
|
59
|
-
rating: 4865.89,
|
|
60
|
-
userId: "<id>",
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
if (!res.ok) {
|
|
65
|
-
throw res.error;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const { value: result } = res;
|
|
69
|
-
|
|
70
|
-
// Handle the result
|
|
71
|
-
console.log(result);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
run();
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
### Parameters
|
|
78
|
-
|
|
79
|
-
| Parameter | Type | Required | Description |
|
|
80
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
81
|
-
| `request` | [operations.PostProductsIdReviewsRequest](../../models/operations/postproductsidreviewsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
82
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
83
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
84
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
85
|
-
|
|
86
|
-
### Response
|
|
87
|
-
|
|
88
|
-
**Promise\<[operations.PostProductsIdReviewsResponseBody](../../models/operations/postproductsidreviewsresponsebody.md)\>**
|
|
89
|
-
|
|
90
|
-
### Errors
|
|
91
|
-
|
|
92
|
-
| Error Type | Status Code | Content Type |
|
|
93
|
-
| ------------------- | ------------------- | ------------------- |
|
|
94
|
-
| errors.BadRequest | 400 | application/json |
|
|
95
|
-
| errors.Unauthorized | 401 | application/json |
|
|
96
|
-
| errors.NotFound | 404 | application/json |
|
|
97
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|