@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.
Files changed (119) hide show
  1. package/dist/App.d.ts +3 -3
  2. package/dist/components/customComponents/CustomCard/index.d.ts +2 -3
  3. package/dist/components/customComponents/CustomFilter/index.d.ts +1 -2
  4. package/dist/components/customComponents/CustomSearch/index.d.ts +1 -2
  5. package/dist/components/customComponents/CustomTooltip/index.d.ts +1 -1
  6. package/dist/components/customComponents/PageHeading/index.d.ts +2 -3
  7. package/dist/components/manage/Subscription/BillingSubscription/BillingSubscription.d.ts +2 -1
  8. package/dist/components/manage/Subscription/Consumption/Consumption.d.ts +1 -1
  9. package/dist/components/manage/Subscription/Invoices/Invoices.d.ts +1 -1
  10. package/dist/components/manage/Subscription/Ledger/Ledger.d.ts +1 -1
  11. package/dist/components/manage/Subscription/Mail/Mail.d.ts +1 -1
  12. package/dist/components/manage/Subscription/NewOverview/ManageUsers.d.ts +1 -1
  13. package/dist/components/manage/Subscription/NewOverview/NewOverview.d.ts +1 -1
  14. package/dist/components/manage/Subscription/Overview/Overview.d.ts +1 -1
  15. package/dist/components/manage/Subscription/PaymentMethod/PaymentMethod.d.ts +1 -1
  16. package/dist/components/manage/Subscription/PaymentRecords/PaymentRecords.d.ts +2 -2
  17. package/dist/components/manage/Subscription/PlansOverview/ComaprePlans.d.ts +1 -1
  18. package/dist/components/manage/Subscription/PlansOverview/PlanChangeCheckout.d.ts +28 -0
  19. package/dist/components/manage/Subscription/PlansOverview/PlansOverview.d.ts +2 -2
  20. package/dist/components/manage/Subscription/ProductUpdates/ProductUpdates.d.ts +2 -1
  21. package/dist/components/manage/Subscription/ServiceDeskLogs/ServiceDeskLogs.d.ts +1 -1
  22. package/dist/components/manage/Subscription/SubscribedPlan/SubscribedPlan.d.ts +1 -1
  23. package/dist/components/manage/Subscription/SubscriptionPricing/CardView/CardView.d.ts +2 -2
  24. package/dist/components/manage/Subscription/SubscriptionPricing/ComparePlans/ComparePlans.d.ts +2 -2
  25. package/dist/components/manage/Subscription/SubscriptionPricing/SubscriptionPricing.d.ts +2 -2
  26. package/dist/components/manage/Subscription/TempPayment/TempPayment.d.ts +1 -1
  27. package/dist/components/manage/Subscription/UpcomingSubscription/UpcomingSubscription.d.ts +1 -1
  28. package/dist/components/manage/Subscription/Wallet/Wallet.d.ts +1 -1
  29. package/dist/components/manage/Subscription/WalletDashboard/WalletDashboard.d.ts +2 -1
  30. package/dist/components/ui/Alert/Alert.d.ts +2 -3
  31. package/dist/components/ui/DatePicker/DatePicker.d.ts +1 -2
  32. package/dist/components/ui/Loader/Loader.d.ts +2 -2
  33. package/dist/components/ui/NoDataFound/NoDataFound.d.ts +1 -1
  34. package/dist/components/ui/OrgDetailsCard/OrgDetailsCard.d.ts +1 -1
  35. package/dist/components/ui/OverviewCard/OverviewCard.d.ts +1 -1
  36. package/dist/components/ui/TextReducingTooltipComponent/TextReducingTooltipComponent.d.ts +1 -1
  37. package/dist/components/ui/TopUpWalletModal/TopUpWalletModal.d.ts +1 -1
  38. package/dist/index.d.ts +1 -1
  39. package/dist/main.cjs +550 -328
  40. package/dist/main.d.ts +19 -19
  41. package/dist/main.js +111497 -101629
  42. package/dist/shared/constants/endpoints.d.ts +2 -0
  43. package/dist/shared/hooks/useFetch.d.ts +8 -9
  44. package/dist/shared/providers/AppProvider.d.ts +3 -4
  45. package/dist/shared/providers/AuthProvider.d.ts +2 -3
  46. package/dist/shared/services/http.d.ts +4 -4
  47. package/dist/shared/types/backend.types.d.ts +1 -2
  48. package/dist/shared/zustand/alert.store.d.ts +1 -2
  49. package/dist/shared/zustand/session.store.d.ts +1 -1
  50. package/dist/style.css +1 -1
  51. package/package.json +1 -1
  52. package/dist/node_modules/html-dom-parser/esm/types.d.ts +0 -3
  53. package/dist/src/App.d.ts +0 -4
  54. package/dist/src/components/customComponents/CustomCard/index.d.ts +0 -13
  55. package/dist/src/components/customComponents/CustomFilter/index.d.ts +0 -24
  56. package/dist/src/components/customComponents/CustomSearch/index.d.ts +0 -10
  57. package/dist/src/components/customComponents/CustomTooltip/index.d.ts +0 -10
  58. package/dist/src/components/customComponents/PageHeading/index.d.ts +0 -23
  59. package/dist/src/components/manage/Subscription/BillingSubscription/BillingSubscription.d.ts +0 -1
  60. package/dist/src/components/manage/Subscription/Consumption/Consumption.d.ts +0 -1
  61. package/dist/src/components/manage/Subscription/Invoices/Invoices.d.ts +0 -1
  62. package/dist/src/components/manage/Subscription/Invoices/constant.d.ts +0 -4
  63. package/dist/src/components/manage/Subscription/Ledger/Ledger.d.ts +0 -1
  64. package/dist/src/components/manage/Subscription/Mail/Mail.d.ts +0 -1
  65. package/dist/src/components/manage/Subscription/NewOverview/ManageUsers.d.ts +0 -5
  66. package/dist/src/components/manage/Subscription/NewOverview/NewOverview.d.ts +0 -2
  67. package/dist/src/components/manage/Subscription/Overview/Overview.d.ts +0 -5
  68. package/dist/src/components/manage/Subscription/PaymentMethod/PaymentMethod.d.ts +0 -1
  69. package/dist/src/components/manage/Subscription/PaymentRecords/PaymentRecords.d.ts +0 -6
  70. package/dist/src/components/manage/Subscription/PaymentRecords/TableView/Table.d.ts +0 -1
  71. package/dist/src/components/manage/Subscription/PlansOverview/ComaprePlans.d.ts +0 -5
  72. package/dist/src/components/manage/Subscription/PlansOverview/PlansOverview.d.ts +0 -2
  73. package/dist/src/components/manage/Subscription/PlansOverview/constant.d.ts +0 -5
  74. package/dist/src/components/manage/Subscription/ProductUpdates/ProductUpdates.d.ts +0 -2
  75. package/dist/src/components/manage/Subscription/ServiceDeskLogs/ServiceDeskLogs.d.ts +0 -1
  76. package/dist/src/components/manage/Subscription/SubscribedPlan/SubscribedPlan.d.ts +0 -5
  77. package/dist/src/components/manage/Subscription/SubscriptionPricing/CardView/CardView.d.ts +0 -50
  78. package/dist/src/components/manage/Subscription/SubscriptionPricing/ComparePlans/ComparePlans.d.ts +0 -3
  79. package/dist/src/components/manage/Subscription/SubscriptionPricing/SubscriptionPricing.d.ts +0 -51
  80. package/dist/src/components/manage/Subscription/TempPayment/TempPayment.d.ts +0 -1
  81. package/dist/src/components/manage/Subscription/TempPayment/constant.d.ts +0 -5
  82. package/dist/src/components/manage/Subscription/UpcomingSubscription/UpcomingSubscription.d.ts +0 -1
  83. package/dist/src/components/manage/Subscription/UpcomingSubscription/constant.d.ts +0 -4
  84. package/dist/src/components/manage/Subscription/Wallet/Wallet.d.ts +0 -1
  85. package/dist/src/components/manage/Subscription/Wallet/constant.d.ts +0 -8
  86. package/dist/src/components/manage/Subscription/WalletDashboard/WalletDashboard.d.ts +0 -2
  87. package/dist/src/components/manage/Subscription/WalletDashboard/index.d.ts +0 -2
  88. package/dist/src/components/ui/Alert/Alert.d.ts +0 -6
  89. package/dist/src/components/ui/DatePicker/DatePicker.d.ts +0 -4
  90. package/dist/src/components/ui/Loader/Loader.d.ts +0 -7
  91. package/dist/src/components/ui/NoDataFound/NoDataFound.d.ts +0 -5
  92. package/dist/src/components/ui/OrgDetailsCard/OrgDetailsCard.d.ts +0 -20
  93. package/dist/src/components/ui/OverviewCard/OverviewCard.d.ts +0 -4
  94. package/dist/src/components/ui/TextReducingTooltipComponent/TextReducingTooltipComponent.d.ts +0 -10
  95. package/dist/src/components/ui/TopUpWalletModal/TopUpWalletModal.d.ts +0 -6
  96. package/dist/src/index.d.ts +0 -1
  97. package/dist/src/main.d.ts +0 -19
  98. package/dist/src/shared/constants/constant.d.ts +0 -42
  99. package/dist/src/shared/constants/endpoints.d.ts +0 -34
  100. package/dist/src/shared/constants/form-types.d.ts +0 -44
  101. package/dist/src/shared/constants/status.d.ts +0 -4
  102. package/dist/src/shared/constants/time.d.ts +0 -53
  103. package/dist/src/shared/hooks/useConstants.d.ts +0 -1
  104. package/dist/src/shared/hooks/useDownloadBufferFile.d.ts +0 -7
  105. package/dist/src/shared/hooks/useDownloadXls.d.ts +0 -1
  106. package/dist/src/shared/hooks/useErrorAlert.d.ts +0 -1
  107. package/dist/src/shared/hooks/useFetch.d.ts +0 -124
  108. package/dist/src/shared/hooks/useFilterParsedValue.d.ts +0 -6
  109. package/dist/src/shared/hooks/useLoading.d.ts +0 -1
  110. package/dist/src/shared/hooks/useMutation.d.ts +0 -18
  111. package/dist/src/shared/hooks/useSuccessAlert.d.ts +0 -1
  112. package/dist/src/shared/providers/AppProvider.d.ts +0 -14
  113. package/dist/src/shared/providers/AuthProvider.d.ts +0 -11
  114. package/dist/src/shared/services/cashfree-payments.d.ts +0 -1
  115. package/dist/src/shared/services/http.d.ts +0 -11
  116. package/dist/src/shared/types/backend.types.d.ts +0 -20
  117. package/dist/src/shared/utils/utils.d.ts +0 -25
  118. package/dist/src/shared/zustand/alert.store.d.ts +0 -20
  119. package/dist/src/shared/zustand/session.store.d.ts +0 -22
package/dist/App.d.ts CHANGED
@@ -1,4 +1,4 @@
1
-
2
- export declare const theme: import('@mui/material').Theme;
3
- declare function App(): import("react/jsx-runtime").JSX.Element;
1
+ import "./App.css";
2
+ export declare const theme: import("@mui/material").Theme;
3
+ declare function App(): import("react").JSX.Element;
4
4
  export default App;
@@ -1,9 +1,8 @@
1
- import { default as React, ReactElement, ReactNode } from 'react';
2
-
1
+ import React, { ReactElement, ReactNode } from "react";
3
2
  export declare const CardLabel: ({ label, icon }: {
4
3
  label: string | ReactElement;
5
4
  icon?: ReactElement;
6
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }) => React.JSX.Element;
7
6
  interface Props {
8
7
  children: ReactNode;
9
8
  className?: string;
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
-
1
+ import React from 'react';
3
2
  export interface SelectOption {
4
3
  id: string | number;
5
4
  name: string;
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
-
1
+ import React from "react";
3
2
  interface Props {
4
3
  getSearchValue: (search: string) => void;
5
4
  className?: string;
@@ -6,5 +6,5 @@ interface Props {
6
6
  endAdornment?: string;
7
7
  startAdornment?: string;
8
8
  }
9
- declare function CustomTooltip({ data, limit, doNotShowTooltip, arrow, endAdornment, startAdornment, }: Props): import("react/jsx-runtime").JSX.Element;
9
+ declare function CustomTooltip({ data, limit, doNotShowTooltip, arrow, endAdornment, startAdornment, }: Props): import("react").JSX.Element;
10
10
  export default CustomTooltip;
@@ -1,6 +1,5 @@
1
- import { default as React, ReactElement } from 'react';
2
- import { ButtonProps } from '@zimyo/ui';
3
-
1
+ import React, { ReactElement } from "react";
2
+ import { ButtonProps } from "@zimyo/ui";
4
3
  type PageHeadingButtonConfig = {
5
4
  variant?: ButtonProps["variant"];
6
5
  color?: ButtonProps["color"];
@@ -1 +1,2 @@
1
- export declare const BillingSubscription: () => import("react/jsx-runtime").JSX.Element;
1
+ import React from "react";
2
+ export declare const BillingSubscription: () => React.JSX.Element;
@@ -1 +1 @@
1
- export declare const SubscriptionConsumption: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const SubscriptionConsumption: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- export declare const CustomerInvoices: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const CustomerInvoices: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- export declare const Ledger: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const Ledger: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- export declare const Mail: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const Mail: () => import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  interface ManageUsersProps {
2
2
  onClose?: () => void;
3
3
  }
4
- declare const ManageUsers: ({ onClose }: ManageUsersProps) => import("react/jsx-runtime").JSX.Element;
4
+ declare const ManageUsers: ({ onClose }: ManageUsersProps) => import("react").JSX.Element;
5
5
  export default ManageUsers;
@@ -1,2 +1,2 @@
1
- export declare const NewOverview: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const NewOverview: () => import("react").JSX.Element;
2
2
  export default NewOverview;
@@ -1,5 +1,5 @@
1
1
  type overviewPropTypes = {
2
2
  onTabChange: (value: number) => void;
3
3
  };
4
- export declare const SubscriptionOverview: (props: overviewPropTypes) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const SubscriptionOverview: (props: overviewPropTypes) => import("react").JSX.Element;
5
5
  export {};
@@ -1 +1 @@
1
- export declare const SubscriptionPaymentMethod: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const SubscriptionPaymentMethod: () => import("react").JSX.Element;
@@ -1,6 +1,6 @@
1
-
1
+ import "./PaymentRecords.css";
2
2
  type overviewPropTypes = {
3
3
  onTabChange: (value: number) => void;
4
4
  };
5
- declare const PaymentRecords: (props: overviewPropTypes) => import("react/jsx-runtime").JSX.Element;
5
+ declare const PaymentRecords: (props: overviewPropTypes) => import("react").JSX.Element;
6
6
  export default PaymentRecords;
@@ -1,5 +1,5 @@
1
1
  interface Props {
2
2
  planAmount?: Record<string, number>;
3
3
  }
4
- declare const PlanComparisonTable: ({ planAmount }: Props) => import("react/jsx-runtime").JSX.Element;
4
+ declare const PlanComparisonTable: ({ planAmount }: Props) => import("react").JSX.Element;
5
5
  export default PlanComparisonTable;
@@ -0,0 +1,28 @@
1
+ type Line = {
2
+ id: number;
3
+ name: string;
4
+ user: number | string;
5
+ currentUser: number;
6
+ type: 'plan' | 'add_on';
7
+ isNew?: boolean;
8
+ currentName?: string;
9
+ };
10
+ interface Props {
11
+ currency: string;
12
+ plan: Line | null;
13
+ addOns: Line[];
14
+ removedAddOns: string[];
15
+ offeredAddOnIds: number[];
16
+ onUserChange: (value: string, type: 'plan' | 'add_on', id: number) => void;
17
+ onPaid: () => void;
18
+ }
19
+ /**
20
+ * Change subscription checkout. The customer sets users per item and sees what
21
+ * it costs, worked out by the server exactly like the PI it raises (period
22
+ * charges less the unused part of the current period and any balance, GST,
23
+ * round off) plus everything else still due. Every change starts today, as
24
+ * soon as it is paid. Users never go below today's; a lower plan or a removed
25
+ * add-on only once the subscription has ended (from the day after its End Date).
26
+ */
27
+ export declare function PlanChangeCheckout({ currency, plan, addOns, removedAddOns, offeredAddOnIds, onUserChange, onPaid }: Props): import("react").JSX.Element;
28
+ export {};
@@ -1,2 +1,2 @@
1
-
2
- export declare function PlansOverview(): import("react/jsx-runtime").JSX.Element;
1
+ import "./style.css";
2
+ export declare function PlansOverview(): import("react").JSX.Element;
@@ -1,2 +1,3 @@
1
- export declare const ProductUpdates: () => import("react/jsx-runtime").JSX.Element;
1
+ import React from "react";
2
+ export declare const ProductUpdates: () => React.JSX.Element;
2
3
  export default ProductUpdates;
@@ -1 +1 @@
1
- export declare const ServiceDeskLogs: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const ServiceDeskLogs: () => import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  type subscribedPlanPropTypes = {
2
2
  onTabChange: (value: number) => void;
3
3
  };
4
- export declare const SubscriptionPlans: (props: subscribedPlanPropTypes) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const SubscriptionPlans: (props: subscribedPlanPropTypes) => import("react").JSX.Element;
5
5
  export {};
@@ -1,4 +1,4 @@
1
-
1
+ import "./CardView.css";
2
2
  type OverviewData = {
3
3
  employee_details: {
4
4
  active_employee: number;
@@ -46,5 +46,5 @@ type AddOnProduct = {
46
46
  type CardViewProps = {
47
47
  overviewData?: OverviewData;
48
48
  };
49
- declare const CardView: ({ overviewData }: CardViewProps) => import("react/jsx-runtime").JSX.Element;
49
+ declare const CardView: ({ overviewData }: CardViewProps) => import("react").JSX.Element;
50
50
  export default CardView;
@@ -1,3 +1,3 @@
1
-
2
- declare const ComparePlans: () => import("react/jsx-runtime").JSX.Element;
1
+ import './ComparePlans.css';
2
+ declare const ComparePlans: () => import("react").JSX.Element;
3
3
  export default ComparePlans;
@@ -1,4 +1,4 @@
1
-
1
+ import "./SubscriptionPricing.css";
2
2
  type overviewPropTypes = {
3
3
  onTabChange: (value: number) => void;
4
4
  overviewData?: OverviewData;
@@ -47,5 +47,5 @@ type AddOnProduct = {
47
47
  modules_ids: number[];
48
48
  subscription_id: number;
49
49
  };
50
- export declare const SubscriptionPricing: (props: overviewPropTypes) => import("react/jsx-runtime").JSX.Element;
50
+ export declare const SubscriptionPricing: (props: overviewPropTypes) => import("react").JSX.Element;
51
51
  export default SubscriptionPricing;
@@ -1 +1 @@
1
- export declare const TempPayment: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const TempPayment: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- export declare const UpcomingInvoices: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const UpcomingInvoices: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- export declare const SubscriptionWallet: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const SubscriptionWallet: () => import("react").JSX.Element;
@@ -1,2 +1,3 @@
1
- export declare const WalletDashboard: () => import("react/jsx-runtime").JSX.Element;
1
+ import { JSX } from 'react';
2
+ export declare const WalletDashboard: () => JSX.Element;
2
3
  export default WalletDashboard;
@@ -1,7 +1,6 @@
1
- import { AlertColor } from '@mui/material';
2
-
1
+ import { AlertColor } from "@mui/material";
3
2
  declare const AlertComponent: (props: {
4
3
  type: AlertColor | undefined | string;
5
4
  message?: string;
6
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }) => import("react").JSX.Element;
7
6
  export default AlertComponent;
@@ -1,5 +1,4 @@
1
1
  import { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
2
2
  import { Dayjs } from 'dayjs';
3
-
4
- declare const XDatePicker: (props: DatePickerProps<Dayjs>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const XDatePicker: (props: DatePickerProps<Dayjs>) => import("react").JSX.Element;
5
4
  export default XDatePicker;
@@ -1,7 +1,7 @@
1
-
1
+ import "./Loader.css";
2
2
  type props = {
3
3
  visible: boolean;
4
4
  type?: "component" | "table" | "skeleton";
5
5
  };
6
- export declare const Loader: ({ visible, type }: props) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const Loader: ({ visible, type }: props) => import("react").JSX.Element;
7
7
  export {};
@@ -1,5 +1,5 @@
1
1
  declare const NoDataComponent: ({ message, imgStyles, }: {
2
2
  message: string;
3
3
  imgStyles?: any;
4
- }) => import("react/jsx-runtime").JSX.Element;
4
+ }) => import("react").JSX.Element;
5
5
  export default NoDataComponent;
@@ -16,5 +16,5 @@ interface props extends orgDetailsState {
16
16
  }
17
17
  declare const OrgDetailsCard: ({ orgDetails }: {
18
18
  orgDetails: props;
19
- }) => import("react/jsx-runtime").JSX.Element;
19
+ }) => import("react").JSX.Element;
20
20
  export default OrgDetailsCard;
@@ -1,4 +1,4 @@
1
1
  declare const OverviewCard: ({ data }: {
2
2
  data: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
3
+ }) => import("react").JSX.Element;
4
4
  export default OverviewCard;
@@ -6,5 +6,5 @@ declare function TextReducingTooltipComponent({ data, limit, doNotShowTooltip, a
6
6
  endAdornment?: string | undefined;
7
7
  startAdornment?: string | undefined;
8
8
  styleOverrides?: {} | undefined;
9
- }): import("react/jsx-runtime").JSX.Element;
9
+ }): import("react").JSX.Element;
10
10
  export default TextReducingTooltipComponent;
@@ -2,5 +2,5 @@ type topupWalletModalProps = {
2
2
  open: boolean;
3
3
  setIsOpen: (value: boolean) => void;
4
4
  };
5
- declare const TopUpWalletModal: (props: topupWalletModalProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const TopUpWalletModal: (props: topupWalletModalProps) => import("react").JSX.Element;
6
6
  export default TopUpWalletModal;
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
-
1
+ import './index.css';