work-workflow-tests 1.0.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 (88) hide show
  1. package/README.md +93 -0
  2. package/dist/arrow.svg +3 -0
  3. package/dist/back_button.svg +10 -0
  4. package/dist/connectall.svg +10 -0
  5. package/dist/delete.svg +8 -0
  6. package/dist/doworks_icon.svg +4 -0
  7. package/dist/flow.svg +10 -0
  8. package/dist/index.css +1 -0
  9. package/dist/tick_circle.svg +4 -0
  10. package/dist/vector.svg +9 -0
  11. package/dist/vite.svg +1 -0
  12. package/dist/workflow.es.js +22408 -0
  13. package/dist/workflow.umd.js +188 -0
  14. package/dist/workflow_delete.svg +8 -0
  15. package/dist/workflow_east.svg +8 -0
  16. package/package.json +88 -0
  17. package/types/App.d.ts +0 -0
  18. package/types/Backup.d.ts +0 -0
  19. package/types/components/Automation/AutoComp.d.ts +2 -0
  20. package/types/components/Automation/Automation.d.ts +22 -0
  21. package/types/components/Automation/ListOfAutomation.d.ts +2 -0
  22. package/types/components/Automation/index.d.ts +3 -0
  23. package/types/components/Automation/types.d.ts +18 -0
  24. package/types/components/AutomationBage/index.d.ts +2 -0
  25. package/types/components/Condition/constants.d.ts +498 -0
  26. package/types/components/Condition/index.d.ts +2 -0
  27. package/types/components/CustomEdge/CustomEdge.d.ts +3 -0
  28. package/types/components/CustomNode/FieldNode.d.ts +3 -0
  29. package/types/components/CustomNode/OptionFieldNode.d.ts +3 -0
  30. package/types/components/FieldAutomationModal/index.d.ts +3 -0
  31. package/types/components/FlowPreview/index.d.ts +6 -0
  32. package/types/components/Form/Meeting.d.ts +2 -0
  33. package/types/components/Form/MoveRecordToWork.d.ts +10 -0
  34. package/types/components/Form/MultiSelectWithSearch.d.ts +3 -0
  35. package/types/components/Form/Notification.d.ts +2 -0
  36. package/types/components/Form/NotificationUser.d.ts +2 -0
  37. package/types/components/Form/OrnageSwitch.d.ts +6 -0
  38. package/types/components/Form/OwnerList.d.ts +8 -0
  39. package/types/components/Form/Task.d.ts +2 -0
  40. package/types/components/Form/WorkspaceDroopdown.d.ts +2 -0
  41. package/types/components/Form/multi-user-field.d.ts +15 -0
  42. package/types/components/Form/query.d.ts +4 -0
  43. package/types/components/MiniFlow/MiniFlowCanvas.d.ts +2 -0
  44. package/types/components/MiniFlow/index.d.ts +3 -0
  45. package/types/components/Sections/ConfigAutoSection.d.ts +3 -0
  46. package/types/components/Sections/Configuration.d.ts +9 -0
  47. package/types/components/Sections/index.d.ts +3 -0
  48. package/types/components/Sections/types.d.ts +22 -0
  49. package/types/components/WorkflowCanvas/WorkflowCanvas.d.ts +9 -0
  50. package/types/components/WorkflowCanvas/WorkflowCanvas.stories.d.ts +6 -0
  51. package/types/components/WorkflowCanvas/index.d.ts +22 -0
  52. package/types/components/WorkflowModal/FlowCanvas.d.ts +11 -0
  53. package/types/components/WorkflowModal/FlowEdgeDrawer.d.ts +3 -0
  54. package/types/components/WorkflowModal/constants.d.ts +428 -0
  55. package/types/components/WorkflowModal/index.d.ts +3 -0
  56. package/types/components/WorkflowModal/services.d.ts +25 -0
  57. package/types/components/WorkflowModal/types.d.ts +65 -0
  58. package/types/config/index.d.ts +16 -0
  59. package/types/constants/apiRoutes.d.ts +118 -0
  60. package/types/constants/common.d.ts +798 -0
  61. package/types/constants/emailApiRoutes.d.ts +18 -0
  62. package/types/constants/enum.d.ts +24 -0
  63. package/types/constants/index.d.ts +5 -0
  64. package/types/constants/regex.d.ts +45 -0
  65. package/types/constants/routes.d.ts +12 -0
  66. package/types/constants/theme.d.ts +88 -0
  67. package/types/context/AppContext.d.ts +2 -0
  68. package/types/context/AppProvider.d.ts +2 -0
  69. package/types/index.d.ts +7 -0
  70. package/types/main.d.ts +0 -0
  71. package/types/services/api/api.d.ts +20 -0
  72. package/types/services/api/api.service.d.ts +18 -0
  73. package/types/services/api/database.d.ts +9 -0
  74. package/types/services/aws/aws-exports.d.ts +17 -0
  75. package/types/services/aws/aws-helpers.d.ts +21 -0
  76. package/types/services/aws/aws-services.d.ts +22 -0
  77. package/types/services/common.service.d.ts +7 -0
  78. package/types/services/graphql-client.d.ts +9 -0
  79. package/types/services/helper/service.d.ts +1 -0
  80. package/types/services/lodash.service.d.ts +30 -0
  81. package/types/stories/Button.d.ts +15 -0
  82. package/types/stories/Button.stories.d.ts +23 -0
  83. package/types/stories/Header.d.ts +12 -0
  84. package/types/stories/Header.stories.d.ts +18 -0
  85. package/types/stories/Page.d.ts +3 -0
  86. package/types/stories/Page.stories.d.ts +12 -0
  87. package/types/types/common.d.ts +9 -0
  88. package/types/utils/errorMessage.d.ts +38 -0
@@ -0,0 +1,18 @@
1
+ export declare const emailApiRoutes: {
2
+ listEmails: string;
3
+ emailCounts: string;
4
+ markAsRead: string;
5
+ sendMail: string;
6
+ createDraft: string;
7
+ getMainThread: string;
8
+ moveToTrash: string;
9
+ moveToInbox: string;
10
+ moveAllToTrash: string;
11
+ deleteAllForever: string;
12
+ deleteForever: string;
13
+ cancelSchedule: string;
14
+ reschedule: string;
15
+ deleteAttachment: string;
16
+ uploadAttachment: string;
17
+ getConnectedEmailsHistory: string;
18
+ };
@@ -0,0 +1,24 @@
1
+ export declare const ListPageView: {
2
+ readonly Dashboard: "Dashboard Page";
3
+ readonly Activities: "Activities Page";
4
+ readonly Report: "Reports Page";
5
+ readonly Contacts: "Contacts Page";
6
+ readonly Companies: "Companies Page";
7
+ readonly Deals: "Deals Page";
8
+ };
9
+ export type ListPageView = (typeof ListPageView)[keyof typeof ListPageView];
10
+ export declare const AutomationActionType: {
11
+ readonly SEND_EMAIL: "send_email";
12
+ readonly NOTIFY: "notify";
13
+ readonly UPDATE_FIELD: "update_field";
14
+ readonly MOVE_RECORD: "move_record";
15
+ readonly COPY_RECORD_TO_OTHER_WORKSPACE: "copy_record_to_other_workspace";
16
+ readonly meeting: "meeting";
17
+ readonly task: "task";
18
+ };
19
+ export type AutomationActionType = (typeof AutomationActionType)[keyof typeof AutomationActionType];
20
+ export declare const SelectIdTypes: {
21
+ Config: string;
22
+ Auto: string;
23
+ };
24
+ export type SelectIdTypes = (typeof SelectIdTypes)[keyof typeof SelectIdTypes];
@@ -0,0 +1,5 @@
1
+ export * from './enum';
2
+ export * from './regex';
3
+ export * from './routes';
4
+ export * from './common';
5
+ export * from './apiRoutes';
@@ -0,0 +1,45 @@
1
+ export declare const RegexPattern: {
2
+ workspace: RegExp;
3
+ lowerCase: RegExp;
4
+ upperCase: RegExp;
5
+ number: RegExp;
6
+ onlyNumbers: RegExp;
7
+ specialChar: RegExp;
8
+ numberAndSpecialChar: RegExp;
9
+ upperAndLowerCase: RegExp;
10
+ passwordStrength: RegExp;
11
+ nameRegexPattern: RegExp;
12
+ minMaxCharacters: RegExp;
13
+ roleName: RegExp;
14
+ roleNameMinMax: RegExp;
15
+ groupNameMinMax: RegExp;
16
+ filterNameMinMax: RegExp;
17
+ email: RegExp;
18
+ checkNumbers: RegExp;
19
+ numbersWithPercentage: RegExp;
20
+ urlChecker: RegExp;
21
+ internalNameRegex: RegExp;
22
+ stageName: RegExp;
23
+ titleMinMax: RegExp;
24
+ descriptionMinMax: RegExp;
25
+ isoDatePatternRegex: RegExp;
26
+ fileNamePattern: RegExp;
27
+ startWithAlphabet: RegExp;
28
+ numberOnly: RegExp;
29
+ alphaNumeric: RegExp;
30
+ removeHtmlTags: RegExp;
31
+ websiteRegex: RegExp;
32
+ emailValidation: RegExp;
33
+ phoneNumberRegex: RegExp;
34
+ currencyFormat: RegExp;
35
+ currencyFormatDecimal: RegExp;
36
+ numberWithSpecialCharacters: RegExp;
37
+ phoneNumberValidation: RegExp;
38
+ numberFormatFractional: RegExp;
39
+ numberFormatPercentage: RegExp;
40
+ htmlTagRemove: RegExp;
41
+ spanRemove: RegExp;
42
+ singleQuoteregex: RegExp;
43
+ alphabetsOnly: RegExp;
44
+ alphanumericSpaceRegex: RegExp;
45
+ };
@@ -0,0 +1,12 @@
1
+ export declare const Routes: {
2
+ dashBoard: string;
3
+ report: string;
4
+ chooseTemplate: string;
5
+ createTemplate: string;
6
+ objectTypeRoute: string;
7
+ settingsRoute: string;
8
+ settingsCustomiseRoute: string;
9
+ };
10
+ export declare const AuthRoutes: {
11
+ login: string;
12
+ };
@@ -0,0 +1,88 @@
1
+ declare const theme: {
2
+ 'primary-color': string;
3
+ 'secondary-color': string;
4
+ white: string;
5
+ black: string;
6
+ 'black-06': string;
7
+ 'text-grey-primary': string;
8
+ 'text-grey-secondary': string;
9
+ 'text-grey-hint': string;
10
+ 'grey-secondary': string;
11
+ 'orange-darken1': string;
12
+ 'orange-darken2': string;
13
+ 'orange-darken3': string;
14
+ 'orange-lighten1': string;
15
+ 'orange-lighten2': string;
16
+ 'orange-lighten3': string;
17
+ 'orange-lighten4': string;
18
+ blue: string;
19
+ 'blue-darken1': string;
20
+ 'blue-darken2': string;
21
+ 'blue-darken3': string;
22
+ 'blue-darken4': string;
23
+ 'blue-darken5': string;
24
+ 'blue-darken6': string;
25
+ 'blue-darken7': string;
26
+ 'blue-darken8': string;
27
+ 'blue-darken9': string;
28
+ 'blue-darken10': string;
29
+ 'blue-darken11': string;
30
+ 'blue-lighten1': string;
31
+ 'blue-lighten2': string;
32
+ 'blue-lighten3': string;
33
+ 'blue-lighten4': string;
34
+ 'blue-lighten5': string;
35
+ 'blue-lighten6': string;
36
+ 'blue-lighten7': string;
37
+ 'blue-lighten8': string;
38
+ 'blue-lighten9': string;
39
+ 'grey-darken1': string;
40
+ 'grey-darken2': string;
41
+ 'grey-darken3': string;
42
+ 'grey-darken4': string;
43
+ 'grey-darken5': string;
44
+ 'grey-lighten1': string;
45
+ 'grey-lighten2': string;
46
+ 'grey-lighten3': string;
47
+ 'grey-lighten4': string;
48
+ red: string;
49
+ 'red-darken1': string;
50
+ 'red-darken2': string;
51
+ 'red-lighten1': string;
52
+ 'red-lighten2': string;
53
+ 'red-lighten3': string;
54
+ 'red-lighten4': string;
55
+ 'red-lighten5': string;
56
+ 'red-lighten6': string;
57
+ green: string;
58
+ 'green-darken1': string;
59
+ 'green-lighten1': string;
60
+ 'green-lighten2': string;
61
+ 'green-lighten3': string;
62
+ 'green-lighten4': string;
63
+ yellow: string;
64
+ 'yellow-lighten1': string;
65
+ 'yellow-lighten2': string;
66
+ border: string;
67
+ 'border-1': string;
68
+ 'light-brown': string;
69
+ 'white-1': string;
70
+ 'cancel-border': string;
71
+ 'popper-border': string;
72
+ 'light-brown1': string;
73
+ 'brown-dark1': string;
74
+ 'error-lighten1': string;
75
+ 'error-dark1': string;
76
+ 'success-green': string;
77
+ 'success-border': string;
78
+ 'success-green-lighten1': string;
79
+ 'new-red-lighten1': string;
80
+ 'new-red-lighten2': string;
81
+ disabled: string;
82
+ 'success-disabled': string;
83
+ 'horizontal-line': string;
84
+ avatarColor: string;
85
+ 'blue-lighten10': string;
86
+ 'close-icon': string;
87
+ };
88
+ export default theme;
@@ -0,0 +1,2 @@
1
+ declare const AppContext: import("react").Context<any>;
2
+ export default AppContext;
@@ -0,0 +1,2 @@
1
+ declare const AppProvider: ({ children, col, selectFieldId, validateUser, workspaceId, exampleData, acceptedUser, datasetId, }: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default AppProvider;
@@ -0,0 +1,7 @@
1
+ import "@style/global.scss";
2
+ import "reactflow/dist/style.css";
3
+ export type { ReactFlowModalType, MiniFlowType, FlowPreviewProps, } from "./components/WorkflowModal/types";
4
+ export { default as ReactFlowModal } from "./components/WorkflowModal";
5
+ export { default as FieldAutomationModal } from "./components/FieldAutomationModal";
6
+ export { default as MiniFlow } from "./components/MiniFlow/index";
7
+ export { default as FlowPreview } from "./components/FlowPreview/index";
File without changes
@@ -0,0 +1,20 @@
1
+ export declare const apiClient: import("axios").AxiosInstance;
2
+ export declare const createworkflow: (payload: any) => Promise<any>;
3
+ export declare const workflowActive: (payload: any) => Promise<any>;
4
+ export declare const createAutomation: (payload: any) => Promise<any>;
5
+ export declare const updateAutomationActions: (payload: any) => Promise<any>;
6
+ export declare const getAutomationDetails: (id: string, workspaceId: string) => Promise<any>;
7
+ export declare const activitToggleAutomation: ({ id, isActive, workspaceId, }: {
8
+ id: string;
9
+ isActive: boolean;
10
+ workspaceId: string;
11
+ }) => Promise<any>;
12
+ export declare const deleteAutomation: ({ id, workspaceId, selectFieldId, }: {
13
+ id: string;
14
+ workspaceId: string;
15
+ selectFieldId: string;
16
+ }) => Promise<any>;
17
+ export declare const getWorkFlowByFieldId: ({ fieldId, workspaceId, }: {
18
+ fieldId: string;
19
+ workspaceId: string;
20
+ }) => Promise<any>;
@@ -0,0 +1,18 @@
1
+ export declare const getCall: any;
2
+ export declare const notificaitonGetCall: any;
3
+ export declare const notificaitonPostCall: any;
4
+ export declare const notificaitonPutCall: any;
5
+ export declare const notificationDeleteCall: any;
6
+ export declare const postCall: any;
7
+ export declare const putCall: any;
8
+ export declare const patchCall: any;
9
+ export declare const deleteCall: any;
10
+ export declare const clientApiPostCall: any;
11
+ export declare const clientApiGetCall: any;
12
+ export declare const clientApiPutCall: any;
13
+ export declare const clientApiPatchCall: any;
14
+ export declare const clientApiDeleteCall: any;
15
+ export declare const getAuthHeaders: () => {
16
+ "x-tenant-id": string;
17
+ authorization: string;
18
+ };
@@ -0,0 +1,9 @@
1
+ export interface ConnectionPayload {
2
+ host: string;
3
+ user: string;
4
+ password: string;
5
+ database?: string;
6
+ port: string;
7
+ }
8
+ export declare const connectToDatabase: (payload: ConnectionPayload) => Promise<any>;
9
+ export declare const disconnectToDatabase: () => Promise<any>;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * AWS Amplify Configuration for Authentication
3
+ *
4
+ * This module configures AWS Amplify for authentication using Amazon Cognito.
5
+ * It specifies the user pool settings required for authentication.
6
+ */
7
+ export interface AwsAuthConfig {
8
+ userPoolId: string;
9
+ userPoolClientId: string;
10
+ userPoolEndpoint: string;
11
+ }
12
+ declare const awsConfig: {
13
+ Auth: {
14
+ Cognito: AwsAuthConfig;
15
+ };
16
+ };
17
+ export default awsConfig;
@@ -0,0 +1,21 @@
1
+ import { type ResetPasswordOutput, type UpdatePasswordInput } from 'aws-amplify/auth';
2
+ /**
3
+ * Function to update the user password.
4
+ * @param {UpdatePasswordInput} oldPassword - The old password of the user.
5
+ * @param {UpdatePasswordInput} newPassword - The new password of the user.
6
+ * @returns {Promise<void>} A Promise representing the completion of the password update operation.
7
+ */
8
+ export declare const handleUpdatePassword: ({ oldPassword, newPassword }: UpdatePasswordInput) => Promise<"success" | "error">;
9
+ /**
10
+ * Function to handle next steps after resetting the password.
11
+ * @param {ResetPasswordOutput} output - The output object from resetting the password.
12
+ */
13
+ export declare function handleResetPasswordNextSteps(output: ResetPasswordOutput): void;
14
+ /**
15
+ * Function to resend OTP (One Time Password) for resetting the password.
16
+ * @param {string} username - The username or email of the user for whom OTP is to be resent.
17
+ * @returns {Promise<void>} A Promise representing the completion of the OTP resend operation.
18
+ */
19
+ export declare const resendOtp: (username: string) => Promise<void>;
20
+ export declare function handleSignOut(): Promise<void>;
21
+ export declare function handleSignOutAllDevices(): Promise<void>;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Authentication Functions
3
+ *
4
+ * This module exports functions for user authentication using AWS Amplify.
5
+ * It configures Amplify with the provided AWS configuration and exports functions
6
+ * for signing in, signing up, resetting passwords, confirming password resets,
7
+ * resending sign-up codes, and fetching authentication sessions.
8
+ */
9
+ import { signIn, signUp, resetPassword, confirmResetPassword, resendSignUpCode, confirmSignUp, updatePassword, signOut } from "aws-amplify/auth";
10
+ declare const _default: {
11
+ signIn: typeof signIn;
12
+ autoSignIn: import("@aws-amplify/auth/dist/esm/types/models").AutoSignInCallback;
13
+ signUp: typeof signUp;
14
+ fetchAuthSession: (options?: import("aws-amplify/auth").FetchAuthSessionOptions) => Promise<import("aws-amplify/auth").AuthSession>;
15
+ resetPassword: typeof resetPassword;
16
+ confirmResetPassword: typeof confirmResetPassword;
17
+ resendSignUpCode: typeof resendSignUpCode;
18
+ confirmSignUp: typeof confirmSignUp;
19
+ updatePassword: typeof updatePassword;
20
+ signOut: typeof signOut;
21
+ };
22
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export declare const getCookie: (name: string) => [string, string];
2
+ export declare const deleteCookies: () => void;
3
+ export declare const mainNavigation: (baseUrl: string, path: string) => void;
4
+ export declare const setCookie: (name: string, cvalue: string, exdays: number) => void;
5
+ export declare const isDateTodayOrFuture: (dateString: string) => boolean;
6
+ export declare const getDateForTask: (dateStr: string) => string;
7
+ export declare function timeAgoOrDate(inputDate: string | Date): string;
@@ -0,0 +1,9 @@
1
+ import { ApolloClient, ApolloLink } from "@apollo/client";
2
+ export declare const fetchNetworkOnly = "network-only";
3
+ /**
4
+ * @function setHeaders
5
+ * To set authorization with bearer token in api header
6
+ */
7
+ export declare const setHeaders: ApolloLink;
8
+ export declare const clientApollo: ApolloClient<import("@apollo/client").NormalizedCacheObject>;
9
+ export declare const serverApollo: ApolloClient<import("@apollo/client").NormalizedCacheObject>;
@@ -0,0 +1 @@
1
+ export declare const getGreeting: () => "Good Morning" | "Good Afternoon" | "Good Evening" | "Good Night";
@@ -0,0 +1,30 @@
1
+ export type ObjectKeyGeneric<T = any> = {
2
+ [key: string]: T;
3
+ };
4
+ type Cloneable = Record<string, any> | Array<any> | any;
5
+ type AnyFunction = (...args: any[]) => any;
6
+ export declare const CustomStartCase: (data: string) => string;
7
+ export declare const CustomUpperFirst: (data: string) => string;
8
+ export declare const CustomSnakeCase: (data: string) => string;
9
+ export declare const CustomGet: (obj: any, path: string, defaultValue?: any) => any;
10
+ export declare const CustomCloneDeep: (data: Cloneable) => any;
11
+ export declare const CustomPick: (obj: {
12
+ [x: string]: any;
13
+ }, keys: string | any[]) => any;
14
+ export declare const CustomStartWord: (data: string) => string;
15
+ export declare const CustomCamelCase: (str: string) => string;
16
+ export declare const CustomIsEmpty: (value: any) => boolean;
17
+ export declare const CustomIsString: (value: Cloneable) => value is string | String;
18
+ export declare const CustomIsEqual: (value1: Cloneable, value2: Cloneable) => boolean;
19
+ export declare const CustomIncludes: (collection: Cloneable, value: Cloneable) => boolean;
20
+ export declare const CustomTruncate: (str: Cloneable, maxLength: number, suffix?: string) => any;
21
+ export declare const CustomDebounce: <T extends AnyFunction>(func: T, delay: number) => (...args: Parameters<T>) => void;
22
+ export declare function CustomFind<T>(collection: T[], predicate: (item: T) => boolean): T | undefined;
23
+ export declare const CustomEndsWith: (str: string, suffix: string) => boolean;
24
+ export declare const CustomIsNil: (value: Cloneable) => boolean;
25
+ export declare const CustomOmit: (obj: ObjectKeyGeneric, keysToOmit: Array<string>) => ObjectKeyGeneric<any>;
26
+ export declare const hexToRgba: (hex: string, opacity: number) => string;
27
+ export declare const rgbToRgba: (rgb: string, opacity: number) => string;
28
+ export declare const getBackgroundColor: (bgColor: string) => string;
29
+ export declare const getBorderColor: (borderColor: string) => string;
30
+ export {};
@@ -0,0 +1,15 @@
1
+ import './button.css';
2
+ export interface ButtonProps {
3
+ /** Is this the principal call to action on the page? */
4
+ primary?: boolean;
5
+ /** What background color to use */
6
+ backgroundColor?: string;
7
+ /** How large should the button be? */
8
+ size?: 'small' | 'medium' | 'large';
9
+ /** Button contents */
10
+ label: string;
11
+ /** Optional click handler */
12
+ onClick?: () => void;
13
+ }
14
+ /** Primary UI component for user interaction */
15
+ export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ primary, size, backgroundColor, label, ...props }: import("./Button").ButtonProps) => import("react/jsx-runtime").JSX.Element;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {
10
+ backgroundColor: {
11
+ control: "color";
12
+ };
13
+ };
14
+ args: {
15
+ onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
16
+ };
17
+ };
18
+ export default meta;
19
+ type Story = StoryObj<typeof meta>;
20
+ export declare const Primary: Story;
21
+ export declare const Secondary: Story;
22
+ export declare const Large: Story;
23
+ export declare const Small: Story;
@@ -0,0 +1,12 @@
1
+ import './header.css';
2
+ type User = {
3
+ name: string;
4
+ };
5
+ export interface HeaderProps {
6
+ user?: User;
7
+ onLogin?: () => void;
8
+ onLogout?: () => void;
9
+ onCreateAccount?: () => void;
10
+ }
11
+ export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,18 @@
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ user, onLogin, onLogout, onCreateAccount }: import("./Header").HeaderProps) => import("react/jsx-runtime").JSX.Element;
5
+ tags: string[];
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ args: {
10
+ onLogin: import("@vitest/spy").Mock<(...args: any[]) => any>;
11
+ onLogout: import("@vitest/spy").Mock<(...args: any[]) => any>;
12
+ onCreateAccount: import("@vitest/spy").Mock<(...args: any[]) => any>;
13
+ };
14
+ };
15
+ export default meta;
16
+ type Story = StoryObj<typeof meta>;
17
+ export declare const LoggedIn: Story;
18
+ export declare const LoggedOut: Story;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import './page.css';
3
+ export declare const Page: React.FC;
@@ -0,0 +1,12 @@
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("react").FC<{}>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const LoggedOut: Story;
12
+ export declare const LoggedIn: Story;
@@ -0,0 +1,9 @@
1
+ export interface ObjectKeyString {
2
+ [key: string]: string;
3
+ }
4
+ export interface ObjectKeyAny {
5
+ [key: string]: any;
6
+ }
7
+ export type ObjectKeyGeneric<T = any> = {
8
+ [key: string]: T;
9
+ };
@@ -0,0 +1,38 @@
1
+ export declare const ErrorMessage: {
2
+ alreadySignedIn: string;
3
+ jwtExpired: string;
4
+ notLogin: string;
5
+ notValidJwt: string;
6
+ emailRequired: string;
7
+ emailInvalid: string;
8
+ passwordRequired: string;
9
+ passwordInvalid: string;
10
+ invalidNewPassword: string;
11
+ invalidConfirmNewPassword: string;
12
+ oldPasswordRequired: string;
13
+ newPasswordRequired: string;
14
+ confirmNewPasswordRequired: string;
15
+ phoneNumberRequired: string;
16
+ phoneNumberInvalid: string;
17
+ verificationCode: string;
18
+ verificationCodeInvalid: string;
19
+ firstNameRequired: string;
20
+ lastNameRequired: string;
21
+ orgRequired: string;
22
+ boardRequired: string;
23
+ dateRangeRequired: string;
24
+ boardDescriptionRequired: string;
25
+ maxCharactersExceeded: string;
26
+ invalidURL: string;
27
+ validNumber: string;
28
+ validPercentage: string;
29
+ validCurrency: string;
30
+ fieldNameRequired: string;
31
+ dateFormatRequired: string;
32
+ timeFormatRequired: string;
33
+ weekStartRequired: string;
34
+ teamNameRequired: string;
35
+ boardNameRequired: string;
36
+ emailDuplicate: string;
37
+ unableToInvite: string;
38
+ };