@nomalism-com/types 0.43.18 → 0.43.20
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.
|
@@ -22,11 +22,12 @@ export interface IChatBalloon {
|
|
|
22
22
|
ghost?: boolean;
|
|
23
23
|
}
|
|
24
24
|
export type IReport = Pick<Entity, 'email_processed' | 'email_delivered' | 'email_opened' | 'email_clicked'>;
|
|
25
|
-
export interface
|
|
25
|
+
export interface IFindActiveByOwnerIdResponse {
|
|
26
26
|
chat: IChatBalloon[];
|
|
27
27
|
last_group_report?: IReport;
|
|
28
28
|
}
|
|
29
29
|
export interface IPublicFindBySubscriberId {
|
|
30
|
+
owner_id: string;
|
|
30
31
|
chat_document_header_id: string;
|
|
31
32
|
chat: IChatBalloon[];
|
|
32
33
|
persona: ChatSubscriber.IFindChatSubscriberPersona;
|
|
@@ -63,7 +64,7 @@ export interface IMarkAllClientReadUnreadRequest {
|
|
|
63
64
|
client_read: boolean;
|
|
64
65
|
}
|
|
65
66
|
export interface IRepository {
|
|
66
|
-
findActiveByOwnerId(params: IShared.IFindByIdRequest): Promise<
|
|
67
|
+
findActiveByOwnerId(params: IShared.IFindByIdRequest): Promise<IFindActiveByOwnerIdResponse>;
|
|
67
68
|
clientWebAppFindActiveByOwnerId(params: IShared.IFindByIdRequest): Promise<IPublicClientWebAppFindActiveByOwnerIdResponse>;
|
|
68
69
|
findActiveBySubscriberId(params: IShared.IFindByIdRequest): Promise<IPublicFindBySubscriberId>;
|
|
69
70
|
resendLast(params: IShared.IFindByIdRequest): Promise<void>;
|
|
@@ -14,7 +14,6 @@ export interface IFindRequest {
|
|
|
14
14
|
}
|
|
15
15
|
export type IFindByOwnerResponse = Pick<Persona, 'external' | 'name' | 'email' | 'telephone'> & Pick<ChatSubscriber, 'id' | 'persona_id' | 'chat_document_header_id'>;
|
|
16
16
|
export interface IFindByIdResponse extends IFindByOwnerResponse {
|
|
17
|
-
owner_id: string;
|
|
18
17
|
subscriptions: {
|
|
19
18
|
id: string;
|
|
20
19
|
chat_document_header_id: string;
|
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.
|
|
4
|
+
"version": "0.43.20",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|