@hiver/connector-agent 4.22.8 → 4.22.9
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/connector-cards/api/index.d.ts +1 -1
- package/features/connector-cards/api/index.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/Card.d.ts.map +1 -1
- package/features/connector-cards/store/slice.d.ts +2 -0
- package/features/connector-cards/store/slice.d.ts.map +1 -1
- package/features/email-logger/api/getSearch.d.ts +8 -0
- package/features/email-logger/api/getSearch.d.ts.map +1 -1
- package/features/email-logger/api/postLog.d.ts +5 -0
- package/features/email-logger/api/postLog.d.ts.map +1 -1
- package/features/email-logger/api/validateEntity.d.ts +11 -0
- package/features/email-logger/api/validateEntity.d.ts.map +1 -1
- package/features/email-logger/components/select-entity/components/entity-option/index.d.ts.map +1 -1
- package/features/email-logger/context/contexts.d.ts +6 -0
- package/features/email-logger/context/contexts.d.ts.map +1 -1
- package/features/email-logger/context/index.d.ts +1 -1
- package/features/email-logger/context/index.d.ts.map +1 -1
- package/features/email-logger/omni/components/EntityRow.d.ts.map +1 -1
- package/features/global-search/api/getSearchResults.d.ts +4 -0
- package/features/global-search/api/getSearchResults.d.ts.map +1 -1
- package/hooks/useMappedSmId.d.ts +31 -0
- package/hooks/useMappedSmId.d.ts.map +1 -0
- package/index.es.js +6446 -6384
- package/index.umd.js +431 -431
- package/package.json +1 -1
|
@@ -4,5 +4,5 @@ export declare const getConnectorData: ({ inboxIds, conversationId, channelType,
|
|
|
4
4
|
channelType?: string;
|
|
5
5
|
connectorId?: string;
|
|
6
6
|
}) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
7
|
-
export declare const getSpecificConnectorData: (id: string, email: string, conversationId?: number, externalResourceId?: string) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
7
|
+
export declare const getSpecificConnectorData: (id: string, email: string, conversationId?: number, externalResourceId?: string, smId?: string, smIds?: string[]) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/api/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,2DAK1B;IACD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,iEAaA,CAAC;AAEF,eAAO,MAAM,wBAAwB,OAC/B,MAAM,SACH,MAAM,mBACI,MAAM,uBACF,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/api/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,2DAK1B;IACD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,iEAaA,CAAC;AAEF,eAAO,MAAM,wBAAwB,OAC/B,MAAM,SACH,MAAM,mBACI,MAAM,uBACF,MAAM,SACpB,MAAM,UACN,MAAM,EAAE,iEA0BhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/Card.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAa,MAAM,eAAe,CAAC;AAkBhE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/Card.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAa,MAAM,eAAe,CAAC;AAkBhE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAqBxC,UAAU,MAAM;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;KAC9B,GAAG,IAAI,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B,EAAE;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,GAAG,IAAI,CAAC;IACT,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,eAAO,MAAM,IAAI,UAAW,MAAM,4CAyPjC,CAAC"}
|
|
@@ -37,6 +37,8 @@ declare const fetchSpecificCardData: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
37
37
|
conversationId?: number;
|
|
38
38
|
isRefresh?: boolean;
|
|
39
39
|
externalResourceId?: string;
|
|
40
|
+
smId?: string;
|
|
41
|
+
smIds?: string[];
|
|
40
42
|
}, {
|
|
41
43
|
state?: unknown;
|
|
42
44
|
dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/slice.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,aAAa,EAAsB,MAAM,eAAe,CAAC;AAMzE,eAAO,MAAM,oBAAoB;;;;;;uKAuE/B,CAAC;AAIH,QAAA,MAAM,iBAAiB;;;;cAQT,MAAM,EAAE;kBACJ,MAAM;oBACJ,MAAM;kBACR,MAAM;;;;;;;;;;EAevB,CAAC;AAEF,QAAA,MAAM,qBAAqB;;;;;;;
|
|
1
|
+
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/slice.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,aAAa,EAAsB,MAAM,eAAe,CAAC;AAMzE,eAAO,MAAM,oBAAoB;;;;;;uKAuE/B,CAAC;AAIH,QAAA,MAAM,iBAAiB;;;;cAQT,MAAM,EAAE;kBACJ,MAAM;oBACJ,MAAM;kBACR,MAAM;;;;;;;;;;EAevB,CAAC;AAEF,QAAA,MAAM,qBAAqB;;;;;;;QAYjB,MAAM;WACH,MAAM;qBACI,MAAM;gBACX,OAAO;yBACE,MAAM;WACpB,MAAM;YACL,MAAM,EAAE;;;;;;;;;;EA8BrB,CAAC;;AAEF,wBAA4C;AAC5C,eAAO,MAAM,OAAO;;;;;;0BAA+B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -3,6 +3,14 @@ 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;
|
|
12
|
+
/** Every inbox the conversation is in; the mapping applies as their union. */
|
|
13
|
+
smIds?: string[];
|
|
6
14
|
};
|
|
7
15
|
export type MutationProps = {
|
|
8
16
|
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;IACd,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAoCF,eAAO,MAAM,yBAAyB,kBAAmB,aAAa,2HAQrE,CAAC"}
|
|
@@ -3,6 +3,11 @@ export type LogEmailPayload = {
|
|
|
3
3
|
selectedEntities: (Entity & SearchEntity)[];
|
|
4
4
|
connectorId: string;
|
|
5
5
|
autoLogEnabled: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Agency installs: every inbox the conversation is in. Recorded with the link,
|
|
8
|
+
* so this sync and every later one refuses a record outside their mapping.
|
|
9
|
+
*/
|
|
10
|
+
smIds?: string[];
|
|
6
11
|
};
|
|
7
12
|
export type LogEmailProps = {
|
|
8
13
|
payload: LogEmailPayload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postLog.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/api/postLog.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"postLog.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/api/postLog.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIhD,MAAM,MAAM,eAAe,GAAG;IAC5B,gBAAgB,EAAE,CAAC,MAAM,GAAG,YAAY,CAAC,EAAE,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,eAAe,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAqBF,eAAO,MAAM,mBAAmB,kBAAmB,gBAAgB,8FAOlE,CAAC"}
|
|
@@ -3,6 +3,17 @@ export type ValidateEntityPayload = {
|
|
|
3
3
|
entityType: string;
|
|
4
4
|
searchString: string;
|
|
5
5
|
cardId: string;
|
|
6
|
+
/**
|
|
7
|
+
* Agency installs: the shared inbox this validation is happening in.
|
|
8
|
+
*
|
|
9
|
+
* Bounds the sub-account search to the inbox's mapping. Without it the search
|
|
10
|
+
* spans every sub-account, and a customer who is a contact in two client
|
|
11
|
+
* businesses comes back ambiguous — resolved by "most recently updated",
|
|
12
|
+
* which stamps a guess onto the record and makes the eventual write fail.
|
|
13
|
+
*/
|
|
14
|
+
smId?: string;
|
|
15
|
+
/** Every inbox the conversation is in; the mapping applies as their union. */
|
|
16
|
+
smIds?: string[];
|
|
6
17
|
};
|
|
7
18
|
export type ValidateEntityProps = {
|
|
8
19
|
payload: ValidateEntityPayload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateEntity.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/api/validateEntity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAgB,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"validateEntity.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/api/validateEntity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAgB,aAAa,EAAE,MAAM,UAAU,CAAC;AAIpE,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAIF,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAsCnE,eAAO,MAAM,yBAAyB,2BAA4B,aAAa,0GAQ9E,CAAC"}
|
package/features/email-logger/components/select-entity/components/entity-option/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/email-logger/components/select-entity/components/entity-option/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/email-logger/components/select-entity/components/entity-option/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,oBAAoB,EAAiB,MAAM,+BAA+B,CAAC;AAEjH,KAAK,iBAAiB,GAAG;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,YAAY,qEAAsE,iBAAiB,4CA0E/G,CAAC"}
|
|
@@ -5,6 +5,12 @@ export type ContextData = {
|
|
|
5
5
|
isAdmin?: boolean;
|
|
6
6
|
connectorFunctions?: ConnectorFunctions;
|
|
7
7
|
tenant?: Tenant;
|
|
8
|
+
/**
|
|
9
|
+
* Every shared inbox the conversation is in. The logger mounts outside
|
|
10
|
+
* MainAppProvider, so this is how its search, validate and log calls learn
|
|
11
|
+
* the inboxes an agency install's sub-account mapping applies to.
|
|
12
|
+
*/
|
|
13
|
+
smIds?: string[];
|
|
8
14
|
};
|
|
9
15
|
export declare const EmailLoggerContext: import('react').Context<ContextData>;
|
|
10
16
|
//# sourceMappingURL=contexts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/context/contexts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,MAAM,MAAM,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC;AAE1C,MAAM,MAAM,WAAW,GAAG;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/context/contexts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,MAAM,MAAM,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC;AAE1C,MAAM,MAAM,WAAW,GAAG;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sCAAiC,CAAC"}
|
|
@@ -4,5 +4,5 @@ type EmailLoggerProviderProps = ContextData & {
|
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
};
|
|
6
6
|
export type { ContextData };
|
|
7
|
-
export declare const EmailLoggerProvider: ({ isAdmin, conversationId, connectorFunctions, tenant, children }: EmailLoggerProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const EmailLoggerProvider: ({ isAdmin, conversationId, connectorFunctions, tenant, smIds, children }: EmailLoggerProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/context/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAsB,WAAW,EAAE,MAAM,YAAY,CAAC;AAE7D,KAAK,wBAAwB,GAAG,WAAW,GAAG;IAC5C,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/context/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAsB,WAAW,EAAE,MAAM,YAAY,CAAC;AAE7D,KAAK,wBAAwB,GAAG,WAAW,GAAG;IAC5C,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B,eAAO,MAAM,mBAAmB,6EAO7B,wBAAwB,4CAa1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityRow.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/omni/components/EntityRow.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntityRow.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/omni/components/EntityRow.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEzE,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IAC7C,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAUF,eAAO,MAAM,SAAS,0EAA2E,cAAc,4CAqE9G,CAAC"}
|
|
@@ -6,6 +6,10 @@ 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;
|
|
11
|
+
/** Every inbox the conversation is in; the mapping applies as their union. */
|
|
12
|
+
smIds?: string[];
|
|
9
13
|
};
|
|
10
14
|
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
15
|
//# 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;IACd,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,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,sHAavG,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The shared inbox to resolve an agency install's sub-account against.
|
|
3
|
+
*
|
|
4
|
+
* Returns a value only when the conversation belongs to exactly one inbox. The
|
|
5
|
+
* sub-account mapping is per inbox, so with several there is no single right
|
|
6
|
+
* answer, and picking one arbitrarily would confine the search to a client
|
|
7
|
+
* business the conversation may have nothing to do with. Undefined falls back
|
|
8
|
+
* to searching every sub-account — the behaviour before mapping existed, and
|
|
9
|
+
* wrong-but-slow beats confidently-wrong.
|
|
10
|
+
*
|
|
11
|
+
* Shared rather than inlined per call site: the card render and the
|
|
12
|
+
* entity-validation calls have to agree, or a record gets validated against one
|
|
13
|
+
* sub-account and rendered from another.
|
|
14
|
+
*/
|
|
15
|
+
export declare const useMappedSmId: () => string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Every shared inbox the conversation is in, as strings.
|
|
18
|
+
*
|
|
19
|
+
* Agency installs apply the sub-account mapping as the union of these. Sending
|
|
20
|
+
* only the single-inbox case (useMappedSmId) left a conversation in two inboxes
|
|
21
|
+
* with no inbox at all, and the server then searched every sub-account the
|
|
22
|
+
* install holds — showing, and letting an agent sync to, a contact from a client
|
|
23
|
+
* business none of the inboxes is mapped to.
|
|
24
|
+
*/
|
|
25
|
+
export declare const useConversationSmIds: () => string[];
|
|
26
|
+
/**
|
|
27
|
+
* Appends the inboxes as the query parameters the backend reads: `smId` for the
|
|
28
|
+
* single-inbox case, and `inbox_ids` for every inbox the conversation is in.
|
|
29
|
+
*/
|
|
30
|
+
export declare const withSmId: (url: string, smId?: string, smIds?: string[]) => string;
|
|
31
|
+
//# sourceMappingURL=useMappedSmId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMappedSmId.d.ts","sourceRoot":"","sources":["../../src/hooks/useMappedSmId.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,QAAO,MAAM,GAAG,SAGzC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,QAAO,MAAM,EAG7C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,QAAS,MAAM,SAAS,MAAM,UAAS,MAAM,EAAE,WAMnE,CAAC"}
|