@hiver/connector-agent 1.3.4-beta.1 → 1.4.0-beta.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.
- package/features/connector-cards/components/card-list/index.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/style.d.ts +0 -1
- package/features/connector-cards/components/card-list/style.d.ts.map +1 -1
- package/features/connector-cards/constants/card-content.d.ts +0 -2
- package/features/connector-cards/constants/card-content.d.ts.map +1 -1
- package/features/connector-cards/store/hooks.d.ts +7 -0
- package/features/connector-cards/store/hooks.d.ts.map +1 -0
- package/features/connector-cards/store/index.d.ts +25 -0
- package/features/connector-cards/store/index.d.ts.map +1 -0
- package/features/connector-cards/store/selectors.d.ts +1 -1
- package/features/connector-cards/store/selectors.d.ts.map +1 -1
- package/index.es.js +17296 -26795
- package/index.umd.js +165 -315
- package/package.json +1 -1
- package/testing/mocks/handlers.d.ts.map +1 -1
- package/testing/test-utils.d.ts +1 -1
- package/testing/test-utils.d.ts.map +1 -1
- package/components/ui/layover/index.d.ts +0 -9
- package/components/ui/layover/index.d.ts.map +0 -1
- package/components/ui/layover/styles.d.ts +0 -6
- package/components/ui/layover/styles.d.ts.map +0 -1
- package/constants/app-constants.d.ts +0 -4
- package/constants/app-constants.d.ts.map +0 -1
- package/features/write-form/api/index.d.ts +0 -5
- package/features/write-form/api/index.d.ts.map +0 -1
- package/features/write-form/components/write-form/index.d.ts +0 -3
- package/features/write-form/components/write-form/index.d.ts.map +0 -1
- package/features/write-form/components/write-form/reducer.d.ts +0 -12
- package/features/write-form/components/write-form/reducer.d.ts.map +0 -1
- package/features/write-form/components/write-form/styles.d.ts +0 -2
- package/features/write-form/components/write-form/styles.d.ts.map +0 -1
- package/features/write-form/constants/api.d.ts +0 -4
- package/features/write-form/constants/api.d.ts.map +0 -1
- package/features/write-form/constants/index.d.ts +0 -11
- package/features/write-form/constants/index.d.ts.map +0 -1
- package/features/write-form/store/initial-state.d.ts +0 -30
- package/features/write-form/store/initial-state.d.ts.map +0 -1
- package/features/write-form/store/selectors.d.ts +0 -11
- package/features/write-form/store/selectors.d.ts.map +0 -1
- package/features/write-form/store/slice.d.ts +0 -63
- package/features/write-form/store/slice.d.ts.map +0 -1
- package/features/write-form/types/form.d.ts +0 -80
- package/features/write-form/types/form.d.ts.map +0 -1
- package/features/write-form/utils/index.d.ts +0 -24
- package/features/write-form/utils/index.d.ts.map +0 -1
- package/store/hooks.d.ts +0 -9
- package/store/hooks.d.ts.map +0 -1
- package/store/index.d.ts +0 -31
- package/store/index.d.ts.map +0 -1
- package/testing/mocks/handlers/write-capability.d.ts +0 -2
- package/testing/mocks/handlers/write-capability.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/testing/mocks/handlers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/testing/mocks/handlers.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,6BAA+C,CAAC"}
|
package/testing/test-utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState, AppStore } from '../store';
|
|
1
|
+
import { RootState, AppStore } from '../features/connector-cards/store';
|
|
2
2
|
import { render as rtlRender, RenderOptions } from '@testing-library/react';
|
|
3
3
|
import { default as userEvent } from '@testing-library/user-event';
|
|
4
4
|
interface ExtendedRenderOptions extends Omit<RenderOptions, 'queries'> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/testing/test-utils.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/testing/test-utils.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,MAAM,IAAI,SAAS,EAAqC,MAAM,wBAAwB,CAAC;AAChG,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG5D,UAAU,qBAAsB,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IACpE,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,qBAG/B,CAAC;AAEL,eAAO,MAAM,SAAS,OAChB,KAAK,CAAC,YAAY,gDACyD,qBAAqB;;;uBADnG,CAAC,yJAGY,CAAC,6BAEX,CAAF;yBAE2B,SAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaJ,CAAC;AAGF,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface LayoverProps {
|
|
2
|
-
children: React.ReactNode;
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
6
|
-
}
|
|
7
|
-
declare const Layover: ({ children, isOpen, onClose, containerRef }: LayoverProps) => false | import('react').ReactPortal | null;
|
|
8
|
-
export default Layover;
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/layover/index.tsx"],"names":[],"mappings":"AAOA,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CAC/C;AACD,QAAA,MAAM,OAAO,gDAAiD,YAAY,+CAmCzE,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { StyledComponent } from '@emotion/styled';
|
|
2
|
-
import { PaperProps, ButtonBaseProps, BoxProps } from '@hiver/hiver-ui-kit';
|
|
3
|
-
export declare const LayoverWrapper: StyledComponent<PaperProps>;
|
|
4
|
-
export declare const BackButton: StyledComponent<ButtonBaseProps>;
|
|
5
|
-
export declare const ChildrenWrapper: StyledComponent<BoxProps>;
|
|
6
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/layover/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEjF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,UAAU,CAWtD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,eAAe,CAOvD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,QAAQ,CAErD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-constants.d.ts","sourceRoot":"","sources":["../../src/constants/app-constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAGrD,eAAO,MAAM,kBAAkB,iBAAiB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const fetchObjectListData: () => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
2
|
-
export declare const fetchFieldData: (data: {
|
|
3
|
-
[key: string]: string | number;
|
|
4
|
-
}) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/api/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB,oEAK/B,CAAC;AAEF,eAAO,MAAM,cAAc,SAAU;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,iEAMtE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/write-form/index.tsx"],"names":[],"mappings":"AAgBA,QAAA,MAAM,SAAS,+CAmKd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { WriteFormState, FormActionValue } from '../../types/form';
|
|
2
|
-
export declare const intialState: WriteFormState;
|
|
3
|
-
export declare const ACTIONS: {
|
|
4
|
-
SET_FIELD_VALUE: string;
|
|
5
|
-
CLEAR_ERROR: string;
|
|
6
|
-
SET_FIELD_ERROR: string;
|
|
7
|
-
SET_FIELDS: string;
|
|
8
|
-
CLEAR_FIELDS: string;
|
|
9
|
-
RESET_STATE: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const reducer: (state: WriteFormState, action: FormActionValue) => WriteFormState;
|
|
12
|
-
//# sourceMappingURL=reducer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/write-form/reducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExE,eAAO,MAAM,WAAW,EAAE,cAGzB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,cAAc,UAAU,eAAe,KAAG,cAyDxE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/write-form/styles.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/constants/api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,YAAY,CAAC;AAClC,eAAO,MAAM,qBAAqB,EAAE,MAAiC,CAAC;AACtE,eAAO,MAAM,gBAAgB,EAAE,MAAiD,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const INVALID_URL_MSG = "Please enter a valid URL";
|
|
2
|
-
export declare const URL_MUST_START_WITH_HTTPS = "URL must start with https://";
|
|
3
|
-
export declare const URL_SHOULD_NOT_END_WITH_SLASH = "URL should not end with a slash";
|
|
4
|
-
export declare const INVALID_EMAIL = "Invalid email address";
|
|
5
|
-
export declare const STRING_EMAIL = "Email must be a string";
|
|
6
|
-
export declare const INVALID_DATE_MSG = "Invalid date";
|
|
7
|
-
export declare const PAST_DISABLED_MSG = "Date cannot be in the past";
|
|
8
|
-
export declare const FUTURE_DISABLED_MSG = "Date cannot be in the future";
|
|
9
|
-
export declare const INVALID_NUMBER = "Invalid number";
|
|
10
|
-
export declare const INVALID_TEXT = "Invalid text";
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,6BAA6B,oCAAoC,CAAC;AAE/E,eAAO,MAAM,aAAa,0BAA0B,CAAC;AACrD,eAAO,MAAM,YAAY,2BAA2B,CAAC;AACrD,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,iBAAiB,+BAA+B,CAAC;AAC9D,eAAO,MAAM,mBAAmB,iCAAiC,CAAC;AAClE,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,YAAY,iBAAiB,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ObjectItem, WriteFormFields } from '../types/form';
|
|
2
|
-
import { ApiStatus } from '../../../types/api';
|
|
3
|
-
import { OptionType } from '@connector/ui';
|
|
4
|
-
interface OptionsData {
|
|
5
|
-
options: OptionType[];
|
|
6
|
-
hasMore: boolean;
|
|
7
|
-
currentPage: number;
|
|
8
|
-
}
|
|
9
|
-
export interface WriteCapabilityState {
|
|
10
|
-
objectList: OptionType[];
|
|
11
|
-
objectDict: {
|
|
12
|
-
[key: string]: ObjectItem;
|
|
13
|
-
} | null;
|
|
14
|
-
formFields: {
|
|
15
|
-
[key: string]: WriteFormFields[];
|
|
16
|
-
} | null;
|
|
17
|
-
objectListApiStatus: ApiStatus;
|
|
18
|
-
optionsMap: {
|
|
19
|
-
[key: string]: OptionsData;
|
|
20
|
-
} | null;
|
|
21
|
-
dependentFieldsMap: {
|
|
22
|
-
[key: string]: {
|
|
23
|
-
[key: string]: string[];
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
dropdownOptionsApis: ApiStatus;
|
|
27
|
-
}
|
|
28
|
-
export declare const initialState: WriteCapabilityState;
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=initial-state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/store/initial-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,UAAU,WAAW;IACnB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,GAAG,IAAI,CAAC;IACjD,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,EAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IACxD,mBAAmB,EAAE,SAAS,CAAC;IAC/B,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;KAAE,GAAG,IAAI,CAAC;IAClD,kBAAkB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;SAAE,CAAA;KAAE,CAAC;IACnE,mBAAmB,EAAE,SAAS,CAAC;CAChC;AAGD,eAAO,MAAM,YAAY,EAAE,oBAQ1B,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../../../store';
|
|
2
|
-
export declare const selectObjectList: (state: RootState) => import('@connector/ui').OptionType[];
|
|
3
|
-
export declare const selectFormFields: (state: RootState) => {
|
|
4
|
-
[key: string]: import('../types/form').WriteFormFields[];
|
|
5
|
-
} | null;
|
|
6
|
-
export declare const selectDependentFieldsMap: (state: RootState) => {
|
|
7
|
-
[key: string]: {
|
|
8
|
-
[key: string]: string[];
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/store/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,gBAAgB,UAAW,SAAS,yCAA2B,CAAC;AAC7E,eAAO,MAAM,gBAAgB,UAAW,SAAS;;QAA2B,CAAC;AAC7E,eAAO,MAAM,wBAAwB,UAAW,SAAS;;;;CAAmC,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ObjectItem, WriteFormFields } from '../types/form';
|
|
2
|
-
import { OptionType } from '@connector/ui';
|
|
3
|
-
export declare const writeCapabilitySlice: import('@reduxjs/toolkit').Slice<import('./initial-state').WriteCapabilityState, {
|
|
4
|
-
resetState: () => import('./initial-state').WriteCapabilityState;
|
|
5
|
-
}, "writeCapability", "writeCapability", import('@reduxjs/toolkit').SliceSelectors<import('./initial-state').WriteCapabilityState>>;
|
|
6
|
-
declare const fetchObjectList: import('@reduxjs/toolkit').AsyncThunk<{
|
|
7
|
-
objectList: never[];
|
|
8
|
-
formFields: null;
|
|
9
|
-
objectDict: null;
|
|
10
|
-
dependentFieldsMap: {};
|
|
11
|
-
} | {
|
|
12
|
-
objectList: OptionType[];
|
|
13
|
-
formFields: {
|
|
14
|
-
[key: string]: WriteFormFields[];
|
|
15
|
-
};
|
|
16
|
-
objectDict: {
|
|
17
|
-
[key: string]: ObjectItem;
|
|
18
|
-
};
|
|
19
|
-
dependentFieldsMap: {
|
|
20
|
-
[key: string]: {
|
|
21
|
-
[key: string]: string[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
}, void, {
|
|
25
|
-
state?: unknown;
|
|
26
|
-
dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
|
|
27
|
-
extra?: unknown;
|
|
28
|
-
rejectValue?: unknown;
|
|
29
|
-
serializedErrorType?: unknown;
|
|
30
|
-
pendingMeta?: unknown;
|
|
31
|
-
fulfilledMeta?: unknown;
|
|
32
|
-
rejectedMeta?: unknown;
|
|
33
|
-
}>;
|
|
34
|
-
declare const fetchDropDownOptions: import('@reduxjs/toolkit').AsyncThunk<{
|
|
35
|
-
optionsList: any[];
|
|
36
|
-
fieldName: string;
|
|
37
|
-
formId: string;
|
|
38
|
-
currentPage: number;
|
|
39
|
-
hasMore: any;
|
|
40
|
-
key: string;
|
|
41
|
-
}, {
|
|
42
|
-
fieldName: string;
|
|
43
|
-
formId: string;
|
|
44
|
-
callback?: (options: OptionType[]) => void;
|
|
45
|
-
args?: {
|
|
46
|
-
[key: string]: string | number | boolean;
|
|
47
|
-
};
|
|
48
|
-
isScrollToBottomEvent?: boolean;
|
|
49
|
-
}, {
|
|
50
|
-
state?: unknown;
|
|
51
|
-
dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
|
|
52
|
-
extra?: unknown;
|
|
53
|
-
rejectValue?: unknown;
|
|
54
|
-
serializedErrorType?: unknown;
|
|
55
|
-
pendingMeta?: unknown;
|
|
56
|
-
fulfilledMeta?: unknown;
|
|
57
|
-
rejectedMeta?: unknown;
|
|
58
|
-
}>;
|
|
59
|
-
declare const resetState: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"writeCapability/resetState">;
|
|
60
|
-
declare const _default: import('redux').Reducer<import('./initial-state').WriteCapabilityState>;
|
|
61
|
-
export default _default;
|
|
62
|
-
export { fetchObjectList, resetState, fetchDropDownOptions };
|
|
63
|
-
//# sourceMappingURL=slice.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/store/slice.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAsB,eAAe,EAAE,MAAM,eAAe,CAAC;AAErF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAO,MAAM,oBAAoB;;mIAyC/B,CAAC;AAEH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoHnB,CAAC;AAEH,QAAA,MAAM,oBAAoB;;;;;;;;eAIT,MAAM;YACT,MAAM;eACH,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI;WACnC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE;4BAC3B,OAAO;;;;;;;;;;EA2EpC,CAAC;AAEF,QAAA,MAAQ,UAAU,sFAAiC,CAAC;;AACpD,wBAA4C;AAC5C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { FIELD_TYPES, OptionType } from '@connector/ui';
|
|
2
|
-
export type FieldValue = string | number | OptionType | boolean | Date;
|
|
3
|
-
export type WriteFieldKeys = string;
|
|
4
|
-
export interface WriteFormState {
|
|
5
|
-
values: Partial<Record<WriteFieldKeys, FieldValue | undefined>>;
|
|
6
|
-
errors: Partial<Record<WriteFieldKeys, string | boolean>>;
|
|
7
|
-
}
|
|
8
|
-
export interface AllValues {
|
|
9
|
-
values: Partial<Record<WriteFieldKeys, FieldValue>>;
|
|
10
|
-
}
|
|
11
|
-
export interface Value {
|
|
12
|
-
value?: FieldValue | boolean;
|
|
13
|
-
name: string;
|
|
14
|
-
}
|
|
15
|
-
export interface FormActionValue {
|
|
16
|
-
type: string;
|
|
17
|
-
payload?: AllValues | Value;
|
|
18
|
-
}
|
|
19
|
-
export type ValidationObject = {
|
|
20
|
-
msg: string;
|
|
21
|
-
};
|
|
22
|
-
export interface WriteValidations {
|
|
23
|
-
isRequired?: boolean | ValidationObject;
|
|
24
|
-
isUrl?: boolean | ValidationObject;
|
|
25
|
-
isEmail?: boolean | ValidationObject;
|
|
26
|
-
disableFuture?: boolean | ValidationObject;
|
|
27
|
-
disablePast?: boolean | ValidationObject;
|
|
28
|
-
maxCharacters?: number;
|
|
29
|
-
maxRows?: number;
|
|
30
|
-
range?: {
|
|
31
|
-
min: number;
|
|
32
|
-
max: number;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export interface InterfaceDetails {
|
|
36
|
-
id: string;
|
|
37
|
-
args?: {
|
|
38
|
-
[key: string]: string;
|
|
39
|
-
};
|
|
40
|
-
limit?: number;
|
|
41
|
-
}
|
|
42
|
-
export interface FieldListResponse {
|
|
43
|
-
name: string;
|
|
44
|
-
placeholder?: string;
|
|
45
|
-
type: FIELD_TYPES | 'multi-select' | 'multiline';
|
|
46
|
-
label: string;
|
|
47
|
-
value?: string | number;
|
|
48
|
-
disabled?: boolean;
|
|
49
|
-
disablePast?: boolean;
|
|
50
|
-
disableFuture?: boolean;
|
|
51
|
-
validations?: WriteValidations;
|
|
52
|
-
defaultOptions?: boolean | OptionType[];
|
|
53
|
-
interfaceDetails?: InterfaceDetails;
|
|
54
|
-
isInfiniteScrollable?: boolean;
|
|
55
|
-
isApiSearchEnabled?: boolean;
|
|
56
|
-
min?: number;
|
|
57
|
-
max?: number;
|
|
58
|
-
multiline?: boolean;
|
|
59
|
-
maxRows?: number;
|
|
60
|
-
maxCharacters?: number;
|
|
61
|
-
rows?: number;
|
|
62
|
-
}
|
|
63
|
-
export interface WriteFormFields extends FieldListResponse {
|
|
64
|
-
type: FIELD_TYPES;
|
|
65
|
-
isMultiSelect?: boolean;
|
|
66
|
-
loadOptionsOnFocus?: boolean;
|
|
67
|
-
}
|
|
68
|
-
export interface ObjectItem extends OptionType {
|
|
69
|
-
id: string;
|
|
70
|
-
name: string;
|
|
71
|
-
interfaceDetails?: InterfaceDetails;
|
|
72
|
-
type: 'create' | 'link';
|
|
73
|
-
connectorId: string;
|
|
74
|
-
cardId: string;
|
|
75
|
-
}
|
|
76
|
-
export interface ObjectResponseItem extends Omit<ObjectItem, 'label' | 'value'> {
|
|
77
|
-
fieldList?: FieldListResponse[];
|
|
78
|
-
}
|
|
79
|
-
export type Predicates = Partial<Record<WriteFieldKeys, boolean>>;
|
|
80
|
-
//# sourceMappingURL=form.d.ts.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9B;AAED,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC;IAC7E,SAAS,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACjC;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FormValidation, IValidateConfig } from '@connector/ui';
|
|
2
|
-
import { WriteFormFields, WriteFormState } from '../types/form';
|
|
3
|
-
export declare const getAllCompletedArgs: (state: WriteFormState, args?: {
|
|
4
|
-
[key: string]: string;
|
|
5
|
-
}) => string[];
|
|
6
|
-
export declare const getFormFieldKey: (name: string, state: WriteFormState, args?: string[]) => string;
|
|
7
|
-
export declare const getArgsValueMap: (state: WriteFormState, args?: {
|
|
8
|
-
[key: string]: string;
|
|
9
|
-
}) => {
|
|
10
|
-
[key: string]: string | number | boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare const generateDropdownOptionKey: (args: {
|
|
13
|
-
[key: string]: string | number | boolean;
|
|
14
|
-
}, id: string, name: string) => string;
|
|
15
|
-
export declare const validateUrl: (msg?: string) => (url: unknown) => string | boolean;
|
|
16
|
-
export declare const validateEmail: (msg?: string) => (email: unknown) => string | boolean;
|
|
17
|
-
export declare const validateIsRequired: (msg?: string) => (value: unknown) => string | boolean;
|
|
18
|
-
export declare const validateDate: (msg?: string) => (date: unknown, appConfigs: IValidateConfig) => string | boolean;
|
|
19
|
-
export declare const validateNumber: (msg?: string) => (value: unknown, appConfigs: IValidateConfig) => string | boolean;
|
|
20
|
-
export declare const validateTextField: (msg?: string) => (value: unknown, appConfigs: IValidateConfig) => string | boolean;
|
|
21
|
-
export declare const getFormFieldsValidations: ({ formFields }: {
|
|
22
|
-
formFields: WriteFormFields[];
|
|
23
|
-
}) => FormValidation;
|
|
24
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAahE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGhE,eAAO,MAAM,mBAAmB,UAAW,cAAc,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,KAAG,MAAM,EAMnG,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,MAAM,SAAS,cAAc,SAAS,MAAM,EAAE,WAWnF,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,cAAc,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE;;CA2BtF,CAAC;AAEF,eAAO,MAAM,yBAAyB,SAC9B;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAE,MAC9C,MAAM,QACJ,MAAM,WAOb,CAAC;AAEF,eAAO,MAAM,WAAW,SACf,MAAM,WACP,OAAO,KAAG,MAAM,GAAG,OAyBxB,CAAC;AAEJ,eAAO,MAAM,aAAa,SACjB,MAAM,aACL,OAAO,KAAG,MAAM,GAAG,OAa1B,CAAC;AAEJ,eAAO,MAAM,kBAAkB,SACtB,MAAM,aACL,OAAO,KAAG,MAAM,GAAG,OAK1B,CAAC;AAEJ,eAAO,MAAM,YAAY,SAChB,MAAM,YACN,OAAO,cAAc,eAAe,KAAG,MAAM,GAAG,OAwBtD,CAAC;AAEJ,eAAO,MAAM,cAAc,SAClB,MAAM,aACL,OAAO,cAAc,eAAe,KAAG,MAAM,GAAG,OAiBvD,CAAC;AAEJ,eAAO,MAAM,iBAAiB,SACrB,MAAM,aACL,OAAO,cAAc,eAAe,KAAG,MAAM,GAAG,OAWvD,CAAC;AAEJ,eAAO,MAAM,wBAAwB,mBAAoB;IAAE,UAAU,EAAE,eAAe,EAAE,CAAA;CAAE,KAAG,cAsC5F,CAAC"}
|
package/store/hooks.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const useAppDispatch: import('react-redux').UseDispatch<import('redux-thunk').ThunkDispatch<{
|
|
2
|
-
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
3
|
-
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
4
|
-
}, undefined, import('redux').UnknownAction> & import('redux').Dispatch<import('redux').UnknownAction>>;
|
|
5
|
-
export declare const useAppSelector: import('react-redux').UseSelector<{
|
|
6
|
-
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
7
|
-
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
8
|
-
}>;
|
|
9
|
-
//# sourceMappingURL=hooks.d.ts.map
|
package/store/hooks.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/store/hooks.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;uGAAuC,CAAC;AACnE,eAAO,MAAM,cAAc;;;EAAqC,CAAC"}
|
package/store/index.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Action, ThunkAction } from '@reduxjs/toolkit';
|
|
2
|
-
export declare const rootReducer: import('redux').Reducer<{
|
|
3
|
-
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
4
|
-
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
5
|
-
}, import('redux').UnknownAction, Partial<{
|
|
6
|
-
cardList: import('../features/connector-cards/store/initial-state').IConnectorState | undefined;
|
|
7
|
-
write: import('../features/write-form/store/initial-state').WriteCapabilityState | undefined;
|
|
8
|
-
}>>;
|
|
9
|
-
export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
|
|
10
|
-
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
11
|
-
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
12
|
-
}, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
13
|
-
dispatch: import('redux-thunk').ThunkDispatch<{
|
|
14
|
-
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
15
|
-
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
16
|
-
}, undefined, import('redux').UnknownAction>;
|
|
17
|
-
}>, import('redux').StoreEnhancer]>>;
|
|
18
|
-
export declare const customStore: (preloadedState?: Partial<RootState>) => import('@reduxjs/toolkit').EnhancedStore<{
|
|
19
|
-
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
20
|
-
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
21
|
-
}, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
22
|
-
dispatch: import('redux-thunk').ThunkDispatch<{
|
|
23
|
-
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
24
|
-
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
25
|
-
}, undefined, import('redux').UnknownAction>;
|
|
26
|
-
}>, import('redux').StoreEnhancer]>>;
|
|
27
|
-
export type AppStore = typeof store;
|
|
28
|
-
export type RootState = ReturnType<AppStore['getState']>;
|
|
29
|
-
export type AppDispatch = AppStore['dispatch'];
|
|
30
|
-
export type AppThunk<ThunkReturnType = void> = ThunkAction<ThunkReturnType, RootState, unknown, Action>;
|
|
31
|
-
//# sourceMappingURL=index.d.ts.map
|
package/store/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;GAGtB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;oCAGhB,CAAC;AAEH,eAAO,MAAM,WAAW,oBAAqB,OAAO,CAAC,SAAS,CAAC;;;;;;;;oCAM9D,CAAC;AAGF,MAAM,MAAM,QAAQ,GAAG,OAAO,KAAK,CAAC;AACpC,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAE/C,MAAM,MAAM,QAAQ,CAAC,eAAe,GAAG,IAAI,IAAI,WAAW,CAAC,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"write-capability.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/write-capability.ts"],"names":[],"mappings":"AAiMA,eAAO,MAAM,QAAQ,6BAAkC,CAAC"}
|