@hiver/connector-agent 1.3.4-beta.1 → 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 +7 -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 +8 -1
- 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 +83 -6
- package/features/write-form/store/slice.d.ts.map +1 -1
- package/features/write-form/types/form.d.ts +10 -2
- package/features/write-form/types/form.d.ts.map +1 -1
- package/features/write-form/utils/index.d.ts +1 -0
- package/features/write-form/utils/index.d.ts.map +1 -1
- package/index.es.js +10092 -9626
- package/index.umd.js +244 -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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FIELD_TYPES, OptionType } from '@connector/ui';
|
|
2
|
-
export type FieldValue = string | number | OptionType | boolean | Date;
|
|
2
|
+
export type FieldValue = string | number | OptionType | boolean | Date | OptionType[];
|
|
3
3
|
export type WriteFieldKeys = string;
|
|
4
4
|
export interface WriteFormState {
|
|
5
5
|
values: Partial<Record<WriteFieldKeys, FieldValue | undefined>>;
|
|
@@ -37,7 +37,10 @@ export interface InterfaceDetails {
|
|
|
37
37
|
args?: {
|
|
38
38
|
[key: string]: string;
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
pagination?: {
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
limit?: number;
|
|
43
|
+
};
|
|
41
44
|
}
|
|
42
45
|
export interface FieldListResponse {
|
|
43
46
|
name: string;
|
|
@@ -59,6 +62,8 @@ export interface FieldListResponse {
|
|
|
59
62
|
maxRows?: number;
|
|
60
63
|
maxCharacters?: number;
|
|
61
64
|
rows?: number;
|
|
65
|
+
priority: number;
|
|
66
|
+
defaultValue?: string | number;
|
|
62
67
|
}
|
|
63
68
|
export interface WriteFormFields extends FieldListResponse {
|
|
64
69
|
type: FIELD_TYPES;
|
|
@@ -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,UAAU,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,IAAI,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,GA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X,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"}
|
|
@@ -18,6 +18,7 @@ export declare const validateIsRequired: (msg?: string) => (value: unknown) => s
|
|
|
18
18
|
export declare const validateDate: (msg?: string) => (date: unknown, appConfigs: IValidateConfig) => string | boolean;
|
|
19
19
|
export declare const validateNumber: (msg?: string) => (value: unknown, appConfigs: IValidateConfig) => string | boolean;
|
|
20
20
|
export declare const validateTextField: (msg?: string) => (value: unknown, appConfigs: IValidateConfig) => string | boolean;
|
|
21
|
+
export declare const validateIdOrUrl: (msg?: string) => (input: unknown) => string | boolean;
|
|
21
22
|
export declare const getFormFieldsValidations: ({ formFields }: {
|
|
22
23
|
formFields: WriteFormFields[];
|
|
23
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,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,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