@lmnto/h-mall-shared 1.0.1
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/app.css +457 -0
- package/bitbucket-pipelines.yml +223 -0
- package/package.json +43 -0
- package/public/gif/balloon.gif +0 -0
- package/public/gif/gift.gif +0 -0
- package/public/img/ai-dialog.png +0 -0
- package/public/img/ai-x1-banner.png +0 -0
- package/public/img/ai-x1.png +0 -0
- package/public/img/alert-Icon.png +0 -0
- package/public/img/aleta-payment-kyc-require.png +0 -0
- package/public/img/aleta-payment-pending.png +0 -0
- package/public/img/aleta-payment-rejected.png +0 -0
- package/public/img/aleta-payment-subscription-required.png +0 -0
- package/public/img/boost-banner-bg.png +0 -0
- package/public/img/boost-banner-right.png +0 -0
- package/public/img/boost-banner.png +0 -0
- package/public/img/boost-dialog-bg.png +0 -0
- package/public/img/boostPower.png +0 -0
- package/public/img/boostTooltip.png +0 -0
- package/public/img/brand-icon.svg +23 -0
- package/public/img/brand-text.svg +11 -0
- package/public/img/card-icon.png +0 -0
- package/public/img/cashback-Icon.png +0 -0
- package/public/img/crown.svg +9 -0
- package/public/img/empty-box.png +0 -0
- package/public/img/gen3-dialog.png +0 -0
- package/public/img/gen3-home-banner-bg.png +0 -0
- package/public/img/gen3-image.png +0 -0
- package/public/img/gift.png +0 -0
- package/public/img/img-placeholder-illustration.svg +6 -0
- package/public/img/logo.svg +31 -0
- package/public/img/offerBanner.png +0 -0
- package/public/img/pagenotfound.png +0 -0
- package/public/img/partial-pay-payment-successful.png +0 -0
- package/public/img/phoneShippingBG.png +0 -0
- package/public/img/placeholder-image.jpg +0 -0
- package/public/img/powerIcon.png +0 -0
- package/public/img/product-01.png +0 -0
- package/public/img/product-02.jpg +0 -0
- package/public/img/product-03.jpg +0 -0
- package/public/img/product-04.jpg +0 -0
- package/public/img/product-05.png +0 -0
- package/public/img/product-06.png +0 -0
- package/public/img/profile-avatar.svg +12 -0
- package/public/img/promotion-icon.png +0 -0
- package/public/img/session-expired.png +0 -0
- package/public/img/shipping-alert-icon.png +0 -0
- package/public/img/shippingIcon.png +0 -0
- package/public/img/smart-pay-banner-how.png +0 -0
- package/public/img/smart-pay-banner-own.png +0 -0
- package/public/img/smart-pay-chose.png +0 -0
- package/public/img/smart-pay-easy.png +0 -0
- package/public/img/smart-pay-payment.png +0 -0
- package/public/img/smart-plan-fire.gif +0 -0
- package/public/img/smart-plan-sparkle.gif +0 -0
- package/public/img/special.png +0 -0
- package/public/img/specialOfferBg.png +0 -0
- package/public/img/stop-shipping-banner.png +0 -0
- package/public/img/subscriptionBanner.png +0 -0
- package/public/img/subscriptionIcon.png +0 -0
- package/public/img/successIcon.png +0 -0
- package/public/img/wallet-icon.png +0 -0
- package/public/img/world-wide-shipping.png +0 -0
- package/public/next.svg +1 -0
- package/public/vercel.svg +1 -0
- package/shared/components/AddressFormComponent.tsx +215 -0
- package/shared/components/AddressShippingFormComponent.tsx +223 -0
- package/shared/components/AiPaymentDialog.tsx +95 -0
- package/shared/components/AppLoadingComponent.tsx +15 -0
- package/shared/components/AppLoadingComponentV2.tsx +18 -0
- package/shared/components/Button.tsx +48 -0
- package/shared/components/BuySubscriptionDialog.tsx +75 -0
- package/shared/components/CartDrawerComponent.tsx +324 -0
- package/shared/components/CashbackComponent.tsx +48 -0
- package/shared/components/CashbackMigrationComponent.tsx +41 -0
- package/shared/components/CommissionNonEligibleComponent.tsx +27 -0
- package/shared/components/CustomNextImage.tsx +50 -0
- package/shared/components/CustomNextLink.tsx +46 -0
- package/shared/components/EditAddressFormComponent.tsx +254 -0
- package/shared/components/EmptyCartMessageComponent.tsx +25 -0
- package/shared/components/EmptyCartMessageForCartPage.tsx +61 -0
- package/shared/components/EmptyLegacyOrderMessageForOrdersPage.tsx +52 -0
- package/shared/components/EmptyOrderMessageForOrdersPage.tsx +62 -0
- package/shared/components/EmptyOrderMessageForShippingOrdersPage.tsx +62 -0
- package/shared/components/Footer.tsx +71 -0
- package/shared/components/GreetingDialog.tsx +96 -0
- package/shared/components/Header.tsx +106 -0
- package/shared/components/HoldShippingDialog.tsx +165 -0
- package/shared/components/HomeBanners.tsx +298 -0
- package/shared/components/InactiveCartDialog.tsx +69 -0
- package/shared/components/InputCartQuantity.tsx +342 -0
- package/shared/components/Inputfield.tsx +110 -0
- package/shared/components/ListItemComponent.tsx +82 -0
- package/shared/components/LoadingIconComponent.tsx +284 -0
- package/shared/components/OrderNotFoundComponent.tsx +56 -0
- package/shared/components/PageHeader.tsx +42 -0
- package/shared/components/PhoneNumberCountries.tsx +133 -0
- package/shared/components/PhoneShippingDialog.tsx +77 -0
- package/shared/components/PickupDialog.tsx +92 -0
- package/shared/components/ProductNotFoundComponent.tsx +56 -0
- package/shared/components/ProductPriceComponent.tsx +32 -0
- package/shared/components/ProfileMenu.tsx +120 -0
- package/shared/components/RequestCreditNoteInvoiceDialog.tsx +214 -0
- package/shared/components/RequestInvoiceDialog.tsx +194 -0
- package/shared/components/SelectCities.tsx +133 -0
- package/shared/components/SelectComponent.tsx +334 -0
- package/shared/components/SelectCountries.tsx +179 -0
- package/shared/components/SelectPickUpStore.tsx +131 -0
- package/shared/components/SelectStates.tsx +144 -0
- package/shared/components/ServerTime.tsx +68 -0
- package/shared/components/SessionDialogComponent.tsx +60 -0
- package/shared/components/ShippingAddressFormDialogComponent.tsx +51 -0
- package/shared/components/Sidebar.tsx +281 -0
- package/shared/components/SpecialOfferDialog.tsx +193 -0
- package/shared/components/StatusComponents.tsx +25 -0
- package/shared/components/StepperComponent.tsx +79 -0
- package/shared/components/StepperSmartPayComponent.tsx +97 -0
- package/shared/components/SubscriptionPurchaseDialogComponent.tsx +81 -0
- package/shared/components/TableComponent.tsx +144 -0
- package/shared/components/TablePaginationComponent.tsx +151 -0
- package/shared/components/aleta/AletaManagerComponent.tsx +52 -0
- package/shared/components/aleta/KycPendingStatus.tsx +33 -0
- package/shared/components/aleta/KycRejectedStatus.tsx +53 -0
- package/shared/components/aleta/KycRequiredStatus.tsx +53 -0
- package/shared/components/aleta/SubscriptionRequiredStatus.tsx +45 -0
- package/shared/components/icons/AletaWalletIcon.tsx +21 -0
- package/shared/components/icons/BrandIcon.tsx +97 -0
- package/shared/components/icons/BrandText.tsx +47 -0
- package/shared/components/icons/CartIcon.tsx +21 -0
- package/shared/components/icons/DoneIcon.tsx +27 -0
- package/shared/components/icons/HomnifiIcon.tsx +23 -0
- package/shared/components/icons/InfoIcon.tsx +16 -0
- package/shared/components/icons/SmartPayProductIcon.tsx +31 -0
- package/shared/components/payments/DisclaimerAlertDialog.tsx +205 -0
- package/shared/components/payments/EmptyAssets.tsx +23 -0
- package/shared/components/payments/PaybyWalletItemComponent.tsx +116 -0
- package/shared/components/payments/PaymentAssetItemComponent.tsx +101 -0
- package/shared/components/payments/RequestProcessingDialog.tsx +123 -0
- package/shared/components/payments/WalletSectionManager.tsx +82 -0
- package/shared/components/payments/WalletSliderComponent.tsx +326 -0
- package/shared/components/payments/WalletTermsAndConditionComponent.tsx +88 -0
- package/shared/constants/address-shipping.schema.ts +56 -0
- package/shared/constants/address.schema.ts +56 -0
- package/shared/constants/app.ts +323 -0
- package/shared/constants/environment.ts +23 -0
- package/shared/constants/feature-flags.ts +15 -0
- package/shared/constants/query-keys.ts +106 -0
- package/shared/constants/routes.ts +41 -0
- package/shared/constants/socket.ts +15 -0
- package/shared/contexts/HomeProductsContext.tsx +51 -0
- package/shared/contexts/MainWrapperContext.tsx +289 -0
- package/shared/contexts/WebSocketContext.tsx +155 -0
- package/shared/hooks/useAddressForm.ts +169 -0
- package/shared/hooks/useAddresses.ts +28 -0
- package/shared/hooks/useAppForm.ts +39 -0
- package/shared/hooks/useCart.ts +207 -0
- package/shared/hooks/useCopy.ts +45 -0
- package/shared/hooks/useCountries.ts +27 -0
- package/shared/hooks/useCustomRouter.ts +51 -0
- package/shared/hooks/useDebounce.ts +21 -0
- package/shared/hooks/useInvoice.ts +41 -0
- package/shared/hooks/useOnlineUser.ts +38 -0
- package/shared/hooks/usePayments.ts +101 -0
- package/shared/hooks/useShippingAddressForm.ts +70 -0
- package/shared/hooks/useShippingAddresses.ts +33 -0
- package/shared/hooks/useStores.ts +29 -0
- package/shared/hooks/useUserActivity.ts +43 -0
- package/shared/i18n/client.ts +27 -0
- package/shared/i18n/locales/en.ts +383 -0
- package/shared/i18n/locales/it.ts +373 -0
- package/shared/i18n/server.ts +7 -0
- package/shared/services/addresses.service.ts +27 -0
- package/shared/services/api/core/ApiError.ts +29 -0
- package/shared/services/api/core/ApiRequestOptions.ts +25 -0
- package/shared/services/api/core/ApiResult.ts +11 -0
- package/shared/services/api/core/CancelablePromise.ts +130 -0
- package/shared/services/api/core/OpenAPI.ts +37 -0
- package/shared/services/api/core/request.ts +376 -0
- package/shared/services/api/index.ts +64 -0
- package/shared/services/api/models/AddAllProductToShippingCartDto.ts +7 -0
- package/shared/services/api/models/AddProductToCartDto.ts +8 -0
- package/shared/services/api/models/AddProductToShippingCartDto.ts +8 -0
- package/shared/services/api/models/AdminPlaceOrderDto.ts +16 -0
- package/shared/services/api/models/AssignPickupSerialNumberDto.ts +10 -0
- package/shared/services/api/models/CreateUserAddressDto.ts +19 -0
- package/shared/services/api/models/DeletCartProductsArrayDto.ts +7 -0
- package/shared/services/api/models/GenerateInvoiceDto.ts +7 -0
- package/shared/services/api/models/OrderConfirmationEmailDto.ts +8 -0
- package/shared/services/api/models/PlaceOrderDto.ts +9 -0
- package/shared/services/api/models/PlaceShipmentOrderDto.ts +8 -0
- package/shared/services/api/models/ProductBoostDto.ts +18 -0
- package/shared/services/api/models/RemoveAssignedSerialNumberDto.ts +9 -0
- package/shared/services/api/models/RemoveProductToCartDto.ts +8 -0
- package/shared/services/api/models/ShipmentItem.ts +8 -0
- package/shared/services/api/models/ShippingCartUpdateBillingAddressesDto.ts +7 -0
- package/shared/services/api/models/ShippingCartUpdateShippingMethodDto.ts +7 -0
- package/shared/services/api/models/UnfreezeWalletDto.ts +8 -0
- package/shared/services/api/models/UpdateCartBillingAddressesDto.ts +7 -0
- package/shared/services/api/models/UpdateCartPaymentMethodDto.ts +9 -0
- package/shared/services/api/models/UpdateCartShippingMethodDto.ts +7 -0
- package/shared/services/api/models/UpdateCartStoreDto.ts +7 -0
- package/shared/services/api/models/UpdateProductDto.ts +11 -0
- package/shared/services/api/models/UpdateShipmentItemStatusDto.ts +24 -0
- package/shared/services/api/models/UpdateShippingCartPaymentMethodDto.ts +9 -0
- package/shared/services/api/models/UpdateUserAddressDto.ts +19 -0
- package/shared/services/api/models/ValidateAuthCodeDto.ts +8 -0
- package/shared/services/api/models/WithdrawOrderWalletDto.ts +8 -0
- package/shared/services/api/services/AddressesService.ts +160 -0
- package/shared/services/api/services/AdminsDevicesService.ts +28 -0
- package/shared/services/api/services/AdminsOrdersService.ts +117 -0
- package/shared/services/api/services/AdminsPickupsService.ts +57 -0
- package/shared/services/api/services/AdminsProductsService.ts +86 -0
- package/shared/services/api/services/CartsService.ts +190 -0
- package/shared/services/api/services/CashBackQueueService.ts +39 -0
- package/shared/services/api/services/CategoriesService.ts +65 -0
- package/shared/services/api/services/DefaultService.ts +19 -0
- package/shared/services/api/services/FeaturesFlagsService.ts +20 -0
- package/shared/services/api/services/IossQueueService.ts +39 -0
- package/shared/services/api/services/OrderCallbackService.ts +67 -0
- package/shared/services/api/services/OrderEmailsService.ts +40 -0
- package/shared/services/api/services/OrderImportService.ts +228 -0
- package/shared/services/api/services/OrdersService.ts +183 -0
- package/shared/services/api/services/PaymentGatewayService.ts +19 -0
- package/shared/services/api/services/PaymentsService.ts +88 -0
- package/shared/services/api/services/ProductsService.ts +67 -0
- package/shared/services/api/services/ShipmentOrderCallbackService.ts +67 -0
- package/shared/services/api/services/ShipmentOrdersService.ts +88 -0
- package/shared/services/api/services/ShipmentsService.ts +30 -0
- package/shared/services/api/services/ShippingCartService.ts +247 -0
- package/shared/services/api/services/ShippingMethodsService.ts +20 -0
- package/shared/services/api/services/StoresService.ts +25 -0
- package/shared/services/api/services/SyncServiceQueueService.ts +39 -0
- package/shared/services/api/services/UpgradeOrdersService.ts +26 -0
- package/shared/services/api/services/UsersAuthService.ts +45 -0
- package/shared/services/api/services/UsersService.ts +53 -0
- package/shared/services/api/services/XeraQueueService.ts +39 -0
- package/shared/services/index.ts +0 -0
- package/shared/services/payment-method.service.ts +29 -0
- package/shared/stores/cartStore.ts +108 -0
- package/shared/stores/countriesStore.ts +62 -0
- package/shared/stores/formStore.ts +19 -0
- package/shared/stores/loadingStore.ts +12 -0
- package/shared/stores/userStore.ts +32 -0
- package/shared/types/SelectComponent.types.ts +31 -0
- package/shared/types/addressForm.ts +27 -0
- package/shared/types/cart.ts +208 -0
- package/shared/types/category.ts +6 -0
- package/shared/types/creditNote.ts +0 -0
- package/shared/types/feature-flags.ts +5 -0
- package/shared/types/icon.ts +5 -0
- package/shared/types/index.d.ts +84 -0
- package/shared/types/order.ts +332 -0
- package/shared/types/pagination.ts +5 -0
- package/shared/types/payments.ts +68 -0
- package/shared/types/product.ts +54 -0
- package/shared/types/shoppingCart.ts +219 -0
- package/shared/types/upgradeCart.ts +226 -0
- package/shared/types/user.ts +36 -0
- package/shared/utils/app.util.ts +261 -0
- package/shared/utils/notifications.util.ts +39 -0
- package/shared/utils/user-session.util.ts +171 -0
- package/tailwind.config.ts +234 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { AddProductToCartDto } from "../models/AddProductToCartDto";
|
|
6
|
+
import type { DeletCartProductsArrayDto } from "../models/DeletCartProductsArrayDto";
|
|
7
|
+
import type { RemoveProductToCartDto } from "../models/RemoveProductToCartDto";
|
|
8
|
+
import type { UpdateCartBillingAddressesDto } from "../models/UpdateCartBillingAddressesDto";
|
|
9
|
+
import type { UpdateCartPaymentMethodDto } from "../models/UpdateCartPaymentMethodDto";
|
|
10
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
11
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
12
|
+
import { request as __request } from "../core/request";
|
|
13
|
+
export class CartsService {
|
|
14
|
+
/**
|
|
15
|
+
* @returns any
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
public static cartsControllerGetCart(): CancelablePromise<any> {
|
|
19
|
+
return __request(OpenAPI, {
|
|
20
|
+
method: "GET",
|
|
21
|
+
url: "/v1/carts",
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @returns any
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
public static cartsControllerDeleteCart(): CancelablePromise<any> {
|
|
29
|
+
return __request(OpenAPI, {
|
|
30
|
+
method: "DELETE",
|
|
31
|
+
url: "/v1/carts",
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @param requestBody
|
|
36
|
+
* @returns any
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
public static cartsControllerAddCartProduct(
|
|
40
|
+
requestBody: AddProductToCartDto,
|
|
41
|
+
): CancelablePromise<any> {
|
|
42
|
+
return __request(OpenAPI, {
|
|
43
|
+
method: "POST",
|
|
44
|
+
url: "/v1/carts/add-product",
|
|
45
|
+
body: requestBody,
|
|
46
|
+
mediaType: "application/json",
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @param state
|
|
51
|
+
* @returns any
|
|
52
|
+
* @throws ApiError
|
|
53
|
+
*/
|
|
54
|
+
public static cartsControllerUpdateCartState(
|
|
55
|
+
state: string,
|
|
56
|
+
): CancelablePromise<any> {
|
|
57
|
+
return __request(OpenAPI, {
|
|
58
|
+
method: "PATCH",
|
|
59
|
+
url: "/v1/carts/update-state/{state}",
|
|
60
|
+
path: {
|
|
61
|
+
state: state,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @param requestBody
|
|
67
|
+
* @returns any
|
|
68
|
+
* @throws ApiError
|
|
69
|
+
*/
|
|
70
|
+
public static cartsControllerRemoveCartProduct(
|
|
71
|
+
requestBody: RemoveProductToCartDto,
|
|
72
|
+
): CancelablePromise<any> {
|
|
73
|
+
return __request(OpenAPI, {
|
|
74
|
+
method: "PATCH",
|
|
75
|
+
url: "/v1/carts/remove-product",
|
|
76
|
+
body: requestBody,
|
|
77
|
+
mediaType: "application/json",
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @param requestBody
|
|
82
|
+
* @returns any
|
|
83
|
+
* @throws ApiError
|
|
84
|
+
*/
|
|
85
|
+
public static cartsControllerUpdatePaymentMethod(
|
|
86
|
+
requestBody: UpdateCartPaymentMethodDto,
|
|
87
|
+
): CancelablePromise<any> {
|
|
88
|
+
return __request(OpenAPI, {
|
|
89
|
+
method: "PATCH",
|
|
90
|
+
url: "/v1/carts/update-payment-method",
|
|
91
|
+
body: requestBody,
|
|
92
|
+
mediaType: "application/json",
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @param requestBody
|
|
97
|
+
* @returns any
|
|
98
|
+
* @throws ApiError
|
|
99
|
+
*/
|
|
100
|
+
public static cartsControllerUpdateAddresses(
|
|
101
|
+
requestBody: UpdateCartBillingAddressesDto,
|
|
102
|
+
): CancelablePromise<any> {
|
|
103
|
+
return __request(OpenAPI, {
|
|
104
|
+
method: "PATCH",
|
|
105
|
+
url: "/v1/carts/update-billing-address",
|
|
106
|
+
body: requestBody,
|
|
107
|
+
mediaType: "application/json",
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @param requestBody
|
|
113
|
+
* @returns any
|
|
114
|
+
* @throws ApiError
|
|
115
|
+
*/
|
|
116
|
+
public static cartsControllerShippingAddresses(
|
|
117
|
+
requestBody: UpdateCartBillingAddressesDto,
|
|
118
|
+
): CancelablePromise<any> {
|
|
119
|
+
return __request(OpenAPI, {
|
|
120
|
+
method: "PATCH",
|
|
121
|
+
url: "/v1/carts/update-shipping-address",
|
|
122
|
+
body: requestBody,
|
|
123
|
+
mediaType: "application/json",
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @param requestBody
|
|
128
|
+
* @returns any
|
|
129
|
+
* @throws ApiError
|
|
130
|
+
*/
|
|
131
|
+
public static cartsControllerDeleteCartProducts(
|
|
132
|
+
requestBody: DeletCartProductsArrayDto,
|
|
133
|
+
): CancelablePromise<any> {
|
|
134
|
+
return __request(OpenAPI, {
|
|
135
|
+
method: "PATCH",
|
|
136
|
+
url: "/v1/carts/remove-products",
|
|
137
|
+
body: requestBody,
|
|
138
|
+
mediaType: "application/json",
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @param mode
|
|
144
|
+
* @returns any
|
|
145
|
+
* @throws ApiError
|
|
146
|
+
*/
|
|
147
|
+
public static cartsControllerValidateCart(
|
|
148
|
+
mode: string,
|
|
149
|
+
): CancelablePromise<any> {
|
|
150
|
+
return __request(OpenAPI, {
|
|
151
|
+
method: "PATCH",
|
|
152
|
+
url: "/v1/carts/refresh/{mode}",
|
|
153
|
+
path: {
|
|
154
|
+
mode: mode,
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @param shippingMethodId
|
|
161
|
+
* @returns any
|
|
162
|
+
* @throws ApiError
|
|
163
|
+
*/
|
|
164
|
+
public static getCountriesByShippingMethod(
|
|
165
|
+
shippingMethodId: number,
|
|
166
|
+
): CancelablePromise<any> {
|
|
167
|
+
return __request(OpenAPI, {
|
|
168
|
+
method: "GET",
|
|
169
|
+
url: "/v1/carts/allowed-shipping-countries/{shippingMethodId}",
|
|
170
|
+
path: {
|
|
171
|
+
shippingMethodId: shippingMethodId,
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @param type
|
|
178
|
+
* @returns any
|
|
179
|
+
* @throws ApiError
|
|
180
|
+
*/
|
|
181
|
+
public static resetCartAddresses(type: string): CancelablePromise<any> {
|
|
182
|
+
return __request(OpenAPI, {
|
|
183
|
+
method: "PATCH",
|
|
184
|
+
url: "/v1/carts/reset-address/{type}",
|
|
185
|
+
path: {
|
|
186
|
+
type: type,
|
|
187
|
+
},
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
6
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
7
|
+
import { request as __request } from "../core/request";
|
|
8
|
+
export class CashBackQueueService {
|
|
9
|
+
/**
|
|
10
|
+
* @returns any
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
public static cashBackQueueControllerGetStats(): CancelablePromise<any> {
|
|
14
|
+
return __request(OpenAPI, {
|
|
15
|
+
method: "GET",
|
|
16
|
+
url: "/v1/cashback-queue/stats",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @returns any
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
public static cashBackQueueControllerStopQueue(): CancelablePromise<any> {
|
|
24
|
+
return __request(OpenAPI, {
|
|
25
|
+
method: "POST",
|
|
26
|
+
url: "/v1/cashback-queue/stop",
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @returns any
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
public static cashBackQueueControllerRestartQueue(): CancelablePromise<any> {
|
|
34
|
+
return __request(OpenAPI, {
|
|
35
|
+
method: "POST",
|
|
36
|
+
url: "/v1/cashback-queue/restart",
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
6
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
7
|
+
import { request as __request } from "../core/request";
|
|
8
|
+
export class CategoriesService {
|
|
9
|
+
/**
|
|
10
|
+
* @param categoryId
|
|
11
|
+
* @param code
|
|
12
|
+
* @param page
|
|
13
|
+
* @param limit
|
|
14
|
+
* @param sort
|
|
15
|
+
* @param sortBy
|
|
16
|
+
* @returns any
|
|
17
|
+
* @throws ApiError
|
|
18
|
+
*/
|
|
19
|
+
public static categoriesControllerGetCategories(
|
|
20
|
+
categoryId?: number,
|
|
21
|
+
code?:
|
|
22
|
+
| "minter"
|
|
23
|
+
| "quantwise"
|
|
24
|
+
| "license"
|
|
25
|
+
| "combo"
|
|
26
|
+
| "kminting"
|
|
27
|
+
| "supernode"
|
|
28
|
+
| "global-pool-layer-k"
|
|
29
|
+
| "subscription"
|
|
30
|
+
| "mobile-app",
|
|
31
|
+
page: number = 1,
|
|
32
|
+
limit: number = 30,
|
|
33
|
+
sort: string = "desc",
|
|
34
|
+
sortBy: string = "createdAt",
|
|
35
|
+
): CancelablePromise<any> {
|
|
36
|
+
return __request(OpenAPI, {
|
|
37
|
+
method: "GET",
|
|
38
|
+
url: "/v1/categories",
|
|
39
|
+
query: {
|
|
40
|
+
categoryId: categoryId,
|
|
41
|
+
code: code,
|
|
42
|
+
page: page,
|
|
43
|
+
limit: limit,
|
|
44
|
+
sort: sort,
|
|
45
|
+
sortBy: sortBy,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @param id
|
|
51
|
+
* @returns any
|
|
52
|
+
* @throws ApiError
|
|
53
|
+
*/
|
|
54
|
+
public static categoriesControllerGetCategory(
|
|
55
|
+
id: number,
|
|
56
|
+
): CancelablePromise<any> {
|
|
57
|
+
return __request(OpenAPI, {
|
|
58
|
+
method: "GET",
|
|
59
|
+
url: "/v1/categories/{id}",
|
|
60
|
+
path: {
|
|
61
|
+
id: id,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
6
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
7
|
+
import { request as __request } from "../core/request";
|
|
8
|
+
export class DefaultService {
|
|
9
|
+
/**
|
|
10
|
+
* @returns any
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
public static appControllerGetHello(): CancelablePromise<any> {
|
|
14
|
+
return __request(OpenAPI, {
|
|
15
|
+
method: "GET",
|
|
16
|
+
url: "/v1",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
6
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
7
|
+
import { request as __request } from "../core/request";
|
|
8
|
+
export class FeaturesFlagsService {
|
|
9
|
+
/**
|
|
10
|
+
* @returns any
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
public static featureFlagControllerGetFeatureFlags(): CancelablePromise<any> {
|
|
14
|
+
return __request(OpenAPI, {
|
|
15
|
+
method: "GET",
|
|
16
|
+
url: "/v1/features",
|
|
17
|
+
isServerAction: true,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
6
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
7
|
+
import { request as __request } from "../core/request";
|
|
8
|
+
export class IossQueueService {
|
|
9
|
+
/**
|
|
10
|
+
* @returns any
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
public static issoQueueControllerGetStats(): CancelablePromise<any> {
|
|
14
|
+
return __request(OpenAPI, {
|
|
15
|
+
method: "GET",
|
|
16
|
+
url: "/v1/ioss-queue/stats",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @returns any
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
public static issoQueueControllerStopQueue(): CancelablePromise<any> {
|
|
24
|
+
return __request(OpenAPI, {
|
|
25
|
+
method: "POST",
|
|
26
|
+
url: "/v1/ioss-queue/stop",
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @returns any
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
public static issoQueueControllerRestartQueue(): CancelablePromise<any> {
|
|
34
|
+
return __request(OpenAPI, {
|
|
35
|
+
method: "POST",
|
|
36
|
+
url: "/v1/ioss-queue/restart",
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
6
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
7
|
+
import { request as __request } from "../core/request";
|
|
8
|
+
export class OrderCallbackService {
|
|
9
|
+
/**
|
|
10
|
+
* Handle card payment callback
|
|
11
|
+
* @param orderTransactionId
|
|
12
|
+
* @param requestBody
|
|
13
|
+
* @returns any
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
public static orderCallbackControllerHandleCardPaymentCallback(
|
|
17
|
+
orderTransactionId: string,
|
|
18
|
+
requestBody: {
|
|
19
|
+
orderId?: string;
|
|
20
|
+
uniqueId?: string;
|
|
21
|
+
isPaid?: boolean;
|
|
22
|
+
providerResponse?: {
|
|
23
|
+
amount?: number;
|
|
24
|
+
billing?: {
|
|
25
|
+
address?: {
|
|
26
|
+
city?: string;
|
|
27
|
+
country?: string;
|
|
28
|
+
postcodeZip?: string;
|
|
29
|
+
stateProvince?: string;
|
|
30
|
+
street?: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
customer?: {
|
|
34
|
+
email?: string;
|
|
35
|
+
firstName?: string;
|
|
36
|
+
lastName?: string;
|
|
37
|
+
mobilePhone?: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
): CancelablePromise<any> {
|
|
42
|
+
return __request(OpenAPI, {
|
|
43
|
+
method: "POST",
|
|
44
|
+
url: "/v1/order-webhooks/card",
|
|
45
|
+
query: {
|
|
46
|
+
orderTransactionId: orderTransactionId,
|
|
47
|
+
},
|
|
48
|
+
body: requestBody,
|
|
49
|
+
mediaType: "application/json",
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @param requestBody
|
|
54
|
+
* @returns any
|
|
55
|
+
* @throws ApiError
|
|
56
|
+
*/
|
|
57
|
+
public static orderCallbackControllerCheckOrderStatus(requestBody: {
|
|
58
|
+
orderId?: string;
|
|
59
|
+
}): CancelablePromise<any> {
|
|
60
|
+
return __request(OpenAPI, {
|
|
61
|
+
method: "POST",
|
|
62
|
+
url: "/v1/order-webhooks/check-status",
|
|
63
|
+
body: requestBody,
|
|
64
|
+
mediaType: "application/json",
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { OrderConfirmationEmailDto } from "../models/OrderConfirmationEmailDto";
|
|
6
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
7
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
8
|
+
import { request as __request } from "../core/request";
|
|
9
|
+
export class OrderEmailsService {
|
|
10
|
+
/**
|
|
11
|
+
* @param requestBody
|
|
12
|
+
* @returns any
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
public static orderEmailControllerOrderConfirmationByCard(
|
|
16
|
+
requestBody: OrderConfirmationEmailDto,
|
|
17
|
+
): CancelablePromise<any> {
|
|
18
|
+
return __request(OpenAPI, {
|
|
19
|
+
method: "POST",
|
|
20
|
+
url: "/v1/order-emails/pay-by-card/order-confirmation",
|
|
21
|
+
body: requestBody,
|
|
22
|
+
mediaType: "application/json",
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @param requestBody
|
|
27
|
+
* @returns any
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
public static orderEmailControllerOrderConfirmationByWallet(
|
|
31
|
+
requestBody: OrderConfirmationEmailDto,
|
|
32
|
+
): CancelablePromise<any> {
|
|
33
|
+
return __request(OpenAPI, {
|
|
34
|
+
method: "POST",
|
|
35
|
+
url: "/v1/order-emails/pay-by-wallet/order-confirmation",
|
|
36
|
+
body: requestBody,
|
|
37
|
+
mediaType: "application/json",
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|