@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,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
export type UpdateProductDto = {
|
|
6
|
+
specification?: string;
|
|
7
|
+
features?: string;
|
|
8
|
+
details?: string;
|
|
9
|
+
summary?: string;
|
|
10
|
+
overview?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
export type UpdateShipmentItemStatusDto = {
|
|
6
|
+
userBID: string;
|
|
7
|
+
adminEmail: string;
|
|
8
|
+
newShipmentItemStatus: UpdateShipmentItemStatusDto.newShipmentItemStatus;
|
|
9
|
+
shipmentOrderId?: string;
|
|
10
|
+
shipmentItemId?: number;
|
|
11
|
+
};
|
|
12
|
+
export namespace UpdateShipmentItemStatusDto {
|
|
13
|
+
export enum newShipmentItemStatus {
|
|
14
|
+
CANCELLED = "cancelled",
|
|
15
|
+
ORDER_REFUNDED = "order-refunded",
|
|
16
|
+
SHIPPING_REFUNDED = "shipping-refunded",
|
|
17
|
+
IN_HOUSE = "in-house",
|
|
18
|
+
IN_PROCESS = "in-process",
|
|
19
|
+
READY_FOR_SHIPPING = "ready-for-shipping",
|
|
20
|
+
READY_FOR_PICKUP = "ready-for-pickup",
|
|
21
|
+
PICKED_UP = "picked-up",
|
|
22
|
+
DELIVERED = "delivered",
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
export type UpdateShippingCartPaymentMethodDto = {
|
|
6
|
+
paymentMethodId: number;
|
|
7
|
+
paymentOptionId: number;
|
|
8
|
+
fromAssetSelectedPercentage: number;
|
|
9
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
export type UpdateUserAddressDto = {
|
|
6
|
+
countryId: number;
|
|
7
|
+
firstName: string;
|
|
8
|
+
lastName: string;
|
|
9
|
+
countryCode: string;
|
|
10
|
+
phone: string;
|
|
11
|
+
postalCode: string;
|
|
12
|
+
city: string;
|
|
13
|
+
state: string;
|
|
14
|
+
address: string;
|
|
15
|
+
buildingInfo: string;
|
|
16
|
+
latitude: string;
|
|
17
|
+
longitude: string;
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { CreateUserAddressDto } from "../models/CreateUserAddressDto";
|
|
6
|
+
import type { UpdateUserAddressDto } from "../models/UpdateUserAddressDto";
|
|
7
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
8
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
9
|
+
import { request as __request } from "../core/request";
|
|
10
|
+
export class AddressesService {
|
|
11
|
+
/**
|
|
12
|
+
* @param type
|
|
13
|
+
* @returns any
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
public static userAddressesControllerGetDefaultAddresses(
|
|
17
|
+
type: string = "any",
|
|
18
|
+
): CancelablePromise<any> {
|
|
19
|
+
return __request(OpenAPI, {
|
|
20
|
+
method: "GET",
|
|
21
|
+
url: "/v1/user-addresses/defaults",
|
|
22
|
+
query: {
|
|
23
|
+
type: type,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @param requestBody
|
|
29
|
+
* @returns any
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
public static userAddressesControllerAddNewAddress(
|
|
33
|
+
requestBody: CreateUserAddressDto,
|
|
34
|
+
): CancelablePromise<any> {
|
|
35
|
+
return __request(OpenAPI, {
|
|
36
|
+
method: "POST",
|
|
37
|
+
url: "/v1/user-addresses",
|
|
38
|
+
body: requestBody,
|
|
39
|
+
mediaType: "application/json",
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @param addressType
|
|
44
|
+
* @returns any
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
public static userAddressesControllerGetAllActiveUserAddresses(
|
|
48
|
+
addressType: string,
|
|
49
|
+
): CancelablePromise<any> {
|
|
50
|
+
return __request(OpenAPI, {
|
|
51
|
+
method: "GET",
|
|
52
|
+
url: "/v1/user-addresses/{addressType}",
|
|
53
|
+
path: {
|
|
54
|
+
addressType: addressType,
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @param id
|
|
60
|
+
* @param requestBody
|
|
61
|
+
* @returns any
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
public static userAddressesControllerUpdateAddress(
|
|
65
|
+
id: number,
|
|
66
|
+
requestBody: UpdateUserAddressDto,
|
|
67
|
+
): CancelablePromise<any> {
|
|
68
|
+
return __request(OpenAPI, {
|
|
69
|
+
method: "PATCH",
|
|
70
|
+
url: "/v1/user-addresses/{id}",
|
|
71
|
+
path: {
|
|
72
|
+
id: id,
|
|
73
|
+
},
|
|
74
|
+
body: requestBody,
|
|
75
|
+
mediaType: "application/json",
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @param id
|
|
80
|
+
* @returns any
|
|
81
|
+
* @throws ApiError
|
|
82
|
+
*/
|
|
83
|
+
public static userAddressesControllerDeleteAddress(
|
|
84
|
+
id: number,
|
|
85
|
+
): CancelablePromise<any> {
|
|
86
|
+
return __request(OpenAPI, {
|
|
87
|
+
method: "DELETE",
|
|
88
|
+
url: "/v1/user-addresses/{id}",
|
|
89
|
+
path: {
|
|
90
|
+
id: id,
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @param addressType
|
|
96
|
+
* @param addressId
|
|
97
|
+
* @returns any
|
|
98
|
+
* @throws ApiError
|
|
99
|
+
*/
|
|
100
|
+
public static userAddressesControllerSetAddressAsDefault(
|
|
101
|
+
addressType: string,
|
|
102
|
+
addressId: number,
|
|
103
|
+
): CancelablePromise<any> {
|
|
104
|
+
return __request(OpenAPI, {
|
|
105
|
+
method: "PATCH",
|
|
106
|
+
url: "/v1/user-addresses/{addressType}/{addressId}/default",
|
|
107
|
+
path: {
|
|
108
|
+
addressType: addressType,
|
|
109
|
+
addressId: addressId,
|
|
110
|
+
},
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* @returns any
|
|
115
|
+
* @throws ApiError
|
|
116
|
+
*/
|
|
117
|
+
public static addressesControllerGetCountries(): CancelablePromise<any> {
|
|
118
|
+
return __request(OpenAPI, {
|
|
119
|
+
method: "GET",
|
|
120
|
+
url: "/v1/addresses/countries",
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* @param countryId
|
|
125
|
+
* @returns any
|
|
126
|
+
* @throws ApiError
|
|
127
|
+
*/
|
|
128
|
+
public static addressesControllerGetSates(
|
|
129
|
+
countryId: number,
|
|
130
|
+
): CancelablePromise<any> {
|
|
131
|
+
return __request(OpenAPI, {
|
|
132
|
+
method: "GET",
|
|
133
|
+
url: "/v1/addresses/states",
|
|
134
|
+
query: {
|
|
135
|
+
countryId: countryId,
|
|
136
|
+
},
|
|
137
|
+
isServerAction: true,
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @param countryId
|
|
142
|
+
* @param stateId
|
|
143
|
+
* @returns any
|
|
144
|
+
* @throws ApiError
|
|
145
|
+
*/
|
|
146
|
+
public static addressesControllerGetCities(
|
|
147
|
+
countryId: number,
|
|
148
|
+
stateId?: number,
|
|
149
|
+
): CancelablePromise<any> {
|
|
150
|
+
return __request(OpenAPI, {
|
|
151
|
+
method: "GET",
|
|
152
|
+
url: "/v1/addresses/cities",
|
|
153
|
+
query: {
|
|
154
|
+
stateId: stateId,
|
|
155
|
+
countryId: countryId,
|
|
156
|
+
},
|
|
157
|
+
isServerAction: true,
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 AdminsDevicesService {
|
|
9
|
+
/**
|
|
10
|
+
* @param requestBody
|
|
11
|
+
* @returns any
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
public static adminDevicesControllerCreateDevices(
|
|
15
|
+
requestBody: Array<{
|
|
16
|
+
serialNumber?: string;
|
|
17
|
+
linkedItemIdentifier?: string;
|
|
18
|
+
isLinked?: boolean;
|
|
19
|
+
}>,
|
|
20
|
+
): CancelablePromise<any> {
|
|
21
|
+
return __request(OpenAPI, {
|
|
22
|
+
method: "POST",
|
|
23
|
+
url: "/v1/admins/devices",
|
|
24
|
+
body: requestBody,
|
|
25
|
+
mediaType: "application/json",
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { AdminPlaceOrderDto } from "../models/AdminPlaceOrderDto";
|
|
6
|
+
import type { UnfreezeWalletDto } from "../models/UnfreezeWalletDto";
|
|
7
|
+
import type { WithdrawOrderWalletDto } from "../models/WithdrawOrderWalletDto";
|
|
8
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
9
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
10
|
+
import { request as __request } from "../core/request";
|
|
11
|
+
export class AdminsOrdersService {
|
|
12
|
+
/**
|
|
13
|
+
* @returns any
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
public static adminOrdersControllerChangeDraftOrdersPaymentStatus(): CancelablePromise<any> {
|
|
17
|
+
return __request(OpenAPI, {
|
|
18
|
+
method: "PUT",
|
|
19
|
+
url: "/v1/admins/orders/payment-status",
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @returns any
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
public static adminOrdersControllerCancelPendingOrdersPaymentStatus(): CancelablePromise<any> {
|
|
27
|
+
return __request(OpenAPI, {
|
|
28
|
+
method: "PUT",
|
|
29
|
+
url: "/v1/admins/orders/cancel-pending-status",
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @param requestBody
|
|
34
|
+
* @returns any
|
|
35
|
+
* @throws ApiError
|
|
36
|
+
*/
|
|
37
|
+
public static adminOrdersControllerUnFreezeUserHomnifiWallet(
|
|
38
|
+
requestBody: UnfreezeWalletDto,
|
|
39
|
+
): CancelablePromise<any> {
|
|
40
|
+
return __request(OpenAPI, {
|
|
41
|
+
method: "PUT",
|
|
42
|
+
url: "/v1/admins/orders/refund-payment",
|
|
43
|
+
body: requestBody,
|
|
44
|
+
mediaType: "application/json",
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @param requestBody
|
|
49
|
+
* @returns any
|
|
50
|
+
* @throws ApiError
|
|
51
|
+
*/
|
|
52
|
+
public static adminOrdersControllerWithdrawOrderAmount(
|
|
53
|
+
requestBody: WithdrawOrderWalletDto,
|
|
54
|
+
): CancelablePromise<any> {
|
|
55
|
+
return __request(OpenAPI, {
|
|
56
|
+
method: "PUT",
|
|
57
|
+
url: "/v1/admins/orders/complete-payment",
|
|
58
|
+
body: requestBody,
|
|
59
|
+
mediaType: "application/json",
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @returns any
|
|
64
|
+
* @throws ApiError
|
|
65
|
+
*/
|
|
66
|
+
public static adminOrdersControllerChangeDraftShippingOrdersPaymentStatus(): CancelablePromise<any> {
|
|
67
|
+
return __request(OpenAPI, {
|
|
68
|
+
method: "PUT",
|
|
69
|
+
url: "/v1/admins/orders/shippings/payment-status",
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @param requestBody
|
|
74
|
+
* @returns any
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
public static adminOrdersControllerUnFreezeUserShippingHomnifiWallet(
|
|
78
|
+
requestBody: UnfreezeWalletDto,
|
|
79
|
+
): CancelablePromise<any> {
|
|
80
|
+
return __request(OpenAPI, {
|
|
81
|
+
method: "PUT",
|
|
82
|
+
url: "/v1/admins/orders/shippings/refund-payment",
|
|
83
|
+
body: requestBody,
|
|
84
|
+
mediaType: "application/json",
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @param requestBody
|
|
89
|
+
* @returns any
|
|
90
|
+
* @throws ApiError
|
|
91
|
+
*/
|
|
92
|
+
public static adminOrdersControllerWithdrawShippingOrderAmount(
|
|
93
|
+
requestBody: WithdrawOrderWalletDto,
|
|
94
|
+
): CancelablePromise<any> {
|
|
95
|
+
return __request(OpenAPI, {
|
|
96
|
+
method: "PUT",
|
|
97
|
+
url: "/v1/admins/orders/shippings/complete-payment",
|
|
98
|
+
body: requestBody,
|
|
99
|
+
mediaType: "application/json",
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @param requestBody
|
|
104
|
+
* @returns any
|
|
105
|
+
* @throws ApiError
|
|
106
|
+
*/
|
|
107
|
+
public static adminOrdersControllerPlaceOrder(
|
|
108
|
+
requestBody: AdminPlaceOrderDto,
|
|
109
|
+
): CancelablePromise<any> {
|
|
110
|
+
return __request(OpenAPI, {
|
|
111
|
+
method: "POST",
|
|
112
|
+
url: "/v1/admins/orders/place-order",
|
|
113
|
+
body: requestBody,
|
|
114
|
+
mediaType: "application/json",
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { AssignPickupSerialNumberDto } from "../models/AssignPickupSerialNumberDto";
|
|
6
|
+
import type { RemoveAssignedSerialNumberDto } from "../models/RemoveAssignedSerialNumberDto";
|
|
7
|
+
import type { UpdateShipmentItemStatusDto } from "../models/UpdateShipmentItemStatusDto";
|
|
8
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
9
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
10
|
+
import { request as __request } from "../core/request";
|
|
11
|
+
export class AdminsPickupsService {
|
|
12
|
+
/**
|
|
13
|
+
* @param requestBody
|
|
14
|
+
* @returns any
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
public static adminPickupsControllerChangeShipmentItemStatus(
|
|
18
|
+
requestBody: UpdateShipmentItemStatusDto,
|
|
19
|
+
): CancelablePromise<any> {
|
|
20
|
+
return __request(OpenAPI, {
|
|
21
|
+
method: "PATCH",
|
|
22
|
+
url: "/v1/admins/pickups/item-status",
|
|
23
|
+
body: requestBody,
|
|
24
|
+
mediaType: "application/json",
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @param requestBody
|
|
29
|
+
* @returns any
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
public static adminPickupsControllerAssignSerialNumber(
|
|
33
|
+
requestBody: AssignPickupSerialNumberDto,
|
|
34
|
+
): CancelablePromise<any> {
|
|
35
|
+
return __request(OpenAPI, {
|
|
36
|
+
method: "PATCH",
|
|
37
|
+
url: "/v1/admins/pickups/assign-serial-number",
|
|
38
|
+
body: requestBody,
|
|
39
|
+
mediaType: "application/json",
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @param requestBody
|
|
44
|
+
* @returns any
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
public static adminPickupsControllerRemoveSerialNumber(
|
|
48
|
+
requestBody: RemoveAssignedSerialNumberDto,
|
|
49
|
+
): CancelablePromise<any> {
|
|
50
|
+
return __request(OpenAPI, {
|
|
51
|
+
method: "PATCH",
|
|
52
|
+
url: "/v1/admins/pickups/remove-serial-number",
|
|
53
|
+
body: requestBody,
|
|
54
|
+
mediaType: "application/json",
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { UpdateProductDto } from "../models/UpdateProductDto";
|
|
6
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
7
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
8
|
+
import { request as __request } from "../core/request";
|
|
9
|
+
export class AdminsProductsService {
|
|
10
|
+
/**
|
|
11
|
+
* @returns any
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
public static adminProductsControllerSyncProductToXera(): CancelablePromise<any> {
|
|
15
|
+
return __request(OpenAPI, {
|
|
16
|
+
method: "POST",
|
|
17
|
+
url: "/v1/admins/products/xera/sync",
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @returns any
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
public static adminProductsControllerCreateXeraProduct(): CancelablePromise<any> {
|
|
25
|
+
return __request(OpenAPI, {
|
|
26
|
+
method: "POST",
|
|
27
|
+
url: "/v1/admins/products/xera",
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @returns any
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
public static adminProductsControllerUpdateXeraProduct(): CancelablePromise<any> {
|
|
35
|
+
return __request(OpenAPI, {
|
|
36
|
+
method: "PUT",
|
|
37
|
+
url: "/v1/admins/products/xera",
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @returns any
|
|
42
|
+
* @throws ApiError
|
|
43
|
+
*/
|
|
44
|
+
public static adminProductsControllerToggleXeraProductStatus(): CancelablePromise<any> {
|
|
45
|
+
return __request(OpenAPI, {
|
|
46
|
+
method: "PATCH",
|
|
47
|
+
url: "/v1/admins/products/xera",
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @param id
|
|
52
|
+
* @returns any
|
|
53
|
+
* @throws ApiError
|
|
54
|
+
*/
|
|
55
|
+
public static adminProductsControllerDeleteXeraProduct(
|
|
56
|
+
id: number,
|
|
57
|
+
): CancelablePromise<any> {
|
|
58
|
+
return __request(OpenAPI, {
|
|
59
|
+
method: "DELETE",
|
|
60
|
+
url: "/v1/admins/products/xera/{id}",
|
|
61
|
+
path: {
|
|
62
|
+
id: id,
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @param sku
|
|
68
|
+
* @param requestBody
|
|
69
|
+
* @returns any
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
public static adminProductsControllerUpdateProduct(
|
|
73
|
+
sku: string,
|
|
74
|
+
requestBody: UpdateProductDto,
|
|
75
|
+
): CancelablePromise<any> {
|
|
76
|
+
return __request(OpenAPI, {
|
|
77
|
+
method: "PUT",
|
|
78
|
+
url: "/v1/admins/products/{sku}",
|
|
79
|
+
path: {
|
|
80
|
+
sku: sku,
|
|
81
|
+
},
|
|
82
|
+
body: requestBody,
|
|
83
|
+
mediaType: "application/json",
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|