@hiver/connector-agent 4.22.7-ghlSubAccountMapping-beta.1 → 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.
- package/features/email-logger/api/getLogStatus.d.ts +8 -0
- package/features/email-logger/api/getLogStatus.d.ts.map +1 -1
- package/features/email-logger/api/getSearch.d.ts +6 -0
- package/features/email-logger/api/getSearch.d.ts.map +1 -1
- package/features/global-search/api/getSearchResults.d.ts +2 -0
- package/features/global-search/api/getSearchResults.d.ts.map +1 -1
- package/hooks/useMappedSmId.d.ts +2 -0
- package/hooks/useMappedSmId.d.ts.map +1 -1
- package/index.es.js +5014 -5002
- package/index.umd.js +416 -416
- package/package.json +1 -1
- package/utils/poll.d.ts.map +1 -1
|
@@ -2,5 +2,13 @@ import { LogStatusResponse } from '../types/api';
|
|
|
2
2
|
export type LogsStatusProps = {
|
|
3
3
|
conversationId?: string;
|
|
4
4
|
};
|
|
5
|
+
/**
|
|
6
|
+
* How often an open conversation re-checks its sync status once nothing is
|
|
7
|
+
* pending. The backoff poll stops when every message is logged, so without
|
|
8
|
+
* this a reply that arrives later -- and starts a new sync -- never shows as
|
|
9
|
+
* "Syncing" until the page is refreshed. A check that finds work pending hands
|
|
10
|
+
* over to the backoff poll, which takes it through to "Synced".
|
|
11
|
+
*/
|
|
12
|
+
export declare const LOG_STATUS_IDLE_REFETCH_MILLIS = 5000;
|
|
5
13
|
export declare const useLogsStatusQuery: ({ conversationId }: LogsStatusProps) => import('@tanstack/react-query').UseQueryResult<LogStatusResponse, Error>;
|
|
6
14
|
//# sourceMappingURL=getLogStatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLogStatus.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/api/getLogStatus.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGjD,MAAM,MAAM,eAAe,GAAG;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAuBF,eAAO,MAAM,kBAAkB,uBAAwB,eAAe,
|
|
1
|
+
{"version":3,"file":"getLogStatus.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/api/getLogStatus.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGjD,MAAM,MAAM,eAAe,GAAG;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAuBF;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,OAAO,CAAC;AAEnD,eAAO,MAAM,kBAAkB,uBAAwB,eAAe,6EAgCrE,CAAC"}
|
|
@@ -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":"
|
|
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":"
|
|
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"}
|
package/hooks/useMappedSmId.d.ts
CHANGED
|
@@ -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"}
|