@hiver/connector-agent 4.22.7-ghlSubAccountMapping-beta.2 → 4.22.7-ghlSubAccountMapping-beta.3

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.
@@ -3,6 +3,12 @@ export type SearchEntitiesProps = {
3
3
  formId: string;
4
4
  searchObject: string;
5
5
  searchText: string;
6
+ /**
7
+ * Agency installs: the shared inbox the search runs in. The backend searches
8
+ * every sub-account mapped to it and merges the rows; without it, the rows
9
+ * can come from a client business the inbox is not mapped to.
10
+ */
11
+ smId?: string;
6
12
  };
7
13
  export type MutationProps = {
8
14
  onSuccess: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"getSearch.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/api/getSearch.ts"],"names":[],"mappings":"AASA,OAAO,EAA0B,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAGtF,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAkCF,eAAO,MAAM,yBAAyB,kBAAmB,aAAa,2HAKrE,CAAC"}
1
+ {"version":3,"file":"getSearch.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/api/getSearch.ts"],"names":[],"mappings":"AAUA,OAAO,EAA0B,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAGtF,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAmCF,eAAO,MAAM,yBAAyB,kBAAmB,aAAa,2HAOrE,CAAC"}
@@ -6,6 +6,8 @@ export type SearchResultsProps = {
6
6
  interfaceId: string;
7
7
  args: Record<string, FormArgValue>;
8
8
  connectorName?: string;
9
+ /** Agency installs: bounds the search to the inbox's mapped sub-accounts. */
10
+ smId?: string;
9
11
  };
10
12
  export declare const useSearchResultsMutation: (onMutate: (searchString: string, connectorName?: string) => void, onSuccess: (searchString: string, data: SearchResultsType | undefined, connectorName?: string) => void) => import('@tanstack/react-query').UseMutationResult<SearchResultsType | undefined, Error, SearchResultsProps, void>;
11
13
  //# sourceMappingURL=getSearchResults.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSearchResults.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/api/getSearchResults.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG7C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AA0BF,eAAO,MAAM,wBAAwB,aACzB,CAAC,YAAY,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,aACrD,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,SAAS,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,sHAWvG,CAAC"}
1
+ {"version":3,"file":"getSearchResults.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/api/getSearchResults.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG7C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AA0BF,eAAO,MAAM,wBAAwB,aACzB,CAAC,YAAY,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,aACrD,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,SAAS,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,sHAYvG,CAAC"}
@@ -13,4 +13,6 @@
13
13
  * sub-account and rendered from another.
14
14
  */
15
15
  export declare const useMappedSmId: () => string | undefined;
16
+ /** Appends the mapped inbox as `smId`, the query parameter the backend reads. */
17
+ export declare const withSmId: (url: string, smId?: string) => string;
16
18
  //# sourceMappingURL=useMappedSmId.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMappedSmId.d.ts","sourceRoot":"","sources":["../../src/hooks/useMappedSmId.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,QAAO,MAAM,GAAG,SAGzC,CAAC"}
1
+ {"version":3,"file":"useMappedSmId.d.ts","sourceRoot":"","sources":["../../src/hooks/useMappedSmId.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,QAAO,MAAM,GAAG,SAGzC,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,QAAQ,QAAS,MAAM,SAAS,MAAM,WACgB,CAAC"}