@nomalism-com/types 0.40.85 → 0.40.87

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.
@@ -10,7 +10,10 @@ export interface IPromptResponse {
10
10
  onDone?: () => void;
11
11
  onError?: (err: unknown) => void;
12
12
  }
13
+ export interface IPromptAbortController {
14
+ abort(): void;
15
+ }
13
16
  export interface IRepository {
14
- prompt: (data: IPromptRequest, response: IPromptResponse) => Promise<void>;
17
+ prompt: (data: IPromptRequest, response: IPromptResponse) => Promise<IPromptAbortController>;
15
18
  }
16
19
  export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -1,6 +1,7 @@
1
1
  import type * as IShared from '../../../shared/interface';
2
2
  import type * as ChatSubscriber from '../../user/chatSubscribers/interfaces';
3
3
  import { Chat, File } from '../../../shared/entities/stock';
4
+ import { Persona } from '../../../main';
4
5
  export type Entity = Chat;
5
6
  export declare const Route = "chat";
6
7
  export declare const UpperName = "Chat";
@@ -28,6 +29,7 @@ export interface IChatBalloon {
28
29
  }
29
30
  export type IReport = Pick<Entity, 'email_processed' | 'email_delivered' | 'email_opened' | 'email_clicked'>;
30
31
  export interface IPublicFindActiveByOwnerIdResponse {
32
+ persona?: Persona.IFindContactPersonaByOwnerId;
31
33
  last_group_report?: IReport;
32
34
  owner_id?: string;
33
35
  document_header_id?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/types",
3
3
  "description": "A nomalism package with all necessary types and validations for developing APIs",
4
- "version": "0.40.85",
4
+ "version": "0.40.87",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",