@nomalism-com/types 0.40.102 → 0.40.103

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,22 @@ 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
- document_header_id: string;
40
- store_operator_name: string;
41
- document_total?: number;
42
37
  chat: IChatBalloon[];
38
+ persona: ChatSubscriber.IFindChatSubscriberPersona;
39
+ store_operator_name: string;
40
+ document_total: number;
43
41
  }
44
42
  export interface IPublicClientWebAppFindActiveByOwnerIdResponse {
45
- personas: ChatSubscriber.IFindChatSubscriberPersona[];
46
43
  owner_id: string;
47
- document_header_id: string;
48
- store_operator_name: string;
49
- document_total: number;
50
44
  chat_type: IChatType;
51
45
  chat: IChatBalloon[];
46
+ personas: ChatSubscriber.IFindChatSubscriberPersona[];
47
+ store_operator_name?: string;
48
+ document_total?: number;
52
49
  }
53
50
  export interface ICreateRequest {
54
51
  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 interface IFindResponse extends Pick<Persona, 'external' | 'name' | 'email' | 'telephone'> {
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.102",
4
+ "version": "0.40.103",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",