@nomalism-com/types 0.40.102 → 0.40.104
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.
|
@@ -30,25 +30,23 @@ export type IReport = Pick<Entity, 'email_processed' | 'email_delivered' | 'emai
|
|
|
30
30
|
export interface IPublicFindActiveByOwnerIdResponse {
|
|
31
31
|
last_group_report?: IReport;
|
|
32
32
|
owner_id: string;
|
|
33
|
-
document_header_id: string;
|
|
34
33
|
chat: IChatBalloon[];
|
|
35
34
|
}
|
|
36
35
|
export interface IPublicFindBySubscriberId {
|
|
37
|
-
persona: ChatSubscriber.IFindChatSubscriberPersona;
|
|
38
36
|
owner_id: string;
|
|
39
37
|
document_header_id: string;
|
|
40
|
-
store_operator_name: string;
|
|
41
|
-
document_total?: number;
|
|
42
38
|
chat: IChatBalloon[];
|
|
39
|
+
persona: ChatSubscriber.IFindChatSubscriberPersona;
|
|
40
|
+
store_operator_name: string;
|
|
41
|
+
document_total: number;
|
|
43
42
|
}
|
|
44
43
|
export interface IPublicClientWebAppFindActiveByOwnerIdResponse {
|
|
45
|
-
personas: ChatSubscriber.IFindChatSubscriberPersona[];
|
|
46
44
|
owner_id: string;
|
|
47
|
-
document_header_id: string;
|
|
48
|
-
store_operator_name: string;
|
|
49
|
-
document_total: number;
|
|
50
45
|
chat_type: IChatType;
|
|
51
46
|
chat: IChatBalloon[];
|
|
47
|
+
personas: ChatSubscriber.IFindChatSubscriberPersona[];
|
|
48
|
+
store_operator_name?: string;
|
|
49
|
+
document_total?: number;
|
|
52
50
|
}
|
|
53
51
|
export interface ICreateRequest {
|
|
54
52
|
owner_id: string;
|
|
@@ -14,12 +14,7 @@ export interface IFindRequest {
|
|
|
14
14
|
owner_id: string;
|
|
15
15
|
document_header_id: string;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
18
|
-
id?: ChatSubscriber['id'];
|
|
19
|
-
persona_id: ChatSubscriber['persona_id'];
|
|
20
|
-
owner_id?: ChatSubscriber['owner_id'];
|
|
21
|
-
document_header_id?: ChatSubscriber['document_header_id'];
|
|
22
|
-
}
|
|
17
|
+
export type IFindResponse = Pick<Persona, 'external' | 'name' | 'email' | 'telephone'> & Pick<ChatSubscriber, 'id' | 'persona_id' | 'owner_id' | 'document_header_id'>;
|
|
23
18
|
export interface IFindChatSubscriberPersona extends Pick<Persona, 'external' | 'name' | 'email' | 'telephone'> {
|
|
24
19
|
contact: boolean;
|
|
25
20
|
}
|
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.104",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|