@billgangcom/theme-lib 1.68.0 → 1.69.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/dist/App.d.ts +2 -3
- package/dist/abstractions/IBlock.d.ts +1 -1
- package/dist/abstractions/PageContext.d.ts +73 -69
- package/dist/{builder/constants/api.d.ts → api/constants.d.ts} +2 -0
- package/dist/api/index.d.ts +1 -6
- package/dist/api/request.d.ts +8 -4
- package/dist/assets/storefront-icons/index.d.ts +73 -0
- package/dist/builder/api/index.d.ts +4 -0
- package/dist/builder/components/BlockColors/index.d.ts +1 -1
- package/dist/builder/components/BlockSettings/settings.d.ts +1 -1
- package/dist/builder/components/HeaderSaveButton/api/index.d.ts +1 -4
- package/dist/builder/components/HeaderSaveButton/utils/index.d.ts +1 -1
- package/dist/builder/components/HeaderSettingsPages/api/index.d.ts +1 -4
- package/dist/builder/components/ThemeSettingsColors/utils/getDuplicateColors.d.ts +1 -1
- package/dist/builder/constants/index.d.ts +0 -2
- package/dist/builder/constants/notification.d.ts +1 -0
- package/dist/builder/store/useGeneralStore.d.ts +3 -3
- package/dist/builder/store/useNotificationStore.d.ts +2 -2
- package/dist/builder/ui/ChooseImage/api/index.d.ts +2 -8
- package/dist/builder/ui/Notification/index.d.ts +11 -0
- package/dist/builder/ui/index.d.ts +0 -1
- package/dist/builder.cjs.js +123 -49
- package/dist/builder.es.js +18334 -2840
- package/dist/index-C1GpRLwI.js +15866 -0
- package/dist/index-CtyrP2GR.cjs +80 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +8 -8
- package/dist/lib/createTicket.d.ts +1 -4
- package/dist/lib/generateDynamicStyles.d.ts +1 -1
- package/dist/lib/setupDynamicFonts.d.ts +1 -1
- package/dist/pages/balance/balance-modal.d.ts +7 -0
- package/dist/pages/balance/index.d.ts +1 -0
- package/dist/pages/balance/model.d.ts +6 -0
- package/dist/pages/charge/index.d.ts +1 -0
- package/dist/pages/checkout/index.d.ts +1 -0
- package/dist/pages/checkout/model.d.ts +1 -0
- package/dist/pages/dynamic-page/api/index.d.ts +1 -4
- package/dist/pages/error-page/api/index.d.ts +1 -4
- package/dist/pages/home/index.d.ts +1 -0
- package/dist/pages/home/model.d.ts +26 -0
- package/dist/pages/order/index.d.ts +1 -0
- package/dist/pages/order/model.d.ts +91 -0
- package/dist/pages/orders/index.d.ts +1 -0
- package/dist/pages/orders/model.d.ts +4 -0
- package/dist/pages/rewards/index.d.ts +1 -0
- package/dist/pages/rewards/model.d.ts +71 -0
- package/dist/pages/subscription/index.d.ts +1 -0
- package/dist/pages/subscription/model.d.ts +1 -0
- package/dist/pages/subscriptions/index.d.ts +1 -0
- package/dist/pages/subscriptions/model.d.ts +6 -0
- package/dist/pages/ticket/index.d.ts +1 -0
- package/dist/pages/ticket/model.d.ts +24 -0
- package/dist/pages/tickets/index.d.ts +1 -0
- package/dist/pages/tickets/model.d.ts +21 -0
- package/dist/pages/top-up-balance/index.d.ts +1 -0
- package/dist/storefront/api/auth.d.ts +20 -0
- package/dist/storefront/api/charge.d.ts +1 -0
- package/dist/storefront/api/coupon.d.ts +2 -0
- package/dist/storefront/api/customer.d.ts +6 -0
- package/dist/storefront/api/discord.d.ts +7 -0
- package/dist/storefront/api/fetchGatewaysDetail.d.ts +1 -0
- package/dist/storefront/api/fetchThemeAndSettings.d.ts +1 -0
- package/dist/storefront/api/fetchWithPages.d.ts +11 -0
- package/dist/storefront/api/index.d.ts +18 -0
- package/dist/storefront/api/order.d.ts +14 -0
- package/dist/storefront/api/postBalanceTopUp.d.ts +2 -0
- package/dist/storefront/api/postCashappLink.d.ts +3 -0
- package/dist/storefront/api/referral.d.ts +3 -0
- package/dist/storefront/api/reviews.d.ts +2 -0
- package/dist/storefront/api/signUpReferral.d.ts +2 -0
- package/dist/storefront/api/store.d.ts +6 -0
- package/dist/storefront/api/subscription.d.ts +22 -0
- package/dist/storefront/api/ticket.d.ts +7 -0
- package/dist/storefront/api/transactions.d.ts +5 -0
- package/dist/storefront/components/ActivePaymentMethod/index.d.ts +2 -0
- package/dist/storefront/components/ActiveSubscriptionProduct/index.d.ts +9 -0
- package/dist/storefront/components/Auth/index.d.ts +11 -0
- package/dist/storefront/components/Auth/otp-input.d.ts +7 -0
- package/dist/storefront/components/AuthModal/index.d.ts +6 -0
- package/dist/storefront/components/CancelSubscription/index.d.ts +8 -0
- package/dist/storefront/components/CashAppVerify/index.d.ts +7 -0
- package/dist/storefront/components/ChangePaymentMethod/index.d.ts +7 -0
- package/dist/storefront/components/ChangeSubscriptionPlan/index.d.ts +10 -0
- package/dist/storefront/components/ChargeBlocksRenderer/index.d.ts +6 -0
- package/dist/storefront/components/ChargeItems/index.d.ts +7 -0
- package/dist/storefront/components/ChargeStatusBlock/index.d.ts +10 -0
- package/dist/storefront/components/CheckoutFooter/index.d.ts +6 -0
- package/dist/storefront/components/CheckoutHeader/index.d.ts +7 -0
- package/dist/storefront/components/CheckoutItems/index.d.ts +18 -0
- package/dist/storefront/components/CheckoutOperational/index.d.ts +24 -0
- package/dist/storefront/components/CheckoutOrderMainData/index.d.ts +9 -0
- package/dist/storefront/components/CheckoutPrices/index.d.ts +12 -0
- package/dist/storefront/components/CheckoutProduct/index.d.ts +8 -0
- package/dist/storefront/components/CheckoutProduct/model.d.ts +1 -0
- package/dist/storefront/components/ChoosePlanUpgradeMethod/index.d.ts +9 -0
- package/dist/storefront/components/ConnectDiscord/index.d.ts +6 -0
- package/dist/storefront/components/ConnectDiscord/model.d.ts +22 -0
- package/dist/storefront/components/Coupon/index.d.ts +12 -0
- package/dist/storefront/components/CustomFields/index.d.ts +13 -0
- package/dist/storefront/components/CustomerDashboard/index.d.ts +2 -0
- package/dist/storefront/components/DeliveryItem/index.d.ts +7 -0
- package/dist/storefront/components/InsufficientBalance/index.d.ts +8 -0
- package/dist/storefront/components/LeaveAReview/index.d.ts +9 -0
- package/dist/storefront/components/NoItemsBlock/index.d.ts +7 -0
- package/dist/storefront/components/OpenDelivery/index.d.ts +8 -0
- package/dist/storefront/components/OrderStatusBlock/index.d.ts +9 -0
- package/dist/storefront/components/OrdersTable/index.d.ts +15 -0
- package/dist/storefront/components/PageLoading/index.d.ts +7 -0
- package/dist/storefront/components/PageTitle/index.d.ts +6 -0
- package/dist/storefront/components/Pagination/index.d.ts +15 -0
- package/dist/storefront/components/PayPalF&FNote/index.d.ts +8 -0
- package/dist/storefront/components/PaymentMethod/checkout-balance-payment-method.d.ts +13 -0
- package/dist/storefront/components/PaymentMethod/index.d.ts +15 -0
- package/dist/storefront/components/PaymentMethod/model.d.ts +16 -0
- package/dist/storefront/components/PaymentMethods/index.d.ts +18 -0
- package/dist/storefront/components/ProcessingPayment/index.d.ts +1 -0
- package/dist/storefront/components/ReferralBlock/index.d.ts +13 -0
- package/dist/storefront/components/ReferralBlock/mask.d.ts +1 -0
- package/dist/storefront/components/ReferralBlock/referral-modal.d.ts +7 -0
- package/dist/storefront/components/ReferralBlock/step-item.d.ts +8 -0
- package/dist/storefront/components/SecuredBySsl/index.d.ts +1 -0
- package/dist/storefront/components/Sidebar/card.d.ts +6 -0
- package/dist/storefront/components/Sidebar/index.d.ts +1 -0
- package/dist/storefront/components/Sidebar/nav-list.d.ts +2 -0
- package/dist/storefront/components/StatItem/index.d.ts +14 -0
- package/dist/storefront/components/StatusIndicator/index.d.ts +7 -0
- package/dist/storefront/components/SubmitReview/index.d.ts +7 -0
- package/dist/storefront/components/SubscriptionCoupon/index.d.ts +7 -0
- package/dist/storefront/components/SubscriptionExpiration/index.d.ts +6 -0
- package/dist/storefront/components/SubscriptionExpirationDate/index.d.ts +2 -0
- package/dist/storefront/components/SubscriptionProduct/index.d.ts +7 -0
- package/dist/storefront/components/SubscriptionProduct/model.d.ts +9 -0
- package/dist/storefront/components/SubscriptionStatusBadge/index.d.ts +5 -0
- package/dist/storefront/components/SubscriptionsTable/index.d.ts +11 -0
- package/dist/storefront/components/Table/index.d.ts +17 -0
- package/dist/storefront/components/TermsOfService/index.d.ts +1 -0
- package/dist/storefront/components/TicketRow/index.d.ts +5 -0
- package/dist/storefront/components/TrackPayment/index.d.ts +8 -0
- package/dist/storefront/components/index.d.ts +53 -0
- package/dist/storefront/constants/api.d.ts +3 -0
- package/dist/storefront/constants/index.d.ts +3 -0
- package/dist/storefront/constants/referralSteps.d.ts +6 -0
- package/dist/storefront/constants/routes.d.ts +8 -0
- package/dist/storefront/hooks/index.d.ts +2 -0
- package/dist/storefront/hooks/useCart.d.ts +186 -0
- package/dist/storefront/hooks/useCopy.d.ts +1 -0
- package/dist/storefront/index.d.ts +9 -0
- package/dist/storefront/models/balance.d.ts +46 -0
- package/dist/storefront/models/charge.d.ts +73 -0
- package/dist/storefront/models/checkout.d.ts +16 -0
- package/dist/storefront/models/coupon.d.ts +5 -0
- package/dist/storefront/models/discord.d.ts +22 -0
- package/dist/storefront/models/gateway.d.ts +8 -0
- package/dist/storefront/models/index.d.ts +15 -0
- package/dist/storefront/models/order.d.ts +125 -0
- package/dist/storefront/models/payment.d.ts +15 -0
- package/dist/storefront/models/post.d.ts +5 -0
- package/dist/storefront/models/price.d.ts +5 -0
- package/dist/storefront/models/referral.d.ts +12 -0
- package/dist/storefront/models/referralCode.d.ts +3 -0
- package/dist/{builder/constants/general.d.ts → storefront/models/shop.d.ts} +19 -6
- package/dist/storefront/models/subscription.d.ts +129 -0
- package/dist/storefront/models/transaction.d.ts +12 -0
- package/dist/storefront/store/index.d.ts +6 -0
- package/dist/storefront/store/useCartStore.d.ts +24 -0
- package/dist/storefront/store/useCustomerDashboardStore.d.ts +34 -0
- package/dist/storefront/store/useDiscordStore.d.ts +7 -0
- package/dist/storefront/store/usePaginationPagesStore.d.ts +6 -0
- package/dist/storefront/store/useStorefrontStore.d.ts +21 -0
- package/dist/storefront/store/useSubscriptionStore.d.ts +7 -0
- package/dist/storefront/ui/ActiveBadge/index.d.ts +5 -0
- package/dist/storefront/ui/InputRange/index.d.ts +9 -0
- package/dist/storefront/ui/ProgressBar/index.d.ts +8 -0
- package/dist/storefront/ui/Rating/index.d.ts +8 -0
- package/dist/storefront/ui/Timer/index.d.ts +6 -0
- package/dist/storefront/ui/index.d.ts +5 -0
- package/dist/storefront/utils/index.d.ts +16 -0
- package/dist/storefront/utils/recapcha.d.ts +12 -0
- package/dist/ui/Button/index.d.ts +1 -1
- package/dist/ui/CategorySettings/index.d.ts +1 -1
- package/dist/ui/Input/index.d.ts +2 -0
- package/dist/ui/ItemsSettings/index.d.ts +1 -1
- package/dist/ui/ListingSelector/index.d.ts +1 -1
- package/dist/ui/Loader/index.d.ts +4 -0
- package/dist/ui/Radio/index.d.ts +14 -0
- package/dist/ui/Select/index.d.ts +20 -0
- package/dist/ui/Select/utils/index.d.ts +2 -0
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1105 -1208
- package/package.json +7 -3
- package/dist/api/fetchThemeAndSettings.d.ts +0 -4
- package/dist/index-BaU8m6yb.cjs +0 -194
- package/dist/index-zSoKRTpK.js +0 -34420
- /package/dist/{api → builder/api}/fetchAll.d.ts +0 -0
- /package/dist/{api → builder/api}/fetchData.d.ts +0 -0
- /package/dist/{api → builder/api}/fetchFontsData.d.ts +0 -0
- /package/dist/{api → builder/api}/fetchPagesData.d.ts +0 -0
- /package/dist/{api → storefront/api}/fetchGeneral.d.ts +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./builder.cjs.js"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./builder.cjs.js"),t=require("./index-CtyrP2GR.cjs");exports.App=e.App;exports.ColorVariables=e.ColorVariables;exports.ReCaptchaProvider=e.ReCaptchaProvider;exports.createTicket=e.createTicket;exports.hotReload=e.hotReload;exports.iconNames=e.iconNames;exports.useReCaptcha=e.useReCaptcha;exports.aspectRatioOptions=t.aspectRatioOptions;exports.splitTextIntoSpans=t.splitTextIntoSpans;
|
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { App as o, ColorVariables as t, createTicket as s, hotReload as
|
|
2
|
-
import {
|
|
1
|
+
import { App as o, ColorVariables as t, ReCaptchaProvider as p, createTicket as s, hotReload as r, iconNames as i, useReCaptcha as c } from "./builder.es.js";
|
|
2
|
+
import { a as n, s as R } from "./index-C1GpRLwI.js";
|
|
3
3
|
export {
|
|
4
4
|
o as App,
|
|
5
5
|
t as ColorVariables,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
p as ReCaptchaProvider,
|
|
7
|
+
n as aspectRatioOptions,
|
|
8
8
|
s as createTicket,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
r as hotReload,
|
|
10
|
+
i as iconNames,
|
|
11
|
+
R as splitTextIntoSpans,
|
|
12
|
+
c as useReCaptcha
|
|
13
13
|
};
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export declare function createTicket(title: string, message: string, recaptcha: string, email: string): Promise<
|
|
2
|
-
data: any;
|
|
3
|
-
status: number;
|
|
4
|
-
} | undefined>;
|
|
1
|
+
export declare function createTicket(title: string, message: string, recaptcha: string, email: string): Promise<import("@api").RequestResponse<any> | undefined>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ThemeSettings } from '@constants';
|
|
1
|
+
import { ThemeSettings } from '@builder/constants';
|
|
2
2
|
export declare const generateDynamicStyles: (themeSettings: ThemeSettings, storeSettings: any) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ThemeSettings } from '@constants';
|
|
1
|
+
import { ThemeSettings } from '@builder/constants';
|
|
2
2
|
export declare const setupDynamicFonts: (themeSettings: ThemeSettings) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Balance: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Payment } from '@storefront/models';
|
|
2
|
+
export declare const getTransactions: (pageNumber?: number) => Promise<{
|
|
3
|
+
list: any;
|
|
4
|
+
totalCount: number;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const requestTopUpBalance: ({ price, gateway, customerEmail }: Payment) => Promise<import("../../api").RequestResponse<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ChargePage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Checkout: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,8 +3,5 @@ interface ResetSettingsOptions {
|
|
|
3
3
|
resetThemeSettings: boolean;
|
|
4
4
|
resetPageIds: number[];
|
|
5
5
|
}
|
|
6
|
-
export declare const resetSettings: (options: ResetSettingsOptions) => Promise<
|
|
7
|
-
data: any;
|
|
8
|
-
status: number;
|
|
9
|
-
}>;
|
|
6
|
+
export declare const resetSettings: (options: ResetSettingsOptions) => Promise<import("@api").RequestResponse<any>>;
|
|
10
7
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Home: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Price } from '@storefront/models';
|
|
2
|
+
interface Image {
|
|
3
|
+
id: number;
|
|
4
|
+
cfId: string;
|
|
5
|
+
}
|
|
6
|
+
interface Product {
|
|
7
|
+
name: string;
|
|
8
|
+
image: Image;
|
|
9
|
+
amountSpentUsd?: number;
|
|
10
|
+
purchasedTimes: number;
|
|
11
|
+
cfImageId: string;
|
|
12
|
+
shortDescription?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface Home {
|
|
15
|
+
totalSpent: number;
|
|
16
|
+
totalPurchases: number;
|
|
17
|
+
averageReview: number;
|
|
18
|
+
visits: number;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
ratingPlacement: number;
|
|
21
|
+
balance?: Price;
|
|
22
|
+
spendMoreUsdForNextPlace: number;
|
|
23
|
+
topSpenderProduct?: Product;
|
|
24
|
+
favoriteProduct?: Product;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OrderPage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { GetChargeApiData, OrderStatus, Price } from '@storefront/models';
|
|
2
|
+
export type Image = {
|
|
3
|
+
id: number;
|
|
4
|
+
cfId: string;
|
|
5
|
+
};
|
|
6
|
+
export type PublicOrderPart = {
|
|
7
|
+
id: number;
|
|
8
|
+
productWithVariant: {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
shortDescription?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
image?: Image;
|
|
14
|
+
variantId: string;
|
|
15
|
+
variantName: string;
|
|
16
|
+
price: Price;
|
|
17
|
+
};
|
|
18
|
+
quantity: number;
|
|
19
|
+
endPrice: Price;
|
|
20
|
+
endPriceUSD: Price['amount'];
|
|
21
|
+
customerNote?: string;
|
|
22
|
+
};
|
|
23
|
+
type BaseOrder = {
|
|
24
|
+
id: string;
|
|
25
|
+
status: OrderStatus;
|
|
26
|
+
rawPrice: Price;
|
|
27
|
+
endPrice: Price;
|
|
28
|
+
endPriceUSD: Price['amount'];
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
expiresAt: Date;
|
|
31
|
+
charge: GetChargeApiData;
|
|
32
|
+
timeline: Partial<Record<OrderStatus, Date>>;
|
|
33
|
+
};
|
|
34
|
+
export type PublicOrderReview = {
|
|
35
|
+
rating?: number;
|
|
36
|
+
comment?: string;
|
|
37
|
+
sellerReply?: string;
|
|
38
|
+
createdAt?: Date;
|
|
39
|
+
updatedAt?: Date;
|
|
40
|
+
};
|
|
41
|
+
export type AuthenticatedOrderReview = PublicOrderReview & {
|
|
42
|
+
accessToken: string;
|
|
43
|
+
};
|
|
44
|
+
export type PublicOrder = BaseOrder & {
|
|
45
|
+
partOrders: PublicOrderPart[];
|
|
46
|
+
review: PublicOrderReview;
|
|
47
|
+
};
|
|
48
|
+
export type AuthenticatedOrder = BaseOrder & {
|
|
49
|
+
partOrders: AuthenticatedOrderPart[];
|
|
50
|
+
review: AuthenticatedOrderReview;
|
|
51
|
+
};
|
|
52
|
+
export type AuthenticatedOrderPart = PublicOrderPart & {
|
|
53
|
+
deliveryCategories: DeliveryConfiguration[];
|
|
54
|
+
};
|
|
55
|
+
type BaseDeliveryConfiguration = {
|
|
56
|
+
id: number;
|
|
57
|
+
customName?: string;
|
|
58
|
+
};
|
|
59
|
+
export type ExternalDeliveryConfiguration = BaseDeliveryConfiguration & {
|
|
60
|
+
type: DeliveryConfigurationType.Ebook | DeliveryConfigurationType.Link | DeliveryConfigurationType.Download;
|
|
61
|
+
deliveryItems: [TextDeliveryItem];
|
|
62
|
+
};
|
|
63
|
+
export type InternalDeliveryConfiguration = BaseDeliveryConfiguration & ({
|
|
64
|
+
type: DeliveryConfigurationType.Custom | DeliveryConfigurationType.Text | DeliveryConfigurationType.Discord;
|
|
65
|
+
deliveryItems: [TextDeliveryItem];
|
|
66
|
+
} | {
|
|
67
|
+
type: DeliveryConfigurationType.Serial;
|
|
68
|
+
deliveryItems: SerialDeliveryItem[];
|
|
69
|
+
});
|
|
70
|
+
export type DeliveryConfiguration = ExternalDeliveryConfiguration | InternalDeliveryConfiguration;
|
|
71
|
+
export declare const enum DeliveryConfigurationType {
|
|
72
|
+
Text = "TEXT",
|
|
73
|
+
Serial = "SERIALS",
|
|
74
|
+
Ebook = "EBOOK",
|
|
75
|
+
Link = "LINK",
|
|
76
|
+
Download = "DOWNLOAD",
|
|
77
|
+
Discord = "DISCORD",
|
|
78
|
+
Custom = "CUSTOM"
|
|
79
|
+
}
|
|
80
|
+
export type BaseDeliveryItem = {
|
|
81
|
+
id: string;
|
|
82
|
+
deliveredAt: Date;
|
|
83
|
+
};
|
|
84
|
+
export type TextDeliveryItem = BaseDeliveryItem & {
|
|
85
|
+
textData: string;
|
|
86
|
+
};
|
|
87
|
+
export type SerialDeliveryItem = BaseDeliveryItem & {
|
|
88
|
+
serialKey: string;
|
|
89
|
+
};
|
|
90
|
+
export type GetOrderApiData = PublicOrder | AuthenticatedOrder;
|
|
91
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Orders: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Rewards: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Price } from '@storefront/models';
|
|
2
|
+
export declare enum RewardType {
|
|
3
|
+
Balance = "BALANCE",
|
|
4
|
+
Product = "PRODUCT"
|
|
5
|
+
}
|
|
6
|
+
export declare enum AchievementType {
|
|
7
|
+
Spend = "SPEND_AMOUNT",
|
|
8
|
+
Order = "ORDER_COUNT",
|
|
9
|
+
Referral = "REFER_FRIEND",
|
|
10
|
+
Review = "LEAVE_REVIEW"
|
|
11
|
+
}
|
|
12
|
+
interface ProductVariants {
|
|
13
|
+
id: number;
|
|
14
|
+
variantId: number;
|
|
15
|
+
productName: string;
|
|
16
|
+
variantName: string;
|
|
17
|
+
quantity: number;
|
|
18
|
+
}
|
|
19
|
+
interface BalanceRewardOptions {
|
|
20
|
+
balance: Price;
|
|
21
|
+
}
|
|
22
|
+
interface ProductRewardsOptions {
|
|
23
|
+
productsWithVariants: ProductVariants[];
|
|
24
|
+
}
|
|
25
|
+
interface BaseRewardRule {
|
|
26
|
+
id: number;
|
|
27
|
+
}
|
|
28
|
+
interface SpendRewardRule extends BaseRewardRule {
|
|
29
|
+
rewardType: RewardType;
|
|
30
|
+
rewardOptions: BalanceRewardOptions & ProductRewardsOptions;
|
|
31
|
+
ruleType: AchievementType.Spend;
|
|
32
|
+
ruleOptions: {
|
|
33
|
+
forEach: number;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
interface OrderRewardRule extends BaseRewardRule {
|
|
37
|
+
rewardType: RewardType;
|
|
38
|
+
rewardOptions: BalanceRewardOptions & ProductRewardsOptions;
|
|
39
|
+
ruleType: AchievementType.Order;
|
|
40
|
+
ruleOptions: {
|
|
41
|
+
ordersCount: number;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
interface ReferralRewardRule extends BaseRewardRule {
|
|
45
|
+
rewardType: RewardType;
|
|
46
|
+
rewardOptions: BalanceRewardOptions & ProductRewardsOptions;
|
|
47
|
+
ruleType: AchievementType.Referral;
|
|
48
|
+
ruleOptions: {
|
|
49
|
+
minReferrals: number;
|
|
50
|
+
minCompletedOrders: number;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
interface ReviewRewardRule extends BaseRewardRule {
|
|
54
|
+
rewardType: RewardType;
|
|
55
|
+
rewardOptions: BalanceRewardOptions & ProductRewardsOptions;
|
|
56
|
+
ruleType: AchievementType.Review;
|
|
57
|
+
ruleOptions: {
|
|
58
|
+
minReviews: number;
|
|
59
|
+
minStars: number;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
type RewardRule = SpendRewardRule | OrderRewardRule | ReferralRewardRule | ReviewRewardRule;
|
|
63
|
+
export interface CustomerReward {
|
|
64
|
+
id: number;
|
|
65
|
+
progress: number;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
completedAt?: string;
|
|
68
|
+
rewardRule: RewardRule;
|
|
69
|
+
}
|
|
70
|
+
export declare const getRewards: () => Promise<CustomerReward[]>;
|
|
71
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Subscription: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Subscriptions: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TicketItem: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum TicketStatus {
|
|
2
|
+
NEW = "NEW",
|
|
3
|
+
ANSWERED = "ANSWERED",
|
|
4
|
+
NOT_ANSWERED = "NOT_ANSWERED",
|
|
5
|
+
CLOSED = "CLOSED"
|
|
6
|
+
}
|
|
7
|
+
interface Message {
|
|
8
|
+
content: string;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
id: number;
|
|
11
|
+
isSellerReply: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface Customer {
|
|
14
|
+
email: string;
|
|
15
|
+
id: number;
|
|
16
|
+
}
|
|
17
|
+
export interface Ticket {
|
|
18
|
+
customer: Customer;
|
|
19
|
+
messages: Message[];
|
|
20
|
+
status: TicketStatus;
|
|
21
|
+
title: string;
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Tickets: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum TicketStatus {
|
|
2
|
+
NEW = "NEW",
|
|
3
|
+
ANSWERED = "ANSWERED",
|
|
4
|
+
NOT_ANSWERED = "NOT_ANSWERED",
|
|
5
|
+
CLOSED = "CLOSED"
|
|
6
|
+
}
|
|
7
|
+
export interface TicketItem {
|
|
8
|
+
id: number;
|
|
9
|
+
title: string;
|
|
10
|
+
accessToken: string;
|
|
11
|
+
latestMessage: string;
|
|
12
|
+
status: TicketStatus;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt?: string;
|
|
15
|
+
}
|
|
16
|
+
interface TicketsResult {
|
|
17
|
+
list: TicketItem[];
|
|
18
|
+
totalCount: number;
|
|
19
|
+
}
|
|
20
|
+
export declare const getTickets: (page?: number) => Promise<TicketsResult>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TopUpBalance: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type OtpRequest = {
|
|
2
|
+
requested: boolean;
|
|
3
|
+
email?: string;
|
|
4
|
+
};
|
|
5
|
+
export type RequestOtpParams = {
|
|
6
|
+
email: string;
|
|
7
|
+
recaptcha: string;
|
|
8
|
+
};
|
|
9
|
+
export type LoginCustomerParams = {
|
|
10
|
+
email: string;
|
|
11
|
+
otp: string;
|
|
12
|
+
recaptcha: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const requestOtp: ({ email, recaptcha }: RequestOtpParams) => Promise<OtpRequest>;
|
|
15
|
+
export declare const loginCustomer: ({ email, otp, recaptcha }: LoginCustomerParams) => Promise<{
|
|
16
|
+
token: any;
|
|
17
|
+
requested: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const logoutCustomer: () => Promise<void>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fetchCharge: (id: string) => Promise<import("@api").RequestResponse<any>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const fetchDashInfo: () => Promise<import("@api").RequestResponse<any>>;
|
|
2
|
+
export declare const fetchHome: () => Promise<import("@api").RequestResponse<any>>;
|
|
3
|
+
export declare const fetchRewards: () => Promise<import("@api").RequestResponse<any>>;
|
|
4
|
+
export declare const fetchBalance: () => Promise<import("@api").RequestResponse<any>>;
|
|
5
|
+
export declare const fetchBalanceSettings: () => Promise<import("@api").RequestResponse<any>>;
|
|
6
|
+
export declare const fetchReferral: () => Promise<import("@api").RequestResponse<any>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const postDiscordAuthorization: (body: {
|
|
2
|
+
customerEmail: string;
|
|
3
|
+
}) => Promise<import("@api").RequestResponse<any>>;
|
|
4
|
+
export declare const getDiscordAuthorizationStatus: (body: {
|
|
5
|
+
id: string;
|
|
6
|
+
customerEmail: string;
|
|
7
|
+
}) => Promise<import("@api").RequestResponse<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fetchGatewaysDetail: (gateways: string[]) => Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fetchThemeAndSettings: () => Promise<import("@api").RequestResponse<any>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type PageType = {
|
|
2
|
+
PageNumber: number;
|
|
3
|
+
};
|
|
4
|
+
export type PageWithUrlType = PageType & {
|
|
5
|
+
url: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const PageSize = 10;
|
|
8
|
+
export declare const fetchWithPages: ({ url, PageNumber }: PageWithUrlType) => Promise<{
|
|
9
|
+
list: any;
|
|
10
|
+
totalCount: number;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './fetchGeneral';
|
|
2
|
+
export * from './fetchThemeAndSettings';
|
|
3
|
+
export * from './postBalanceTopUp';
|
|
4
|
+
export * from './postCashappLink';
|
|
5
|
+
export * from './customer';
|
|
6
|
+
export * from './store';
|
|
7
|
+
export * from './order';
|
|
8
|
+
export * from './subscription';
|
|
9
|
+
export * from './ticket';
|
|
10
|
+
export * from './transactions';
|
|
11
|
+
export * from './reviews';
|
|
12
|
+
export * from './charge';
|
|
13
|
+
export * from './fetchWithPages';
|
|
14
|
+
export * from './fetchGatewaysDetail';
|
|
15
|
+
export * from './auth';
|
|
16
|
+
export * from './coupon';
|
|
17
|
+
export * from './referral';
|
|
18
|
+
export * from './discord';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OrderRequest } from '@storefront/models';
|
|
2
|
+
import { PageType } from './fetchWithPages';
|
|
3
|
+
export declare const postOrder: (body: OrderRequest) => Promise<import("@api").RequestResponse<any>>;
|
|
4
|
+
export declare const fetchOrders: ({ PageNumber }: PageType) => Promise<{
|
|
5
|
+
list: any;
|
|
6
|
+
totalCount: number;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const getOrders: () => Promise<{
|
|
9
|
+
list: any;
|
|
10
|
+
totalCount: number;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const fetchOrder: (id: string) => Promise<import("@api").RequestResponse<any>>;
|
|
13
|
+
export declare const fetchOrderWithToken: (id: string, token: string) => Promise<import("@api").RequestResponse<any>>;
|
|
14
|
+
export declare const fetchAuthorizedOrder: (path: string) => Promise<import("@api").RequestResponse<any>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const fetchTerms: () => Promise<import("@api").RequestResponse<any>>;
|
|
2
|
+
export declare const fetchSettings: () => Promise<import("@api").RequestResponse<any>>;
|
|
3
|
+
export declare const fetchRefundPolicy: () => Promise<import("@api").RequestResponse<any>>;
|
|
4
|
+
export declare const fetchPrivacyPolicy: () => Promise<import("@api").RequestResponse<any>>;
|
|
5
|
+
export declare const fetchProductsPage: () => Promise<import("@api").RequestResponse<any>>;
|
|
6
|
+
export declare const fetchPage: (path: string) => Promise<import("@api").RequestResponse<any>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PostSubscriptionRequest } from '@storefront/models';
|
|
2
|
+
import { PageType } from './fetchWithPages';
|
|
3
|
+
export declare const postSubscription: (body: PostSubscriptionRequest) => Promise<import("@api").RequestResponse<any>>;
|
|
4
|
+
export declare const fetchSubscription: (id: string, accessToken: string) => Promise<import("@api").RequestResponse<any>>;
|
|
5
|
+
export declare const fetchUpgradesSubscriptions: (id: string, accessToken: string) => Promise<import("@api").RequestResponse<any>>;
|
|
6
|
+
export declare const cancelSubscription: (id: string, accessToken: string, body: {
|
|
7
|
+
reason: string;
|
|
8
|
+
}) => Promise<import("@api").RequestResponse<any>>;
|
|
9
|
+
export declare const changeSubscriptionGateway: (id: string, gateway: string) => Promise<import("@api").RequestResponse<any>>;
|
|
10
|
+
export declare const fetchSubscriptions: ({ PageNumber }: PageType) => Promise<{
|
|
11
|
+
list: any;
|
|
12
|
+
totalCount: number;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const getSubscription: ({ id, accessToken }: {
|
|
15
|
+
id: string;
|
|
16
|
+
accessToken: string;
|
|
17
|
+
}) => Promise<import("@api").RequestResponse<any>>;
|
|
18
|
+
export declare const getSubscriptionUpgradePlans: ({ id, accessToken, }: {
|
|
19
|
+
id: string;
|
|
20
|
+
accessToken: string;
|
|
21
|
+
}) => Promise<import("@api").RequestResponse<any>>;
|
|
22
|
+
export declare const extendSubscription: (id: string, body: {}) => Promise<import("@api").RequestResponse<any>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PageType } from './fetchWithPages';
|
|
2
|
+
export declare const fetchTicket: (id: string, accessToken: string) => Promise<import("@api").RequestResponse<any>>;
|
|
3
|
+
export declare const sendTicketMessage: (id: string, accessToken: string, message: string, recaptcha: string) => Promise<any>;
|
|
4
|
+
export declare const fetchTickets: ({ PageNumber }: PageType) => Promise<{
|
|
5
|
+
list: any;
|
|
6
|
+
totalCount: number;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SubscriptionProductT } from '../SubscriptionProduct/model.js';
|
|
3
|
+
interface ActiveSubscriptionProductProps {
|
|
4
|
+
subscription: SubscriptionProductT;
|
|
5
|
+
accessToken: string;
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const ActiveSubscriptionProduct: FC<ActiveSubscriptionProductProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export declare const AuthRequestOtp: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const AuthLogin: ({ onSignIn }: {
|
|
4
|
+
onSignIn?: () => void;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
interface AuthProps {
|
|
7
|
+
inModal?: boolean;
|
|
8
|
+
onSignIn?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const Auth: FC<AuthProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type AuthOTPInputType = {
|
|
2
|
+
value?: string;
|
|
3
|
+
onChange?: (newValue: string) => unknown;
|
|
4
|
+
onComplete?: (...args: unknown[]) => unknown;
|
|
5
|
+
};
|
|
6
|
+
export declare const AuthOTPInput: import("react").ForwardRefExoticComponent<AuthOTPInputType & import("react").RefAttributes<HTMLInputElement>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SubscriptionFullItem } from '@storefront/models';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
interface ChangeSubscriptionPlanProps {
|
|
5
|
+
subscription: SubscriptionFullItem | null;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
+
}
|
|
9
|
+
export declare const ChangeSubscriptionPlan: FC<ChangeSubscriptionPlanProps>;
|
|
10
|
+
export {};
|