@nomalism-com/types 0.40.81 → 0.40.83
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type * as IShared from '../../../shared/interface';
|
|
2
|
-
import type * as Persona from '../../user/persona/interface';
|
|
3
2
|
import type * as ChatSubscriber from '../../user/chatSubscribers/interfaces';
|
|
4
3
|
import { Chat, File } from '../../../shared/entities/stock';
|
|
5
4
|
export type Entity = Chat;
|
|
@@ -29,14 +28,13 @@ export interface IChatBalloon {
|
|
|
29
28
|
}
|
|
30
29
|
export type IReport = Pick<Entity, 'email_processed' | 'email_delivered' | 'email_opened' | 'email_clicked'>;
|
|
31
30
|
export interface IPublicFindActiveByOwnerIdResponse {
|
|
32
|
-
persona?: Persona.IFindContactPersonaByOwnerId;
|
|
33
31
|
last_group_report?: IReport;
|
|
34
32
|
owner_id?: string;
|
|
35
33
|
document_header_id?: string;
|
|
36
34
|
chat: IChatBalloon[];
|
|
37
35
|
}
|
|
38
36
|
export interface IPublicClientWebAppFindActiveByOwnerIdResponse {
|
|
39
|
-
personas: ChatSubscriber.
|
|
37
|
+
personas: ChatSubscriber.IFindChatSubscriberPersona[];
|
|
40
38
|
last_group_report?: IReport;
|
|
41
39
|
owner_id?: string;
|
|
42
40
|
store_operator_name?: string;
|
|
@@ -20,10 +20,11 @@ export interface IFindResponse extends Pick<Persona, 'external' | 'name' | 'emai
|
|
|
20
20
|
owner_id?: ChatSubscriber['owner_id'];
|
|
21
21
|
document_header_id?: ChatSubscriber['document_header_id'];
|
|
22
22
|
}
|
|
23
|
+
export interface IFindChatSubscriberPersona extends Pick<Persona, 'external' | 'name' | 'email' | 'telephone'> {
|
|
24
|
+
contact: boolean;
|
|
25
|
+
}
|
|
23
26
|
export interface IFindChatSubscriberResponse {
|
|
24
|
-
personas:
|
|
25
|
-
contact: boolean;
|
|
26
|
-
})[];
|
|
27
|
+
personas: IFindChatSubscriberPersona[];
|
|
27
28
|
chat_type: IChatType;
|
|
28
29
|
}
|
|
29
30
|
export interface 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.83",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|