@nomalism-com/types 0.43.65 → 0.43.68

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/dist/index.cjs CHANGED
@@ -4283,6 +4283,7 @@ __export(route_schema_exports74, {
4283
4283
  findForGmailParamsValidate: () => findForGmailParamsValidate,
4284
4284
  findQuery: () => findQuery30,
4285
4285
  getBasicSearchParamsValidate: () => getBasicSearchParamsValidate,
4286
+ publicUpdateBody: () => publicUpdateBody,
4286
4287
  updateBody: () => updateBody48
4287
4288
  });
4288
4289
  import joi75 from "joi";
@@ -4358,6 +4359,10 @@ var findForGmailParamsKeys = {
4358
4359
  owner_id: joi75.string().uuid().required()
4359
4360
  };
4360
4361
  var findForGmailParamsValidate = joi75.object().keys(findForGmailParamsKeys).messages(messages);
4362
+ var publicUpdateBodyKeys = {
4363
+ language_id: joi75.string().uuid().allow(null, "").required()
4364
+ };
4365
+ var publicUpdateBody = joi75.object().keys(publicUpdateBodyKeys).messages(messages);
4361
4366
 
4362
4367
  // src/modules/integration/projectInfo/route.schema.ts
4363
4368
  var route_schema_exports75 = {};
package/dist/index.js CHANGED
@@ -4283,6 +4283,7 @@ __export(route_schema_exports74, {
4283
4283
  findForGmailParamsValidate: () => findForGmailParamsValidate,
4284
4284
  findQuery: () => findQuery30,
4285
4285
  getBasicSearchParamsValidate: () => getBasicSearchParamsValidate,
4286
+ publicUpdateBody: () => publicUpdateBody,
4286
4287
  updateBody: () => updateBody48
4287
4288
  });
4288
4289
  import joi75 from "joi";
@@ -4358,6 +4359,10 @@ var findForGmailParamsKeys = {
4358
4359
  owner_id: joi75.string().uuid().required()
4359
4360
  };
4360
4361
  var findForGmailParamsValidate = joi75.object().keys(findForGmailParamsKeys).messages(messages);
4362
+ var publicUpdateBodyKeys = {
4363
+ language_id: joi75.string().uuid().allow(null, "").required()
4364
+ };
4365
+ var publicUpdateBody = joi75.object().keys(publicUpdateBodyKeys).messages(messages);
4361
4366
 
4362
4367
  // src/modules/integration/projectInfo/route.schema.ts
4363
4368
  var route_schema_exports75 = {};
@@ -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>;
@@ -7,3 +7,4 @@ export declare const deleteQueryValidate: joi.ObjectSchema<any>;
7
7
  export declare const FindByEmailQueryValidate: joi.ObjectSchema<any>;
8
8
  export declare const FindClientOrProviderQueryValidate: joi.ObjectSchema<any>;
9
9
  export declare const findForGmailParamsValidate: joi.ObjectSchema<any>;
10
+ export declare const publicUpdateBody: joi.ObjectSchema<any>;
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.68",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",