@hiver/connector-agent 4.22.6 → 4.22.7-ghlSubAccountMapping-beta.1

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.
@@ -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) => 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,iEAa5B,CAAC"}
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,iEAuBd,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;AAoBxC,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,4CAwNjC,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,4CA4NjC,CAAC"}
@@ -37,6 +37,7 @@ declare const fetchSpecificCardData: import('@reduxjs/toolkit').AsyncThunk<{
37
37
  conversationId?: number;
38
38
  isRefresh?: boolean;
39
39
  externalResourceId?: string;
40
+ smId?: string;
40
41
  }, {
41
42
  state?: unknown;
42
43
  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;;;;;;;QAUjB,MAAM;WACH,MAAM;qBACI,MAAM;gBACX,OAAO;yBACE,MAAM;;;;;;;;;;EA8BhC,CAAC;;AAEF,wBAA4C;AAC5C,eAAO,MAAM,OAAO;;;;;;0BAA+B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAC"}
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;;;;;;;QAWjB,MAAM;WACH,MAAM;qBACI,MAAM;gBACX,OAAO;yBACE,MAAM;WACpB,MAAM;;;;;;;;;;EA8BlB,CAAC;;AAEF,wBAA4C;AAC5C,eAAO,MAAM,OAAO;;;;;;0BAA+B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAC"}
@@ -3,6 +3,15 @@ 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;
6
15
  };
7
16
  export type ValidateEntityProps = {
8
17
  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;AAGpE,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,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,0GAM9E,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;AAGpE,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;CACf,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,0GAM9E,CAAC"}
@@ -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":"AAWA,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,4CAyE/G,CAAC"}
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"EntityRow.d.ts","sourceRoot":"","sources":["../../../../../src/features/email-logger/omni/components/EntityRow.tsx"],"names":[],"mappings":"AAQA,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,4CAoE9G,CAAC"}
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"}
@@ -0,0 +1,16 @@
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
+ //# sourceMappingURL=useMappedSmId.d.ts.map
@@ -0,0 +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"}