@hiver/connector-agent 2.0.8-releaseGlobalSearch-beta.2 → 3.0.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 (139) hide show
  1. package/app/connector-cards.d.ts.map +1 -1
  2. package/components/ui/switch/index.d.ts +2 -2
  3. package/components/ui/switch/index.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/api/index.d.ts +1 -0
  9. package/features/connector-cards/api/index.d.ts.map +1 -1
  10. package/features/connector-cards/components/card-list/email-selection.d.ts +1 -2
  11. package/features/connector-cards/components/card-list/email-selection.d.ts.map +1 -1
  12. package/features/connector-cards/constants/api.d.ts +1 -0
  13. package/features/connector-cards/constants/api.d.ts.map +1 -1
  14. package/features/connector-cards/store/slice.d.ts +16 -1
  15. package/features/connector-cards/store/slice.d.ts.map +1 -1
  16. package/features/global-search/components/search-results/components/{no-search-results.d.ts → index.d.ts} +1 -1
  17. package/features/global-search/components/search-results/components/index.d.ts.map +1 -0
  18. package/features/global-search/components/search-results/index.d.ts +3 -5
  19. package/features/global-search/components/search-results/index.d.ts.map +1 -1
  20. package/features/global-search/components/search-results/styles.d.ts +1 -3
  21. package/features/global-search/components/search-results/styles.d.ts.map +1 -1
  22. package/features/global-search/components/search-select/components/select-option/index.d.ts +9 -0
  23. package/features/global-search/components/search-select/components/select-option/index.d.ts.map +1 -0
  24. package/features/global-search/components/search-select/components/select-option/styles.d.ts +5 -0
  25. package/features/global-search/components/search-select/components/select-option/styles.d.ts.map +1 -0
  26. package/features/global-search/components/search-select/index.d.ts +0 -2
  27. package/features/global-search/components/search-select/index.d.ts.map +1 -1
  28. package/features/global-search/components/search-select/styles.d.ts.map +1 -1
  29. package/features/global-search/components/search-suggestions/index.d.ts.map +1 -1
  30. package/features/global-search/constants/index.d.ts +0 -1
  31. package/features/global-search/constants/index.d.ts.map +1 -1
  32. package/features/global-search/types/index.d.ts +1 -11
  33. package/features/global-search/types/index.d.ts.map +1 -1
  34. package/features/toast-message/constants/toast.d.ts +0 -2
  35. package/features/toast-message/constants/toast.d.ts.map +1 -1
  36. package/features/write-form/api/index.d.ts +5 -0
  37. package/features/write-form/api/index.d.ts.map +1 -1
  38. package/features/write-form/components/card-linking/card-linking.d.ts.map +1 -1
  39. package/features/write-form/components/card-linking/card-preview.d.ts +2 -2
  40. package/features/write-form/components/card-linking/card-preview.d.ts.map +1 -1
  41. package/features/write-form/components/write-form/index.d.ts.map +1 -1
  42. package/features/write-form/components/write-form/reducer.d.ts +12 -0
  43. package/features/write-form/components/write-form/reducer.d.ts.map +1 -0
  44. package/features/write-form/constants/api.d.ts +1 -0
  45. package/features/write-form/constants/api.d.ts.map +1 -1
  46. package/features/write-form/constants/index.d.ts +12 -0
  47. package/features/write-form/constants/index.d.ts.map +1 -1
  48. package/{constants/regex-patterns.d.ts → features/write-form/constants/regex-pattern.d.ts} +1 -1
  49. package/features/write-form/constants/regex-pattern.d.ts.map +1 -0
  50. package/features/write-form/store/initial-state.d.ts +5 -5
  51. package/features/write-form/store/initial-state.d.ts.map +1 -1
  52. package/features/write-form/store/selectors.d.ts +3 -1
  53. package/features/write-form/store/selectors.d.ts.map +1 -1
  54. package/features/write-form/store/slice.d.ts +52 -6
  55. package/features/write-form/store/slice.d.ts.map +1 -1
  56. package/features/write-form/types/form.d.ts +80 -1
  57. package/features/write-form/types/form.d.ts.map +1 -1
  58. package/features/write-form/utils/index.d.ts +28 -1
  59. package/features/write-form/utils/index.d.ts.map +1 -1
  60. package/index.es.js +11208 -40135
  61. package/index.umd.js +176 -2226
  62. package/package.json +2 -1
  63. package/store/hooks.d.ts +0 -2
  64. package/store/hooks.d.ts.map +1 -1
  65. package/store/index.d.ts +0 -6
  66. package/store/index.d.ts.map +1 -1
  67. package/testing/mocks/handlers/fetch-cards.d.ts +2 -2
  68. package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
  69. package/testing/mocks/handlers/write-capability.d.ts.map +1 -1
  70. package/testing/mocks/handlers.d.ts.map +1 -1
  71. package/testing/test-utils.d.ts +1 -1
  72. package/testing/test-utils.d.ts.map +1 -1
  73. package/{utils/index.d.ts → utils.d.ts} +3 -3
  74. package/utils.d.ts.map +1 -0
  75. package/api/conversationMeta.d.ts +0 -14
  76. package/api/conversationMeta.d.ts.map +0 -1
  77. package/api/form.d.ts +0 -5
  78. package/api/form.d.ts.map +0 -1
  79. package/api/linkCard.d.ts +0 -10
  80. package/api/linkCard.d.ts.map +0 -1
  81. package/api/previewCard.d.ts +0 -3
  82. package/api/previewCard.d.ts.map +0 -1
  83. package/components/ui/loader/skeleton.d.ts +0 -6
  84. package/components/ui/loader/skeleton.d.ts.map +0 -1
  85. package/constants/endpoints.d.ts +0 -6
  86. package/constants/endpoints.d.ts.map +0 -1
  87. package/constants/form.d.ts +0 -14
  88. package/constants/form.d.ts.map +0 -1
  89. package/constants/regex-patterns.d.ts.map +0 -1
  90. package/features/global-search/api/getSearchResults.d.ts +0 -10
  91. package/features/global-search/api/getSearchResults.d.ts.map +0 -1
  92. package/features/global-search/api/getSmartSuggestions.d.ts +0 -13
  93. package/features/global-search/api/getSmartSuggestions.d.ts.map +0 -1
  94. package/features/global-search/components/index.d.ts +0 -12
  95. package/features/global-search/components/index.d.ts.map +0 -1
  96. package/features/global-search/components/preview-and-link/index.d.ts +0 -9
  97. package/features/global-search/components/preview-and-link/index.d.ts.map +0 -1
  98. package/features/global-search/components/preview-and-link/styles.d.ts +0 -4
  99. package/features/global-search/components/preview-and-link/styles.d.ts.map +0 -1
  100. package/features/global-search/components/search-form/index.d.ts +0 -10
  101. package/features/global-search/components/search-form/index.d.ts.map +0 -1
  102. package/features/global-search/components/search-results/components/no-search-results.d.ts.map +0 -1
  103. package/features/global-search/components/search-results/components/search-results-loading.d.ts +0 -2
  104. package/features/global-search/components/search-results/components/search-results-loading.d.ts.map +0 -1
  105. package/features/global-search/components/styles.d.ts +0 -5
  106. package/features/global-search/components/styles.d.ts.map +0 -1
  107. package/features/global-search/constants/api.d.ts +0 -3
  108. package/features/global-search/constants/api.d.ts.map +0 -1
  109. package/features/global-search/constants/storage.d.ts +0 -2
  110. package/features/global-search/constants/storage.d.ts.map +0 -1
  111. package/features/global-search/hooks/useObjectSort.d.ts +0 -10
  112. package/features/global-search/hooks/useObjectSort.d.ts.map +0 -1
  113. package/features/global-search/store/selectors.d.ts +0 -15
  114. package/features/global-search/store/selectors.d.ts.map +0 -1
  115. package/hooks/useDropdownConfig.d.ts +0 -16
  116. package/hooks/useDropdownConfig.d.ts.map +0 -1
  117. package/hooks/useFormHandlers.d.ts +0 -18
  118. package/hooks/useFormHandlers.d.ts.map +0 -1
  119. package/hooks/useFormReducer.d.ts +0 -13
  120. package/hooks/useFormReducer.d.ts.map +0 -1
  121. package/store/initial-state.d.ts +0 -19
  122. package/store/initial-state.d.ts.map +0 -1
  123. package/store/selectors.d.ts +0 -4
  124. package/store/selectors.d.ts.map +0 -1
  125. package/store/slice.d.ts +0 -61
  126. package/store/slice.d.ts.map +0 -1
  127. package/testing/mocks/handlers/common.d.ts +0 -2
  128. package/testing/mocks/handlers/common.d.ts.map +0 -1
  129. package/testing/mocks/handlers/global-search.d.ts +0 -2
  130. package/testing/mocks/handlers/global-search.d.ts.map +0 -1
  131. package/types/form.d.ts +0 -107
  132. package/types/form.d.ts.map +0 -1
  133. package/utils/form.d.ts +0 -20
  134. package/utils/form.d.ts.map +0 -1
  135. package/utils/index.d.ts.map +0 -1
  136. package/utils/poll.d.ts +0 -13
  137. package/utils/poll.d.ts.map +0 -1
  138. package/utils/validations.d.ts +0 -10
  139. package/utils/validations.d.ts.map +0 -1
@@ -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,107 +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
- interface Payload {
14
- values?: FormStateValues;
15
- value?: Value;
16
- }
17
- export interface FormActionValue {
18
- type: string;
19
- payload?: Payload;
20
- }
21
- export type ValidationObject = {
22
- msg: string;
23
- };
24
- export interface Validations {
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?: Validations;
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
- }
80
- export interface FormFields extends FieldListResponse {
81
- type: FIELD_TYPES;
82
- isMultiSelect?: boolean;
83
- loadOptionsOnFocus?: boolean;
84
- }
85
- export interface ObjectItem extends OptionType {
86
- id: string;
87
- name: string;
88
- logoUrl: string;
89
- searchInterfaceDetails?: InterfaceDetails;
90
- interfaceDetails?: InterfaceDetails;
91
- type: 'create' | 'link' | 'edit' | 'search_and_link';
92
- connectorId: string;
93
- cardId: string;
94
- authenticated?: boolean;
95
- connectorName?: string;
96
- searchObject?: string;
97
- }
98
- export type FormArgValue = string | boolean | number | (string | number)[];
99
- export interface PreviewArgs {
100
- [key: string]: string;
101
- }
102
- export type PreviewMeta = {
103
- externalResourceId: string;
104
- formId: string;
105
- };
106
- export {};
107
- //# 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,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;AAExE,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,eAAe,CAAC;CACzB;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,OAA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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;AAE3E,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB,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,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YAAa,MAAM,gBAAe,OAAO,aAAoB,OAAO,SA2BnG,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,sBAAuB,aAAa,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,10 +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
- export declare const compareObjects: <T extends Record<string, unknown>>(obj1: T, obj2: T) => boolean;
10
- //# 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;AAEJ,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAmBjF,CAAC"}