@nomalism-com/types 0.37.20 → 0.39.0

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.
@@ -113,6 +113,14 @@ export interface IFindClientOrProviderResponse {
113
113
  email: string | null;
114
114
  telephone: string | null;
115
115
  }
116
+ export interface IFindForGmailRequest {
117
+ owner_id: string;
118
+ email: string;
119
+ }
120
+ export interface IFindForGmailResponse {
121
+ chat_persona_name: string;
122
+ chat_type: IChatType;
123
+ }
116
124
  export interface IRepository {
117
125
  findById(selector: IShared.IFindByIdRequest): Promise<IEntityExtended | null>;
118
126
  findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
@@ -124,5 +132,6 @@ export interface IRepository {
124
132
  find(data: IFindRequest): Promise<IFindResponse[]>;
125
133
  findByEmail(data: IFindByEmailRequest): Promise<IFindByEmailResponse[]>;
126
134
  findClientOrProvider(data: IFindClientOrProviderRequest): Promise<IFindClientOrProviderResponse[]>;
135
+ findForGmail(data: IFindForGmailRequest): Promise<IFindForGmailResponse | null>;
127
136
  }
128
137
  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.37.20",
4
+ "version": "0.39.0",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",