@nomalism-com/types 0.40.79 → 0.40.80
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.
|
@@ -19,15 +19,12 @@ export interface IFindResponse extends Pick<Persona, 'external' | 'name' | 'emai
|
|
|
19
19
|
owner_id?: ChatSubscriber['owner_id'];
|
|
20
20
|
document_header_id?: ChatSubscriber['document_header_id'];
|
|
21
21
|
}
|
|
22
|
-
export
|
|
23
|
-
id?: ChatSubscriber['id'];
|
|
24
|
-
persona_id: ChatSubscriber['persona_id'];
|
|
25
|
-
}
|
|
22
|
+
export type IFindChatSubscriberResponse = Pick<Persona, 'external' | 'name' | 'email' | 'telephone'>;
|
|
26
23
|
export interface IRepository {
|
|
27
24
|
createOrUpdate(data: ICreateOrUpdateRequest): Promise<void>;
|
|
28
25
|
findById(selector: IShared.IFindByIdRequest): Promise<IFindResponse>;
|
|
29
26
|
findByOwner(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
30
|
-
clientWebAppFindByOwner(selector:
|
|
27
|
+
clientWebAppFindByOwner(selector: IFindRequest): Promise<IFindChatSubscriberResponse[]>;
|
|
31
28
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
32
29
|
}
|
|
33
30
|
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.40.
|
|
4
|
+
"version": "0.40.80",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|