@nomalism-com/types 0.40.80 → 0.40.82
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.
|
@@ -36,7 +36,7 @@ export interface IPublicFindActiveByOwnerIdResponse {
|
|
|
36
36
|
chat: IChatBalloon[];
|
|
37
37
|
}
|
|
38
38
|
export interface IPublicClientWebAppFindActiveByOwnerIdResponse {
|
|
39
|
-
personas: ChatSubscriber.
|
|
39
|
+
personas: ChatSubscriber.IFindChatSubscriberPersona[];
|
|
40
40
|
last_group_report?: IReport;
|
|
41
41
|
owner_id?: string;
|
|
42
42
|
store_operator_name?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChatSubscriber, Persona } from './../../../shared/entities/user';
|
|
2
2
|
import * as IShared from '../../../shared/interface';
|
|
3
|
+
import { IChatType } from '../../stock/chat/interfaces';
|
|
3
4
|
export type Entity = ChatSubscriber;
|
|
4
5
|
export declare const Route = "chat_subscriber";
|
|
5
6
|
export declare const UpperName = "ChatSubscriber";
|
|
@@ -19,12 +20,18 @@ export interface IFindResponse extends Pick<Persona, 'external' | 'name' | 'emai
|
|
|
19
20
|
owner_id?: ChatSubscriber['owner_id'];
|
|
20
21
|
document_header_id?: ChatSubscriber['document_header_id'];
|
|
21
22
|
}
|
|
22
|
-
export
|
|
23
|
+
export interface IFindChatSubscriberPersona extends Pick<Persona, 'external' | 'name' | 'email' | 'telephone'> {
|
|
24
|
+
contact: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface IFindChatSubscriberResponse {
|
|
27
|
+
personas: IFindChatSubscriberPersona[];
|
|
28
|
+
chat_type: IChatType;
|
|
29
|
+
}
|
|
23
30
|
export interface IRepository {
|
|
24
31
|
createOrUpdate(data: ICreateOrUpdateRequest): Promise<void>;
|
|
25
32
|
findById(selector: IShared.IFindByIdRequest): Promise<IFindResponse>;
|
|
26
33
|
findByOwner(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
27
|
-
clientWebAppFindByOwner(selector: IFindRequest): Promise<IFindChatSubscriberResponse
|
|
34
|
+
clientWebAppFindByOwner(selector: IFindRequest): Promise<IFindChatSubscriberResponse>;
|
|
28
35
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
29
36
|
}
|
|
30
37
|
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.82",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|