@voltade/envoy-sdk 1.4.1 → 1.4.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.
- package/dist/index.d.ts +5 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -13
- package/dist/index.js.map +1 -1
- package/dist/resources/companies/index.d.ts +3 -28
- package/dist/resources/companies/index.d.ts.map +1 -1
- package/dist/resources/companies/index.js +3 -42
- package/dist/resources/companies/index.js.map +1 -1
- package/dist/resources/companies/types.d.ts +0 -41
- package/dist/resources/companies/types.d.ts.map +1 -1
- package/dist/resources/companies/types.js +0 -4
- package/dist/resources/companies/types.js.map +1 -1
- package/dist/resources/contacts/index.d.ts +3 -36
- package/dist/resources/contacts/index.d.ts.map +1 -1
- package/dist/resources/contacts/index.js +2 -42
- package/dist/resources/contacts/index.js.map +1 -1
- package/dist/resources/contacts/types.d.ts +0 -41
- package/dist/resources/contacts/types.d.ts.map +1 -1
- package/dist/resources/contacts/types.js +0 -4
- package/dist/resources/contacts/types.js.map +1 -1
- package/dist/resources/index.d.ts +0 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +0 -1
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/orders/index.d.ts +5 -22
- package/dist/resources/orders/index.d.ts.map +1 -1
- package/dist/resources/orders/index.js +7 -24
- package/dist/resources/orders/index.js.map +1 -1
- package/dist/resources/orders/types.d.ts +3 -38
- package/dist/resources/orders/types.d.ts.map +1 -1
- package/dist/resources/orders/types.js +1 -3
- package/dist/resources/orders/types.js.map +1 -1
- package/package.json +1 -1
- package/dist/resources/filters.d.ts +0 -172
- package/dist/resources/filters.d.ts.map +0 -1
- package/dist/resources/filters.js +0 -299
- package/dist/resources/filters.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
6
|
* ```typescript
|
|
7
|
-
* import { EnvoyClient
|
|
7
|
+
* import { EnvoyClient } from '@voltade/envoy-sdk';
|
|
8
8
|
*
|
|
9
9
|
* const client = new EnvoyClient({
|
|
10
10
|
* apiKey: 'your-api-key',
|
|
@@ -18,23 +18,14 @@
|
|
|
18
18
|
* private: false
|
|
19
19
|
* });
|
|
20
20
|
*
|
|
21
|
-
* //
|
|
22
|
-
* const
|
|
23
|
-
* filters: [
|
|
24
|
-
* filters.eq('payment_status', ['paid']),
|
|
25
|
-
* filters.dateWithinLast('created_at', 7, 'days'),
|
|
26
|
-
* ],
|
|
27
|
-
* sort: sort.desc('created_at')
|
|
28
|
-
* });
|
|
21
|
+
* // Escalate to human
|
|
22
|
+
* const result = await client.conversations.escalateToHuman(123);
|
|
29
23
|
* ```
|
|
30
24
|
*/
|
|
31
25
|
export { EnvoyClient, type EnvoyClientConfig } from "./client.js";
|
|
32
|
-
export {
|
|
33
|
-
export type { FilterCondition, FilterOperator, QueryOperator, AttributeModel, DateUnit, TextFilterOperator, NumberFilterOperator, DateFilterOperator, ListFilterOperator, BooleanFilterOperator, } from "./resources/filters.js";
|
|
34
|
-
export { FilterConditionSchema, FilterOperatorSchema, QueryOperatorSchema, AttributeModelSchema, DateUnitSchema, } from "./resources/filters.js";
|
|
35
|
-
export type { Agent, Article, Assignee, Contact, ContactInbox, ContactFilterAttribute, CompanyFilterAttribute, Conversation, ConversationMeta, ConversationStatus, ContentType, CreateMessageParams, EscalationResponse, EscalationType, ListContactsParams, ListContactsResponse, ListCompaniesParams, ListCompaniesResponse, ListOrdersParams, ListOrdersResponse, Message, MessageType, MessagesResponse, MessagesResponseMeta, Order, OrderFilterAttribute, OrdersMeta, Priority, UpsertOrderParams, UpsertOrderRequest, UpsertOrderResponse, UpsertOrderResponsePayload, SearchParams, SearchResponse, Team, } from "./resources/index.js";
|
|
26
|
+
export type { Agent, Article, Assignee, Contact, ContactInbox, Conversation, ConversationMeta, ConversationStatus, ContentType, CreateMessageParams, EscalationResponse, EscalationType, ListOrdersParams, ListOrdersResponse, Message, MessageType, MessagesResponse, MessagesResponseMeta, Order, OrdersMeta, Priority, UpsertOrderParams, UpsertOrderRequest, UpsertOrderResponse, UpsertOrderResponsePayload, SearchParams, SearchResponse, Team, } from "./resources/index.js";
|
|
36
27
|
export { webhookEvent } from "./resources/webhooks/index.js";
|
|
37
|
-
export { Conversations, Inboxes, Orders
|
|
28
|
+
export { Conversations, Inboxes, Orders } from './resources/index.js';
|
|
38
29
|
export { AgentSchema, ArticleSchema, AssigneeSchema, ContactInboxSchema, ContactSchema, ConversationMetaSchema, ConversationSchema, ConversationStatusSchema, ContentTypeSchema, CreateMessageParamsSchema, EscalationResponseSchema, EscalationTypeSchema, ListOrdersParamsSchema, ListOrdersResponseSchema, MessageSchema, MessagesResponseMetaSchema, MessagesResponseSchema, MessageTypeSchema, OrdersMetaSchema, OrderSchema, PrioritySchema, UpsertOrderParamsSchema, UpsertOrderRequestSchema, UpsertOrderResponsePayloadSchema, UpsertOrderResponseSchema, SearchParamsSchema, SearchResponseSchema, TeamSchema, } from "./resources/index.js";
|
|
39
30
|
export { HttpClient } from "./http-client.js";
|
|
40
31
|
export { AuthenticationError, BadRequestError, EnvoyError, NetworkError, NotFoundError, RateLimitError, ServerError, ValidationError, } from "./errors.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGlE,YAAY,EACV,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,EACL,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,EAC1B,YAAY,EACZ,cAAc,EACd,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAGtE,OAAO,EACL,WAAW,EACX,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,EACb,0BAA0B,EAC1B,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,uBAAuB,EACvB,wBAAwB,EACxB,gCAAgC,EAChC,yBAAyB,EACzB,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,GACX,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,YAAY,EACZ,aAAa,EACb,cAAc,EACd,WAAW,EACX,eAAe,GAChB,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
6
|
* ```typescript
|
|
7
|
-
* import { EnvoyClient
|
|
7
|
+
* import { EnvoyClient } from '@voltade/envoy-sdk';
|
|
8
8
|
*
|
|
9
9
|
* const client = new EnvoyClient({
|
|
10
10
|
* apiKey: 'your-api-key',
|
|
@@ -18,23 +18,14 @@
|
|
|
18
18
|
* private: false
|
|
19
19
|
* });
|
|
20
20
|
*
|
|
21
|
-
* //
|
|
22
|
-
* const
|
|
23
|
-
* filters: [
|
|
24
|
-
* filters.eq('payment_status', ['paid']),
|
|
25
|
-
* filters.dateWithinLast('created_at', 7, 'days'),
|
|
26
|
-
* ],
|
|
27
|
-
* sort: sort.desc('created_at')
|
|
28
|
-
* });
|
|
21
|
+
* // Escalate to human
|
|
22
|
+
* const result = await client.conversations.escalateToHuman(123);
|
|
29
23
|
* ```
|
|
30
24
|
*/
|
|
31
25
|
// Main client export
|
|
32
26
|
export { EnvoyClient } from "./client.js";
|
|
33
|
-
// Filter helpers and types
|
|
34
|
-
export { filters, sort } from "./resources/filters.js";
|
|
35
|
-
export { FilterConditionSchema, FilterOperatorSchema, QueryOperatorSchema, AttributeModelSchema, DateUnitSchema, } from "./resources/filters.js";
|
|
36
27
|
export { webhookEvent } from "./resources/webhooks/index.js";
|
|
37
|
-
export { Conversations, Inboxes, Orders
|
|
28
|
+
export { Conversations, Inboxes, Orders } from './resources/index.js';
|
|
38
29
|
// Zod schema exports
|
|
39
30
|
export { AgentSchema, ArticleSchema, AssigneeSchema, ContactInboxSchema, ContactSchema, ConversationMetaSchema, ConversationSchema, ConversationStatusSchema, ContentTypeSchema, CreateMessageParamsSchema, EscalationResponseSchema, EscalationTypeSchema, ListOrdersParamsSchema, ListOrdersResponseSchema, MessageSchema, MessagesResponseMetaSchema, MessagesResponseSchema, MessageTypeSchema, OrdersMetaSchema, OrderSchema, PrioritySchema, UpsertOrderParamsSchema, UpsertOrderRequestSchema, UpsertOrderResponsePayloadSchema, UpsertOrderResponseSchema, SearchParamsSchema, SearchResponseSchema, TeamSchema, } from "./resources/index.js";
|
|
40
31
|
// Utility exports
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,qBAAqB;AACrB,OAAO,EAAE,WAAW,EAA0B,MAAM,aAAa,CAAC;AAiClE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEtE,qBAAqB;AACrB,OAAO,EACL,WAAW,EACX,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,EACb,0BAA0B,EAC1B,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,uBAAuB,EACvB,wBAAwB,EACxB,gCAAgC,EAChC,yBAAyB,EACzB,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,GACX,MAAM,sBAAsB,CAAC;AAE9B,kBAAkB;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,gBAAgB;AAChB,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,YAAY,EACZ,aAAa,EACb,cAAc,EACd,WAAW,EACX,eAAe,GAChB,MAAM,aAAa,CAAC"}
|
|
@@ -16,42 +16,17 @@ export declare class Companies extends BaseResource {
|
|
|
16
16
|
readonly members: CompanyMembers;
|
|
17
17
|
constructor(client: HttpClient);
|
|
18
18
|
/**
|
|
19
|
-
* List all companies
|
|
20
|
-
* @param params - Pagination
|
|
19
|
+
* List all companies
|
|
20
|
+
* @param params - Pagination parameters
|
|
21
21
|
* @returns List of companies
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* ```typescript
|
|
25
|
-
* import { filters, sort } from 'envoy-sdk';
|
|
26
|
-
*
|
|
27
|
-
* // Basic listing
|
|
28
25
|
* const companies = await client.companies.list();
|
|
29
26
|
* console.log(companies); // Array of companies
|
|
30
27
|
*
|
|
31
28
|
* // With pagination
|
|
32
29
|
* const companies = await client.companies.list({ page: 2, per_page: 50 });
|
|
33
|
-
*
|
|
34
|
-
* // Find companies by name
|
|
35
|
-
* const companies = await client.companies.list({
|
|
36
|
-
* filters: [
|
|
37
|
-
* filters.contains('name', 'Acme'),
|
|
38
|
-
* ]
|
|
39
|
-
* });
|
|
40
|
-
*
|
|
41
|
-
* // Find companies created after a specific date
|
|
42
|
-
* const companies = await client.companies.list({
|
|
43
|
-
* filters: [
|
|
44
|
-
* filters.dateAfter('created_at', '2025-01-01'),
|
|
45
|
-
* ],
|
|
46
|
-
* sort: sort.desc('created_at')
|
|
47
|
-
* });
|
|
48
|
-
*
|
|
49
|
-
* // Filter by custom attribute (e.g., industry)
|
|
50
|
-
* const companies = await client.companies.list({
|
|
51
|
-
* filters: [
|
|
52
|
-
* filters.custom('industry', 'equal_to', ['Technology']),
|
|
53
|
-
* ]
|
|
54
|
-
* });
|
|
55
30
|
* ```
|
|
56
31
|
*/
|
|
57
32
|
list(params?: ListCompaniesParams): Promise<ListCompaniesResponse>;
|
|
@@ -126,6 +101,6 @@ export declare class Companies extends BaseResource {
|
|
|
126
101
|
*/
|
|
127
102
|
delete(companyId: number): Promise<void>;
|
|
128
103
|
}
|
|
129
|
-
export type { Company,
|
|
104
|
+
export type { Company, CreateCompanyParams, CreateCompanyRequest, CreateCompanyResponse, GetCompanyResponse, ListCompaniesParams, ListCompaniesResponse, SearchCompaniesParams, SearchCompaniesResponse, UpdateCompanyParams, UpdateCompanyRequest, UpdateCompanyResponse, } from "./types.js";
|
|
130
105
|
export { CompanySchema, CreateCompanyParamsSchema, CreateCompanyRequestSchema, CreateCompanyResponseSchema, GetCompanyResponseSchema, ListCompaniesParamsSchema, ListCompaniesResponseSchema, SearchCompaniesParamsSchema, SearchCompaniesResponseSchema, UpdateCompanyParamsSchema, UpdateCompanyRequestSchema, UpdateCompanyResponseSchema, } from "./types.js";
|
|
131
106
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../resources/companies/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,qBAAa,SAAU,SAAQ,YAAY;IACzC;;OAEG;IACH,SAAgB,OAAO,EAAE,cAAc,CAAC;gBAE5B,MAAM,EAAE,UAAU;IAI9B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../resources/companies/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,qBAAa,SAAU,SAAQ,YAAY;IACzC;;OAEG;IACH,SAAgB,OAAO,EAAE,cAAc,CAAC;gBAE5B,MAAM,EAAE,UAAU;IAI9B;;;;;;;;;;;;;OAaG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAMxE;;;;;;;;;;;;OAYG;IACG,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAMzE;;;;;;;;;;OAUG;IACG,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIzD;;;;;;;;;;;;;OAaG;IACG,MAAM,CACV,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,qBAAqB,CAAC;IAOjC;;;;;;;;;;;;;;OAcG;IACG,MAAM,CACV,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAC5C,OAAO,CAAC,uBAAuB,CAAC;IAMnC;;;;;;;;OAQG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG/C;AAGD,YAAY,EACV,OAAO,EACP,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,aAAa,EACb,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,YAAY,CAAC"}
|
|
@@ -13,61 +13,22 @@ export class Companies extends BaseResource {
|
|
|
13
13
|
this.members = new CompanyMembers(client);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* List all companies
|
|
17
|
-
* @param params - Pagination
|
|
16
|
+
* List all companies
|
|
17
|
+
* @param params - Pagination parameters
|
|
18
18
|
* @returns List of companies
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```typescript
|
|
22
|
-
* import { filters, sort } from 'envoy-sdk';
|
|
23
|
-
*
|
|
24
|
-
* // Basic listing
|
|
25
22
|
* const companies = await client.companies.list();
|
|
26
23
|
* console.log(companies); // Array of companies
|
|
27
24
|
*
|
|
28
25
|
* // With pagination
|
|
29
26
|
* const companies = await client.companies.list({ page: 2, per_page: 50 });
|
|
30
|
-
*
|
|
31
|
-
* // Find companies by name
|
|
32
|
-
* const companies = await client.companies.list({
|
|
33
|
-
* filters: [
|
|
34
|
-
* filters.contains('name', 'Acme'),
|
|
35
|
-
* ]
|
|
36
|
-
* });
|
|
37
|
-
*
|
|
38
|
-
* // Find companies created after a specific date
|
|
39
|
-
* const companies = await client.companies.list({
|
|
40
|
-
* filters: [
|
|
41
|
-
* filters.dateAfter('created_at', '2025-01-01'),
|
|
42
|
-
* ],
|
|
43
|
-
* sort: sort.desc('created_at')
|
|
44
|
-
* });
|
|
45
|
-
*
|
|
46
|
-
* // Filter by custom attribute (e.g., industry)
|
|
47
|
-
* const companies = await client.companies.list({
|
|
48
|
-
* filters: [
|
|
49
|
-
* filters.custom('industry', 'equal_to', ['Technology']),
|
|
50
|
-
* ]
|
|
51
|
-
* });
|
|
52
27
|
* ```
|
|
53
28
|
*/
|
|
54
29
|
async list(params) {
|
|
55
|
-
const queryParams = {};
|
|
56
|
-
if (params?.page !== undefined) {
|
|
57
|
-
queryParams.page = params.page;
|
|
58
|
-
}
|
|
59
|
-
if (params?.per_page !== undefined) {
|
|
60
|
-
queryParams.per_page = params.per_page;
|
|
61
|
-
}
|
|
62
|
-
if (params?.sort) {
|
|
63
|
-
queryParams.sort = params.sort;
|
|
64
|
-
}
|
|
65
|
-
// Only include payload when there are actual filters
|
|
66
|
-
if (params?.filters && params.filters.length > 0) {
|
|
67
|
-
queryParams.payload = JSON.stringify(params.filters);
|
|
68
|
-
}
|
|
69
30
|
return await this.client.get("/companies", {
|
|
70
|
-
params
|
|
31
|
+
params,
|
|
71
32
|
});
|
|
72
33
|
}
|
|
73
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../resources/companies/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAY7D;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,YAAY;IAMzC,YAAY,MAAkB;QAC5B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,OAAO,GAAG,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IACD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../resources/companies/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAY7D;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,YAAY;IAMzC,YAAY,MAAkB;QAC5B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,OAAO,GAAG,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IACD;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,IAAI,CAAC,MAA4B;QACrC,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAwB,YAAY,EAAE;YAChE,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,MAAM,CAAC,MAA2B;QACtC,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAwB,YAAY,EAAE;YACjE,OAAO,EAAE,MAAM;SAChB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,GAAG,CAAC,SAAiB;QACzB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAqB,cAAc,SAAS,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,MAAM,CACV,SAAiB,EACjB,MAA2B;QAE3B,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,cAAc,SAAS,EAAE,EACzB,EAAE,OAAO,EAAE,MAAM,EAAE,CACpB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,MAAM,CACV,KAAa,EACb,MAA6C;QAE7C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAA0B,mBAAmB,EAAE;YACzE,MAAM,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,GAAG,MAAM,EAAE;SAChC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,MAAM,CAAC,SAAiB;QAC5B,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAO,cAAc,SAAS,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF;AAkBD,wBAAwB;AACxB,OAAO,EACL,aAAa,EACb,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,YAAY,CAAC"}
|
|
@@ -49,47 +49,10 @@ export declare const CompanySchema: z.ZodObject<{
|
|
|
49
49
|
export declare const ListCompaniesParamsSchema: z.ZodObject<{
|
|
50
50
|
page: z.ZodOptional<z.ZodNumber>;
|
|
51
51
|
per_page: z.ZodOptional<z.ZodNumber>;
|
|
52
|
-
sort: z.ZodOptional<z.ZodString>;
|
|
53
|
-
/** Filter conditions array */
|
|
54
|
-
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
55
|
-
attribute_key: z.ZodString;
|
|
56
|
-
filter_operator: z.ZodEnum<["equal_to", "not_equal_to", "contains", "does_not_contain", "matches_phrase", "does_not_match_phrase", "starts_with", "is_present", "is_not_present", "is_greater_than", "is_less_than", "date_is", "date_is_before", "date_is_after", "date_is_between", "date_within_last_n", "date_within_next_n", "date_more_than_n_ago", "date_is_n_from_today", "in", "not_in"]>;
|
|
57
|
-
values: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
58
|
-
query_operator: z.ZodEnum<["and", "or"]>;
|
|
59
|
-
attribute_model: z.ZodOptional<z.ZodEnum<["standard", "customAttributes"]>>;
|
|
60
|
-
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
values: string | number | boolean | (string | number)[];
|
|
62
|
-
attribute_key: string;
|
|
63
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
64
|
-
query_operator: "and" | "or";
|
|
65
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
66
|
-
}, {
|
|
67
|
-
values: string | number | boolean | (string | number)[];
|
|
68
|
-
attribute_key: string;
|
|
69
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
70
|
-
query_operator: "and" | "or";
|
|
71
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
72
|
-
}>, "many">>;
|
|
73
52
|
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
sort?: string | undefined;
|
|
75
|
-
filters?: {
|
|
76
|
-
values: string | number | boolean | (string | number)[];
|
|
77
|
-
attribute_key: string;
|
|
78
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
79
|
-
query_operator: "and" | "or";
|
|
80
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
81
|
-
}[] | undefined;
|
|
82
53
|
page?: number | undefined;
|
|
83
54
|
per_page?: number | undefined;
|
|
84
55
|
}, {
|
|
85
|
-
sort?: string | undefined;
|
|
86
|
-
filters?: {
|
|
87
|
-
values: string | number | boolean | (string | number)[];
|
|
88
|
-
attribute_key: string;
|
|
89
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
90
|
-
query_operator: "and" | "or";
|
|
91
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
92
|
-
}[] | undefined;
|
|
93
56
|
page?: number | undefined;
|
|
94
57
|
per_page?: number | undefined;
|
|
95
58
|
}>;
|
|
@@ -140,10 +103,6 @@ export declare const ListCompaniesResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
140
103
|
phone_number?: string | undefined;
|
|
141
104
|
}[] | undefined;
|
|
142
105
|
}>, "many">;
|
|
143
|
-
/**
|
|
144
|
-
* Company filter attribute keys (standard fields)
|
|
145
|
-
*/
|
|
146
|
-
export type CompanyFilterAttribute = "name" | "created_at" | "updated_at" | (string & {});
|
|
147
106
|
export declare const CreateCompanyParamsSchema: z.ZodObject<{
|
|
148
107
|
name: z.ZodString;
|
|
149
108
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../resources/companies/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../resources/companies/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOxB,CAAC;AAGH,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAyB,CAAC;AAGlE,eAAO,MAAM,yBAAyB;;;;;;EAEpC,CAAC;AAGH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;EAErC,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgB,CAAC;AAGzD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgB,CAAC;AAGtD,eAAO,MAAM,yBAAyB;;;;;;EAEpC,CAAC;AAGH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;EAErC,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgB,CAAC;AAGzD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C,OAAO,6BAA6B,CACrC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { FilterConditionSchema } from "../filters.js";
|
|
3
2
|
/**
|
|
4
3
|
* Zod Schemas for Companies
|
|
5
4
|
*/
|
|
@@ -23,9 +22,6 @@ export const CompanySchema = z.object({
|
|
|
23
22
|
export const ListCompaniesParamsSchema = z.object({
|
|
24
23
|
page: z.number().optional(),
|
|
25
24
|
per_page: z.number().optional(),
|
|
26
|
-
sort: z.string().optional(),
|
|
27
|
-
/** Filter conditions array */
|
|
28
|
-
filters: z.array(FilterConditionSchema).optional(),
|
|
29
25
|
});
|
|
30
26
|
// List companies response - returns array directly
|
|
31
27
|
export const ListCompaniesResponseSchema = z.array(CompanySchema);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../resources/companies/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../resources/companies/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AAEH,gDAAgD;AAChD,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAEH,iBAAiB;AACjB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAA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AAyB;CACnC,CAAC,CAAC;AAEH,qDAAqD;AACrD,MAAM,CAAC,MAAM,2BAA2B,GAAG,aAAa,CAAC;AAEzD,iCAAiC;AACjC,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IACb,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,+BAA+B;AAC/B,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CAChD,CAAC,CAAC;AAEH,uDAAuD;AACvD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;CAChC,CAAC,CAAC"}
|
|
@@ -66,47 +66,14 @@ export declare class Contacts extends BaseResource {
|
|
|
66
66
|
*/
|
|
67
67
|
delete(contactId: number): Promise<void>;
|
|
68
68
|
/**
|
|
69
|
-
* List all contacts with pagination
|
|
70
|
-
* @param params - Query parameters for pagination
|
|
69
|
+
* List all contacts with pagination
|
|
70
|
+
* @param params - Query parameters for pagination and sorting
|
|
71
71
|
* @returns Paginated list of contacts
|
|
72
72
|
*
|
|
73
73
|
* @example
|
|
74
74
|
* ```typescript
|
|
75
|
-
* import { filters, sort } from 'envoy-sdk';
|
|
76
|
-
*
|
|
77
|
-
* // Basic pagination
|
|
78
75
|
* const response = await client.contacts.list({ page: 1 });
|
|
79
76
|
* console.log(response.payload); // Array of contacts
|
|
80
|
-
*
|
|
81
|
-
* // Find contacts with email containing "@acme.com"
|
|
82
|
-
* const response = await client.contacts.list({
|
|
83
|
-
* filters: [
|
|
84
|
-
* filters.contains('primary_email', '@acme.com'),
|
|
85
|
-
* ]
|
|
86
|
-
* });
|
|
87
|
-
*
|
|
88
|
-
* // Find contacts with email OR company name
|
|
89
|
-
* const response = await client.contacts.list({
|
|
90
|
-
* filters: [
|
|
91
|
-
* filters.contains('primary_email', '@acme.com', 'or'),
|
|
92
|
-
* filters.eq('company_name', ['Acme Inc']),
|
|
93
|
-
* ]
|
|
94
|
-
* });
|
|
95
|
-
*
|
|
96
|
-
* // Find blocked contacts
|
|
97
|
-
* const response = await client.contacts.list({
|
|
98
|
-
* filters: [
|
|
99
|
-
* filters.eq('blocked', true),
|
|
100
|
-
* ],
|
|
101
|
-
* sort: sort.desc('created_at')
|
|
102
|
-
* });
|
|
103
|
-
*
|
|
104
|
-
* // Find contacts with activity in last 30 days
|
|
105
|
-
* const response = await client.contacts.list({
|
|
106
|
-
* filters: [
|
|
107
|
-
* filters.dateWithinLast('last_activity_at', 30, 'days'),
|
|
108
|
-
* ]
|
|
109
|
-
* });
|
|
110
77
|
* ```
|
|
111
78
|
*/
|
|
112
79
|
list(params?: ListContactsParams): Promise<ListContactsResponse>;
|
|
@@ -126,6 +93,6 @@ export declare class Contacts extends BaseResource {
|
|
|
126
93
|
*/
|
|
127
94
|
search(params: SearchContactsParams): Promise<ListContactsResponse>;
|
|
128
95
|
}
|
|
129
|
-
export type { ContactCreateParams,
|
|
96
|
+
export type { ContactCreateParams, ContactUpdateParams, ListContactsParams, ListContactsResponse, SearchContactsParams, } from "./types.js";
|
|
130
97
|
export { ContactCreateParamsSchema, ContactUpdateParamsSchema, ListContactsParamsSchema, ListContactsResponseSchema, SearchContactsParamsSchema, } from "./types.js";
|
|
131
98
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../resources/contacts/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,qBAAa,QAAS,SAAQ,YAAY;IACxC;;;;;;;;;;;;;;;;OAgBG;IACG,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC;IAI3D;;;;;;;;;;;;;;OAcG;IACG,MAAM,CACV,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,OAAO,CAAC;IAInB;;;;;;;;;;OAUG;IACG,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI9C;;;;;;;;OAQG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../resources/contacts/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,qBAAa,QAAS,SAAQ,YAAY;IACxC;;;;;;;;;;;;;;;;OAgBG;IACG,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC;IAI3D;;;;;;;;;;;;;;OAcG;IACG,MAAM,CACV,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,OAAO,CAAC;IAInB;;;;;;;;;;OAUG;IACG,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI9C;;;;;;;;OAQG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C;;;;;;;;;;OAUG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAetE;;;;;;;;;;;;;OAaG;IACG,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAgB1E;AAGD,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,YAAY,CAAC"}
|
|
@@ -72,47 +72,14 @@ export class Contacts extends BaseResource {
|
|
|
72
72
|
await this.client.delete(`/contacts/${contactId}`);
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
|
-
* List all contacts with pagination
|
|
76
|
-
* @param params - Query parameters for pagination
|
|
75
|
+
* List all contacts with pagination
|
|
76
|
+
* @param params - Query parameters for pagination and sorting
|
|
77
77
|
* @returns Paginated list of contacts
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
80
|
* ```typescript
|
|
81
|
-
* import { filters, sort } from 'envoy-sdk';
|
|
82
|
-
*
|
|
83
|
-
* // Basic pagination
|
|
84
81
|
* const response = await client.contacts.list({ page: 1 });
|
|
85
82
|
* console.log(response.payload); // Array of contacts
|
|
86
|
-
*
|
|
87
|
-
* // Find contacts with email containing "@acme.com"
|
|
88
|
-
* const response = await client.contacts.list({
|
|
89
|
-
* filters: [
|
|
90
|
-
* filters.contains('primary_email', '@acme.com'),
|
|
91
|
-
* ]
|
|
92
|
-
* });
|
|
93
|
-
*
|
|
94
|
-
* // Find contacts with email OR company name
|
|
95
|
-
* const response = await client.contacts.list({
|
|
96
|
-
* filters: [
|
|
97
|
-
* filters.contains('primary_email', '@acme.com', 'or'),
|
|
98
|
-
* filters.eq('company_name', ['Acme Inc']),
|
|
99
|
-
* ]
|
|
100
|
-
* });
|
|
101
|
-
*
|
|
102
|
-
* // Find blocked contacts
|
|
103
|
-
* const response = await client.contacts.list({
|
|
104
|
-
* filters: [
|
|
105
|
-
* filters.eq('blocked', true),
|
|
106
|
-
* ],
|
|
107
|
-
* sort: sort.desc('created_at')
|
|
108
|
-
* });
|
|
109
|
-
*
|
|
110
|
-
* // Find contacts with activity in last 30 days
|
|
111
|
-
* const response = await client.contacts.list({
|
|
112
|
-
* filters: [
|
|
113
|
-
* filters.dateWithinLast('last_activity_at', 30, 'days'),
|
|
114
|
-
* ]
|
|
115
|
-
* });
|
|
116
83
|
* ```
|
|
117
84
|
*/
|
|
118
85
|
async list(params) {
|
|
@@ -120,16 +87,9 @@ export class Contacts extends BaseResource {
|
|
|
120
87
|
if (params?.page !== undefined) {
|
|
121
88
|
queryParams.page = params.page;
|
|
122
89
|
}
|
|
123
|
-
if (params?.per_page !== undefined) {
|
|
124
|
-
queryParams.per_page = params.per_page;
|
|
125
|
-
}
|
|
126
90
|
if (params?.sort) {
|
|
127
91
|
queryParams.sort = params.sort;
|
|
128
92
|
}
|
|
129
|
-
// Only include payload when there are actual filters
|
|
130
|
-
if (params?.filters && params.filters.length > 0) {
|
|
131
|
-
queryParams.payload = JSON.stringify(params.filters);
|
|
132
|
-
}
|
|
133
93
|
return await this.client.get("/contacts", {
|
|
134
94
|
params: queryParams,
|
|
135
95
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../resources/contacts/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA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kB,EAAE;YACrE,MAAM,EAAE,WAAW;SACpB,CAAC,CAAC;IACL,CAAC;CACF;AAWD,wBAAwB;AACxB,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,YAAY,CAAC"}
|
|
@@ -52,50 +52,13 @@ export declare const ContactUpdateParamsSchema: z.ZodObject<{
|
|
|
52
52
|
}>;
|
|
53
53
|
export declare const ListContactsParamsSchema: z.ZodObject<{
|
|
54
54
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
55
|
-
per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
56
55
|
sort: z.ZodOptional<z.ZodString>;
|
|
57
|
-
/** Filter conditions array */
|
|
58
|
-
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
|
-
attribute_key: z.ZodString;
|
|
60
|
-
filter_operator: z.ZodEnum<["equal_to", "not_equal_to", "contains", "does_not_contain", "matches_phrase", "does_not_match_phrase", "starts_with", "is_present", "is_not_present", "is_greater_than", "is_less_than", "date_is", "date_is_before", "date_is_after", "date_is_between", "date_within_last_n", "date_within_next_n", "date_more_than_n_ago", "date_is_n_from_today", "in", "not_in"]>;
|
|
61
|
-
values: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
62
|
-
query_operator: z.ZodEnum<["and", "or"]>;
|
|
63
|
-
attribute_model: z.ZodOptional<z.ZodEnum<["standard", "customAttributes"]>>;
|
|
64
|
-
}, "strip", z.ZodTypeAny, {
|
|
65
|
-
values: string | number | boolean | (string | number)[];
|
|
66
|
-
attribute_key: string;
|
|
67
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
68
|
-
query_operator: "and" | "or";
|
|
69
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
70
|
-
}, {
|
|
71
|
-
values: string | number | boolean | (string | number)[];
|
|
72
|
-
attribute_key: string;
|
|
73
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
74
|
-
query_operator: "and" | "or";
|
|
75
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
76
|
-
}>, "many">>;
|
|
77
56
|
}, "strip", z.ZodTypeAny, {
|
|
78
57
|
page: number;
|
|
79
|
-
per_page: number;
|
|
80
58
|
sort?: string | undefined;
|
|
81
|
-
filters?: {
|
|
82
|
-
values: string | number | boolean | (string | number)[];
|
|
83
|
-
attribute_key: string;
|
|
84
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
85
|
-
query_operator: "and" | "or";
|
|
86
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
87
|
-
}[] | undefined;
|
|
88
59
|
}, {
|
|
89
60
|
sort?: string | undefined;
|
|
90
|
-
filters?: {
|
|
91
|
-
values: string | number | boolean | (string | number)[];
|
|
92
|
-
attribute_key: string;
|
|
93
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
94
|
-
query_operator: "and" | "or";
|
|
95
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
96
|
-
}[] | undefined;
|
|
97
61
|
page?: number | undefined;
|
|
98
|
-
per_page?: number | undefined;
|
|
99
62
|
}>;
|
|
100
63
|
export declare const ListContactsResponseSchema: z.ZodObject<{
|
|
101
64
|
payload: z.ZodArray<z.ZodObject<{
|
|
@@ -200,10 +163,6 @@ export declare const SearchContactsParamsSchema: z.ZodObject<{
|
|
|
200
163
|
sort?: string | undefined;
|
|
201
164
|
page?: number | undefined;
|
|
202
165
|
}>;
|
|
203
|
-
/**
|
|
204
|
-
* Contact filter attribute keys (standard fields)
|
|
205
|
-
*/
|
|
206
|
-
export type ContactFilterAttribute = "name" | "primary_email" | "phone_number" | "identifier" | "company_name" | "source" | "created_at" | "last_activity_at" | "first_message_at" | "blocked" | "customer_stage" | "labels" | (string & {});
|
|
207
166
|
/**
|
|
208
167
|
* TypeScript Types (inferred from Zod schemas)
|
|
209
168
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../resources/contacts/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,KAAK,OAAO,EACZ,KAAK,YAAY,EAClB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../resources/contacts/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,KAAK,OAAO,EACZ,KAAK,YAAY,EAClB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AAGH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;EAkBpC,CAAC;AAGH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;EAiBpC,CAAC;AAGH,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AAGH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQrC,CAAC;AAGH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAIrC,CAAC;AAEH;;GAEG;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAG9E,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC;AAC7C,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { ContactSchema, ContactInboxSchema, } from "../conversations/types.js";
|
|
3
|
-
import { FilterConditionSchema } from "../filters.js";
|
|
4
3
|
/**
|
|
5
4
|
* Zod Schemas for Contacts
|
|
6
5
|
*/
|
|
@@ -46,10 +45,7 @@ export const ContactUpdateParamsSchema = z.object({
|
|
|
46
45
|
// List contacts parameters schema
|
|
47
46
|
export const ListContactsParamsSchema = z.object({
|
|
48
47
|
page: z.number().int().positive().optional().default(1),
|
|
49
|
-
per_page: z.number().int().positive().max(100).optional().default(25),
|
|
50
48
|
sort: z.string().optional().describe("Sort order for contacts"),
|
|
51
|
-
/** Filter conditions array */
|
|
52
|
-
filters: z.array(FilterConditionSchema).optional(),
|
|
53
49
|
});
|
|
54
50
|
// List contacts response schema
|
|
55
51
|
export const ListContactsResponseSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../resources/contacts/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,kBAAkB,GAGnB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../resources/contacts/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,kBAAkB,GAGnB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AAEH,mCAAmC;AACnC,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;IAChD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC3D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IACrE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IAC3E,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EA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CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;CAChE,CAAC,CAAC;AAEH,gCAAgC;AAChC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;IAC/B,IAAI,EAAE,CAAC;SACJ,MAAM,CAAC;QACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACpC,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH,oCAAoC;AACpC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kDAAkD,CAAC;IAC1E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACvD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;CAChE,CAAC,CAAC;AAYH,+CAA+C;AAC/C,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -7,7 +7,6 @@ export * from "./companies/index.js";
|
|
|
7
7
|
export * from "./company-members/index.js";
|
|
8
8
|
export * from "./contacts/index.js";
|
|
9
9
|
export * from "./conversations/index.js";
|
|
10
|
-
export * from "./filters.js";
|
|
11
10
|
export * from "./inboxes/index.js";
|
|
12
11
|
export * from "./orders/index.js";
|
|
13
12
|
export * from "./webhooks/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../resources/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../resources/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|
package/dist/resources/index.js
CHANGED
|
@@ -7,7 +7,6 @@ export * from "./companies/index.js";
|
|
|
7
7
|
export * from "./company-members/index.js";
|
|
8
8
|
export * from "./contacts/index.js";
|
|
9
9
|
export * from "./conversations/index.js";
|
|
10
|
-
export * from "./filters.js";
|
|
11
10
|
export * from "./inboxes/index.js";
|
|
12
11
|
export * from "./orders/index.js";
|
|
13
12
|
export * from "./webhooks/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../resources/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../resources/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|