affiliate-front-shared 1.2.0 → 1.3.0

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 (129) hide show
  1. package/dist/assets/i18n/config.d.ts +2 -0
  2. package/dist/components/box-component/index.d.ts +2 -0
  3. package/dist/components/box-component/style.d.ts +6 -0
  4. package/dist/components/chart/index.d.ts +2 -0
  5. package/dist/components/chart/style.d.ts +1 -0
  6. package/dist/components/coming-soon/index.d.ts +2 -0
  7. package/dist/components/coming-soon/style.d.ts +30 -0
  8. package/dist/components/contact-info-modal/index.d.ts +2 -0
  9. package/dist/components/contact-info-modal/style.d.ts +14 -0
  10. package/dist/components/date-picker-to-ISO/DatePickerToISO.d.ts +6 -0
  11. package/dist/components/date-range-filter-tabs/date-picker/index.d.ts +2 -0
  12. package/dist/components/date-range-filter-tabs/index.d.ts +6 -0
  13. package/dist/components/date-range-filter-tabs/style.d.ts +8 -0
  14. package/dist/components/excel-export/index.d.ts +7 -0
  15. package/dist/components/excel-export/style.d.ts +6 -0
  16. package/dist/components/expandable-table/index.d.ts +15 -0
  17. package/dist/components/expandable-table/style.d.ts +15 -0
  18. package/dist/components/filter-configuration/constants.d.ts +18 -0
  19. package/dist/components/filter-configuration/index.d.ts +14 -0
  20. package/dist/components/generic-modal/index.d.ts +2 -0
  21. package/dist/components/generic-modal/style.d.ts +2 -0
  22. package/dist/components/modal-host/ModalHost.d.ts +3 -0
  23. package/dist/components/modal-host/TablePopup.style.d.ts +48 -0
  24. package/dist/components/no-data/index.d.ts +2 -0
  25. package/dist/components/no-data/style.d.ts +10 -0
  26. package/dist/components/page-breadcrumb/index.d.ts +3 -0
  27. package/dist/components/page-breadcrumb/style.d.ts +3 -0
  28. package/dist/components/page-breadcrumb/types.d.ts +9 -0
  29. package/dist/components/page-wrapper/index.d.ts +10 -0
  30. package/dist/components/page-wrapper/style.d.ts +1 -0
  31. package/dist/components/popup-mfa/PopupMFA.d.ts +10 -0
  32. package/dist/components/popup-mfa/mfa-all-popups/BackupCodes.d.ts +2 -0
  33. package/dist/components/popup-mfa/mfa-all-popups/ConnectAuthenticatorApp.d.ts +2 -0
  34. package/dist/components/popup-mfa/mfa-all-popups/DisableAuthenticator.d.ts +2 -0
  35. package/dist/components/popup-mfa/mfa-all-popups/SelectAuthenticatorApp.d.ts +2 -0
  36. package/dist/components/popup-mfa/mfa-all-popups/SelectMFAMethod.d.ts +2 -0
  37. package/dist/components/popup-mfa/mfa-all-popups/VerifyAuthenticatorCode.d.ts +2 -0
  38. package/dist/components/popup-mfa/mfa-all-popups/VerifyEmailCode.d.ts +2 -0
  39. package/dist/components/popup-mfa/mfa-all-popups/index.d.ts +12 -0
  40. package/dist/components/popup-mfa/mfa-all-popups/style.d.ts +8 -0
  41. package/dist/components/popup-mfa/style.d.ts +5 -0
  42. package/dist/components/spinner/index.d.ts +2 -0
  43. package/dist/components/spinner/style.d.ts +6 -0
  44. package/dist/components/two-factor-popup/EnterBackupCodes.d.ts +2 -0
  45. package/dist/components/two-factor-popup/TwoFactorPopup.d.ts +11 -0
  46. package/dist/components/two-factor-popup/constants.d.ts +7 -0
  47. package/dist/components/two-factor-popup/style.d.ts +17 -0
  48. package/dist/hooks/useAutofillStartDetection.d.ts +1 -0
  49. package/dist/hooks/useContactInfoController.d.ts +18 -0
  50. package/dist/hooks/useDebounce.d.ts +2 -0
  51. package/dist/hooks/useElementHeight.d.ts +1 -0
  52. package/dist/hooks/useFetch.d.ts +7 -0
  53. package/dist/hooks/useFilterDataSourceType.d.ts +2 -0
  54. package/dist/hooks/useFormController.d.ts +8 -0
  55. package/dist/hooks/useNavigationGuard.d.ts +1 -0
  56. package/dist/hooks/useNewDesignFormController.d.ts +6 -0
  57. package/dist/hooks/useTwoFactor.d.ts +13 -0
  58. package/dist/index.d.ts +50 -0
  59. package/dist/layouts/authorization-layout/index.d.ts +11 -0
  60. package/dist/layouts/authorization-layout/style.d.ts +16 -0
  61. package/dist/layouts/base-admin-layout/content-header/index.d.ts +2 -0
  62. package/dist/layouts/base-admin-layout/content-header/style.d.ts +4 -0
  63. package/dist/layouts/base-admin-layout/index.d.ts +6 -0
  64. package/dist/layouts/base-admin-layout/profile-menu/index.d.ts +2 -0
  65. package/dist/layouts/base-admin-layout/profile-menu/style.d.ts +25 -0
  66. package/dist/layouts/base-admin-layout/sidebar/index.d.ts +8 -0
  67. package/dist/layouts/base-admin-layout/sidebar/style.d.ts +25 -0
  68. package/dist/layouts/base-admin-layout/style.d.ts +3 -0
  69. package/dist/modules/GridViewPage/GridViewPage.d.ts +38 -0
  70. package/dist/modules/GridViewPage/GridViewPageWrapper.d.ts +2 -0
  71. package/dist/modules/GridViewPage/GridViewStoreProvider.d.ts +6 -0
  72. package/dist/modules/GridViewPage/components/DropdownWrapper.d.ts +2 -0
  73. package/dist/modules/GridViewPage/components/FilterDropdown.d.ts +2 -0
  74. package/dist/modules/GridViewPage/components/PageFilter.d.ts +2 -0
  75. package/dist/modules/GridViewPage/components/SortDropdown.d.ts +2 -0
  76. package/dist/modules/GridViewPage/components/Table/GroupedTableBody.d.ts +2 -0
  77. package/dist/modules/GridViewPage/components/Table/SubGroupedSection.d.ts +1 -0
  78. package/dist/modules/GridViewPage/components/Table/TableBodyRows.d.ts +2 -0
  79. package/dist/modules/GridViewPage/components/Table/TablePagination.d.ts +1 -0
  80. package/dist/modules/GridViewPage/components/Table/TableTh.d.ts +1 -0
  81. package/dist/modules/GridViewPage/components/Table/index.d.ts +2 -0
  82. package/dist/modules/GridViewPage/components/Table/style.d.ts +4 -0
  83. package/dist/modules/GridViewPage/components/Table/utils.d.ts +2 -0
  84. package/dist/modules/GridViewPage/components/delete-record-popup/DeleteRecordPopup.d.ts +2 -0
  85. package/dist/modules/GridViewPage/components/page-header/PageHeader.d.ts +23 -0
  86. package/dist/modules/GridViewPage/components/page-header/style.d.ts +11 -0
  87. package/dist/modules/GridViewPage/components/setting-sidebar/index.d.ts +2 -0
  88. package/dist/modules/GridViewPage/components/setting-sidebar/style.d.ts +2 -0
  89. package/dist/modules/GridViewPage/hooks/useGridViewSessionStorage.d.ts +2 -0
  90. package/dist/modules/GridViewPage/index.d.ts +2 -0
  91. package/dist/modules/GridViewPage/store/createGridViewStore.d.ts +36 -0
  92. package/dist/modules/GridViewPage/style.d.ts +60 -0
  93. package/dist/modules/GridViewPage/types.d.ts +49 -0
  94. package/dist/stores/useModalStore.d.ts +33 -0
  95. package/dist/stores/useUserStore.d.ts +25 -0
  96. package/dist/styled-components/CustomLine.d.ts +1 -0
  97. package/dist/styled-components/CustomTable.d.ts +15 -0
  98. package/dist/styled-components/StyledList.d.ts +7 -0
  99. package/dist/styled-components/arrowLeft.d.ts +1 -0
  100. package/dist/styled-components/boxesWrapper.d.ts +1 -0
  101. package/dist/styled-components/breadcrumb.d.ts +12 -0
  102. package/dist/styled-components/closeMark.d.ts +1 -0
  103. package/dist/styled-components/create-edit-components.d.ts +13 -0
  104. package/dist/styled-components/empty.d.ts +4 -0
  105. package/dist/styled-components/index.d.ts +3 -0
  106. package/dist/styled-components/manager-partner-inputsWrapper.d.ts +2 -0
  107. package/dist/styled-components/rightArrow.d.ts +1 -0
  108. package/dist/styled-components/styledCheckbox.d.ts +5 -0
  109. package/dist/styled-components/styledCustomSelect.d.ts +10 -0
  110. package/dist/styled-components/styledDropdownContainer.d.ts +1 -0
  111. package/dist/styled-components/styledFormItem.d.ts +7 -0
  112. package/dist/styled-components/table.d.ts +15 -0
  113. package/dist/styled-components/tabs.d.ts +5 -0
  114. package/dist/styled-components/usersDetailStyles.d.ts +16 -0
  115. package/dist/utils/DateHelper.d.ts +54 -0
  116. package/dist/utils/PackageServicesProvider.d.ts +93 -0
  117. package/dist/utils/PackageTranslationProvider.d.ts +26 -0
  118. package/dist/utils/antdFunction.d.ts +1 -0
  119. package/dist/utils/catchErrorFunction.d.ts +1 -0
  120. package/dist/utils/errors.d.ts +5 -0
  121. package/dist/utils/export-reports.d.ts +2 -0
  122. package/dist/utils/exportCsv.d.ts +3 -0
  123. package/dist/utils/exportTranslation.d.ts +17 -0
  124. package/dist/utils/exportXLSX.d.ts +3 -0
  125. package/dist/utils/formatter.d.ts +4 -0
  126. package/dist/utils/functions.d.ts +3 -0
  127. package/dist/utils/parseCommissionErrors.d.ts +9 -0
  128. package/dist/utils/showByType.d.ts +1 -0
  129. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ export declare const StyledBreadcrumb: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('antd').BreadcrumbProps<import('antd/es/_util/type').AnyObject>, never>> & string & Omit<{
2
+ <T extends import('antd/es/_util/type').AnyObject = import('antd/es/_util/type').AnyObject>(props: import('antd').BreadcrumbProps<T>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
3
+ Item: React.FC<import('antd').BreadcrumbItemProps> & {
4
+ __ANT_BREADCRUMB_ITEM: boolean;
5
+ };
6
+ Separator: React.FC<{
7
+ children?: React.ReactNode | undefined;
8
+ }> & {
9
+ __ANT_BREADCRUMB_SEPARATOR: boolean;
10
+ };
11
+ displayName: string;
12
+ }, keyof import('react').Component<any, {}, any>>;
@@ -0,0 +1 @@
1
+ export declare const CloseMarkIcon: any;
@@ -0,0 +1,13 @@
1
+ export declare const CreateEditWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const CreateEditDeleteButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('antd').ButtonProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
3
+ ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
4
+ }, never>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').ButtonProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
5
+ Group: import('react').FC<import('antd/es/button').ButtonGroupProps>;
6
+ }, keyof import('react').Component<any, {}, any>>;
7
+ export declare const CreateEditPageHeaderWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
8
+ export declare const CreateEditPageTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
9
+ export declare const CreateEditSaveButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('antd').ButtonProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
10
+ ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
11
+ }, never>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').ButtonProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
12
+ Group: import('react').FC<import('antd/es/button').ButtonGroupProps>;
13
+ }, keyof import('react').Component<any, {}, any>>;
@@ -0,0 +1,4 @@
1
+ export declare const StyledEmpty: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('antd').EmptyProps, never>> & string & Omit<import('react').FC<import('antd').EmptyProps> & {
2
+ PRESENTED_IMAGE_DEFAULT: React.ReactNode;
3
+ PRESENTED_IMAGE_SIMPLE: React.ReactNode;
4
+ }, keyof import('react').Component<any, {}, any>>;
@@ -0,0 +1,3 @@
1
+ export { StyledEmpty } from './empty';
2
+ export { StyledTable } from './table';
3
+ export { StyledBreadcrumb } from './breadcrumb';
@@ -0,0 +1,2 @@
1
+ export declare const ManagerPartnerInputFlexWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const ManagerPartnerInputWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1 @@
1
+ export declare const ArrowRightIcon: any;
@@ -0,0 +1,5 @@
1
+ export declare const StyledCheckbox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('antd').CheckboxProps & import('react').RefAttributes<import('rc-checkbox').CheckboxRef>, "ref"> & {
2
+ ref?: ((instance: import('rc-checkbox').CheckboxRef | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<import('rc-checkbox').CheckboxRef> | null | undefined;
3
+ }, never>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').CheckboxProps & import('react').RefAttributes<import('rc-checkbox').CheckboxRef>> & {
4
+ Group: <T = any>(props: import('antd/es/checkbox').CheckboxGroupProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
5
+ }, keyof import('react').Component<any, {}, any>>;
@@ -0,0 +1,10 @@
1
+ interface StlyedCustomSelectProps {
2
+ width?: string;
3
+ border?: any;
4
+ }
5
+ export declare const StyledCustomSelect: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<Omit<import('antd').SelectProps<unknown, import('rc-select/lib/Select').DefaultOptionType | import('rc-select/lib/Select').BaseOptionType> & {
6
+ children?: import('react').ReactNode | undefined;
7
+ } & import('react').RefAttributes<import('rc-select').BaseSelectRef>, "ref"> & {
8
+ ref?: ((instance: import('rc-select').BaseSelectRef | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<import('rc-select').BaseSelectRef> | null | undefined;
9
+ }, never>, StlyedCustomSelectProps>> & string;
10
+ export {};
@@ -0,0 +1 @@
1
+ export declare const StyledDropdownContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,7 @@
1
+ export declare const StyledFormItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('antd').FormItemProps<unknown>, never>> & string & Omit<(<Values = any>(props: import('antd').FormItemProps<Values>) => React.ReactElement) & {
2
+ useStatus: () => {
3
+ status?: import('antd/es/form/FormItem').ValidateStatus;
4
+ errors: React.ReactNode[];
5
+ warnings: React.ReactNode[];
6
+ };
7
+ }, keyof import('react').Component<any, {}, any>>;
@@ -0,0 +1,15 @@
1
+ export declare const StyledTable: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('antd').TableProps<unknown> & {
2
+ children?: import('react').ReactNode | undefined;
3
+ } & import('react').RefAttributes<import('rc-table').Reference>, "ref"> & {
4
+ ref?: ((instance: import('rc-table').Reference | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<import('rc-table').Reference> | null | undefined;
5
+ }, never>> & string & Omit<import('antd/es/table/interface').RefTable & {
6
+ displayName?: string;
7
+ SELECTION_COLUMN: typeof import('antd/es/table/hooks/useSelection').SELECTION_COLUMN;
8
+ EXPAND_COLUMN: typeof import('rc-table').EXPAND_COLUMN;
9
+ SELECTION_ALL: typeof import('antd/es/table/hooks/useSelection').SELECTION_ALL;
10
+ SELECTION_INVERT: typeof import('antd/es/table/hooks/useSelection').SELECTION_INVERT;
11
+ SELECTION_NONE: typeof import('antd/es/table/hooks/useSelection').SELECTION_NONE;
12
+ Column: <RecordType extends import('antd/es/_util/type').AnyObject>(_: import('antd').TableColumnProps<RecordType>) => null;
13
+ ColumnGroup: <RecordType extends import('antd/es/_util/type').AnyObject>(_: import('antd/es/table/ColumnGroup').ColumnGroupProps<RecordType>) => null;
14
+ Summary: typeof import('rc-table').Summary;
15
+ }, keyof import('react').Component<any, {}, any>>;
@@ -0,0 +1,5 @@
1
+ export declare const TabComponent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('antd').TabsProps & import('react').RefAttributes<import('antd/es/tabs').TabsRef>, "ref"> & {
2
+ ref?: ((instance: import('antd/es/tabs').TabsRef | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<import('antd/es/tabs').TabsRef> | null | undefined;
3
+ }, never>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').TabsProps & import('react').RefAttributes<import('antd/es/tabs').TabsRef>> & {
4
+ TabPane: import('react').FC<import('antd').TabPaneProps>;
5
+ }, keyof import('react').Component<any, {}, any>>;
@@ -0,0 +1,16 @@
1
+ export declare const DetailsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const DetailsContentWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const DetailsFooterWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export declare const DetailsContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
+ export declare const DetailsFooterTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
6
+ export declare const DetailsFooterContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ export declare const DetailBrands: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
8
+ export declare const DetailsBrandName: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
9
+ export declare const DetailIcons: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
+ export declare const DetailsLabelContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
11
+ export declare const DetailsInfo: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
+ export declare const StyledChevronRight: any;
13
+ export declare const StatusInfoWithIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
14
+ export declare const BrandsNotFound: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
15
+ export declare const DetailPageEnableContactInfoButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
16
+ export declare const DetailPasswordChangeButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,54 @@
1
+ export declare class DateHelper {
2
+ static equals(value1?: Date | null, value2?: Date | null): boolean;
3
+ static toMMddyyyy(value: Date | string): string | null;
4
+ static toLocal(date: Date | string, start?: boolean, end?: boolean): Date | null;
5
+ static getDates(start: Date, end: Date): Date[];
6
+ static dateOnly(value: Date): string;
7
+ static dateWithDashes(value: Date): string;
8
+ static today(): string;
9
+ static toISODateString(value: Date | string): string | null;
10
+ static toISODateStringWithTime(value: Date | string): string | null;
11
+ static monthDayYear(value: Date | string): string | null;
12
+ static withdrawalTableDateFormat(value: Date): string | null;
13
+ static getCommonDateRange: (key: string) => any;
14
+ static getDateOnlyMonthAndNumber(value: Date | string): string;
15
+ static fromDateOrStringToTable(value: Date | string): string | null;
16
+ static toISOTimeString(value: Date | string): string | null;
17
+ static toTimeInput(value: Date | string): string | null;
18
+ private static readonly _utcDiff;
19
+ static utcToLocal(utc: Date): Date;
20
+ static localToUtc(utc: Date): Date;
21
+ static addYears(v: Date, years: number): Date;
22
+ static addMonths(v: Date, months: number): Date;
23
+ static addDays(v: Date, days: number): Date;
24
+ static addHours(v: Date, hours: number): Date;
25
+ static addMinutes(v: Date, minutes: number): Date;
26
+ static addSeconds(v: Date, seconds: number): Date;
27
+ static isToday(date: Date): boolean;
28
+ static clone(date: Date): Date;
29
+ static isAnotherMonth(a: Date, b: Date): boolean;
30
+ static isWeekend(v: Date): boolean;
31
+ static isSameDate(a: Date, b: Date): boolean;
32
+ static getAge(value?: Date | string | null, now?: Date | null): number | null;
33
+ static subtractMonths(endDate: Date, starDate: Date): number;
34
+ static subtractDays(value: Date, date: Date): number | null;
35
+ static subtractHours(value: Date, date?: Date | null): number | null;
36
+ static subtractMinutes(value: Date, date?: Date | null): number | null;
37
+ static ISO8601_DATE_REGEX: RegExp;
38
+ static parseDate(value: any): Date | null;
39
+ /***
40
+ * Converts a value to date.
41
+ *
42
+ * Supported input formats:
43
+ * - `Date`
44
+ * - number: timestamp
45
+ * - string: numeric (e.g. "1234"), ISO and date strings in a format supported by
46
+ * [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse).
47
+ * Note: ISO strings without time return a date without timeoffset.
48
+ *
49
+ * Throws if unable to convert to a date.
50
+ */
51
+ static toDate(value: string | number | Date): Date;
52
+ static isoStringToDate(match: RegExpMatchArray): Date;
53
+ static isDate(value: any): value is Date;
54
+ }
@@ -0,0 +1,93 @@
1
+ import { ReactNode } from 'react';
2
+ export interface FiltersType {
3
+ id?: number;
4
+ name: string;
5
+ value: string;
6
+ }
7
+ export interface TwoFactorInitResponse {
8
+ data: {
9
+ success: boolean;
10
+ value?: {
11
+ isTwoFactorRequired: boolean;
12
+ token: string;
13
+ id: string;
14
+ };
15
+ };
16
+ }
17
+ export interface MFASetupResponse {
18
+ data: {
19
+ value: {
20
+ totpSecret: string;
21
+ qrCodeImage: string;
22
+ provisioningUri: string;
23
+ };
24
+ };
25
+ }
26
+ export interface SuccessResponse {
27
+ data: {
28
+ success: boolean;
29
+ value?: unknown;
30
+ };
31
+ }
32
+ export interface CustomerItem {
33
+ id: number | string;
34
+ name: string;
35
+ }
36
+ export interface PackageServices {
37
+ getMyFilters?: (filterType: string) => Promise<{
38
+ data: FiltersType[];
39
+ }>;
40
+ saveMyFilter?: (filterType: string, name: string, value: string) => Promise<SuccessResponse>;
41
+ deleteMyFilter?: (id: number) => Promise<SuccessResponse>;
42
+ enableTwoFactor?: () => Promise<TwoFactorInitResponse>;
43
+ initiateMFA?: () => Promise<MFASetupResponse>;
44
+ verifyMFA?: (otpValue: string) => Promise<SuccessResponse>;
45
+ disableMFA?: (password: string) => Promise<SuccessResponse>;
46
+ confirmTwoFactor?: (params: {
47
+ confirmationToken: string;
48
+ code: string;
49
+ id: string;
50
+ }) => Promise<SuccessResponse>;
51
+ resendOTP?: (confirmationToken: string, id: string) => Promise<SuccessResponse>;
52
+ confirmTwoFactorBackupCode?: (params: {
53
+ confirmationToken: string;
54
+ code: string;
55
+ id: string;
56
+ }) => Promise<SuccessResponse>;
57
+ enableContactInfo?: () => Promise<SuccessResponse>;
58
+ disableContactInfo?: () => Promise<SuccessResponse>;
59
+ confirmContactInfo?: (code: string, otpValue: string, id: string) => Promise<SuccessResponse>;
60
+ confirmContactInfoBackup?: (params: {
61
+ confirmationToken: string;
62
+ code: string;
63
+ id: string;
64
+ }) => Promise<SuccessResponse>;
65
+ getCustomers?: () => Promise<{
66
+ data: CustomerItem[];
67
+ }>;
68
+ postSelectedCustomer?: (id: number | string) => Promise<SuccessResponse>;
69
+ }
70
+ /**
71
+ * Wrap your app (or the section using this package) once with this provider
72
+ * and pass in all the API functions your project implements.
73
+ *
74
+ * Example:
75
+ * import { enableTwoFactor, getMyFilters } from './services/myApi';
76
+ *
77
+ * <PackageServicesProvider services={{ enableTwoFactor, getMyFilters }}>
78
+ * <App />
79
+ * </PackageServicesProvider>
80
+ */
81
+ export declare function PackageServicesProvider({ services, children, }: {
82
+ services: PackageServices;
83
+ children: ReactNode;
84
+ }): import("react/jsx-runtime").JSX.Element;
85
+ /**
86
+ * Use inside any component in this package to access injected service functions.
87
+ *
88
+ * Example:
89
+ * const { getMyFilters } = usePackageServices();
90
+ * if (!getMyFilters) return;
91
+ * const res = await getMyFilters(filterType);
92
+ */
93
+ export declare function usePackageServices(): PackageServices;
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from 'react';
2
+ import { TranslationFn } from './exportTranslation';
3
+ interface PackageTranslationProviderProps {
4
+ /**
5
+ * The translation function from the parent app's i18n library.
6
+ * Called with keys like "general.Filter", "actions.Ascending", etc.
7
+ *
8
+ * Example with react-i18next (flat namespace):
9
+ * const { t } = useTranslation();
10
+ * <PackageTranslationProvider t={t}>
11
+ *
12
+ * Example with a custom function:
13
+ * <PackageTranslationProvider t={(key) => myTranslations[key] ?? key}>
14
+ */
15
+ t: TranslationFn;
16
+ children: ReactNode;
17
+ }
18
+ /**
19
+ * Wrap your app (or the section using this package) with this provider to
20
+ * inject your project's translation function into the package.
21
+ *
22
+ * Re-renders automatically when `t` changes (e.g. on language switch),
23
+ * keeping all package translations in sync.
24
+ */
25
+ export declare function PackageTranslationProvider({ t, children }: PackageTranslationProviderProps): import("react/jsx-runtime").JSX.Element;
26
+ export {};
@@ -0,0 +1 @@
1
+ export declare function handleDictionarySelectFilter(input: string, option: any): any;
@@ -0,0 +1 @@
1
+ export declare function catchErrorMessage(error: any, form: any): void;
@@ -0,0 +1,5 @@
1
+ export declare function parseErrorMessageKey(input: string): string;
2
+ export declare function parseServerErrors(errors: Record<string, string[]>): {
3
+ name: any;
4
+ errors: string[];
5
+ }[];
@@ -0,0 +1,2 @@
1
+ export declare const ExportXlsxFunction: (resp: any, name: any) => void;
2
+ export declare const ExportCsvFunction: (csvDataString: string, name: string) => void;
@@ -0,0 +1,3 @@
1
+ export declare const exportSelectedToCSV: (tableData: any[], checked: {
2
+ [key: number]: boolean;
3
+ }, fileName: any) => void;
@@ -0,0 +1,17 @@
1
+ export type TranslationFn = (key: string, options?: Record<string, unknown>) => string;
2
+ /**
3
+ * Called by PackageTranslationProvider to inject the parent app's t function.
4
+ * The provider re-calls this whenever the language changes so the singleton stays fresh.
5
+ */
6
+ export declare function setPackageTranslationFn(fn: TranslationFn): void;
7
+ export declare const tGeneral: (key: string, options?: Record<string, unknown>) => string;
8
+ export declare const tActions: (key: string, options?: Record<string, unknown>) => string;
9
+ export declare const tAuthentication: (key: string, options?: Record<string, unknown>) => string;
10
+ export declare const tMonths: (key: string, options?: Record<string, unknown>) => string;
11
+ export declare const tDate: (key: string, options?: Record<string, unknown>) => string;
12
+ export declare const tWeekDays: (key: string, options?: Record<string, unknown>) => string;
13
+ export declare const tSidebar: (key: string, options?: Record<string, unknown>) => string;
14
+ export declare const tReports: (key: string, options?: Record<string, unknown>) => string;
15
+ export declare const tNoData: (key: string, options?: Record<string, unknown>) => string;
16
+ export declare const tTwoFactor: (key: string, options?: Record<string, unknown>) => string;
17
+ export declare const tComingSoon: (key: string, options?: Record<string, unknown>) => string;
@@ -0,0 +1,3 @@
1
+ export declare const exportSelectedToXLSX: (tableData: any[], checked: {
2
+ [key: number]: boolean;
3
+ }, fileName: any) => void;
@@ -0,0 +1,4 @@
1
+ export declare function formatDate(dateStr: any, options?: {
2
+ withTime?: boolean;
3
+ }): string;
4
+ export declare function numberFormatterWithComma(number: number, local?: string): any;
@@ -0,0 +1,3 @@
1
+ export declare const getBase64: (file: File) => Promise<string>;
2
+ export declare function lowercaseFirstLetter(word: string): string;
3
+ export declare const handleCopy: (textToCopy: string) => Promise<void>;
@@ -0,0 +1,9 @@
1
+ export type ParsedCommissionError = {
2
+ brandIndex: number;
3
+ message: string;
4
+ generalType?: string;
5
+ specificType?: string;
6
+ itemIndex?: number;
7
+ field?: string;
8
+ };
9
+ export declare function parseCommissionErrors(error: any): ParsedCommissionError | null;
@@ -0,0 +1 @@
1
+ export declare const showByType: (tabBasePaths: any[], userTypes: string[]) => any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "affiliate-front-shared",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",