@nomalism-com/types 0.40.86 → 0.40.88

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.
@@ -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";
@@ -33,6 +34,13 @@ export interface IPublicFindActiveByOwnerIdResponse {
33
34
  document_header_id?: string;
34
35
  chat: IChatBalloon[];
35
36
  }
37
+ export interface IPublicFindActiveByOwnerIdWithPersonaResponse {
38
+ persona?: Persona.IFindContactPersonaByOwnerId;
39
+ last_group_report?: IReport;
40
+ owner_id?: string;
41
+ document_header_id?: string;
42
+ chat: IChatBalloon[];
43
+ }
36
44
  export interface IPublicClientWebAppFindActiveByOwnerIdResponse {
37
45
  personas: ChatSubscriber.IFindChatSubscriberPersona[];
38
46
  last_group_report?: IReport;
@@ -68,7 +76,7 @@ export interface IMarkAllClientReadUnreadRequest {
68
76
  export interface IRepository {
69
77
  findActiveByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IPublicFindActiveByOwnerIdResponse>;
70
78
  clientWebAppFindActiveByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IPublicClientWebAppFindActiveByOwnerIdResponse>;
71
- findActiveBySubscriberId(params: IShared.IFindByOwnerIdRequest): Promise<IPublicFindActiveByOwnerIdResponse>;
79
+ findActiveBySubscriberId(params: IShared.IFindByOwnerIdRequest): Promise<IPublicFindActiveByOwnerIdWithPersonaResponse>;
72
80
  resendLast(params: IShared.IFindByOwnerIdRequest): Promise<void>;
73
81
  create(data: ICreateRequest): Promise<Chat>;
74
82
  update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
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.86",
4
+ "version": "0.40.88",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",