@hiver/connector-agent 2.0.5-globalSearch-beta.2 → 2.0.5-imageRemoteLoading-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.
Files changed (125) hide show
  1. package/app/connector-cards.d.ts.map +1 -1
  2. package/constants/api.d.ts +0 -3
  3. package/constants/api.d.ts.map +1 -1
  4. package/constants/global-constants.d.ts +0 -2
  5. package/constants/global-constants.d.ts.map +1 -1
  6. package/constants/remote-assets.d.ts +2 -0
  7. package/constants/remote-assets.d.ts.map +1 -0
  8. package/features/connector-cards/components/card-list/CardContent.d.ts +1 -1
  9. package/features/connector-cards/components/card-list/CardContent.d.ts.map +1 -1
  10. package/features/toast-message/constants/toast.d.ts +0 -2
  11. package/features/toast-message/constants/toast.d.ts.map +1 -1
  12. package/features/write-form/api/index.d.ts +3 -0
  13. package/features/write-form/api/index.d.ts.map +1 -1
  14. package/features/write-form/components/card-linking/card-preview.d.ts +1 -1
  15. package/features/write-form/components/card-linking/card-preview.d.ts.map +1 -1
  16. package/features/write-form/components/write-form/index.d.ts.map +1 -1
  17. package/features/write-form/constants/api.d.ts +1 -0
  18. package/features/write-form/constants/api.d.ts.map +1 -1
  19. package/features/write-form/constants/index.d.ts +12 -0
  20. package/features/write-form/constants/index.d.ts.map +1 -1
  21. package/{constants/regex-patterns.d.ts → features/write-form/constants/regex-pattern.d.ts} +1 -1
  22. package/features/write-form/constants/regex-pattern.d.ts.map +1 -0
  23. package/features/write-form/store/initial-state.d.ts +2 -4
  24. package/features/write-form/store/initial-state.d.ts.map +1 -1
  25. package/features/write-form/store/selectors.d.ts +1 -1
  26. package/features/write-form/store/slice.d.ts +34 -8
  27. package/features/write-form/store/slice.d.ts.map +1 -1
  28. package/features/write-form/types/form.d.ts +68 -5
  29. package/features/write-form/types/form.d.ts.map +1 -1
  30. package/features/write-form/utils/index.d.ts +28 -1
  31. package/features/write-form/utils/index.d.ts.map +1 -1
  32. package/index.es.js +22045 -23195
  33. package/index.umd.js +467 -527
  34. package/package.json +1 -1
  35. package/store/hooks.d.ts +0 -2
  36. package/store/hooks.d.ts.map +1 -1
  37. package/store/index.d.ts +0 -6
  38. package/store/index.d.ts.map +1 -1
  39. package/testing/mocks/handlers/write-capability.d.ts.map +1 -1
  40. package/testing/mocks/handlers.d.ts.map +1 -1
  41. package/testing/test-utils.d.ts +1 -1
  42. package/{utils/index.d.ts → utils.d.ts} +3 -3
  43. package/utils.d.ts.map +1 -0
  44. package/api/conversationMeta.d.ts +0 -10
  45. package/api/conversationMeta.d.ts.map +0 -1
  46. package/api/form.d.ts +0 -5
  47. package/api/form.d.ts.map +0 -1
  48. package/api/linkCard.d.ts +0 -4
  49. package/api/linkCard.d.ts.map +0 -1
  50. package/constants/endpoints.d.ts +0 -3
  51. package/constants/endpoints.d.ts.map +0 -1
  52. package/constants/form.d.ts +0 -14
  53. package/constants/form.d.ts.map +0 -1
  54. package/constants/regex-patterns.d.ts.map +0 -1
  55. package/features/connector-cards/components/card-list/cards-view.d.ts +0 -16
  56. package/features/connector-cards/components/card-list/cards-view.d.ts.map +0 -1
  57. package/features/global-search/api/getSearchResults.d.ts +0 -10
  58. package/features/global-search/api/getSearchResults.d.ts.map +0 -1
  59. package/features/global-search/api/getSmartSuggestions.d.ts +0 -14
  60. package/features/global-search/api/getSmartSuggestions.d.ts.map +0 -1
  61. package/features/global-search/components/index.d.ts +0 -12
  62. package/features/global-search/components/index.d.ts.map +0 -1
  63. package/features/global-search/components/preview-and-link/index.d.ts +0 -9
  64. package/features/global-search/components/preview-and-link/index.d.ts.map +0 -1
  65. package/features/global-search/components/preview-and-link/styles.d.ts +0 -4
  66. package/features/global-search/components/preview-and-link/styles.d.ts.map +0 -1
  67. package/features/global-search/components/search-form/SearchForm.d.ts +0 -10
  68. package/features/global-search/components/search-form/SearchForm.d.ts.map +0 -1
  69. package/features/global-search/components/search-form/reducer.d.ts +0 -13
  70. package/features/global-search/components/search-form/reducer.d.ts.map +0 -1
  71. package/features/global-search/components/search-option/index.d.ts +0 -9
  72. package/features/global-search/components/search-option/index.d.ts.map +0 -1
  73. package/features/global-search/components/search-option/styles.d.ts +0 -5
  74. package/features/global-search/components/search-option/styles.d.ts.map +0 -1
  75. package/features/global-search/components/search-results/components/index.d.ts +0 -3
  76. package/features/global-search/components/search-results/components/index.d.ts.map +0 -1
  77. package/features/global-search/components/search-results/index.d.ts +0 -10
  78. package/features/global-search/components/search-results/index.d.ts.map +0 -1
  79. package/features/global-search/components/search-results/styles.d.ts +0 -6
  80. package/features/global-search/components/search-results/styles.d.ts.map +0 -1
  81. package/features/global-search/components/search-select/components/index.d.ts +0 -5
  82. package/features/global-search/components/search-select/components/index.d.ts.map +0 -1
  83. package/features/global-search/components/search-select/components/styles.d.ts +0 -4
  84. package/features/global-search/components/search-select/components/styles.d.ts.map +0 -1
  85. package/features/global-search/components/search-select/index.d.ts +0 -14
  86. package/features/global-search/components/search-select/index.d.ts.map +0 -1
  87. package/features/global-search/components/search-select/styles.d.ts +0 -3
  88. package/features/global-search/components/search-select/styles.d.ts.map +0 -1
  89. package/features/global-search/components/search-suggestions/index.d.ts +0 -8
  90. package/features/global-search/components/search-suggestions/index.d.ts.map +0 -1
  91. package/features/global-search/components/search-suggestions/styles.d.ts +0 -6
  92. package/features/global-search/components/search-suggestions/styles.d.ts.map +0 -1
  93. package/features/global-search/components/styles.d.ts +0 -5
  94. package/features/global-search/components/styles.d.ts.map +0 -1
  95. package/features/global-search/constants/api.d.ts +0 -3
  96. package/features/global-search/constants/api.d.ts.map +0 -1
  97. package/features/global-search/constants/index.d.ts +0 -7
  98. package/features/global-search/constants/index.d.ts.map +0 -1
  99. package/features/global-search/constants/storage.d.ts +0 -2
  100. package/features/global-search/constants/storage.d.ts.map +0 -1
  101. package/features/global-search/hooks/useObjectSort.d.ts +0 -10
  102. package/features/global-search/hooks/useObjectSort.d.ts.map +0 -1
  103. package/features/global-search/store/selectors.d.ts +0 -15
  104. package/features/global-search/store/selectors.d.ts.map +0 -1
  105. package/features/global-search/types/index.d.ts +0 -38
  106. package/features/global-search/types/index.d.ts.map +0 -1
  107. package/hooks/useDropdownConfig.d.ts +0 -16
  108. package/hooks/useDropdownConfig.d.ts.map +0 -1
  109. package/store/initial-state.d.ts +0 -16
  110. package/store/initial-state.d.ts.map +0 -1
  111. package/store/slice.d.ts +0 -41
  112. package/store/slice.d.ts.map +0 -1
  113. package/testing/mocks/handlers/common.d.ts +0 -2
  114. package/testing/mocks/handlers/common.d.ts.map +0 -1
  115. package/testing/mocks/handlers/global-search.d.ts +0 -2
  116. package/testing/mocks/handlers/global-search.d.ts.map +0 -1
  117. package/types/form.d.ts +0 -90
  118. package/types/form.d.ts.map +0 -1
  119. package/utils/form.d.ts +0 -20
  120. package/utils/form.d.ts.map +0 -1
  121. package/utils/index.d.ts.map +0 -1
  122. package/utils/poll.d.ts +0 -13
  123. package/utils/poll.d.ts.map +0 -1
  124. package/utils/validations.d.ts +0 -9
  125. package/utils/validations.d.ts.map +0 -1
@@ -1,16 +0,0 @@
1
- import { AsyncLoadOptions, OptionType } from '@connector/ui';
2
- import { FormFields, FormState } from '../types/form';
3
- interface DropdownConfigProps {
4
- formFields: FormFields[];
5
- formState: FormState;
6
- formId: string | number;
7
- }
8
- export declare const useDropdownConfig: ({ formFields, formState, formId }: DropdownConfigProps) => {
9
- fetchConfig: {
10
- [key: string]: {
11
- loadOptions: AsyncLoadOptions<OptionType>;
12
- };
13
- } | null;
14
- };
15
- export {};
16
- //# sourceMappingURL=useDropdownConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDropdownConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useDropdownConfig.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,UAAU,mBAAmB;IAC3B,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,iBAAiB,sCAAuC,mBAAmB;;;yBAyC1C,gBAAgB,CAAC,UAAU,CAAC;;;CASzE,CAAC"}
@@ -1,16 +0,0 @@
1
- import { ApiStatus } from '../types/api';
2
- import { OptionType } from '@connector/ui';
3
- interface OptionsData {
4
- options: OptionType[];
5
- hasMore: boolean;
6
- currentPage: number;
7
- }
8
- export interface CommonSliceState {
9
- optionsMap: {
10
- [key: string]: OptionsData;
11
- } | null;
12
- dropdownOptionsApis: ApiStatus;
13
- }
14
- export declare const initialState: CommonSliceState;
15
- export {};
16
- //# sourceMappingURL=initial-state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../src/store/initial-state.ts"],"names":[],"mappings":"AAEA,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,gBAAgB;IAC/B,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;KAAE,GAAG,IAAI,CAAC;IAClD,mBAAmB,EAAE,SAAS,CAAC;CAChC;AAGD,eAAO,MAAM,YAAY,EAAE,gBAG1B,CAAC"}
package/store/slice.d.ts DELETED
@@ -1,41 +0,0 @@
1
- import { OptionType } from '@connector/ui';
2
- import { InterfaceDetails, FormFields } from '../types/form';
3
- export declare const commonSlice: import('@reduxjs/toolkit').Slice<import('./initial-state').CommonSliceState, {
4
- resetState: () => import('./initial-state').CommonSliceState;
5
- }, "commonSlice", "commonSlice", import('@reduxjs/toolkit').SliceSelectors<import('./initial-state').CommonSliceState>>;
6
- export declare const fetchDropDownOptions: import('@reduxjs/toolkit').AsyncThunk<{
7
- optionsList: {
8
- label: string;
9
- value: string | number;
10
- }[];
11
- fieldName: string;
12
- formId: string;
13
- currentPage: number;
14
- hasMore: boolean;
15
- key: string;
16
- }, {
17
- fieldName: string;
18
- formId: string;
19
- fieldConfig: FormFields;
20
- interfaceId?: string;
21
- pagination: InterfaceDetails["pagination"];
22
- callback?: (options: OptionType[]) => void;
23
- args?: {
24
- [key: string]: string | number | boolean | null;
25
- };
26
- isScrollToBottomEvent?: boolean;
27
- }, {
28
- state?: unknown;
29
- dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
30
- extra?: unknown;
31
- rejectValue?: unknown;
32
- serializedErrorType?: unknown;
33
- pendingMeta?: unknown;
34
- fulfilledMeta?: unknown;
35
- rejectedMeta?: unknown;
36
- }>;
37
- declare const resetState: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"commonSlice/resetState">;
38
- declare const _default: import('redux').Reducer<import('./initial-state').CommonSliceState>;
39
- export default _default;
40
- export { resetState };
41
- //# sourceMappingURL=slice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../src/store/slice.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEjE,eAAO,MAAM,WAAW;;uHA4BtB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;eAIhB,MAAM;YACT,MAAM;iBACD,UAAU;kBACT,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,GAAG,IAAI,CAAA;KAAE;4BAClC,OAAO;;;;;;;;;;EA6GpC,CAAC;AAEF,QAAA,MAAQ,UAAU,kFAAwB,CAAC;;AAC3C,wBAAmC;AAEnC,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const handlers: import('msw').HttpHandler[];
2
- //# sourceMappingURL=common.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/common.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,QAAQ,6BAA+B,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const handlers: import('msw').HttpHandler[];
2
- //# sourceMappingURL=global-search.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global-search.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/global-search.ts"],"names":[],"mappings":"AAqDA,eAAO,MAAM,QAAQ,6BAAmD,CAAC"}
package/types/form.d.ts DELETED
@@ -1,90 +0,0 @@
1
- import { FIELD_TYPES, OptionType } from '@connector/ui';
2
- export type FieldValue = string | number | OptionType | boolean | Date | OptionType[];
3
- export type FormStateValues = Partial<Record<string, FieldValue>>;
4
- export type FormStateErrors = Partial<Record<string, string | boolean>>;
5
- export interface FormState {
6
- values: FormStateValues;
7
- errors: FormStateErrors;
8
- }
9
- export interface Value {
10
- value?: FieldValue;
11
- name: string;
12
- }
13
- export type ValidationObject = {
14
- msg: string;
15
- };
16
- export interface Validations {
17
- isRequired?: boolean | ValidationObject;
18
- isUrl?: boolean | ValidationObject;
19
- isEmail?: boolean | ValidationObject;
20
- disableFuture?: boolean | ValidationObject;
21
- disablePast?: boolean | ValidationObject;
22
- maxCharacters?: number;
23
- maxRows?: number;
24
- range?: {
25
- min: number;
26
- max: number;
27
- };
28
- }
29
- export interface InterfaceDetails {
30
- id: string;
31
- args?: {
32
- [key: string]: string;
33
- };
34
- previousArgs?: {
35
- [key: string]: string;
36
- };
37
- optionalArgs?: {
38
- [key: string]: string;
39
- };
40
- pagination?: {
41
- enabled: boolean;
42
- limit?: number | null;
43
- };
44
- }
45
- export interface FieldListResponse {
46
- name: string;
47
- placeholder?: string;
48
- type: FIELD_TYPES | 'multi-select' | 'multiline';
49
- label: string;
50
- value?: string | number;
51
- disabled?: boolean;
52
- disablePast?: boolean;
53
- disableFuture?: boolean;
54
- validations?: Validations;
55
- defaultOptions?: boolean | OptionType[];
56
- interfaceDetails?: InterfaceDetails;
57
- isInfiniteScrollable?: boolean;
58
- isApiSearchEnabled?: boolean;
59
- min?: number;
60
- max?: number;
61
- multiline?: boolean;
62
- maxRows?: number;
63
- limit?: number;
64
- rows?: number;
65
- priority: number;
66
- defaultValue?: string | number;
67
- meta?: {
68
- [key: string]: string | number | boolean;
69
- };
70
- isClearable?: boolean;
71
- }
72
- export interface FormFields extends FieldListResponse {
73
- type: FIELD_TYPES;
74
- isMultiSelect?: boolean;
75
- loadOptionsOnFocus?: boolean;
76
- }
77
- export interface ObjectItem extends OptionType {
78
- id: string;
79
- name: string;
80
- searchInterfaceDetails?: InterfaceDetails;
81
- interfaceDetails?: InterfaceDetails;
82
- type: 'create' | 'link' | 'edit' | 'search_and_link';
83
- connectorId: string;
84
- cardId: string;
85
- authenticated?: boolean;
86
- connectorName?: string;
87
- searchObject?: string;
88
- }
89
- export type FormArgValue = string | boolean | number | (string | number)[];
90
- //# sourceMappingURL=form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/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,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAClE,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sBAAsB,CAAC,EAAE,gBAAgB,CAAC;IAC1C,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,iBAAiB,CAAC;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC"}
package/utils/form.d.ts DELETED
@@ -1,20 +0,0 @@
1
- import { FormValidation } from '@connector/ui';
2
- import { FormState, FormFields, FormArgValue } from '../types/form';
3
- export declare const generateDropdownOptionKey: (args: {
4
- [key: string]: string | number | boolean | null;
5
- }, id: string, name: string) => string;
6
- export declare const getAllCompletedArgs: (state: FormState, args?: {
7
- [key: string]: string;
8
- }) => string[];
9
- export declare const getArgsValueMap: (state: FormState, args?: {
10
- [key: string]: string;
11
- }) => {
12
- [key: string]: string | number | boolean | null;
13
- };
14
- export declare const getFormFieldsValidations: ({ formFields }: {
15
- formFields: FormFields[];
16
- }) => FormValidation;
17
- export declare const parseFormStateToArgs: (state: FormState, args: {
18
- [key: string]: string;
19
- }) => Record<string, FormArgValue>;
20
- //# sourceMappingURL=form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/utils/form.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAExE,eAAO,MAAM,yBAAyB,SAC9B;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OA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2BAAoB,MAAM,YAM5F,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,MAAM,UAAU;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,KAAG,MAElG,CAAC;AAEF,eAAO,MAAM,gCAAgC,SACrC,SAAS,SACR,MAAM,cACD,OAAO,cACR,OAAO,eAcnB,CAAC;AAEF,eAAO,MAAM,aAAa,SAAU,kBAAkB,KAAG,aA4BxD,CAAC"}
package/utils/poll.d.ts DELETED
@@ -1,13 +0,0 @@
1
- type CreatePollApiProps<Args extends unknown[], Res> = {
2
- apiFn: (...args: Args) => Promise<Res>;
3
- /** interval in milliseconds between each call */
4
- intervalMillis: number;
5
- /** maximum retries for pending case. Beyond this, the response will be treated as error */
6
- maxRetries: number;
7
- /** the function to verify if success condition is satisfied */
8
- isSatisfied: (body: Res) => boolean;
9
- };
10
- export declare const promiseDelay: (delay: number) => Promise<unknown>;
11
- export declare const createPollApi: <Args extends unknown[], Res>({ apiFn, intervalMillis, maxRetries, isSatisfied }: CreatePollApiProps<Args, Res>) => (...args: Args) => Promise<Res>;
12
- export {};
13
- //# sourceMappingURL=poll.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../src/utils/poll.ts"],"names":[],"mappings":"AAAA,KAAK,kBAAkB,CAAC,IAAI,SAAS,OAAO,EAAE,EAAE,GAAG,IAAI;IACrD,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACvC,iDAAiD;IACjD,cAAc,EAAE,MAAM,CAAC;IACvB,2FAA2F;IAC3F,UAAU,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,WAAW,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,MAAM,qBAEzC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,IAAI,SAAS,OAAO,EAAE,EAAE,GAAG,sDAKtD,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,eACA,IAAI,KAAG,OAAO,CAAC,GAAG,CAiBjD,CAAC"}
@@ -1,9 +0,0 @@
1
- import { IValidateConfig } from '@connector/ui';
2
- export declare const validateUrl: (msg?: string) => (url: unknown) => string | boolean;
3
- export declare const validateEmail: (msg?: string) => (email: unknown) => string | boolean;
4
- export declare const validateIsRequired: (msg?: string) => (value: unknown) => string | boolean;
5
- export declare const validateDate: (msg?: string) => (date: unknown, appConfigs: IValidateConfig) => string | boolean;
6
- export declare const validateNumber: (msg?: string) => (value: unknown, appConfigs: IValidateConfig) => string | boolean;
7
- export declare const validateTextField: (msg?: string) => (value: unknown, appConfigs: IValidateConfig) => string | boolean;
8
- export declare const validateIdOrUrl: (msg?: string) => (input: unknown) => string | boolean;
9
- //# sourceMappingURL=validations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validations.d.ts","sourceRoot":"","sources":["../../src/utils/validations.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,eAAO,MAAM,WAAW,SACf,MAAM,WACP,OAAO,KAAG,MAAM,GAAG,OAuBxB,CAAC;AAEJ,eAAO,MAAM,aAAa,SACjB,MAAM,aACL,OAAO,KAAG,MAAM,GAAG,OAU1B,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,OA6BtD,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,eAAe,SACnB,MAAM,aACL,OAAO,KAAG,MAAM,GAAG,OAe1B,CAAC"}