@heymantle/core-api-client 0.1.0 → 0.1.1
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.mts +47 -1
- package/dist/index.d.ts +47 -1
- package/dist/index.js +17 -0
- package/dist/index.mjs +16 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1716,6 +1716,40 @@ interface CustomerSegmentListResponse extends PaginatedResponse {
|
|
|
1716
1716
|
customerSegments: CustomerSegment[];
|
|
1717
1717
|
}
|
|
1718
1718
|
|
|
1719
|
+
/**
|
|
1720
|
+
* Entity type discriminator
|
|
1721
|
+
*/
|
|
1722
|
+
type EntityType = 'contact' | 'customer';
|
|
1723
|
+
/**
|
|
1724
|
+
* Contact entity with type discriminator for unified search results
|
|
1725
|
+
*/
|
|
1726
|
+
interface ContactEntity extends Contact {
|
|
1727
|
+
_type: 'contact';
|
|
1728
|
+
}
|
|
1729
|
+
/**
|
|
1730
|
+
* Customer entity with type discriminator for unified search results
|
|
1731
|
+
*/
|
|
1732
|
+
interface CustomerEntity extends Customer {
|
|
1733
|
+
_type: 'customer';
|
|
1734
|
+
}
|
|
1735
|
+
/**
|
|
1736
|
+
* Union type for entities returned from unified search
|
|
1737
|
+
*/
|
|
1738
|
+
type Entity = ContactEntity | CustomerEntity;
|
|
1739
|
+
/**
|
|
1740
|
+
* Parameters for searching entities
|
|
1741
|
+
*/
|
|
1742
|
+
interface EntitiesSearchParams {
|
|
1743
|
+
search?: string;
|
|
1744
|
+
take?: number;
|
|
1745
|
+
}
|
|
1746
|
+
/**
|
|
1747
|
+
* Response from searching entities
|
|
1748
|
+
*/
|
|
1749
|
+
interface EntitiesSearchResponse {
|
|
1750
|
+
entities: Entity[];
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1719
1753
|
/**
|
|
1720
1754
|
* Resource for managing customers
|
|
1721
1755
|
*/
|
|
@@ -2777,6 +2811,17 @@ declare class DocsResource extends BaseResource {
|
|
|
2777
2811
|
getTree(): Promise<DocTreeResponse>;
|
|
2778
2812
|
}
|
|
2779
2813
|
|
|
2814
|
+
/**
|
|
2815
|
+
* Resource for unified entity search across contacts and customers
|
|
2816
|
+
*/
|
|
2817
|
+
declare class EntitiesResource extends BaseResource {
|
|
2818
|
+
/**
|
|
2819
|
+
* Search across contacts and customers
|
|
2820
|
+
* Returns entities with a _type discriminator field
|
|
2821
|
+
*/
|
|
2822
|
+
search(params?: EntitiesSearchParams): Promise<EntitiesSearchResponse>;
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2780
2825
|
/**
|
|
2781
2826
|
* Mantle Core API Client
|
|
2782
2827
|
*
|
|
@@ -2829,6 +2874,7 @@ declare class MantleCoreClient {
|
|
|
2829
2874
|
readonly organization: OrganizationResource;
|
|
2830
2875
|
readonly agents: AgentsResource;
|
|
2831
2876
|
readonly docs: DocsResource;
|
|
2877
|
+
readonly entities: EntitiesResource;
|
|
2832
2878
|
constructor(config: MantleCoreClientConfig);
|
|
2833
2879
|
/**
|
|
2834
2880
|
* Performs a GET request to the API
|
|
@@ -2904,4 +2950,4 @@ declare class MantleRateLimitError extends MantleAPIError {
|
|
|
2904
2950
|
constructor(message?: string, retryAfter?: number);
|
|
2905
2951
|
}
|
|
2906
2952
|
|
|
2907
|
-
export { type AccountOwner, type AccountOwnersListResponse, type Affiliate, type AffiliateCommission, type AffiliateCommissionListParams, type AffiliateCommissionListResponse, AffiliateCommissionsResource, type AffiliateListParams, type AffiliateListResponse, type AffiliatePayout, type AffiliatePayoutListParams, type AffiliatePayoutListResponse, AffiliatePayoutsResource, type AffiliateProgram, type AffiliateProgramCreateParams, type AffiliateProgramUpdateParams, AffiliateProgramsResource, type AffiliateReferral, type AffiliateReferralListParams, type AffiliateReferralListResponse, AffiliateReferralsResource, type AffiliateUpdateParams, AffiliatesResource, type Agent, type AgentListResponse, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, BaseResource, type Channel, type ChannelCreateParams, type ChannelListParams, ChannelsResource, type Charge, type ChargeListParams, type ChargeListResponse, ChargesResource, CompaniesResource, type Company, type CompanyCreateParams, type CompanyListParams, type CompanyListResponse, type CompanyUpdateParams, type Contact, type ContactCreateParams, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomField, type CustomFieldCreateParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerListParams, type CustomerListResponse, type CustomerRetrieveParams, type CustomerSegment, type CustomerSegmentListParams, type CustomerSegmentListResponse, CustomerSegmentsResource, type CustomerUpdateParams, CustomersResource, type DateRangeType, type Deal, DealActivitiesResource, type DealActivity, type DealActivityCreateParams, type DealActivityUpdateParams, type DealCreateParams, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealStage, type DealUpdateParams, DealsResource, type DeleteResponse, type DocCollection, type DocCollectionCreateParams, type DocCollectionUpdateParams, type DocGroup, type DocGroupCreateParams, type DocGroupUpdateParams, type DocPage, type DocPageCreateParams, type DocPageListParams, type DocPageListResponse, type DocPageStatus, type DocPageUpdateParams, type DocTreeNode, type DocTreeResponse, DocsResource, type Feature, type FeatureCreateParams, type FeatureUpdateParams, type Flow, type FlowCreateParams, type FlowListParams, type FlowListResponse, type FlowStatus, type FlowUpdateParams, FlowsResource, type ListParams, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type MeResponse, type MessageAttachment, type MetricDataPoint, type MetricType, type MetricsBaseParams, type MetricsGetParams, MetricsResource, type MetricsResponse, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SocialProfile, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type Transaction, type TransactionListParams, type TransactionListResponse, TransactionsResource, type UsageEvent, type UsageEventCreateData, type UsageEventCreateParams, type UsageEventCreateResponse, type UsageEventListParams, type UsageEventListResponse, type UsageEventMetricsParams, UsageEventsResource, type UsageMetric, type UsageMetricCreateParams, type UsageMetricParams, type UsageMetricUpdateParams, type User, type UserListParams, type UserListResponse, UsersResource, type Webhook, type WebhookCreateParams, type WebhookFilter, type WebhookListResponse, type WebhookTopic, type WebhookUpdateParams, WebhooksResource };
|
|
2953
|
+
export { type AccountOwner, type AccountOwnersListResponse, type Affiliate, type AffiliateCommission, type AffiliateCommissionListParams, type AffiliateCommissionListResponse, AffiliateCommissionsResource, type AffiliateListParams, type AffiliateListResponse, type AffiliatePayout, type AffiliatePayoutListParams, type AffiliatePayoutListResponse, AffiliatePayoutsResource, type AffiliateProgram, type AffiliateProgramCreateParams, type AffiliateProgramUpdateParams, AffiliateProgramsResource, type AffiliateReferral, type AffiliateReferralListParams, type AffiliateReferralListResponse, AffiliateReferralsResource, type AffiliateUpdateParams, AffiliatesResource, type Agent, type AgentListResponse, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, BaseResource, type Channel, type ChannelCreateParams, type ChannelListParams, ChannelsResource, type Charge, type ChargeListParams, type ChargeListResponse, ChargesResource, CompaniesResource, type Company, type CompanyCreateParams, type CompanyListParams, type CompanyListResponse, type CompanyUpdateParams, type Contact, type ContactCreateParams, type ContactEntity, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomField, type CustomFieldCreateParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerEntity, type CustomerListParams, type CustomerListResponse, type CustomerRetrieveParams, type CustomerSegment, type CustomerSegmentListParams, type CustomerSegmentListResponse, CustomerSegmentsResource, type CustomerUpdateParams, CustomersResource, type DateRangeType, type Deal, DealActivitiesResource, type DealActivity, type DealActivityCreateParams, type DealActivityUpdateParams, type DealCreateParams, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealStage, type DealUpdateParams, DealsResource, type DeleteResponse, type DocCollection, type DocCollectionCreateParams, type DocCollectionUpdateParams, type DocGroup, type DocGroupCreateParams, type DocGroupUpdateParams, type DocPage, type DocPageCreateParams, type DocPageListParams, type DocPageListResponse, type DocPageStatus, type DocPageUpdateParams, type DocTreeNode, type DocTreeResponse, DocsResource, EntitiesResource, type EntitiesSearchParams, type EntitiesSearchResponse, type Entity, type EntityType, type Feature, type FeatureCreateParams, type FeatureUpdateParams, type Flow, type FlowCreateParams, type FlowListParams, type FlowListResponse, type FlowStatus, type FlowUpdateParams, FlowsResource, type ListParams, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type MeResponse, type MessageAttachment, type MetricDataPoint, type MetricType, type MetricsBaseParams, type MetricsGetParams, MetricsResource, type MetricsResponse, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SocialProfile, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type Transaction, type TransactionListParams, type TransactionListResponse, TransactionsResource, type UsageEvent, type UsageEventCreateData, type UsageEventCreateParams, type UsageEventCreateResponse, type UsageEventListParams, type UsageEventListResponse, type UsageEventMetricsParams, UsageEventsResource, type UsageMetric, type UsageMetricCreateParams, type UsageMetricParams, type UsageMetricUpdateParams, type User, type UserListParams, type UserListResponse, UsersResource, type Webhook, type WebhookCreateParams, type WebhookFilter, type WebhookListResponse, type WebhookTopic, type WebhookUpdateParams, WebhooksResource };
|
package/dist/index.d.ts
CHANGED
|
@@ -1716,6 +1716,40 @@ interface CustomerSegmentListResponse extends PaginatedResponse {
|
|
|
1716
1716
|
customerSegments: CustomerSegment[];
|
|
1717
1717
|
}
|
|
1718
1718
|
|
|
1719
|
+
/**
|
|
1720
|
+
* Entity type discriminator
|
|
1721
|
+
*/
|
|
1722
|
+
type EntityType = 'contact' | 'customer';
|
|
1723
|
+
/**
|
|
1724
|
+
* Contact entity with type discriminator for unified search results
|
|
1725
|
+
*/
|
|
1726
|
+
interface ContactEntity extends Contact {
|
|
1727
|
+
_type: 'contact';
|
|
1728
|
+
}
|
|
1729
|
+
/**
|
|
1730
|
+
* Customer entity with type discriminator for unified search results
|
|
1731
|
+
*/
|
|
1732
|
+
interface CustomerEntity extends Customer {
|
|
1733
|
+
_type: 'customer';
|
|
1734
|
+
}
|
|
1735
|
+
/**
|
|
1736
|
+
* Union type for entities returned from unified search
|
|
1737
|
+
*/
|
|
1738
|
+
type Entity = ContactEntity | CustomerEntity;
|
|
1739
|
+
/**
|
|
1740
|
+
* Parameters for searching entities
|
|
1741
|
+
*/
|
|
1742
|
+
interface EntitiesSearchParams {
|
|
1743
|
+
search?: string;
|
|
1744
|
+
take?: number;
|
|
1745
|
+
}
|
|
1746
|
+
/**
|
|
1747
|
+
* Response from searching entities
|
|
1748
|
+
*/
|
|
1749
|
+
interface EntitiesSearchResponse {
|
|
1750
|
+
entities: Entity[];
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1719
1753
|
/**
|
|
1720
1754
|
* Resource for managing customers
|
|
1721
1755
|
*/
|
|
@@ -2777,6 +2811,17 @@ declare class DocsResource extends BaseResource {
|
|
|
2777
2811
|
getTree(): Promise<DocTreeResponse>;
|
|
2778
2812
|
}
|
|
2779
2813
|
|
|
2814
|
+
/**
|
|
2815
|
+
* Resource for unified entity search across contacts and customers
|
|
2816
|
+
*/
|
|
2817
|
+
declare class EntitiesResource extends BaseResource {
|
|
2818
|
+
/**
|
|
2819
|
+
* Search across contacts and customers
|
|
2820
|
+
* Returns entities with a _type discriminator field
|
|
2821
|
+
*/
|
|
2822
|
+
search(params?: EntitiesSearchParams): Promise<EntitiesSearchResponse>;
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2780
2825
|
/**
|
|
2781
2826
|
* Mantle Core API Client
|
|
2782
2827
|
*
|
|
@@ -2829,6 +2874,7 @@ declare class MantleCoreClient {
|
|
|
2829
2874
|
readonly organization: OrganizationResource;
|
|
2830
2875
|
readonly agents: AgentsResource;
|
|
2831
2876
|
readonly docs: DocsResource;
|
|
2877
|
+
readonly entities: EntitiesResource;
|
|
2832
2878
|
constructor(config: MantleCoreClientConfig);
|
|
2833
2879
|
/**
|
|
2834
2880
|
* Performs a GET request to the API
|
|
@@ -2904,4 +2950,4 @@ declare class MantleRateLimitError extends MantleAPIError {
|
|
|
2904
2950
|
constructor(message?: string, retryAfter?: number);
|
|
2905
2951
|
}
|
|
2906
2952
|
|
|
2907
|
-
export { type AccountOwner, type AccountOwnersListResponse, type Affiliate, type AffiliateCommission, type AffiliateCommissionListParams, type AffiliateCommissionListResponse, AffiliateCommissionsResource, type AffiliateListParams, type AffiliateListResponse, type AffiliatePayout, type AffiliatePayoutListParams, type AffiliatePayoutListResponse, AffiliatePayoutsResource, type AffiliateProgram, type AffiliateProgramCreateParams, type AffiliateProgramUpdateParams, AffiliateProgramsResource, type AffiliateReferral, type AffiliateReferralListParams, type AffiliateReferralListResponse, AffiliateReferralsResource, type AffiliateUpdateParams, AffiliatesResource, type Agent, type AgentListResponse, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, BaseResource, type Channel, type ChannelCreateParams, type ChannelListParams, ChannelsResource, type Charge, type ChargeListParams, type ChargeListResponse, ChargesResource, CompaniesResource, type Company, type CompanyCreateParams, type CompanyListParams, type CompanyListResponse, type CompanyUpdateParams, type Contact, type ContactCreateParams, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomField, type CustomFieldCreateParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerListParams, type CustomerListResponse, type CustomerRetrieveParams, type CustomerSegment, type CustomerSegmentListParams, type CustomerSegmentListResponse, CustomerSegmentsResource, type CustomerUpdateParams, CustomersResource, type DateRangeType, type Deal, DealActivitiesResource, type DealActivity, type DealActivityCreateParams, type DealActivityUpdateParams, type DealCreateParams, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealStage, type DealUpdateParams, DealsResource, type DeleteResponse, type DocCollection, type DocCollectionCreateParams, type DocCollectionUpdateParams, type DocGroup, type DocGroupCreateParams, type DocGroupUpdateParams, type DocPage, type DocPageCreateParams, type DocPageListParams, type DocPageListResponse, type DocPageStatus, type DocPageUpdateParams, type DocTreeNode, type DocTreeResponse, DocsResource, type Feature, type FeatureCreateParams, type FeatureUpdateParams, type Flow, type FlowCreateParams, type FlowListParams, type FlowListResponse, type FlowStatus, type FlowUpdateParams, FlowsResource, type ListParams, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type MeResponse, type MessageAttachment, type MetricDataPoint, type MetricType, type MetricsBaseParams, type MetricsGetParams, MetricsResource, type MetricsResponse, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SocialProfile, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type Transaction, type TransactionListParams, type TransactionListResponse, TransactionsResource, type UsageEvent, type UsageEventCreateData, type UsageEventCreateParams, type UsageEventCreateResponse, type UsageEventListParams, type UsageEventListResponse, type UsageEventMetricsParams, UsageEventsResource, type UsageMetric, type UsageMetricCreateParams, type UsageMetricParams, type UsageMetricUpdateParams, type User, type UserListParams, type UserListResponse, UsersResource, type Webhook, type WebhookCreateParams, type WebhookFilter, type WebhookListResponse, type WebhookTopic, type WebhookUpdateParams, WebhooksResource };
|
|
2953
|
+
export { type AccountOwner, type AccountOwnersListResponse, type Affiliate, type AffiliateCommission, type AffiliateCommissionListParams, type AffiliateCommissionListResponse, AffiliateCommissionsResource, type AffiliateListParams, type AffiliateListResponse, type AffiliatePayout, type AffiliatePayoutListParams, type AffiliatePayoutListResponse, AffiliatePayoutsResource, type AffiliateProgram, type AffiliateProgramCreateParams, type AffiliateProgramUpdateParams, AffiliateProgramsResource, type AffiliateReferral, type AffiliateReferralListParams, type AffiliateReferralListResponse, AffiliateReferralsResource, type AffiliateUpdateParams, AffiliatesResource, type Agent, type AgentListResponse, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, BaseResource, type Channel, type ChannelCreateParams, type ChannelListParams, ChannelsResource, type Charge, type ChargeListParams, type ChargeListResponse, ChargesResource, CompaniesResource, type Company, type CompanyCreateParams, type CompanyListParams, type CompanyListResponse, type CompanyUpdateParams, type Contact, type ContactCreateParams, type ContactEntity, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomField, type CustomFieldCreateParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerEntity, type CustomerListParams, type CustomerListResponse, type CustomerRetrieveParams, type CustomerSegment, type CustomerSegmentListParams, type CustomerSegmentListResponse, CustomerSegmentsResource, type CustomerUpdateParams, CustomersResource, type DateRangeType, type Deal, DealActivitiesResource, type DealActivity, type DealActivityCreateParams, type DealActivityUpdateParams, type DealCreateParams, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealStage, type DealUpdateParams, DealsResource, type DeleteResponse, type DocCollection, type DocCollectionCreateParams, type DocCollectionUpdateParams, type DocGroup, type DocGroupCreateParams, type DocGroupUpdateParams, type DocPage, type DocPageCreateParams, type DocPageListParams, type DocPageListResponse, type DocPageStatus, type DocPageUpdateParams, type DocTreeNode, type DocTreeResponse, DocsResource, EntitiesResource, type EntitiesSearchParams, type EntitiesSearchResponse, type Entity, type EntityType, type Feature, type FeatureCreateParams, type FeatureUpdateParams, type Flow, type FlowCreateParams, type FlowListParams, type FlowListResponse, type FlowStatus, type FlowUpdateParams, FlowsResource, type ListParams, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type MeResponse, type MessageAttachment, type MetricDataPoint, type MetricType, type MetricsBaseParams, type MetricsGetParams, MetricsResource, type MetricsResponse, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SocialProfile, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type Transaction, type TransactionListParams, type TransactionListResponse, TransactionsResource, type UsageEvent, type UsageEventCreateData, type UsageEventCreateParams, type UsageEventCreateResponse, type UsageEventListParams, type UsageEventListResponse, type UsageEventMetricsParams, UsageEventsResource, type UsageMetric, type UsageMetricCreateParams, type UsageMetricParams, type UsageMetricUpdateParams, type User, type UserListParams, type UserListResponse, UsersResource, type Webhook, type WebhookCreateParams, type WebhookFilter, type WebhookListResponse, type WebhookTopic, type WebhookUpdateParams, WebhooksResource };
|
package/dist/index.js
CHANGED
|
@@ -38,6 +38,7 @@ __export(index_exports, {
|
|
|
38
38
|
DealFlowsResource: () => DealFlowsResource,
|
|
39
39
|
DealsResource: () => DealsResource,
|
|
40
40
|
DocsResource: () => DocsResource,
|
|
41
|
+
EntitiesResource: () => EntitiesResource,
|
|
41
42
|
FlowsResource: () => FlowsResource,
|
|
42
43
|
MantleAPIError: () => MantleAPIError,
|
|
43
44
|
MantleAuthenticationError: () => MantleAuthenticationError,
|
|
@@ -1640,6 +1641,20 @@ var DocsResource = class extends BaseResource {
|
|
|
1640
1641
|
}
|
|
1641
1642
|
};
|
|
1642
1643
|
|
|
1644
|
+
// src/resources/entities.ts
|
|
1645
|
+
var EntitiesResource = class extends BaseResource {
|
|
1646
|
+
/**
|
|
1647
|
+
* Search across contacts and customers
|
|
1648
|
+
* Returns entities with a _type discriminator field
|
|
1649
|
+
*/
|
|
1650
|
+
async search(params) {
|
|
1651
|
+
const response = await this.get("/entities", params);
|
|
1652
|
+
return {
|
|
1653
|
+
entities: response.entities || []
|
|
1654
|
+
};
|
|
1655
|
+
}
|
|
1656
|
+
};
|
|
1657
|
+
|
|
1643
1658
|
// src/client.ts
|
|
1644
1659
|
var MantleCoreClient = class {
|
|
1645
1660
|
constructor(config) {
|
|
@@ -1680,6 +1695,7 @@ var MantleCoreClient = class {
|
|
|
1680
1695
|
this.organization = new OrganizationResource(this);
|
|
1681
1696
|
this.agents = new AgentsResource(this);
|
|
1682
1697
|
this.docs = new DocsResource(this);
|
|
1698
|
+
this.entities = new EntitiesResource(this);
|
|
1683
1699
|
}
|
|
1684
1700
|
/**
|
|
1685
1701
|
* Performs a GET request to the API
|
|
@@ -1825,6 +1841,7 @@ var MantleCoreClient = class {
|
|
|
1825
1841
|
DealFlowsResource,
|
|
1826
1842
|
DealsResource,
|
|
1827
1843
|
DocsResource,
|
|
1844
|
+
EntitiesResource,
|
|
1828
1845
|
FlowsResource,
|
|
1829
1846
|
MantleAPIError,
|
|
1830
1847
|
MantleAuthenticationError,
|
package/dist/index.mjs
CHANGED
|
@@ -1579,6 +1579,20 @@ var DocsResource = class extends BaseResource {
|
|
|
1579
1579
|
}
|
|
1580
1580
|
};
|
|
1581
1581
|
|
|
1582
|
+
// src/resources/entities.ts
|
|
1583
|
+
var EntitiesResource = class extends BaseResource {
|
|
1584
|
+
/**
|
|
1585
|
+
* Search across contacts and customers
|
|
1586
|
+
* Returns entities with a _type discriminator field
|
|
1587
|
+
*/
|
|
1588
|
+
async search(params) {
|
|
1589
|
+
const response = await this.get("/entities", params);
|
|
1590
|
+
return {
|
|
1591
|
+
entities: response.entities || []
|
|
1592
|
+
};
|
|
1593
|
+
}
|
|
1594
|
+
};
|
|
1595
|
+
|
|
1582
1596
|
// src/client.ts
|
|
1583
1597
|
var MantleCoreClient = class {
|
|
1584
1598
|
constructor(config) {
|
|
@@ -1619,6 +1633,7 @@ var MantleCoreClient = class {
|
|
|
1619
1633
|
this.organization = new OrganizationResource(this);
|
|
1620
1634
|
this.agents = new AgentsResource(this);
|
|
1621
1635
|
this.docs = new DocsResource(this);
|
|
1636
|
+
this.entities = new EntitiesResource(this);
|
|
1622
1637
|
}
|
|
1623
1638
|
/**
|
|
1624
1639
|
* Performs a GET request to the API
|
|
@@ -1763,6 +1778,7 @@ export {
|
|
|
1763
1778
|
DealFlowsResource,
|
|
1764
1779
|
DealsResource,
|
|
1765
1780
|
DocsResource,
|
|
1781
|
+
EntitiesResource,
|
|
1766
1782
|
FlowsResource,
|
|
1767
1783
|
MantleAPIError,
|
|
1768
1784
|
MantleAuthenticationError,
|