@hiver/connector-agent 2.0.8-releaseGlobalSearch-beta.3 → 3.0.1
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/app/connector-cards.d.ts.map +1 -1
- package/components/ui/switch/index.d.ts +2 -2
- package/components/ui/switch/index.d.ts.map +1 -1
- package/constants/global-constants.d.ts +0 -2
- package/constants/global-constants.d.ts.map +1 -1
- package/constants/remote-assets.d.ts +2 -0
- package/constants/remote-assets.d.ts.map +1 -0
- package/features/connector-cards/api/index.d.ts +1 -0
- package/features/connector-cards/api/index.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/email-selection.d.ts +1 -2
- package/features/connector-cards/components/card-list/email-selection.d.ts.map +1 -1
- package/features/connector-cards/constants/api.d.ts +1 -0
- package/features/connector-cards/constants/api.d.ts.map +1 -1
- package/features/connector-cards/store/slice.d.ts +16 -1
- package/features/connector-cards/store/slice.d.ts.map +1 -1
- package/features/global-search/components/search-results/components/{no-search-results.d.ts → index.d.ts} +1 -1
- package/features/global-search/components/search-results/components/index.d.ts.map +1 -0
- package/features/global-search/components/search-results/index.d.ts +3 -5
- package/features/global-search/components/search-results/index.d.ts.map +1 -1
- package/features/global-search/components/search-results/styles.d.ts +1 -3
- package/features/global-search/components/search-results/styles.d.ts.map +1 -1
- package/features/global-search/components/search-select/components/select-option/index.d.ts +9 -0
- package/features/global-search/components/search-select/components/select-option/index.d.ts.map +1 -0
- package/features/global-search/components/search-select/components/select-option/styles.d.ts +5 -0
- package/features/global-search/components/search-select/components/select-option/styles.d.ts.map +1 -0
- package/features/global-search/components/search-select/index.d.ts +1 -4
- package/features/global-search/components/search-select/index.d.ts.map +1 -1
- package/features/global-search/components/search-select/styles.d.ts.map +1 -1
- package/features/global-search/components/search-suggestions/index.d.ts.map +1 -1
- package/features/global-search/constants/index.d.ts +0 -1
- package/features/global-search/constants/index.d.ts.map +1 -1
- package/features/global-search/types/index.d.ts +1 -11
- package/features/global-search/types/index.d.ts.map +1 -1
- package/features/toast-message/constants/toast.d.ts +0 -2
- package/features/toast-message/constants/toast.d.ts.map +1 -1
- package/features/write-form/api/index.d.ts +5 -0
- package/features/write-form/api/index.d.ts.map +1 -1
- package/features/write-form/components/card-linking/card-linking.d.ts.map +1 -1
- package/features/write-form/components/card-linking/card-preview.d.ts +2 -2
- package/features/write-form/components/card-linking/card-preview.d.ts.map +1 -1
- package/features/write-form/components/write-form/index.d.ts.map +1 -1
- package/features/write-form/components/write-form/reducer.d.ts +12 -0
- package/features/write-form/components/write-form/reducer.d.ts.map +1 -0
- package/features/write-form/constants/api.d.ts +1 -0
- package/features/write-form/constants/api.d.ts.map +1 -1
- package/features/write-form/constants/index.d.ts +12 -0
- package/features/write-form/constants/index.d.ts.map +1 -1
- package/{constants/regex-patterns.d.ts → features/write-form/constants/regex-pattern.d.ts} +1 -1
- package/features/write-form/constants/regex-pattern.d.ts.map +1 -0
- package/features/write-form/store/initial-state.d.ts +5 -5
- package/features/write-form/store/initial-state.d.ts.map +1 -1
- package/features/write-form/store/selectors.d.ts +3 -1
- package/features/write-form/store/selectors.d.ts.map +1 -1
- package/features/write-form/store/slice.d.ts +52 -6
- package/features/write-form/store/slice.d.ts.map +1 -1
- package/features/write-form/types/form.d.ts +80 -1
- package/features/write-form/types/form.d.ts.map +1 -1
- package/features/write-form/utils/index.d.ts +28 -1
- package/features/write-form/utils/index.d.ts.map +1 -1
- package/index.es.js +11208 -40136
- package/index.umd.js +176 -2226
- package/package.json +2 -1
- package/store/hooks.d.ts +0 -2
- package/store/hooks.d.ts.map +1 -1
- package/store/index.d.ts +0 -6
- package/store/index.d.ts.map +1 -1
- package/testing/mocks/handlers/fetch-cards.d.ts +2 -2
- package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
- package/testing/mocks/handlers/write-capability.d.ts.map +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/{utils/index.d.ts → utils.d.ts} +3 -3
- package/utils.d.ts.map +1 -0
- package/api/conversationMeta.d.ts +0 -14
- package/api/conversationMeta.d.ts.map +0 -1
- package/api/form.d.ts +0 -5
- package/api/form.d.ts.map +0 -1
- package/api/linkCard.d.ts +0 -10
- package/api/linkCard.d.ts.map +0 -1
- package/api/previewCard.d.ts +0 -3
- package/api/previewCard.d.ts.map +0 -1
- package/components/ui/loader/skeleton.d.ts +0 -6
- package/components/ui/loader/skeleton.d.ts.map +0 -1
- package/constants/endpoints.d.ts +0 -6
- package/constants/endpoints.d.ts.map +0 -1
- package/constants/form.d.ts +0 -14
- package/constants/form.d.ts.map +0 -1
- package/constants/regex-patterns.d.ts.map +0 -1
- package/features/global-search/api/getSearchResults.d.ts +0 -10
- package/features/global-search/api/getSearchResults.d.ts.map +0 -1
- package/features/global-search/api/getSmartSuggestions.d.ts +0 -13
- package/features/global-search/api/getSmartSuggestions.d.ts.map +0 -1
- package/features/global-search/components/index.d.ts +0 -12
- package/features/global-search/components/index.d.ts.map +0 -1
- package/features/global-search/components/preview-and-link/index.d.ts +0 -9
- package/features/global-search/components/preview-and-link/index.d.ts.map +0 -1
- package/features/global-search/components/preview-and-link/styles.d.ts +0 -4
- package/features/global-search/components/preview-and-link/styles.d.ts.map +0 -1
- package/features/global-search/components/search-form/index.d.ts +0 -10
- package/features/global-search/components/search-form/index.d.ts.map +0 -1
- package/features/global-search/components/search-results/components/no-search-results.d.ts.map +0 -1
- package/features/global-search/components/search-results/components/search-results-loading.d.ts +0 -2
- package/features/global-search/components/search-results/components/search-results-loading.d.ts.map +0 -1
- package/features/global-search/components/styles.d.ts +0 -5
- package/features/global-search/components/styles.d.ts.map +0 -1
- package/features/global-search/constants/api.d.ts +0 -3
- package/features/global-search/constants/api.d.ts.map +0 -1
- package/features/global-search/constants/storage.d.ts +0 -2
- package/features/global-search/constants/storage.d.ts.map +0 -1
- package/features/global-search/hooks/useObjectSort.d.ts +0 -10
- package/features/global-search/hooks/useObjectSort.d.ts.map +0 -1
- package/features/global-search/store/selectors.d.ts +0 -15
- package/features/global-search/store/selectors.d.ts.map +0 -1
- package/hooks/useDropdownConfig.d.ts +0 -16
- package/hooks/useDropdownConfig.d.ts.map +0 -1
- package/hooks/useFormHandlers.d.ts +0 -18
- package/hooks/useFormHandlers.d.ts.map +0 -1
- package/hooks/useFormReducer.d.ts +0 -13
- package/hooks/useFormReducer.d.ts.map +0 -1
- package/store/initial-state.d.ts +0 -19
- package/store/initial-state.d.ts.map +0 -1
- package/store/selectors.d.ts +0 -4
- package/store/selectors.d.ts.map +0 -1
- package/store/slice.d.ts +0 -61
- package/store/slice.d.ts.map +0 -1
- package/testing/mocks/handlers/common.d.ts +0 -2
- package/testing/mocks/handlers/common.d.ts.map +0 -1
- package/testing/mocks/handlers/global-search.d.ts +0 -2
- package/testing/mocks/handlers/global-search.d.ts.map +0 -1
- package/types/form.d.ts +0 -107
- package/types/form.d.ts.map +0 -1
- package/utils/form.d.ts +0 -20
- package/utils/form.d.ts.map +0 -1
- package/utils/index.d.ts.map +0 -1
- package/utils/poll.d.ts +0 -13
- package/utils/poll.d.ts.map +0 -1
- package/utils/validations.d.ts +0 -10
- package/utils/validations.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/store/slice.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/store/slice.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EAEV,WAAW,EACX,eAAe,EACf,cAAc,EACf,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,eAAO,MAAM,oBAAoB;;;;;;;;;;;mIAqH/B,CAAC;AAEH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;cAES,MAAM,EAAE;i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AC;AAEF,QAAA,MAAM,WAAW;;;;;QAQT,MAAM;UACJ,WAAW;kBACH,MAAM;gBACR,OAAO;;;;;;;;;;EActB,CAAC;AAEF,QAAA,MAAM,2BAA2B;;;;QAIvB,MAAM;iBACG,MAAM;oBACH,MAAM;wBACF,MAAM;kBACZ,MAAM;;;;;;;;;;EAmDzB,CAAC;AAEF,QAAA,MAAQ,UAAU,wFAAE,oBAAoB,oGAAE,2BAA2B,yGAAE,oBAAoB,kGAC7D,CAAC;;AAC/B,wBAA4C;AAC5C,OAAO,EACL,eAAe,EACf,UAAU,EACV,oBAAoB,EACpB,UAAU,EACV,QAAQ,EACR,UAAU,EACV,WAAW,EACX,UAAU,EACV,2BAA2B,EAC3B,oBAAoB,EACpB,2BAA2B,EAC3B,oBAAoB,EACrB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FIELD_TYPES, OptionType } from '@connector/ui';
|
|
2
|
-
import { FieldListResponse, ObjectItem } from '../../../types/form';
|
|
3
2
|
export type FieldValue = string | number | OptionType | boolean | Date | OptionType[];
|
|
4
3
|
export type WriteFieldKeys = string;
|
|
5
4
|
export type WriteFormStateValues = Partial<Record<WriteFieldKeys, FieldValue | undefined>>;
|
|
@@ -11,13 +10,93 @@ export interface WriteFormState {
|
|
|
11
10
|
export interface AllValues {
|
|
12
11
|
values: Partial<Record<WriteFieldKeys, FieldValue>>;
|
|
13
12
|
}
|
|
13
|
+
export interface Value {
|
|
14
|
+
value?: FieldValue | boolean;
|
|
15
|
+
name: string;
|
|
16
|
+
}
|
|
17
|
+
export interface FormActionValue {
|
|
18
|
+
type: string;
|
|
19
|
+
payload?: AllValues | Value;
|
|
20
|
+
}
|
|
21
|
+
export type ValidationObject = {
|
|
22
|
+
msg: string;
|
|
23
|
+
};
|
|
24
|
+
export interface WriteValidations {
|
|
25
|
+
isRequired?: boolean | ValidationObject;
|
|
26
|
+
isUrl?: boolean | ValidationObject;
|
|
27
|
+
isEmail?: boolean | ValidationObject;
|
|
28
|
+
disableFuture?: boolean | ValidationObject;
|
|
29
|
+
disablePast?: boolean | ValidationObject;
|
|
30
|
+
maxCharacters?: number;
|
|
31
|
+
maxRows?: number;
|
|
32
|
+
range?: {
|
|
33
|
+
min: number;
|
|
34
|
+
max: number;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export interface InterfaceDetails {
|
|
38
|
+
id: string;
|
|
39
|
+
args?: {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
};
|
|
42
|
+
previousArgs?: {
|
|
43
|
+
[key: string]: string;
|
|
44
|
+
};
|
|
45
|
+
optionalArgs?: {
|
|
46
|
+
[key: string]: string;
|
|
47
|
+
};
|
|
48
|
+
pagination?: {
|
|
49
|
+
enabled: boolean;
|
|
50
|
+
limit?: number | null;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export interface FieldListResponse {
|
|
54
|
+
name: string;
|
|
55
|
+
placeholder?: string;
|
|
56
|
+
type: FIELD_TYPES | 'multi-select' | 'multiline';
|
|
57
|
+
label: string;
|
|
58
|
+
value?: string | number;
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
disablePast?: boolean;
|
|
61
|
+
disableFuture?: boolean;
|
|
62
|
+
validations?: WriteValidations;
|
|
63
|
+
defaultOptions?: boolean | OptionType[];
|
|
64
|
+
interfaceDetails?: InterfaceDetails;
|
|
65
|
+
isInfiniteScrollable?: boolean;
|
|
66
|
+
isApiSearchEnabled?: boolean;
|
|
67
|
+
min?: number;
|
|
68
|
+
max?: number;
|
|
69
|
+
multiline?: boolean;
|
|
70
|
+
maxRows?: number;
|
|
71
|
+
limit?: number;
|
|
72
|
+
rows?: number;
|
|
73
|
+
priority: number;
|
|
74
|
+
defaultValue?: string | number;
|
|
75
|
+
meta?: {
|
|
76
|
+
[key: string]: string | number | boolean;
|
|
77
|
+
};
|
|
78
|
+
isClearable?: boolean;
|
|
79
|
+
}
|
|
14
80
|
export interface WriteFormFields extends FieldListResponse {
|
|
15
81
|
type: FIELD_TYPES;
|
|
16
82
|
isMultiSelect?: boolean;
|
|
17
83
|
loadOptionsOnFocus?: boolean;
|
|
18
84
|
}
|
|
85
|
+
export interface ObjectItem extends OptionType {
|
|
86
|
+
id: string;
|
|
87
|
+
name: string;
|
|
88
|
+
interfaceDetails?: InterfaceDetails;
|
|
89
|
+
type: 'create' | 'link' | 'edit';
|
|
90
|
+
connectorId: string;
|
|
91
|
+
cardId: string;
|
|
92
|
+
authenticated?: boolean;
|
|
93
|
+
logoUrl?: string;
|
|
94
|
+
}
|
|
19
95
|
export interface ObjectResponseItem extends Omit<ObjectItem, 'label' | 'value'> {
|
|
20
96
|
fieldList?: FieldListResponse[];
|
|
21
97
|
}
|
|
22
98
|
export type Predicates = Partial<Record<WriteFieldKeys, boolean>>;
|
|
99
|
+
export interface PreviewArgs {
|
|
100
|
+
[key: string]: string;
|
|
101
|
+
}
|
|
23
102
|
//# sourceMappingURL=form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/types/form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/types/form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,IAAI,GAAG,UAAU,EAAE,CAAC;AAEtF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC;AAC3F,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MA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ClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;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,GAAG,MAAM,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;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;AAElE,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB"}
|
|
@@ -1,5 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormValidation, IValidateConfig } from '@connector/ui';
|
|
2
|
+
import { WriteFormFields, WriteFormState, WriteFormStateValues } from '../types/form';
|
|
3
|
+
export declare const getAllCompletedArgs: (state: WriteFormState, args?: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}) => string[];
|
|
2
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 | null;
|
|
11
|
+
};
|
|
12
|
+
export declare const generateDropdownOptionKey: (args: {
|
|
13
|
+
[key: string]: string | number | boolean | null;
|
|
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 validateIdOrUrl: (msg?: string) => (input: unknown) => string | boolean;
|
|
22
|
+
export declare const getFormFieldsValidations: ({ formFields }: {
|
|
23
|
+
formFields: WriteFormFields[];
|
|
24
|
+
}) => FormValidation;
|
|
25
|
+
export declare const parseFormStateToArgs: (state: WriteFormState, args: {
|
|
26
|
+
[key: string]: string;
|
|
27
|
+
}) => {
|
|
28
|
+
[key: string]: string | number | boolean | (string | number)[];
|
|
29
|
+
};
|
|
3
30
|
export declare const isDate: (date: string | object) => boolean;
|
|
4
31
|
export declare const canonicalizedValuesObject: (obj: WriteFormStateValues) => WriteFormStateValues;
|
|
5
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;
|
|
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;AAehE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAItF,eAAO,MAAM,mBAAmB,UAAW,cAAc,SAAS;IAA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