@opens/gateways 1.17.2 → 1.17.3
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.
|
@@ -56,13 +56,18 @@ interface FindContactByIdResponse extends Contact {
|
|
|
56
56
|
instagramProfile: Record<string, unknown>[];
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
/** Query parameters for searching WhatsApp accounts. */
|
|
59
|
+
/** Query parameters for searching WhatsApp accounts. Text filters are combined with OR within the company and portfolio scope. */
|
|
60
60
|
interface SearchWhatsappAccountsRequest {
|
|
61
61
|
companyId?: string;
|
|
62
62
|
businessPortfolioId?: string;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
filterBsuid?: string;
|
|
64
|
+
filterContactName?: string;
|
|
65
|
+
filterContactCpf?: string;
|
|
66
|
+
filterPhone?: string;
|
|
67
|
+
filterCategoryName?: string;
|
|
68
|
+
filterOrganizationName?: string;
|
|
69
|
+
includes?: 'phone'[];
|
|
70
|
+
contactInclude?: ('organization' | 'category' | 'phone' | 'email')[];
|
|
66
71
|
limit?: number;
|
|
67
72
|
offset?: number;
|
|
68
73
|
orderBy?: 'name' | 'bsuid' | 'createdAt';
|
|
@@ -81,22 +86,23 @@ interface WhatsappAccountResponse {
|
|
|
81
86
|
}
|
|
82
87
|
/** WhatsApp account with its contact details returned by search. */
|
|
83
88
|
interface WhatsappAccountSearchItemResponse extends WhatsappAccountResponse {
|
|
89
|
+
phone?: FindContactByIdPhoneResponse | null;
|
|
84
90
|
contact: Contact & {
|
|
85
|
-
organization
|
|
86
|
-
id:
|
|
91
|
+
organization?: {
|
|
92
|
+
id: number;
|
|
87
93
|
name: string;
|
|
88
94
|
} | null;
|
|
89
|
-
category
|
|
90
|
-
id:
|
|
95
|
+
category?: {
|
|
96
|
+
id: number;
|
|
91
97
|
name: string;
|
|
92
98
|
} | null;
|
|
93
|
-
phones
|
|
99
|
+
phones?: FindContactByIdPhoneResponse[];
|
|
100
|
+
emails?: FindContactByIdEmailResponse[];
|
|
94
101
|
};
|
|
95
102
|
}
|
|
96
103
|
/** Paginated WhatsApp account search response. */
|
|
97
104
|
interface SearchWhatsappAccountsResponse {
|
|
98
105
|
total: number;
|
|
99
|
-
totalItems: number;
|
|
100
106
|
accounts: WhatsappAccountSearchItemResponse[];
|
|
101
107
|
}
|
|
102
108
|
|
|
@@ -56,13 +56,18 @@ interface FindContactByIdResponse extends Contact {
|
|
|
56
56
|
instagramProfile: Record<string, unknown>[];
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
/** Query parameters for searching WhatsApp accounts. */
|
|
59
|
+
/** Query parameters for searching WhatsApp accounts. Text filters are combined with OR within the company and portfolio scope. */
|
|
60
60
|
interface SearchWhatsappAccountsRequest {
|
|
61
61
|
companyId?: string;
|
|
62
62
|
businessPortfolioId?: string;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
filterBsuid?: string;
|
|
64
|
+
filterContactName?: string;
|
|
65
|
+
filterContactCpf?: string;
|
|
66
|
+
filterPhone?: string;
|
|
67
|
+
filterCategoryName?: string;
|
|
68
|
+
filterOrganizationName?: string;
|
|
69
|
+
includes?: 'phone'[];
|
|
70
|
+
contactInclude?: ('organization' | 'category' | 'phone' | 'email')[];
|
|
66
71
|
limit?: number;
|
|
67
72
|
offset?: number;
|
|
68
73
|
orderBy?: 'name' | 'bsuid' | 'createdAt';
|
|
@@ -81,22 +86,23 @@ interface WhatsappAccountResponse {
|
|
|
81
86
|
}
|
|
82
87
|
/** WhatsApp account with its contact details returned by search. */
|
|
83
88
|
interface WhatsappAccountSearchItemResponse extends WhatsappAccountResponse {
|
|
89
|
+
phone?: FindContactByIdPhoneResponse | null;
|
|
84
90
|
contact: Contact & {
|
|
85
|
-
organization
|
|
86
|
-
id:
|
|
91
|
+
organization?: {
|
|
92
|
+
id: number;
|
|
87
93
|
name: string;
|
|
88
94
|
} | null;
|
|
89
|
-
category
|
|
90
|
-
id:
|
|
95
|
+
category?: {
|
|
96
|
+
id: number;
|
|
91
97
|
name: string;
|
|
92
98
|
} | null;
|
|
93
|
-
phones
|
|
99
|
+
phones?: FindContactByIdPhoneResponse[];
|
|
100
|
+
emails?: FindContactByIdEmailResponse[];
|
|
94
101
|
};
|
|
95
102
|
}
|
|
96
103
|
/** Paginated WhatsApp account search response. */
|
|
97
104
|
interface SearchWhatsappAccountsResponse {
|
|
98
105
|
total: number;
|
|
99
|
-
totalItems: number;
|
|
100
106
|
accounts: WhatsappAccountSearchItemResponse[];
|
|
101
107
|
}
|
|
102
108
|
|
package/package.json
CHANGED