@hiver/connector-agent 1.3.4-beta.0 → 1.3.4-beta.10
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/provider.d.ts.map +1 -1
- package/components/ui/layover/index.d.ts.map +1 -1
- package/components/ui/layover/styles.d.ts.map +1 -1
- package/components/ui/text-field/index.d.ts +3 -0
- package/components/ui/text-field/index.d.ts.map +1 -0
- package/constants/card.d.ts +8 -0
- package/constants/card.d.ts.map +1 -1
- package/constants/global-constants.d.ts +2 -0
- package/constants/global-constants.d.ts.map +1 -1
- package/context/index.d.ts +2 -0
- package/context/index.d.ts.map +1 -1
- package/context/main-app-provider/index.d.ts +2 -1
- package/context/main-app-provider/index.d.ts.map +1 -1
- package/features/connector-cards/api/index.d.ts +3 -2
- package/features/connector-cards/api/index.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/Card.d.ts +1 -0
- package/features/connector-cards/components/card-list/Card.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/index.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/style.d.ts.map +1 -1
- package/features/connector-cards/constants/api.d.ts.map +1 -1
- package/features/connector-cards/constants/card-content.d.ts +2 -2
- package/features/connector-cards/constants/card-content.d.ts.map +1 -1
- package/features/connector-cards/store/slice.d.ts +3 -0
- package/features/connector-cards/store/slice.d.ts.map +1 -1
- package/features/toast-message/constants/toast.d.ts +2 -0
- package/features/toast-message/constants/toast.d.ts.map +1 -1
- package/features/write-form/api/index.d.ts +15 -3
- package/features/write-form/api/index.d.ts.map +1 -1
- package/features/write-form/components/card-linking/card-linking.d.ts +7 -0
- package/features/write-form/components/card-linking/card-linking.d.ts.map +1 -0
- package/features/write-form/components/card-linking/card-preview.d.ts +12 -0
- package/features/write-form/components/card-linking/card-preview.d.ts.map +1 -0
- package/features/write-form/components/card-linking/style.d.ts +6 -0
- package/features/write-form/components/card-linking/style.d.ts.map +1 -0
- package/features/write-form/components/card-linking/unlink-card-modal.d.ts +11 -0
- package/features/write-form/components/card-linking/unlink-card-modal.d.ts.map +1 -0
- package/features/write-form/components/write-form/index.d.ts +5 -1
- package/features/write-form/components/write-form/index.d.ts.map +1 -1
- package/features/write-form/components/write-form/styles.d.ts +6 -1
- package/features/write-form/components/write-form/styles.d.ts.map +1 -1
- package/features/write-form/constants/api.d.ts +4 -0
- package/features/write-form/constants/api.d.ts.map +1 -1
- package/features/write-form/constants/index.d.ts +9 -0
- package/features/write-form/constants/index.d.ts.map +1 -1
- package/features/write-form/constants/regex-pattern.d.ts +3 -0
- package/features/write-form/constants/regex-pattern.d.ts.map +1 -0
- package/features/write-form/store/initial-state.d.ts +11 -3
- package/features/write-form/store/initial-state.d.ts.map +1 -1
- package/features/write-form/store/selectors.d.ts +10 -1
- package/features/write-form/store/selectors.d.ts.map +1 -1
- package/features/write-form/store/slice.d.ts +85 -7
- package/features/write-form/store/slice.d.ts.map +1 -1
- package/features/write-form/types/form.d.ts +19 -11
- package/features/write-form/types/form.d.ts.map +1 -1
- package/features/write-form/utils/index.d.ts +4 -1
- package/features/write-form/utils/index.d.ts.map +1 -1
- package/index.es.js +10062 -9520
- package/index.umd.js +263 -190
- package/package.json +1 -1
- package/testing/mocks/handlers/fetch-cards.d.ts +2 -1
- package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
- package/testing/mocks/handlers/write-capability.d.ts.map +1 -1
- package/types/cards.d.ts +2 -0
- package/types/cards.d.ts.map +1 -1
- package/types/json.d.ts +7 -0
- package/types/json.d.ts.map +1 -0
- package/utils.d.ts +3 -0
- package/utils.d.ts.map +1 -1
- package/components/ui/async-select/index.d.ts +0 -4
- package/components/ui/async-select/index.d.ts.map +0 -1
- package/components/ui/date-field/index.d.ts +0 -3
- package/components/ui/date-field/index.d.ts.map +0 -1
- package/components/ui/form/index.d.ts +0 -35
- package/components/ui/form/index.d.ts.map +0 -1
- package/components/ui/form/styles.d.ts +0 -4
- package/components/ui/form/styles.d.ts.map +0 -1
- package/components/ui/form-fields/index.d.ts +0 -21
- package/components/ui/form-fields/index.d.ts.map +0 -1
- package/components/ui/form-fields/styles.d.ts +0 -7
- package/components/ui/form-fields/styles.d.ts.map +0 -1
- package/components/ui/select/index.d.ts +0 -3
- package/components/ui/select/index.d.ts.map +0 -1
- package/components/ui/select/style.d.ts +0 -2
- package/components/ui/select/style.d.ts.map +0 -1
- package/types/form.d.ts +0 -62
- package/types/form.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":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAsB,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEpH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAO,MAAM,oBAAoB;;mIAmF/B,CAAC;AAEH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;cAES,MAAM,EAAE;iBAAe,MAAM;oBAAkB,MAAM;;;;;;;;;;EAmIlF,CAAC;AAEF,QAAA,MAAM,oBAAoB;;;;;;;;eAIT,MAAM;YACT,MAAM;kBACA,MAAM;gBACR,gBAAgB,CAAC,YAAY,CAAC;eAC/B,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI;WACnC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE;4BAC3B,OAAO;;;;;;;;;;EAiFpC,CAAC;AAEF,QAAA,MAAM,UAAU;YAIF,MAAM;UACR;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;KAAE;oBACxD,MAAM;iBACT,MAAM;sBACD,MAAM,IAAI;sBACV,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI;;;;;;;;;;EAgB7C,CAAC;AAEF,QAAA,MAAM,UAAU;QAQR,MAAM;kBACI,MAAM;wBACA,MAAM;oBACV,MAAM;;;;;;;;;;EAIzB,CAAC;AAEF,QAAA,MAAM,QAAQ;QAQN,MAAM;wBACU,MAAM;kBACZ,MAAM;oBACJ,MAAM;;;;;;;;;;EAIzB,CAAC;AAEF,QAAA,MAAM,WAAW;;;;;QAQT,MAAM;UACJ,WAAW;kBACH,MAAM;gBACR,OAAO;;;;;;;;;;EAwBtB,CAAC;AAEF,QAAA,MAAQ,UAAU,sFAAiC,CAAC;;AACpD,wBAA4C;AAC5C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,oBAAoB,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { FIELD_TYPES } from '
|
|
2
|
-
export type
|
|
3
|
-
label: string;
|
|
4
|
-
value: string | number;
|
|
5
|
-
};
|
|
6
|
-
export type FieldValue = string | number | LabelValueField | boolean | Date;
|
|
1
|
+
import { FIELD_TYPES, OptionType } from '@connector/ui';
|
|
2
|
+
export type FieldValue = string | number | OptionType | boolean | Date | OptionType[];
|
|
7
3
|
export type WriteFieldKeys = string;
|
|
8
4
|
export interface WriteFormState {
|
|
9
5
|
values: Partial<Record<WriteFieldKeys, FieldValue | undefined>>;
|
|
@@ -29,7 +25,7 @@ export interface WriteValidations {
|
|
|
29
25
|
isEmail?: boolean | ValidationObject;
|
|
30
26
|
disableFuture?: boolean | ValidationObject;
|
|
31
27
|
disablePast?: boolean | ValidationObject;
|
|
32
|
-
|
|
28
|
+
maxCharacters?: number;
|
|
33
29
|
maxRows?: number;
|
|
34
30
|
range?: {
|
|
35
31
|
min: number;
|
|
@@ -41,31 +37,40 @@ export interface InterfaceDetails {
|
|
|
41
37
|
args?: {
|
|
42
38
|
[key: string]: string;
|
|
43
39
|
};
|
|
44
|
-
|
|
40
|
+
pagination?: {
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
limit?: number;
|
|
43
|
+
};
|
|
45
44
|
}
|
|
46
45
|
export interface FieldListResponse {
|
|
47
46
|
name: string;
|
|
48
47
|
placeholder?: string;
|
|
49
|
-
type: FIELD_TYPES | 'multi-select';
|
|
48
|
+
type: FIELD_TYPES | 'multi-select' | 'multiline';
|
|
50
49
|
label: string;
|
|
51
50
|
value?: string | number;
|
|
52
51
|
disabled?: boolean;
|
|
53
52
|
disablePast?: boolean;
|
|
54
53
|
disableFuture?: boolean;
|
|
55
54
|
validations?: WriteValidations;
|
|
56
|
-
defaultOptions?: boolean |
|
|
55
|
+
defaultOptions?: boolean | OptionType[];
|
|
57
56
|
interfaceDetails?: InterfaceDetails;
|
|
58
57
|
isInfiniteScrollable?: boolean;
|
|
59
58
|
isApiSearchEnabled?: boolean;
|
|
60
59
|
min?: number;
|
|
61
60
|
max?: number;
|
|
61
|
+
multiline?: boolean;
|
|
62
|
+
maxRows?: number;
|
|
63
|
+
maxCharacters?: number;
|
|
64
|
+
rows?: number;
|
|
65
|
+
priority: number;
|
|
66
|
+
defaultValue?: string | number;
|
|
62
67
|
}
|
|
63
68
|
export interface WriteFormFields extends FieldListResponse {
|
|
64
69
|
type: FIELD_TYPES;
|
|
65
70
|
isMultiSelect?: boolean;
|
|
66
71
|
loadOptionsOnFocus?: boolean;
|
|
67
72
|
}
|
|
68
|
-
export interface ObjectItem extends
|
|
73
|
+
export interface ObjectItem extends OptionType {
|
|
69
74
|
id: string;
|
|
70
75
|
name: string;
|
|
71
76
|
interfaceDetails?: InterfaceDetails;
|
|
@@ -77,4 +82,7 @@ export interface ObjectResponseItem extends Omit<ObjectItem, 'label' | 'value'>
|
|
|
77
82
|
fieldList?: FieldListResponse[];
|
|
78
83
|
}
|
|
79
84
|
export type Predicates = Partial<Record<WriteFieldKeys, boolean>>;
|
|
85
|
+
export interface PreviewArgs {
|
|
86
|
+
[key: string]: string;
|
|
87
|
+
}
|
|
80
88
|
//# 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,
|
|
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,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC;IAChE,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC,CAAC;CACrD;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC;CAC7B;AAED,MAAM,MAAM,gBAAgB,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC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AC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,IAAI,EAAE,WAAW,CAAC;IAClB,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,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;AAElE,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormValidation, IValidateConfig } from '
|
|
1
|
+
import { FormValidation, IValidateConfig } from '@connector/ui';
|
|
2
2
|
import { WriteFormFields, WriteFormState } from '../types/form';
|
|
3
3
|
export declare const getAllCompletedArgs: (state: WriteFormState, args?: {
|
|
4
4
|
[key: string]: string;
|
|
@@ -16,6 +16,9 @@ export declare const validateUrl: (msg?: string) => (url: unknown) => string | b
|
|
|
16
16
|
export declare const validateEmail: (msg?: string) => (email: unknown) => string | boolean;
|
|
17
17
|
export declare const validateIsRequired: (msg?: string) => (value: unknown) => string | boolean;
|
|
18
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;
|
|
19
22
|
export declare const getFormFieldsValidations: ({ formFields }: {
|
|
20
23
|
formFields: WriteFormFields[];
|
|
21
24
|
}) => FormValidation;
|
|
@@ -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,eAAe,EAAE,MAAM,
|
|
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,MAAM,eAAe,CAAC;AAIhE,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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