@nomalism-com/types 0.43.65 → 0.43.67

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.
@@ -9,6 +9,7 @@ export interface IChatBalloon {
9
9
  id?: string;
10
10
  read?: boolean;
11
11
  client_read?: boolean;
12
+ translation?: string;
12
13
  };
13
14
  file?: Pick<File, 'multimedia_id' | 'filename'> & {
14
15
  id?: string;
@@ -15,7 +15,7 @@ export interface IFindDocumentHeaderSubscribersRequest {
15
15
  export interface IFindSubscribedDocumentHeadersRequest {
16
16
  owner_id: string;
17
17
  }
18
- export type IPersona = Pick<Persona, 'id' | 'external' | 'name' | 'email' | 'telephone'>;
18
+ export type IPersona = Pick<Persona, 'id' | 'external' | 'name' | 'email' | 'telephone' | 'language_id'>;
19
19
  export interface IEntityWithPersona extends Pick<ChatSubscriber, 'id' | 'chat_document_header_id'> {
20
20
  persona: IPersona;
21
21
  }
@@ -117,6 +117,9 @@ export interface IFindForGmailRequest {
117
117
  export interface IFindForGmailResponse {
118
118
  chat_persona_name: string;
119
119
  }
120
+ export interface IPublicUpdateRequest {
121
+ language_id: string | null;
122
+ }
120
123
  export interface IRepository {
121
124
  findById(selector: IShared.IFindByIdRequest): Promise<IEntityExtended | null>;
122
125
  findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
@@ -128,5 +131,6 @@ export interface IRepository {
128
131
  findByEmail(data: IFindByEmailRequest): Promise<IFindByEmailResponse[]>;
129
132
  findClientOrProvider(data: IFindClientOrProviderRequest): Promise<IFindClientOrProviderResponse[]>;
130
133
  findForGmail(data: IFindForGmailRequest): Promise<IFindForGmailResponse | null>;
134
+ publicUpdate(selector: IShared.IFindByIdRequest, data: IPublicUpdateRequest): Promise<void>;
131
135
  }
132
136
  export type IController = IShared.IEntityWithUserToken<IRepository>;
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.43.65",
4
+ "version": "0.43.67",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",