sixseconds-modules 1.2.1 → 1.2.2

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 (44) hide show
  1. package/dist/api/index.d.ts +4 -0
  2. package/dist/api/transforms/user.d.ts +14 -0
  3. package/dist/api/types/base.d.ts +18 -0
  4. package/dist/api/user.d.ts +8 -0
  5. package/dist/assets/images/index.d.ts +4 -0
  6. package/dist/assets/svg/index.d.ts +741 -0
  7. package/dist/components/dialogs/dangerDialog.d.ts +11 -0
  8. package/dist/components/dialogs/index.d.ts +1 -0
  9. package/dist/components/elements/backArrow.d.ts +7 -0
  10. package/dist/components/elements/index.d.ts +2 -0
  11. package/dist/components/elements/logo.d.ts +6 -0
  12. package/dist/components/elements/warning.d.ts +6 -0
  13. package/dist/components/header/appMenus.d.ts +9 -0
  14. package/dist/components/header/dropDownMenu.d.ts +9 -0
  15. package/dist/components/header/index.d.ts +23 -0
  16. package/dist/components/header/language.d.ts +12 -0
  17. package/dist/components/header/notification.d.ts +9 -0
  18. package/dist/components/header/subheaderStyled.d.ts +2 -0
  19. package/dist/components/header/type.d.ts +20 -0
  20. package/dist/components/header/userProfile.d.ts +10 -0
  21. package/dist/components/index.d.ts +2 -0
  22. package/dist/constants/apis.d.ts +4 -0
  23. package/dist/constants/common.d.ts +77 -0
  24. package/dist/constants/dates.d.ts +3 -0
  25. package/dist/constants/env.d.ts +9 -0
  26. package/dist/constants/index.d.ts +6 -0
  27. package/dist/constants/routes.d.ts +19 -0
  28. package/dist/constants/validation.d.ts +4 -0
  29. package/dist/index.cjs.js +5673 -0
  30. package/dist/index.cjs.js.map +1 -0
  31. package/dist/index.d.ts +3 -0
  32. package/dist/index.es.js +5657 -0
  33. package/dist/index.es.js.map +1 -0
  34. package/dist/main.d.ts +0 -0
  35. package/dist/types/custom.d.ts +24 -0
  36. package/dist/types/htmlElements.d.ts +6 -0
  37. package/dist/types/index.d.ts +4 -0
  38. package/dist/types/reactTypes.d.ts +4 -0
  39. package/dist/utils/common.d.ts +13 -0
  40. package/dist/utils/date.d.ts +3 -0
  41. package/dist/utils/index.d.ts +2 -0
  42. package/dist/vite-env.d.ts +2 -0
  43. package/dist/vite.svg +1 -0
  44. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import { AxiosRequestConfig } from 'axios';
2
+ import { ErrorResult, SuccessResult } from './types/base';
3
+ export declare function req(config: AxiosRequestConfig): Promise<SuccessResult<any> | ErrorResult>;
4
+ export declare function BaseAPI(): void;
@@ -0,0 +1,14 @@
1
+ export declare const transformNotifications: (itm: any) => any;
2
+ export declare const transformUser: (userData: any) => {
3
+ name: any;
4
+ email: any;
5
+ user_profile: any;
6
+ };
7
+ export declare const transformMenuBuilderData: (itm: any) => {
8
+ label: any;
9
+ value: any;
10
+ target: any;
11
+ id: any;
12
+ order: any;
13
+ children: any;
14
+ };
@@ -0,0 +1,18 @@
1
+ export type ServerError = {
2
+ message: string
3
+ data: any
4
+ }
5
+
6
+ export type SuccessResult<T> = {
7
+ remote: Extract<RemoteDataStatus, "success">
8
+ status?: number
9
+ data: T
10
+ }
11
+
12
+ export type ErrorResult = {
13
+ remote: Extract<RemoteDataStatus, "failure">
14
+ error: ServerError
15
+ status?: number
16
+ }
17
+
18
+ export type RemoteDataStatus = "success" | "failure"
@@ -0,0 +1,8 @@
1
+ export declare function getDropDownMenuAPI(params: any): Promise<import('./types/base').ErrorResult | {
2
+ remote: "success";
3
+ data: any;
4
+ }>;
5
+ export declare function notificationApi(data: any): Promise<import('./types/base').ErrorResult | {
6
+ remote: "success";
7
+ data: any;
8
+ }>;
@@ -0,0 +1,4 @@
1
+ declare const IMAGES: {
2
+ Us: string;
3
+ };
4
+ export default IMAGES;