@zimyo/manage 0.4.12 → 0.4.14
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 +3 -3
- package/dist/components/customComponents/CustomCard/index.d.ts +2 -3
- package/dist/components/customComponents/CustomFilter/index.d.ts +1 -2
- package/dist/components/customComponents/CustomSearch/index.d.ts +1 -2
- package/dist/components/customComponents/CustomTooltip/index.d.ts +1 -1
- package/dist/components/customComponents/PageHeading/index.d.ts +2 -3
- package/dist/components/manage/Subscription/BillingSubscription/BillingSubscription.d.ts +2 -1
- package/dist/components/manage/Subscription/Consumption/Consumption.d.ts +1 -1
- package/dist/components/manage/Subscription/Invoices/Invoices.d.ts +1 -1
- package/dist/components/manage/Subscription/Ledger/Ledger.d.ts +1 -1
- package/dist/components/manage/Subscription/Mail/Mail.d.ts +1 -1
- package/dist/components/manage/Subscription/NewOverview/ManageUsers.d.ts +1 -1
- package/dist/components/manage/Subscription/NewOverview/NewOverview.d.ts +1 -1
- package/dist/components/manage/Subscription/Overview/Overview.d.ts +1 -1
- package/dist/components/manage/Subscription/PaymentMethod/PaymentMethod.d.ts +1 -1
- package/dist/components/manage/Subscription/PaymentRecords/PaymentRecords.d.ts +2 -2
- package/dist/components/manage/Subscription/PlansOverview/ComaprePlans.d.ts +1 -1
- package/dist/components/manage/Subscription/PlansOverview/PlanChangeCheckout.d.ts +28 -0
- package/dist/components/manage/Subscription/PlansOverview/PlansOverview.d.ts +2 -2
- package/dist/components/manage/Subscription/ProductUpdates/ProductUpdates.d.ts +2 -1
- package/dist/components/manage/Subscription/ServiceDeskLogs/ServiceDeskLogs.d.ts +1 -1
- package/dist/components/manage/Subscription/SubscribedPlan/SubscribedPlan.d.ts +1 -1
- package/dist/components/manage/Subscription/SubscriptionPricing/CardView/CardView.d.ts +2 -2
- package/dist/components/manage/Subscription/SubscriptionPricing/ComparePlans/ComparePlans.d.ts +2 -2
- package/dist/components/manage/Subscription/SubscriptionPricing/SubscriptionPricing.d.ts +2 -2
- package/dist/components/manage/Subscription/TempPayment/TempPayment.d.ts +1 -1
- package/dist/components/manage/Subscription/UpcomingSubscription/UpcomingSubscription.d.ts +1 -1
- package/dist/components/manage/Subscription/Wallet/Wallet.d.ts +1 -1
- package/dist/components/manage/Subscription/WalletDashboard/WalletDashboard.d.ts +2 -1
- package/dist/components/ui/Alert/Alert.d.ts +2 -3
- package/dist/components/ui/DatePicker/DatePicker.d.ts +1 -2
- package/dist/components/ui/Loader/Loader.d.ts +2 -2
- package/dist/components/ui/NoDataFound/NoDataFound.d.ts +1 -1
- package/dist/components/ui/OrgDetailsCard/OrgDetailsCard.d.ts +1 -1
- package/dist/components/ui/OverviewCard/OverviewCard.d.ts +1 -1
- package/dist/components/ui/TextReducingTooltipComponent/TextReducingTooltipComponent.d.ts +1 -1
- package/dist/components/ui/TopUpWalletModal/TopUpWalletModal.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/main.cjs +550 -328
- package/dist/main.d.ts +19 -19
- package/dist/main.js +111497 -101629
- package/dist/shared/constants/endpoints.d.ts +2 -0
- package/dist/shared/hooks/useFetch.d.ts +8 -9
- package/dist/shared/providers/AppProvider.d.ts +3 -4
- package/dist/shared/providers/AuthProvider.d.ts +2 -3
- package/dist/shared/services/http.d.ts +4 -4
- package/dist/shared/types/backend.types.d.ts +1 -2
- package/dist/shared/zustand/alert.store.d.ts +1 -2
- package/dist/shared/zustand/session.store.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/node_modules/html-dom-parser/esm/types.d.ts +0 -3
- package/dist/src/App.d.ts +0 -4
- package/dist/src/components/customComponents/CustomCard/index.d.ts +0 -13
- package/dist/src/components/customComponents/CustomFilter/index.d.ts +0 -24
- package/dist/src/components/customComponents/CustomSearch/index.d.ts +0 -10
- package/dist/src/components/customComponents/CustomTooltip/index.d.ts +0 -10
- package/dist/src/components/customComponents/PageHeading/index.d.ts +0 -23
- package/dist/src/components/manage/Subscription/BillingSubscription/BillingSubscription.d.ts +0 -1
- package/dist/src/components/manage/Subscription/Consumption/Consumption.d.ts +0 -1
- package/dist/src/components/manage/Subscription/Invoices/Invoices.d.ts +0 -1
- package/dist/src/components/manage/Subscription/Invoices/constant.d.ts +0 -4
- package/dist/src/components/manage/Subscription/Ledger/Ledger.d.ts +0 -1
- package/dist/src/components/manage/Subscription/Mail/Mail.d.ts +0 -1
- package/dist/src/components/manage/Subscription/NewOverview/ManageUsers.d.ts +0 -5
- package/dist/src/components/manage/Subscription/NewOverview/NewOverview.d.ts +0 -2
- package/dist/src/components/manage/Subscription/Overview/Overview.d.ts +0 -5
- package/dist/src/components/manage/Subscription/PaymentMethod/PaymentMethod.d.ts +0 -1
- package/dist/src/components/manage/Subscription/PaymentRecords/PaymentRecords.d.ts +0 -6
- package/dist/src/components/manage/Subscription/PaymentRecords/TableView/Table.d.ts +0 -1
- package/dist/src/components/manage/Subscription/PlansOverview/ComaprePlans.d.ts +0 -5
- package/dist/src/components/manage/Subscription/PlansOverview/PlansOverview.d.ts +0 -2
- package/dist/src/components/manage/Subscription/PlansOverview/constant.d.ts +0 -5
- package/dist/src/components/manage/Subscription/ProductUpdates/ProductUpdates.d.ts +0 -2
- package/dist/src/components/manage/Subscription/ServiceDeskLogs/ServiceDeskLogs.d.ts +0 -1
- package/dist/src/components/manage/Subscription/SubscribedPlan/SubscribedPlan.d.ts +0 -5
- package/dist/src/components/manage/Subscription/SubscriptionPricing/CardView/CardView.d.ts +0 -50
- package/dist/src/components/manage/Subscription/SubscriptionPricing/ComparePlans/ComparePlans.d.ts +0 -3
- package/dist/src/components/manage/Subscription/SubscriptionPricing/SubscriptionPricing.d.ts +0 -51
- package/dist/src/components/manage/Subscription/TempPayment/TempPayment.d.ts +0 -1
- package/dist/src/components/manage/Subscription/TempPayment/constant.d.ts +0 -5
- package/dist/src/components/manage/Subscription/UpcomingSubscription/UpcomingSubscription.d.ts +0 -1
- package/dist/src/components/manage/Subscription/UpcomingSubscription/constant.d.ts +0 -4
- package/dist/src/components/manage/Subscription/Wallet/Wallet.d.ts +0 -1
- package/dist/src/components/manage/Subscription/Wallet/constant.d.ts +0 -8
- package/dist/src/components/manage/Subscription/WalletDashboard/WalletDashboard.d.ts +0 -2
- package/dist/src/components/manage/Subscription/WalletDashboard/index.d.ts +0 -2
- package/dist/src/components/ui/Alert/Alert.d.ts +0 -6
- package/dist/src/components/ui/DatePicker/DatePicker.d.ts +0 -4
- package/dist/src/components/ui/Loader/Loader.d.ts +0 -7
- package/dist/src/components/ui/NoDataFound/NoDataFound.d.ts +0 -5
- package/dist/src/components/ui/OrgDetailsCard/OrgDetailsCard.d.ts +0 -20
- package/dist/src/components/ui/OverviewCard/OverviewCard.d.ts +0 -4
- package/dist/src/components/ui/TextReducingTooltipComponent/TextReducingTooltipComponent.d.ts +0 -10
- package/dist/src/components/ui/TopUpWalletModal/TopUpWalletModal.d.ts +0 -6
- package/dist/src/index.d.ts +0 -1
- package/dist/src/main.d.ts +0 -19
- package/dist/src/shared/constants/constant.d.ts +0 -42
- package/dist/src/shared/constants/endpoints.d.ts +0 -34
- package/dist/src/shared/constants/form-types.d.ts +0 -44
- package/dist/src/shared/constants/status.d.ts +0 -4
- package/dist/src/shared/constants/time.d.ts +0 -53
- package/dist/src/shared/hooks/useConstants.d.ts +0 -1
- package/dist/src/shared/hooks/useDownloadBufferFile.d.ts +0 -7
- package/dist/src/shared/hooks/useDownloadXls.d.ts +0 -1
- package/dist/src/shared/hooks/useErrorAlert.d.ts +0 -1
- package/dist/src/shared/hooks/useFetch.d.ts +0 -124
- package/dist/src/shared/hooks/useFilterParsedValue.d.ts +0 -6
- package/dist/src/shared/hooks/useLoading.d.ts +0 -1
- package/dist/src/shared/hooks/useMutation.d.ts +0 -18
- package/dist/src/shared/hooks/useSuccessAlert.d.ts +0 -1
- package/dist/src/shared/providers/AppProvider.d.ts +0 -14
- package/dist/src/shared/providers/AuthProvider.d.ts +0 -11
- package/dist/src/shared/services/cashfree-payments.d.ts +0 -1
- package/dist/src/shared/services/http.d.ts +0 -11
- package/dist/src/shared/types/backend.types.d.ts +0 -20
- package/dist/src/shared/utils/utils.d.ts +0 -25
- package/dist/src/shared/zustand/alert.store.d.ts +0 -20
- package/dist/src/shared/zustand/session.store.d.ts +0 -22
package/dist/src/components/manage/Subscription/UpcomingSubscription/UpcomingSubscription.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const UpcomingInvoices: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SubscriptionWallet: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
interface orgDetailsState {
|
|
2
|
-
org_name?: string;
|
|
3
|
-
mobile_number?: string;
|
|
4
|
-
gstin?: string;
|
|
5
|
-
}
|
|
6
|
-
interface props extends orgDetailsState {
|
|
7
|
-
email_id?: string[];
|
|
8
|
-
client_id?: number | string;
|
|
9
|
-
org_address?: string;
|
|
10
|
-
country?: number | string;
|
|
11
|
-
state?: number | string;
|
|
12
|
-
city?: string;
|
|
13
|
-
address_1?: string;
|
|
14
|
-
address_2?: string;
|
|
15
|
-
zip_code?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const OrgDetailsCard: ({ orgDetails }: {
|
|
18
|
-
orgDetails: props;
|
|
19
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export default OrgDetailsCard;
|
package/dist/src/components/ui/TextReducingTooltipComponent/TextReducingTooltipComponent.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare function TextReducingTooltipComponent({ data, limit, doNotShowTooltip, arrow, endAdornment, startAdornment, styleOverrides }: {
|
|
2
|
-
data?: string | undefined;
|
|
3
|
-
limit?: number | undefined;
|
|
4
|
-
doNotShowTooltip?: boolean | undefined;
|
|
5
|
-
arrow?: boolean | undefined;
|
|
6
|
-
endAdornment?: string | undefined;
|
|
7
|
-
startAdornment?: string | undefined;
|
|
8
|
-
styleOverrides?: {} | undefined;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default TextReducingTooltipComponent;
|
package/dist/src/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
package/dist/src/main.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import "./index.css";
|
|
2
|
-
export { default as ManageProvider } from "@/shared/providers/AppProvider";
|
|
3
|
-
export { SubscriptionConsumption } from "@/components/manage/Subscription/Consumption/Consumption";
|
|
4
|
-
export { CustomerInvoices } from "@/components/manage/Subscription/Invoices/Invoices";
|
|
5
|
-
export { SubscriptionOverview } from "@/components/manage/Subscription/Overview/Overview";
|
|
6
|
-
export { SubscriptionPaymentMethod } from "@/components/manage/Subscription/PaymentMethod/PaymentMethod";
|
|
7
|
-
export { PlansOverview } from "@/components/manage/Subscription/PlansOverview/PlansOverview";
|
|
8
|
-
export { SubscriptionPlans } from "@/components/manage/Subscription/SubscribedPlan/SubscribedPlan";
|
|
9
|
-
export { SubscriptionWallet } from "@/components/manage/Subscription/Wallet/Wallet";
|
|
10
|
-
export { BillingSubscription } from "@/components/manage/Subscription/BillingSubscription/BillingSubscription";
|
|
11
|
-
export { Mail } from "@/components/manage/Subscription/Mail/Mail";
|
|
12
|
-
export { UpcomingInvoices } from "@/components/manage/Subscription/UpcomingSubscription/UpcomingSubscription";
|
|
13
|
-
export { ServiceDeskLogs } from "@/components/manage/Subscription/ServiceDeskLogs/ServiceDeskLogs";
|
|
14
|
-
export { Ledger } from "@/components/manage/Subscription/Ledger/Ledger";
|
|
15
|
-
export { TempPayment } from "@/components/manage/Subscription/TempPayment/TempPayment";
|
|
16
|
-
export { ProductUpdates } from "@/components/manage/Subscription/ProductUpdates/ProductUpdates";
|
|
17
|
-
export { NewOverview } from "@/components/manage/Subscription/NewOverview/NewOverview";
|
|
18
|
-
export { SubscriptionPricing } from "@/components/manage/Subscription/SubscriptionPricing/SubscriptionPricing";
|
|
19
|
-
export { WalletDashboard } from "@/components/manage/Subscription/WalletDashboard";
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export declare const CHART_TYPES: {
|
|
2
|
-
LINE: string;
|
|
3
|
-
MULTI_LINE: string;
|
|
4
|
-
COLUMN: string;
|
|
5
|
-
STACKED_COLUMN: string;
|
|
6
|
-
GROUPED_COLUMN: string;
|
|
7
|
-
BAR: string;
|
|
8
|
-
STACKED_BAR: string;
|
|
9
|
-
GROUPED_BAR: string;
|
|
10
|
-
DOUGHNUT: string;
|
|
11
|
-
PIE: string;
|
|
12
|
-
AREA: string;
|
|
13
|
-
STACKED_AREA: string;
|
|
14
|
-
FUNNEL: string;
|
|
15
|
-
HEAT_MAP: string;
|
|
16
|
-
TABLE: string;
|
|
17
|
-
CARD: string;
|
|
18
|
-
LIST: string;
|
|
19
|
-
GAUGE: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const VALID_DATA_TYPES: {
|
|
22
|
-
NUMBER: string;
|
|
23
|
-
STRING: string;
|
|
24
|
-
ARRAY: string;
|
|
25
|
-
OBJECT: string;
|
|
26
|
-
NULL: string;
|
|
27
|
-
UNDEFINED: string;
|
|
28
|
-
BOOLEAN: string;
|
|
29
|
-
FUNCTION: string;
|
|
30
|
-
};
|
|
31
|
-
export declare const INVOICE_PAYMENT_STATUS: {
|
|
32
|
-
DRAFT: number;
|
|
33
|
-
PAID: number;
|
|
34
|
-
PARTIALLY_PAID: number;
|
|
35
|
-
DECLINE: number;
|
|
36
|
-
DUE: number;
|
|
37
|
-
OVERDUE: number;
|
|
38
|
-
UNPAID: number;
|
|
39
|
-
};
|
|
40
|
-
export declare const INVOICE_PAID_STATUS_COLOR: Record<number, string>;
|
|
41
|
-
export declare const CURRENCY_MAP: Record<any, string>;
|
|
42
|
-
export declare const PAYMENT_FREQUENCY_MULTIPLIER: Record<number, number>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare const AUTHENTICATE_USER = "/user";
|
|
2
|
-
/**HELPER */
|
|
3
|
-
export declare const COUNTRY_LIST = "helper/country_list";
|
|
4
|
-
export declare const STATE_LIST = "helper/state_list";
|
|
5
|
-
/**SUBSCRIPTION */
|
|
6
|
-
export declare const SUBSCRIPTION_OVERVIEW = "subscription/overview";
|
|
7
|
-
export declare const CUSTOMER_SUBSCRIPTION = "subscription/customer-subscription";
|
|
8
|
-
export declare const MANAGE_PLANS = "subscription/manage-plans";
|
|
9
|
-
export declare const TRANSCTION_HISTORY = "subscription/transaction-history";
|
|
10
|
-
export declare const ADD_WALLET_AMOUMT = "subscription/add-money-wallet-customer";
|
|
11
|
-
export declare const CUSTOMER_INVOICES = "subscription/customer-invoice";
|
|
12
|
-
export declare const CLIENT_CONSUMPTION = "subscription/client-consumption";
|
|
13
|
-
export declare const MODIFY_SUBSCRIPTION = "subscription/customer-modify-subscription";
|
|
14
|
-
export declare const CHECK_CASHFREE_PAYMENT_SUCCESS = "secure/subscribe-payment-status";
|
|
15
|
-
export declare const RENEW_SUBSCRIPTION = "subscription/renew-subscription";
|
|
16
|
-
export declare const UPDATE_ORG_DETAILS = "subscription/update-org-details";
|
|
17
|
-
export declare const BILLING_INVOICE = "subscription/account-invoice";
|
|
18
|
-
export declare const ADDON_CLIENT_LIST = "subscription/addonclient_list";
|
|
19
|
-
export declare const SUBSCRIPTION_UPDATE_STATUS = "subscription/update-subscription-status";
|
|
20
|
-
export declare const CUSTOMER_MAILS = "customer/communication_email-list";
|
|
21
|
-
export declare const SD_STATUS_WISE_COUNT = "email/status-wise-count";
|
|
22
|
-
export declare const SD_EMAIL_TICKET_LIST = "email/list";
|
|
23
|
-
export declare const TRANSACTION_HISTORY_LEDGER = "subscription/ledger";
|
|
24
|
-
export declare const TRANSACTION_HISTORY_PAYMENT_HISTORY = "subscription/payment-history";
|
|
25
|
-
export declare const SEND_MAIL_TO_SPOC = "subscription/sendmailtospoc";
|
|
26
|
-
export declare const SUBSCRIPTION_DAILY_USER_COUNT = "subscription/daily-user-counts";
|
|
27
|
-
/**WALLET */
|
|
28
|
-
export declare const WALLET_BALANCE = "wallet/balance";
|
|
29
|
-
export declare const WALLET_DAILY_CONSUMPTION = "wallet/daily-consumption";
|
|
30
|
-
export declare const WALLET_TRANSACTION_HISTORY = "wallet/transactions";
|
|
31
|
-
export declare const WALLET_STATEMENT_REPORT = "wallet/reports/statement";
|
|
32
|
-
export declare const WALLET_PROJECTION = "wallet/projection";
|
|
33
|
-
export declare const WALLET_CREDITS_ALLOCATE_BY_REFERENCE = "wallet/credits/allocate-by-reference";
|
|
34
|
-
export declare const WALLET_LEDGER_PRODUCT = "wallet/ledger-product";
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare const DYNAMIC_FORM_INPUT_TYPES: {
|
|
2
|
-
TEXT: "text";
|
|
3
|
-
NUMBER: "number";
|
|
4
|
-
TEXTAREA: "textarea";
|
|
5
|
-
SELECT: "select";
|
|
6
|
-
MULTI_SELECT: "multi-select";
|
|
7
|
-
CHECKBOX: "checkbox";
|
|
8
|
-
RADIO: "radio";
|
|
9
|
-
FILE: "file";
|
|
10
|
-
TIME: "time";
|
|
11
|
-
DATE: "date";
|
|
12
|
-
DATE_TIME: "date-time";
|
|
13
|
-
DATE_RANGE: "date-range";
|
|
14
|
-
SWITCH: "switch";
|
|
15
|
-
TEL: "tel";
|
|
16
|
-
URL: "url";
|
|
17
|
-
EMAIL: "email";
|
|
18
|
-
NUMERIC: "numeric";
|
|
19
|
-
DECIMAL: "decimal";
|
|
20
|
-
SEARCH: "search";
|
|
21
|
-
EDITOR: "editor";
|
|
22
|
-
};
|
|
23
|
-
export declare const FORM_MASTER_TYPES: {
|
|
24
|
-
TEXT: string;
|
|
25
|
-
NUMBER: string;
|
|
26
|
-
TEXTAREA: string;
|
|
27
|
-
SELECT: string;
|
|
28
|
-
MULTI_SELECT: string;
|
|
29
|
-
CHECKBOX: string;
|
|
30
|
-
RADIO: string;
|
|
31
|
-
FILE: string;
|
|
32
|
-
TIME: string;
|
|
33
|
-
DATE: string;
|
|
34
|
-
DATE_TIME: string;
|
|
35
|
-
DATE_RANGE: string;
|
|
36
|
-
SWITCH: string;
|
|
37
|
-
TEL: string;
|
|
38
|
-
URL: string;
|
|
39
|
-
EMAIL: string;
|
|
40
|
-
NUMERIC: string;
|
|
41
|
-
DECIMAL: string;
|
|
42
|
-
SEARCH: string;
|
|
43
|
-
EDITOR: string;
|
|
44
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export declare const WEEK_DAY: string[];
|
|
2
|
-
export declare const WEEK_FULL_DAY: string[];
|
|
3
|
-
export declare const DAY_SUFFIX: {
|
|
4
|
-
1: string;
|
|
5
|
-
2: string;
|
|
6
|
-
3: string;
|
|
7
|
-
21: string;
|
|
8
|
-
22: string;
|
|
9
|
-
23: string;
|
|
10
|
-
31: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const MONTHS: {
|
|
13
|
-
1: string;
|
|
14
|
-
2: string;
|
|
15
|
-
3: string;
|
|
16
|
-
4: string;
|
|
17
|
-
5: string;
|
|
18
|
-
6: string;
|
|
19
|
-
7: string;
|
|
20
|
-
8: string;
|
|
21
|
-
9: string;
|
|
22
|
-
10: string;
|
|
23
|
-
11: string;
|
|
24
|
-
12: string;
|
|
25
|
-
};
|
|
26
|
-
export declare const MONTHS_FULL: {
|
|
27
|
-
1: string;
|
|
28
|
-
2: string;
|
|
29
|
-
3: string;
|
|
30
|
-
4: string;
|
|
31
|
-
5: string;
|
|
32
|
-
6: string;
|
|
33
|
-
7: string;
|
|
34
|
-
8: string;
|
|
35
|
-
9: string;
|
|
36
|
-
10: string;
|
|
37
|
-
11: string;
|
|
38
|
-
12: string;
|
|
39
|
-
};
|
|
40
|
-
export declare const DATE_FORMATS: {
|
|
41
|
-
"d-M-Y": string;
|
|
42
|
-
"Y-m-d": string;
|
|
43
|
-
"m-d-Y": string;
|
|
44
|
-
"Y-d-m": string;
|
|
45
|
-
"d M y": string;
|
|
46
|
-
"F dS Y": string;
|
|
47
|
-
"F d Y": string;
|
|
48
|
-
"M d Y": string;
|
|
49
|
-
"d/m/y": string;
|
|
50
|
-
"d M Y h:i:s": string;
|
|
51
|
-
"d-M-y": string;
|
|
52
|
-
"h:i A": string;
|
|
53
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useGlobalContants: (locale: string) => {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useDownloadBufferXls: () => (url: string, payload: Record<string, any>, headers?: Record<string, any>, fileName?: string, method?: string, successCallback?: () => void, errorCallback?: () => void) => Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useErrorAlert: () => (message: string) => void;
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { AxiosResponse } from "axios";
|
|
2
|
-
import { UseQueryOptions } from "react-query";
|
|
3
|
-
import { HttpServiceType } from "@services/http";
|
|
4
|
-
export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: AbortSignal | undefined) => Promise<AxiosResponse<any, any>>, apiPromiseArgs: HttpServiceType, key: any, queryOptions?: Omit<UseQueryOptions<any, any, any, any>, "queryKey" | "queryFn">) => {
|
|
5
|
-
data: undefined;
|
|
6
|
-
error: null;
|
|
7
|
-
isError: false;
|
|
8
|
-
isIdle: true;
|
|
9
|
-
isLoading: false;
|
|
10
|
-
isLoadingError: false;
|
|
11
|
-
isRefetchError: false;
|
|
12
|
-
isSuccess: false;
|
|
13
|
-
status: "idle";
|
|
14
|
-
dataUpdatedAt: number;
|
|
15
|
-
errorUpdatedAt: number;
|
|
16
|
-
failureCount: number;
|
|
17
|
-
errorUpdateCount: number;
|
|
18
|
-
isFetched: boolean;
|
|
19
|
-
isFetchedAfterMount: boolean;
|
|
20
|
-
isFetching: boolean;
|
|
21
|
-
isPlaceholderData: boolean;
|
|
22
|
-
isPreviousData: boolean;
|
|
23
|
-
isRefetching: boolean;
|
|
24
|
-
isStale: boolean;
|
|
25
|
-
refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
|
|
26
|
-
remove: () => void;
|
|
27
|
-
rq_data: any;
|
|
28
|
-
} | {
|
|
29
|
-
data: undefined;
|
|
30
|
-
error: any;
|
|
31
|
-
isError: true;
|
|
32
|
-
isIdle: false;
|
|
33
|
-
isLoading: false;
|
|
34
|
-
isLoadingError: true;
|
|
35
|
-
isRefetchError: false;
|
|
36
|
-
isSuccess: false;
|
|
37
|
-
status: "error";
|
|
38
|
-
dataUpdatedAt: number;
|
|
39
|
-
errorUpdatedAt: number;
|
|
40
|
-
failureCount: number;
|
|
41
|
-
errorUpdateCount: number;
|
|
42
|
-
isFetched: boolean;
|
|
43
|
-
isFetchedAfterMount: boolean;
|
|
44
|
-
isFetching: boolean;
|
|
45
|
-
isPlaceholderData: boolean;
|
|
46
|
-
isPreviousData: boolean;
|
|
47
|
-
isRefetching: boolean;
|
|
48
|
-
isStale: boolean;
|
|
49
|
-
refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
|
|
50
|
-
remove: () => void;
|
|
51
|
-
rq_data: any;
|
|
52
|
-
} | {
|
|
53
|
-
data: undefined;
|
|
54
|
-
error: null;
|
|
55
|
-
isError: false;
|
|
56
|
-
isIdle: false;
|
|
57
|
-
isLoading: true;
|
|
58
|
-
isLoadingError: false;
|
|
59
|
-
isRefetchError: false;
|
|
60
|
-
isSuccess: false;
|
|
61
|
-
status: "loading";
|
|
62
|
-
dataUpdatedAt: number;
|
|
63
|
-
errorUpdatedAt: number;
|
|
64
|
-
failureCount: number;
|
|
65
|
-
errorUpdateCount: number;
|
|
66
|
-
isFetched: boolean;
|
|
67
|
-
isFetchedAfterMount: boolean;
|
|
68
|
-
isFetching: boolean;
|
|
69
|
-
isPlaceholderData: boolean;
|
|
70
|
-
isPreviousData: boolean;
|
|
71
|
-
isRefetching: boolean;
|
|
72
|
-
isStale: boolean;
|
|
73
|
-
refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
|
|
74
|
-
remove: () => void;
|
|
75
|
-
rq_data: any;
|
|
76
|
-
} | {
|
|
77
|
-
data: any;
|
|
78
|
-
error: any;
|
|
79
|
-
isError: true;
|
|
80
|
-
isIdle: false;
|
|
81
|
-
isLoading: false;
|
|
82
|
-
isLoadingError: false;
|
|
83
|
-
isRefetchError: true;
|
|
84
|
-
isSuccess: false;
|
|
85
|
-
status: "error";
|
|
86
|
-
dataUpdatedAt: number;
|
|
87
|
-
errorUpdatedAt: number;
|
|
88
|
-
failureCount: number;
|
|
89
|
-
errorUpdateCount: number;
|
|
90
|
-
isFetched: boolean;
|
|
91
|
-
isFetchedAfterMount: boolean;
|
|
92
|
-
isFetching: boolean;
|
|
93
|
-
isPlaceholderData: boolean;
|
|
94
|
-
isPreviousData: boolean;
|
|
95
|
-
isRefetching: boolean;
|
|
96
|
-
isStale: boolean;
|
|
97
|
-
refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
|
|
98
|
-
remove: () => void;
|
|
99
|
-
rq_data: any;
|
|
100
|
-
} | {
|
|
101
|
-
data: any;
|
|
102
|
-
error: null;
|
|
103
|
-
isError: false;
|
|
104
|
-
isIdle: false;
|
|
105
|
-
isLoading: false;
|
|
106
|
-
isLoadingError: false;
|
|
107
|
-
isRefetchError: false;
|
|
108
|
-
isSuccess: true;
|
|
109
|
-
status: "success";
|
|
110
|
-
dataUpdatedAt: number;
|
|
111
|
-
errorUpdatedAt: number;
|
|
112
|
-
failureCount: number;
|
|
113
|
-
errorUpdateCount: number;
|
|
114
|
-
isFetched: boolean;
|
|
115
|
-
isFetchedAfterMount: boolean;
|
|
116
|
-
isFetching: boolean;
|
|
117
|
-
isPlaceholderData: boolean;
|
|
118
|
-
isPreviousData: boolean;
|
|
119
|
-
isRefetching: boolean;
|
|
120
|
-
isStale: boolean;
|
|
121
|
-
refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
|
|
122
|
-
remove: () => void;
|
|
123
|
-
rq_data: any;
|
|
124
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useLoading: (isLoading: boolean) => void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
type messageFormatterFn = (props: any) => string;
|
|
2
|
-
export declare const useConfigurableSubmit: ({ url, token, method, baseURL, successCallback, errorCallback, onSettledCallback, debounceTime, errorMessageFormatter, successMessageFormatter, }: {
|
|
3
|
-
url: string;
|
|
4
|
-
token?: string;
|
|
5
|
-
method?: string;
|
|
6
|
-
baseURL?: string;
|
|
7
|
-
successCallback?: (props: any) => void;
|
|
8
|
-
errorCallback?: (props: any) => void;
|
|
9
|
-
onSettledCallback?: () => void;
|
|
10
|
-
debounceTime?: number;
|
|
11
|
-
errorMessageFormatter?: messageFormatterFn;
|
|
12
|
-
successMessageFormatter?: messageFormatterFn;
|
|
13
|
-
}) => {
|
|
14
|
-
handleSubmit: (data: any, extraCallbackForError?: any, extraCallbackForSuccess?: any, extraCallbackForSettled?: any) => void;
|
|
15
|
-
isDisabled: boolean;
|
|
16
|
-
isLoading: boolean;
|
|
17
|
-
};
|
|
18
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useSuccessAlert: () => (message: string) => void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { QueryClient } from "react-query";
|
|
3
|
-
interface AuthProviderProps {
|
|
4
|
-
queryClient: QueryClient;
|
|
5
|
-
token: string;
|
|
6
|
-
LOGIN_BASE_URL?: string;
|
|
7
|
-
API_BASE_URL: string;
|
|
8
|
-
ASSETS_BASE_URL: string;
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
HRMS_BASE_URL: string;
|
|
11
|
-
mode: string;
|
|
12
|
-
}
|
|
13
|
-
declare const ManageProvider: ({ queryClient, token, LOGIN_BASE_URL, API_BASE_URL, ASSETS_BASE_URL, HRMS_BASE_URL, children, mode }: AuthProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default ManageProvider;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
declare const AuthProvider: ({ children, token, LOGIN_BASE_URL, API_BASE_URL, ASSETS_BASE_URL, HRMS_BASE_URL, mode, }: {
|
|
3
|
-
token: string;
|
|
4
|
-
LOGIN_BASE_URL: string;
|
|
5
|
-
API_BASE_URL: string;
|
|
6
|
-
ASSETS_BASE_URL: string;
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
HRMS_BASE_URL: string;
|
|
9
|
-
mode: string;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default AuthProvider;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/**@ts-ignore */
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type HttpServiceType = {
|
|
2
|
-
url: string;
|
|
3
|
-
token?: string;
|
|
4
|
-
data?: any;
|
|
5
|
-
params?: any;
|
|
6
|
-
isNativeEndpoint?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const getService: ({ url, token, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
9
|
-
export declare const postService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
10
|
-
export declare const patchService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
11
|
-
export declare const deleteService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AxiosError, AxiosResponse } from "axios";
|
|
2
|
-
export type UserType = any;
|
|
3
|
-
export type BackendResponseType<T> = AxiosResponse<{
|
|
4
|
-
error: boolean;
|
|
5
|
-
code: number;
|
|
6
|
-
message: string;
|
|
7
|
-
timestamp: string;
|
|
8
|
-
data: T;
|
|
9
|
-
}>;
|
|
10
|
-
export type BackendErrorType = AxiosError<{
|
|
11
|
-
error: boolean;
|
|
12
|
-
code: number;
|
|
13
|
-
message: string;
|
|
14
|
-
timestamp: string;
|
|
15
|
-
data: null;
|
|
16
|
-
}, any>;
|
|
17
|
-
export type CustomSelectOption = {
|
|
18
|
-
label: string;
|
|
19
|
-
value: any;
|
|
20
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare class util {
|
|
2
|
-
static toTitleCase: (toTransform: string) => string;
|
|
3
|
-
static dateFormatList: (object: {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}, value: string) => any;
|
|
6
|
-
static getFullDateVar: (ip: any) => any;
|
|
7
|
-
static isDateValid(date: Date): boolean;
|
|
8
|
-
static getFormatedDate: (timestamp?: any, format?: string, checkFormatList?: boolean) => string | null;
|
|
9
|
-
static validateDataType(value: unknown, type: string): boolean;
|
|
10
|
-
static convertFormMasterTypeToDynamicFormType: (type: string) => any;
|
|
11
|
-
static convertToFormData(data: any): FormData;
|
|
12
|
-
static convertTime: (timeString: string) => {
|
|
13
|
-
hours: string;
|
|
14
|
-
minutes: string;
|
|
15
|
-
seconds: string;
|
|
16
|
-
};
|
|
17
|
-
static convertToMinutes: (timeString: string) => number;
|
|
18
|
-
static getDarkenColor: (color: string, factor?: number) => string;
|
|
19
|
-
static cashfreePayment: (sessionId: string, BASE_URL: string | undefined, suceesCallback: () => void, errorCallback: (value: string) => void, mode?: string) => Promise<void>;
|
|
20
|
-
static downloadFileFromBuffer: (payload: {
|
|
21
|
-
buffer64: string;
|
|
22
|
-
file: string;
|
|
23
|
-
contentType: string;
|
|
24
|
-
}) => void;
|
|
25
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AlertColor } from '@mui/material';
|
|
2
|
-
type State = {
|
|
3
|
-
alert: {
|
|
4
|
-
isLoading: boolean;
|
|
5
|
-
type?: AlertColor | string;
|
|
6
|
-
message?: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
type Actions = {
|
|
10
|
-
pushAlert: (payload: {
|
|
11
|
-
message?: string;
|
|
12
|
-
type: AlertColor | string;
|
|
13
|
-
}) => void;
|
|
14
|
-
setLoading: (payload: {
|
|
15
|
-
isLoading: boolean;
|
|
16
|
-
}) => void;
|
|
17
|
-
clearAlert: () => void;
|
|
18
|
-
};
|
|
19
|
-
export declare const useAlertStore: import("zustand").UseBoundStore<import("zustand").StoreApi<State & Actions>>;
|
|
20
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type State = {
|
|
2
|
-
session: {
|
|
3
|
-
user: any;
|
|
4
|
-
token?: string;
|
|
5
|
-
API_BASE_URL?: string;
|
|
6
|
-
ASSETS_BASE_URL?: string;
|
|
7
|
-
mode?: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
type Actions = {
|
|
11
|
-
setSession: (payload: {
|
|
12
|
-
user: any;
|
|
13
|
-
token: string;
|
|
14
|
-
API_BASE_URL: string;
|
|
15
|
-
ASSETS_BASE_URL: string;
|
|
16
|
-
HRMS_BASE_URL: string;
|
|
17
|
-
mode?: string;
|
|
18
|
-
}) => void;
|
|
19
|
-
clearSession: () => void;
|
|
20
|
-
};
|
|
21
|
-
export declare const useSessionStore: import("zustand").UseBoundStore<import("zustand").StoreApi<State & Actions>>;
|
|
22
|
-
export {};
|