@heymantle/core-api-client 0.2.3 → 0.2.4
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 +139 -41
- package/dist/index.d.ts +139 -41
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -505,7 +505,8 @@ type paths = {
|
|
|
505
505
|
content: {
|
|
506
506
|
"application/json": {
|
|
507
507
|
affiliates: components["schemas"]["Affiliate"][];
|
|
508
|
-
|
|
508
|
+
total?: number;
|
|
509
|
+
} & components["schemas"]["CursorPagination"];
|
|
509
510
|
};
|
|
510
511
|
};
|
|
511
512
|
401: components["responses"]["401"];
|
|
@@ -17505,10 +17506,11 @@ declare class AffiliatesResource extends BaseResource {
|
|
|
17505
17506
|
type?: string | undefined;
|
|
17506
17507
|
} | null | undefined;
|
|
17507
17508
|
}[];
|
|
17508
|
-
|
|
17509
|
+
total?: number | undefined;
|
|
17509
17510
|
hasNextPage?: boolean | undefined;
|
|
17510
17511
|
hasPreviousPage?: boolean | undefined;
|
|
17511
|
-
|
|
17512
|
+
nextCursor?: string | undefined;
|
|
17513
|
+
previousCursor?: string | undefined;
|
|
17512
17514
|
}>;
|
|
17513
17515
|
get(affiliateId: string): Promise<{
|
|
17514
17516
|
affiliate?: {
|
|
@@ -24744,59 +24746,155 @@ declare class MantleCoreClient {
|
|
|
24744
24746
|
}): void;
|
|
24745
24747
|
}
|
|
24746
24748
|
|
|
24747
|
-
type Customer = components['schemas']['Customer'];
|
|
24748
|
-
type Contact = components['schemas']['Contact'];
|
|
24749
|
-
type Company = components['schemas']['Company'];
|
|
24750
|
-
type Deal = components['schemas']['Deal'];
|
|
24751
|
-
type DealFlow = components['schemas']['DealFlow'];
|
|
24752
|
-
type DealStage = components['schemas']['DealStage'];
|
|
24753
|
-
type DealActivity = components['schemas']['DealActivity'];
|
|
24754
|
-
type DealEvent = components['schemas']['DealEvent'];
|
|
24755
|
-
type Task = components['schemas']['Task'];
|
|
24756
|
-
type TaskTodoItem = components['schemas']['TaskTodoItem'];
|
|
24757
|
-
type App = components['schemas']['App'];
|
|
24758
|
-
type Plan = components['schemas']['Plan'];
|
|
24759
|
-
type PlanFeature = components['schemas']['PlanFeature'];
|
|
24760
|
-
type Feature = components['schemas']['Feature'];
|
|
24761
|
-
type Subscription = components['schemas']['Subscription'];
|
|
24762
|
-
type Charge = components['schemas']['Charge'];
|
|
24763
|
-
type Transaction = components['schemas']['Transaction'];
|
|
24764
|
-
type UsageEvent = components['schemas']['UsageEvent'];
|
|
24765
|
-
type UsageMetric = components['schemas']['UsageMetric'];
|
|
24766
|
-
type AppEvent = components['schemas']['AppEvent'];
|
|
24767
|
-
type Review = components['schemas']['Review'];
|
|
24768
|
-
type Ticket = components['schemas']['Ticket'];
|
|
24769
|
-
type TicketMessage = components['schemas']['TicketMessage'];
|
|
24770
|
-
type TicketEvent = components['schemas']['TicketEvent'];
|
|
24771
24749
|
type AccountOwner = components['schemas']['AccountOwner'];
|
|
24772
|
-
type
|
|
24773
|
-
type
|
|
24774
|
-
type
|
|
24750
|
+
type AccountOwnerType = components['schemas']['AccountOwnerType'];
|
|
24751
|
+
type Action = components['schemas']['Action'];
|
|
24752
|
+
type ActiveSubscriptionsResponse = components['schemas']['ActiveSubscriptionsResponse'];
|
|
24775
24753
|
type Affiliate = components['schemas']['Affiliate'];
|
|
24776
|
-
type
|
|
24754
|
+
type AffiliateAttributionWebhook = components['schemas']['AffiliateAttributionWebhook'];
|
|
24777
24755
|
type AffiliateCommission = components['schemas']['AffiliateCommission'];
|
|
24756
|
+
type AffiliateMembershipWebhook = components['schemas']['AffiliateMembershipWebhook'];
|
|
24778
24757
|
type AffiliatePayout = components['schemas']['AffiliatePayout'];
|
|
24758
|
+
type AffiliatePayoutWebhook = components['schemas']['AffiliatePayoutWebhook'];
|
|
24759
|
+
type AffiliateProgram = components['schemas']['AffiliateProgram'];
|
|
24760
|
+
type AffiliateProgramGroup = components['schemas']['AffiliateProgramGroup'];
|
|
24761
|
+
type AffiliateProgramMembership = components['schemas']['AffiliateProgramMembership'];
|
|
24762
|
+
type AffiliateProgramWebhook = components['schemas']['AffiliateProgramWebhook'];
|
|
24779
24763
|
type AffiliateReferral = components['schemas']['AffiliateReferral'];
|
|
24764
|
+
type AffiliateRules = components['schemas']['AffiliateRules'];
|
|
24765
|
+
type AffiliateRulesWebhook = components['schemas']['AffiliateRulesWebhook'];
|
|
24766
|
+
type AffiliateWebhook = components['schemas']['AffiliateWebhook'];
|
|
24767
|
+
type AgentRun = components['schemas']['AgentRun'];
|
|
24768
|
+
type App = components['schemas']['App'];
|
|
24769
|
+
type AppChargeWebhook = components['schemas']['AppChargeWebhook'];
|
|
24770
|
+
type AppEvent = components['schemas']['AppEvent'];
|
|
24771
|
+
type AppInstallation = components['schemas']['AppInstallation'];
|
|
24772
|
+
type AppInstallationWebhook = components['schemas']['AppInstallationWebhook'];
|
|
24773
|
+
type AppWebhook = components['schemas']['AppWebhook'];
|
|
24774
|
+
type BaseCustomerWebhook = components['schemas']['BaseCustomerWebhook'];
|
|
24775
|
+
type Charge = components['schemas']['Charge'];
|
|
24776
|
+
type Checklist = components['schemas']['Checklist'];
|
|
24777
|
+
type ChecklistStep = components['schemas']['ChecklistStep'];
|
|
24778
|
+
type Company = components['schemas']['Company'];
|
|
24779
|
+
type Contact = components['schemas']['Contact'];
|
|
24780
|
+
type ContactWebhook = components['schemas']['ContactWebhook'];
|
|
24781
|
+
type CursorPagination = components['schemas']['CursorPagination'];
|
|
24782
|
+
type CustomField = components['schemas']['CustomField'];
|
|
24783
|
+
type CustomFieldDefaultValue = components['schemas']['CustomFieldDefaultValue'];
|
|
24784
|
+
type Customer = components['schemas']['Customer'];
|
|
24785
|
+
type CustomerContact = components['schemas']['CustomerContact'];
|
|
24786
|
+
type CustomerContactWebhook = components['schemas']['CustomerContactWebhook'];
|
|
24787
|
+
type CustomerSegment = components['schemas']['CustomerSegment'];
|
|
24788
|
+
type CustomerWebhook = components['schemas']['CustomerWebhook'];
|
|
24789
|
+
type CustomerWithoutSubscriptionWebhook = components['schemas']['CustomerWithoutSubscriptionWebhook'];
|
|
24790
|
+
type Deal = components['schemas']['Deal'];
|
|
24791
|
+
type DealAcquirer = components['schemas']['DealAcquirer'];
|
|
24792
|
+
type DealActivity = components['schemas']['DealActivity'];
|
|
24793
|
+
type DealAffiliate = components['schemas']['DealAffiliate'];
|
|
24794
|
+
type DealApp = components['schemas']['DealApp'];
|
|
24795
|
+
type DealContact = components['schemas']['DealContact'];
|
|
24796
|
+
type DealCustomData = components['schemas']['DealCustomData'];
|
|
24797
|
+
type DealCustomer = components['schemas']['DealCustomer'];
|
|
24798
|
+
type DealEvent = components['schemas']['DealEvent'];
|
|
24799
|
+
type DealFlow = components['schemas']['DealFlow'];
|
|
24800
|
+
type DealFlowAffiliate = components['schemas']['DealFlowAffiliate'];
|
|
24801
|
+
type DealFlowDefaultSource = components['schemas']['DealFlowDefaultSource'];
|
|
24802
|
+
type DealFlowPartnership = components['schemas']['DealFlowPartnership'];
|
|
24803
|
+
type DealFlowStage = components['schemas']['DealFlowStage'];
|
|
24804
|
+
type DealFlowUser = components['schemas']['DealFlowUser'];
|
|
24805
|
+
type DealOwner = components['schemas']['DealOwner'];
|
|
24806
|
+
type DealPartnership = components['schemas']['DealPartnership'];
|
|
24807
|
+
type DealPlan = components['schemas']['DealPlan'];
|
|
24808
|
+
type DealStage = components['schemas']['DealStage'];
|
|
24809
|
+
type DetailedAffiliate = components['schemas']['DetailedAffiliate'];
|
|
24810
|
+
type DetailedFlow = components['schemas']['DetailedFlow'];
|
|
24780
24811
|
type DocsCollection = components['schemas']['DocsCollection'];
|
|
24812
|
+
type DocsCollectionResponse = components['schemas']['DocsCollectionResponse'];
|
|
24781
24813
|
type DocsGroup = components['schemas']['DocsGroup'];
|
|
24814
|
+
type DocsGroupResponse = components['schemas']['DocsGroupResponse'];
|
|
24782
24815
|
type DocsPage = components['schemas']['DocsPage'];
|
|
24816
|
+
type DocsPageResponse = components['schemas']['DocsPageResponse'];
|
|
24817
|
+
type DocsPageSummary = components['schemas']['DocsPageSummary'];
|
|
24783
24818
|
type DocsRepository = components['schemas']['DocsRepository'];
|
|
24819
|
+
type EmailUnsubscribeGroup = components['schemas']['EmailUnsubscribeGroup'];
|
|
24820
|
+
type EmailUnsubscribeGroupMember = components['schemas']['EmailUnsubscribeGroupMember'];
|
|
24821
|
+
type EventWebhook = components['schemas']['EventWebhook'];
|
|
24822
|
+
type ExtensionUninstallPayload = components['schemas']['ExtensionUninstallPayload'];
|
|
24823
|
+
type ExtensionWebhook = components['schemas']['ExtensionWebhook'];
|
|
24824
|
+
type Feature = components['schemas']['Feature'];
|
|
24825
|
+
type Flow = components['schemas']['Flow'];
|
|
24826
|
+
type FlowActionRun = components['schemas']['FlowActionRun'];
|
|
24827
|
+
type InvalidTokenError = components['schemas']['InvalidTokenError'];
|
|
24828
|
+
type Invoice = components['schemas']['Invoice'];
|
|
24829
|
+
type InvoiceWebhook = components['schemas']['InvoiceWebhook'];
|
|
24830
|
+
type JournalEntry = components['schemas']['JournalEntry'];
|
|
24831
|
+
type JournalEntryApp = components['schemas']['JournalEntryApp'];
|
|
24832
|
+
type JournalEntryFile = components['schemas']['JournalEntryFile'];
|
|
24833
|
+
type List = components['schemas']['List'];
|
|
24834
|
+
type LogoChurnResponse = components['schemas']['LogoChurnResponse'];
|
|
24784
24835
|
type Meeting = components['schemas']['Meeting'];
|
|
24785
24836
|
type MeetingAttendee = components['schemas']['MeetingAttendee'];
|
|
24837
|
+
type MeetingAttendeeRef = components['schemas']['MeetingAttendeeRef'];
|
|
24838
|
+
type MeetingContactRef = components['schemas']['MeetingContactRef'];
|
|
24839
|
+
type MeetingCustomer = components['schemas']['MeetingCustomer'];
|
|
24840
|
+
type MeetingDeal = components['schemas']['MeetingDeal'];
|
|
24841
|
+
type MeetingTaskSuggestion = components['schemas']['MeetingTaskSuggestion'];
|
|
24786
24842
|
type MeetingTranscript = components['schemas']['MeetingTranscript'];
|
|
24843
|
+
type MeetingUser = components['schemas']['MeetingUser'];
|
|
24787
24844
|
type MeetingUtterance = components['schemas']['MeetingUtterance'];
|
|
24788
|
-
type
|
|
24789
|
-
type
|
|
24790
|
-
type
|
|
24791
|
-
type
|
|
24792
|
-
type
|
|
24793
|
-
type JournalEntry = components['schemas']['JournalEntry'];
|
|
24845
|
+
type MissingScopesError = components['schemas']['MissingScopesError'];
|
|
24846
|
+
type MrrResponse = components['schemas']['MrrResponse'];
|
|
24847
|
+
type NetInstallsResponse = components['schemas']['NetInstallsResponse'];
|
|
24848
|
+
type NetRevenueResponse = components['schemas']['NetRevenueResponse'];
|
|
24849
|
+
type NetRevenueRetentionResponse = components['schemas']['NetRevenueRetentionResponse'];
|
|
24794
24850
|
type Organization = components['schemas']['Organization'];
|
|
24851
|
+
type Pagination = components['schemas']['Pagination'];
|
|
24852
|
+
type PayoutResponse = components['schemas']['PayoutResponse'];
|
|
24853
|
+
type Plan = components['schemas']['Plan'];
|
|
24854
|
+
type PlanFeature = components['schemas']['PlanFeature'];
|
|
24855
|
+
type PlanFeatureWebhook = components['schemas']['PlanFeatureWebhook'];
|
|
24856
|
+
type PlanUsageChargeWebhook = components['schemas']['PlanUsageChargeWebhook'];
|
|
24857
|
+
type PlanWebhook = components['schemas']['PlanWebhook'];
|
|
24858
|
+
type PredictedLtvResponse = components['schemas']['PredictedLtvResponse'];
|
|
24859
|
+
type RevenueRetentionResponse = components['schemas']['RevenueRetentionResponse'];
|
|
24860
|
+
type Review = components['schemas']['Review'];
|
|
24861
|
+
type ReviewWebhook = components['schemas']['ReviewWebhook'];
|
|
24862
|
+
type StandardMetricResponse = components['schemas']['StandardMetricResponse'];
|
|
24863
|
+
type Subscription = components['schemas']['Subscription'];
|
|
24864
|
+
type SubscriptionWebhook = components['schemas']['SubscriptionWebhook'];
|
|
24865
|
+
type SyncedEmail = components['schemas']['SyncedEmail'];
|
|
24866
|
+
type SyncedEmailContact = components['schemas']['SyncedEmailContact'];
|
|
24867
|
+
type SyncedEmailCustomer = components['schemas']['SyncedEmailCustomer'];
|
|
24868
|
+
type SyncedEmailDeal = components['schemas']['SyncedEmailDeal'];
|
|
24869
|
+
type SyncedEmailMessage = components['schemas']['SyncedEmailMessage'];
|
|
24870
|
+
type SyncedEmailUser = components['schemas']['SyncedEmailUser'];
|
|
24871
|
+
type Task = components['schemas']['Task'];
|
|
24872
|
+
type TaskTodoItem = components['schemas']['TaskTodoItem'];
|
|
24873
|
+
type ThreadEventType = components['schemas']['ThreadEventType'];
|
|
24874
|
+
type ThreadMessageWebhook = components['schemas']['ThreadMessageWebhook'];
|
|
24875
|
+
type ThreadWebhook = components['schemas']['ThreadWebhook'];
|
|
24876
|
+
type Ticket = components['schemas']['Ticket'];
|
|
24877
|
+
type TicketAgent = components['schemas']['TicketAgent'];
|
|
24878
|
+
type TicketApp = components['schemas']['TicketApp'];
|
|
24879
|
+
type TicketAttachment = components['schemas']['TicketAttachment'];
|
|
24880
|
+
type TicketChannel = components['schemas']['TicketChannel'];
|
|
24881
|
+
type TicketContact = components['schemas']['TicketContact'];
|
|
24882
|
+
type TicketCustomer = components['schemas']['TicketCustomer'];
|
|
24883
|
+
type TicketEvent = components['schemas']['TicketEvent'];
|
|
24884
|
+
type TicketLoop = components['schemas']['TicketLoop'];
|
|
24885
|
+
type TicketMessage = components['schemas']['TicketMessage'];
|
|
24886
|
+
type TimeSeriesDataPoint = components['schemas']['TimeSeriesDataPoint'];
|
|
24887
|
+
type TimelineComment = components['schemas']['TimelineComment'];
|
|
24888
|
+
type Transaction = components['schemas']['Transaction'];
|
|
24889
|
+
type TransactionWebhook = components['schemas']['TransactionWebhook'];
|
|
24890
|
+
type Trigger = components['schemas']['Trigger'];
|
|
24891
|
+
type UninstallEventWebhook = components['schemas']['UninstallEventWebhook'];
|
|
24892
|
+
type UsageEvent = components['schemas']['UsageEvent'];
|
|
24893
|
+
type UsageEventResponse = components['schemas']['UsageEventResponse'];
|
|
24894
|
+
type UsageMetric = components['schemas']['UsageMetric'];
|
|
24895
|
+
type UsageMetricResponse = components['schemas']['UsageMetricResponse'];
|
|
24795
24896
|
type User = components['schemas']['User'];
|
|
24796
24897
|
type Webhook = components['schemas']['Webhook'];
|
|
24797
|
-
type AgentRun = components['schemas']['AgentRun'];
|
|
24798
|
-
type Pagination = components['schemas']['Pagination'];
|
|
24799
|
-
type CursorPagination = components['schemas']['CursorPagination'];
|
|
24800
24898
|
|
|
24801
24899
|
/**
|
|
24802
24900
|
* Base error class for Mantle API errors
|
|
@@ -24922,4 +25020,4 @@ interface RateLimitOptions {
|
|
|
24922
25020
|
*/
|
|
24923
25021
|
declare function createRateLimitMiddleware(options?: RateLimitOptions): Middleware;
|
|
24924
25022
|
|
|
24925
|
-
export { type AccountOwner, type Affiliate, type AffiliateCommission, AffiliateCommissionsResource, type AffiliatePayout, AffiliatePayoutsResource, type AffiliateProgram, AffiliateProgramsResource, type AffiliateReferral, AffiliateReferralsResource, AffiliatesResource, type AgentRun, AgentsResource, AiAgentRunsResource, type App, type AppEvent, AppsResource, type AuthRefreshOptions, BaseResource, ChannelsResource, type Charge, ChargesResource, CompaniesResource, type Company, type Contact, ContactsResource, type CursorPagination, CustomDataResource, type CustomField, type Customer, type CustomerSegment, CustomerSegmentsResource, CustomersResource, type Deal, DealActivitiesResource, type DealActivity, type DealEvent, type DealFlow, DealFlowsResource, type DealStage, DealsResource, type DocsCollection, type DocsGroup, type DocsPage, type DocsRepository, DocsResource, type EmailUnsubscribeGroup, type EmailUnsubscribeGroupMember, EmailUnsubscribeGroupsResource, EntitiesResource, type Feature, type Flow, type FlowActionRun, FlowExtensionsResource, FlowsResource, JournalEntriesResource, type JournalEntry, type List, ListsResource, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type Meeting, type MeetingAttendee, type MeetingTranscript, type MeetingUtterance, MeetingsResource, MetricsResource, type Organization, OrganizationResource, type Pagination, type Plan, type PlanFeature, type RateLimitOptions, type Review, type Subscription, SubscriptionsResource, SyncedEmailsResource, type Task, type TaskTodoItem, TasksResource, type Ticket, type TicketEvent, type TicketMessage, TicketsResource, type TimelineComment, TimelineCommentsResource, type Transaction, TransactionsResource, type UsageEvent, UsageEventsResource, type UsageMetric, type User, UsersResource, type Webhook, WebhooksResource, type components, createAuthRefreshMiddleware, createRateLimitMiddleware, type paths };
|
|
25023
|
+
export { type AccountOwner, type AccountOwnerType, type Action, type ActiveSubscriptionsResponse, type Affiliate, type AffiliateAttributionWebhook, type AffiliateCommission, AffiliateCommissionsResource, type AffiliateMembershipWebhook, type AffiliatePayout, type AffiliatePayoutWebhook, AffiliatePayoutsResource, type AffiliateProgram, type AffiliateProgramGroup, type AffiliateProgramMembership, type AffiliateProgramWebhook, AffiliateProgramsResource, type AffiliateReferral, AffiliateReferralsResource, type AffiliateRules, type AffiliateRulesWebhook, type AffiliateWebhook, AffiliatesResource, type AgentRun, AgentsResource, AiAgentRunsResource, type App, type AppChargeWebhook, type AppEvent, type AppInstallation, type AppInstallationWebhook, type AppWebhook, AppsResource, type AuthRefreshOptions, type BaseCustomerWebhook, BaseResource, ChannelsResource, type Charge, ChargesResource, type Checklist, type ChecklistStep, CompaniesResource, type Company, type Contact, type ContactWebhook, ContactsResource, type CursorPagination, CustomDataResource, type CustomField, type CustomFieldDefaultValue, type Customer, type CustomerContact, type CustomerContactWebhook, type CustomerSegment, CustomerSegmentsResource, type CustomerWebhook, type CustomerWithoutSubscriptionWebhook, CustomersResource, type Deal, type DealAcquirer, DealActivitiesResource, type DealActivity, type DealAffiliate, type DealApp, type DealContact, type DealCustomData, type DealCustomer, type DealEvent, type DealFlow, type DealFlowAffiliate, type DealFlowDefaultSource, type DealFlowPartnership, type DealFlowStage, type DealFlowUser, DealFlowsResource, type DealOwner, type DealPartnership, type DealPlan, type DealStage, DealsResource, type DetailedAffiliate, type DetailedFlow, type DocsCollection, type DocsCollectionResponse, type DocsGroup, type DocsGroupResponse, type DocsPage, type DocsPageResponse, type DocsPageSummary, type DocsRepository, DocsResource, type EmailUnsubscribeGroup, type EmailUnsubscribeGroupMember, EmailUnsubscribeGroupsResource, EntitiesResource, type EventWebhook, type ExtensionUninstallPayload, type ExtensionWebhook, type Feature, type Flow, type FlowActionRun, FlowExtensionsResource, FlowsResource, type InvalidTokenError, type Invoice, type InvoiceWebhook, JournalEntriesResource, type JournalEntry, type JournalEntryApp, type JournalEntryFile, type List, ListsResource, type LogoChurnResponse, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type Meeting, type MeetingAttendee, type MeetingAttendeeRef, type MeetingContactRef, type MeetingCustomer, type MeetingDeal, type MeetingTaskSuggestion, type MeetingTranscript, type MeetingUser, type MeetingUtterance, MeetingsResource, MetricsResource, type MissingScopesError, type MrrResponse, type NetInstallsResponse, type NetRevenueResponse, type NetRevenueRetentionResponse, type Organization, OrganizationResource, type Pagination, type PayoutResponse, type Plan, type PlanFeature, type PlanFeatureWebhook, type PlanUsageChargeWebhook, type PlanWebhook, type PredictedLtvResponse, type RateLimitOptions, type RevenueRetentionResponse, type Review, type ReviewWebhook, type StandardMetricResponse, type Subscription, type SubscriptionWebhook, SubscriptionsResource, type SyncedEmail, type SyncedEmailContact, type SyncedEmailCustomer, type SyncedEmailDeal, type SyncedEmailMessage, type SyncedEmailUser, SyncedEmailsResource, type Task, type TaskTodoItem, TasksResource, type ThreadEventType, type ThreadMessageWebhook, type ThreadWebhook, type Ticket, type TicketAgent, type TicketApp, type TicketAttachment, type TicketChannel, type TicketContact, type TicketCustomer, type TicketEvent, type TicketLoop, type TicketMessage, TicketsResource, type TimeSeriesDataPoint, type TimelineComment, TimelineCommentsResource, type Transaction, type TransactionWebhook, TransactionsResource, type Trigger, type UninstallEventWebhook, type UsageEvent, type UsageEventResponse, UsageEventsResource, type UsageMetric, type UsageMetricResponse, type User, UsersResource, type Webhook, WebhooksResource, type components, createAuthRefreshMiddleware, createRateLimitMiddleware, type paths };
|
package/dist/index.d.ts
CHANGED
|
@@ -505,7 +505,8 @@ type paths = {
|
|
|
505
505
|
content: {
|
|
506
506
|
"application/json": {
|
|
507
507
|
affiliates: components["schemas"]["Affiliate"][];
|
|
508
|
-
|
|
508
|
+
total?: number;
|
|
509
|
+
} & components["schemas"]["CursorPagination"];
|
|
509
510
|
};
|
|
510
511
|
};
|
|
511
512
|
401: components["responses"]["401"];
|
|
@@ -17505,10 +17506,11 @@ declare class AffiliatesResource extends BaseResource {
|
|
|
17505
17506
|
type?: string | undefined;
|
|
17506
17507
|
} | null | undefined;
|
|
17507
17508
|
}[];
|
|
17508
|
-
|
|
17509
|
+
total?: number | undefined;
|
|
17509
17510
|
hasNextPage?: boolean | undefined;
|
|
17510
17511
|
hasPreviousPage?: boolean | undefined;
|
|
17511
|
-
|
|
17512
|
+
nextCursor?: string | undefined;
|
|
17513
|
+
previousCursor?: string | undefined;
|
|
17512
17514
|
}>;
|
|
17513
17515
|
get(affiliateId: string): Promise<{
|
|
17514
17516
|
affiliate?: {
|
|
@@ -24744,59 +24746,155 @@ declare class MantleCoreClient {
|
|
|
24744
24746
|
}): void;
|
|
24745
24747
|
}
|
|
24746
24748
|
|
|
24747
|
-
type Customer = components['schemas']['Customer'];
|
|
24748
|
-
type Contact = components['schemas']['Contact'];
|
|
24749
|
-
type Company = components['schemas']['Company'];
|
|
24750
|
-
type Deal = components['schemas']['Deal'];
|
|
24751
|
-
type DealFlow = components['schemas']['DealFlow'];
|
|
24752
|
-
type DealStage = components['schemas']['DealStage'];
|
|
24753
|
-
type DealActivity = components['schemas']['DealActivity'];
|
|
24754
|
-
type DealEvent = components['schemas']['DealEvent'];
|
|
24755
|
-
type Task = components['schemas']['Task'];
|
|
24756
|
-
type TaskTodoItem = components['schemas']['TaskTodoItem'];
|
|
24757
|
-
type App = components['schemas']['App'];
|
|
24758
|
-
type Plan = components['schemas']['Plan'];
|
|
24759
|
-
type PlanFeature = components['schemas']['PlanFeature'];
|
|
24760
|
-
type Feature = components['schemas']['Feature'];
|
|
24761
|
-
type Subscription = components['schemas']['Subscription'];
|
|
24762
|
-
type Charge = components['schemas']['Charge'];
|
|
24763
|
-
type Transaction = components['schemas']['Transaction'];
|
|
24764
|
-
type UsageEvent = components['schemas']['UsageEvent'];
|
|
24765
|
-
type UsageMetric = components['schemas']['UsageMetric'];
|
|
24766
|
-
type AppEvent = components['schemas']['AppEvent'];
|
|
24767
|
-
type Review = components['schemas']['Review'];
|
|
24768
|
-
type Ticket = components['schemas']['Ticket'];
|
|
24769
|
-
type TicketMessage = components['schemas']['TicketMessage'];
|
|
24770
|
-
type TicketEvent = components['schemas']['TicketEvent'];
|
|
24771
24749
|
type AccountOwner = components['schemas']['AccountOwner'];
|
|
24772
|
-
type
|
|
24773
|
-
type
|
|
24774
|
-
type
|
|
24750
|
+
type AccountOwnerType = components['schemas']['AccountOwnerType'];
|
|
24751
|
+
type Action = components['schemas']['Action'];
|
|
24752
|
+
type ActiveSubscriptionsResponse = components['schemas']['ActiveSubscriptionsResponse'];
|
|
24775
24753
|
type Affiliate = components['schemas']['Affiliate'];
|
|
24776
|
-
type
|
|
24754
|
+
type AffiliateAttributionWebhook = components['schemas']['AffiliateAttributionWebhook'];
|
|
24777
24755
|
type AffiliateCommission = components['schemas']['AffiliateCommission'];
|
|
24756
|
+
type AffiliateMembershipWebhook = components['schemas']['AffiliateMembershipWebhook'];
|
|
24778
24757
|
type AffiliatePayout = components['schemas']['AffiliatePayout'];
|
|
24758
|
+
type AffiliatePayoutWebhook = components['schemas']['AffiliatePayoutWebhook'];
|
|
24759
|
+
type AffiliateProgram = components['schemas']['AffiliateProgram'];
|
|
24760
|
+
type AffiliateProgramGroup = components['schemas']['AffiliateProgramGroup'];
|
|
24761
|
+
type AffiliateProgramMembership = components['schemas']['AffiliateProgramMembership'];
|
|
24762
|
+
type AffiliateProgramWebhook = components['schemas']['AffiliateProgramWebhook'];
|
|
24779
24763
|
type AffiliateReferral = components['schemas']['AffiliateReferral'];
|
|
24764
|
+
type AffiliateRules = components['schemas']['AffiliateRules'];
|
|
24765
|
+
type AffiliateRulesWebhook = components['schemas']['AffiliateRulesWebhook'];
|
|
24766
|
+
type AffiliateWebhook = components['schemas']['AffiliateWebhook'];
|
|
24767
|
+
type AgentRun = components['schemas']['AgentRun'];
|
|
24768
|
+
type App = components['schemas']['App'];
|
|
24769
|
+
type AppChargeWebhook = components['schemas']['AppChargeWebhook'];
|
|
24770
|
+
type AppEvent = components['schemas']['AppEvent'];
|
|
24771
|
+
type AppInstallation = components['schemas']['AppInstallation'];
|
|
24772
|
+
type AppInstallationWebhook = components['schemas']['AppInstallationWebhook'];
|
|
24773
|
+
type AppWebhook = components['schemas']['AppWebhook'];
|
|
24774
|
+
type BaseCustomerWebhook = components['schemas']['BaseCustomerWebhook'];
|
|
24775
|
+
type Charge = components['schemas']['Charge'];
|
|
24776
|
+
type Checklist = components['schemas']['Checklist'];
|
|
24777
|
+
type ChecklistStep = components['schemas']['ChecklistStep'];
|
|
24778
|
+
type Company = components['schemas']['Company'];
|
|
24779
|
+
type Contact = components['schemas']['Contact'];
|
|
24780
|
+
type ContactWebhook = components['schemas']['ContactWebhook'];
|
|
24781
|
+
type CursorPagination = components['schemas']['CursorPagination'];
|
|
24782
|
+
type CustomField = components['schemas']['CustomField'];
|
|
24783
|
+
type CustomFieldDefaultValue = components['schemas']['CustomFieldDefaultValue'];
|
|
24784
|
+
type Customer = components['schemas']['Customer'];
|
|
24785
|
+
type CustomerContact = components['schemas']['CustomerContact'];
|
|
24786
|
+
type CustomerContactWebhook = components['schemas']['CustomerContactWebhook'];
|
|
24787
|
+
type CustomerSegment = components['schemas']['CustomerSegment'];
|
|
24788
|
+
type CustomerWebhook = components['schemas']['CustomerWebhook'];
|
|
24789
|
+
type CustomerWithoutSubscriptionWebhook = components['schemas']['CustomerWithoutSubscriptionWebhook'];
|
|
24790
|
+
type Deal = components['schemas']['Deal'];
|
|
24791
|
+
type DealAcquirer = components['schemas']['DealAcquirer'];
|
|
24792
|
+
type DealActivity = components['schemas']['DealActivity'];
|
|
24793
|
+
type DealAffiliate = components['schemas']['DealAffiliate'];
|
|
24794
|
+
type DealApp = components['schemas']['DealApp'];
|
|
24795
|
+
type DealContact = components['schemas']['DealContact'];
|
|
24796
|
+
type DealCustomData = components['schemas']['DealCustomData'];
|
|
24797
|
+
type DealCustomer = components['schemas']['DealCustomer'];
|
|
24798
|
+
type DealEvent = components['schemas']['DealEvent'];
|
|
24799
|
+
type DealFlow = components['schemas']['DealFlow'];
|
|
24800
|
+
type DealFlowAffiliate = components['schemas']['DealFlowAffiliate'];
|
|
24801
|
+
type DealFlowDefaultSource = components['schemas']['DealFlowDefaultSource'];
|
|
24802
|
+
type DealFlowPartnership = components['schemas']['DealFlowPartnership'];
|
|
24803
|
+
type DealFlowStage = components['schemas']['DealFlowStage'];
|
|
24804
|
+
type DealFlowUser = components['schemas']['DealFlowUser'];
|
|
24805
|
+
type DealOwner = components['schemas']['DealOwner'];
|
|
24806
|
+
type DealPartnership = components['schemas']['DealPartnership'];
|
|
24807
|
+
type DealPlan = components['schemas']['DealPlan'];
|
|
24808
|
+
type DealStage = components['schemas']['DealStage'];
|
|
24809
|
+
type DetailedAffiliate = components['schemas']['DetailedAffiliate'];
|
|
24810
|
+
type DetailedFlow = components['schemas']['DetailedFlow'];
|
|
24780
24811
|
type DocsCollection = components['schemas']['DocsCollection'];
|
|
24812
|
+
type DocsCollectionResponse = components['schemas']['DocsCollectionResponse'];
|
|
24781
24813
|
type DocsGroup = components['schemas']['DocsGroup'];
|
|
24814
|
+
type DocsGroupResponse = components['schemas']['DocsGroupResponse'];
|
|
24782
24815
|
type DocsPage = components['schemas']['DocsPage'];
|
|
24816
|
+
type DocsPageResponse = components['schemas']['DocsPageResponse'];
|
|
24817
|
+
type DocsPageSummary = components['schemas']['DocsPageSummary'];
|
|
24783
24818
|
type DocsRepository = components['schemas']['DocsRepository'];
|
|
24819
|
+
type EmailUnsubscribeGroup = components['schemas']['EmailUnsubscribeGroup'];
|
|
24820
|
+
type EmailUnsubscribeGroupMember = components['schemas']['EmailUnsubscribeGroupMember'];
|
|
24821
|
+
type EventWebhook = components['schemas']['EventWebhook'];
|
|
24822
|
+
type ExtensionUninstallPayload = components['schemas']['ExtensionUninstallPayload'];
|
|
24823
|
+
type ExtensionWebhook = components['schemas']['ExtensionWebhook'];
|
|
24824
|
+
type Feature = components['schemas']['Feature'];
|
|
24825
|
+
type Flow = components['schemas']['Flow'];
|
|
24826
|
+
type FlowActionRun = components['schemas']['FlowActionRun'];
|
|
24827
|
+
type InvalidTokenError = components['schemas']['InvalidTokenError'];
|
|
24828
|
+
type Invoice = components['schemas']['Invoice'];
|
|
24829
|
+
type InvoiceWebhook = components['schemas']['InvoiceWebhook'];
|
|
24830
|
+
type JournalEntry = components['schemas']['JournalEntry'];
|
|
24831
|
+
type JournalEntryApp = components['schemas']['JournalEntryApp'];
|
|
24832
|
+
type JournalEntryFile = components['schemas']['JournalEntryFile'];
|
|
24833
|
+
type List = components['schemas']['List'];
|
|
24834
|
+
type LogoChurnResponse = components['schemas']['LogoChurnResponse'];
|
|
24784
24835
|
type Meeting = components['schemas']['Meeting'];
|
|
24785
24836
|
type MeetingAttendee = components['schemas']['MeetingAttendee'];
|
|
24837
|
+
type MeetingAttendeeRef = components['schemas']['MeetingAttendeeRef'];
|
|
24838
|
+
type MeetingContactRef = components['schemas']['MeetingContactRef'];
|
|
24839
|
+
type MeetingCustomer = components['schemas']['MeetingCustomer'];
|
|
24840
|
+
type MeetingDeal = components['schemas']['MeetingDeal'];
|
|
24841
|
+
type MeetingTaskSuggestion = components['schemas']['MeetingTaskSuggestion'];
|
|
24786
24842
|
type MeetingTranscript = components['schemas']['MeetingTranscript'];
|
|
24843
|
+
type MeetingUser = components['schemas']['MeetingUser'];
|
|
24787
24844
|
type MeetingUtterance = components['schemas']['MeetingUtterance'];
|
|
24788
|
-
type
|
|
24789
|
-
type
|
|
24790
|
-
type
|
|
24791
|
-
type
|
|
24792
|
-
type
|
|
24793
|
-
type JournalEntry = components['schemas']['JournalEntry'];
|
|
24845
|
+
type MissingScopesError = components['schemas']['MissingScopesError'];
|
|
24846
|
+
type MrrResponse = components['schemas']['MrrResponse'];
|
|
24847
|
+
type NetInstallsResponse = components['schemas']['NetInstallsResponse'];
|
|
24848
|
+
type NetRevenueResponse = components['schemas']['NetRevenueResponse'];
|
|
24849
|
+
type NetRevenueRetentionResponse = components['schemas']['NetRevenueRetentionResponse'];
|
|
24794
24850
|
type Organization = components['schemas']['Organization'];
|
|
24851
|
+
type Pagination = components['schemas']['Pagination'];
|
|
24852
|
+
type PayoutResponse = components['schemas']['PayoutResponse'];
|
|
24853
|
+
type Plan = components['schemas']['Plan'];
|
|
24854
|
+
type PlanFeature = components['schemas']['PlanFeature'];
|
|
24855
|
+
type PlanFeatureWebhook = components['schemas']['PlanFeatureWebhook'];
|
|
24856
|
+
type PlanUsageChargeWebhook = components['schemas']['PlanUsageChargeWebhook'];
|
|
24857
|
+
type PlanWebhook = components['schemas']['PlanWebhook'];
|
|
24858
|
+
type PredictedLtvResponse = components['schemas']['PredictedLtvResponse'];
|
|
24859
|
+
type RevenueRetentionResponse = components['schemas']['RevenueRetentionResponse'];
|
|
24860
|
+
type Review = components['schemas']['Review'];
|
|
24861
|
+
type ReviewWebhook = components['schemas']['ReviewWebhook'];
|
|
24862
|
+
type StandardMetricResponse = components['schemas']['StandardMetricResponse'];
|
|
24863
|
+
type Subscription = components['schemas']['Subscription'];
|
|
24864
|
+
type SubscriptionWebhook = components['schemas']['SubscriptionWebhook'];
|
|
24865
|
+
type SyncedEmail = components['schemas']['SyncedEmail'];
|
|
24866
|
+
type SyncedEmailContact = components['schemas']['SyncedEmailContact'];
|
|
24867
|
+
type SyncedEmailCustomer = components['schemas']['SyncedEmailCustomer'];
|
|
24868
|
+
type SyncedEmailDeal = components['schemas']['SyncedEmailDeal'];
|
|
24869
|
+
type SyncedEmailMessage = components['schemas']['SyncedEmailMessage'];
|
|
24870
|
+
type SyncedEmailUser = components['schemas']['SyncedEmailUser'];
|
|
24871
|
+
type Task = components['schemas']['Task'];
|
|
24872
|
+
type TaskTodoItem = components['schemas']['TaskTodoItem'];
|
|
24873
|
+
type ThreadEventType = components['schemas']['ThreadEventType'];
|
|
24874
|
+
type ThreadMessageWebhook = components['schemas']['ThreadMessageWebhook'];
|
|
24875
|
+
type ThreadWebhook = components['schemas']['ThreadWebhook'];
|
|
24876
|
+
type Ticket = components['schemas']['Ticket'];
|
|
24877
|
+
type TicketAgent = components['schemas']['TicketAgent'];
|
|
24878
|
+
type TicketApp = components['schemas']['TicketApp'];
|
|
24879
|
+
type TicketAttachment = components['schemas']['TicketAttachment'];
|
|
24880
|
+
type TicketChannel = components['schemas']['TicketChannel'];
|
|
24881
|
+
type TicketContact = components['schemas']['TicketContact'];
|
|
24882
|
+
type TicketCustomer = components['schemas']['TicketCustomer'];
|
|
24883
|
+
type TicketEvent = components['schemas']['TicketEvent'];
|
|
24884
|
+
type TicketLoop = components['schemas']['TicketLoop'];
|
|
24885
|
+
type TicketMessage = components['schemas']['TicketMessage'];
|
|
24886
|
+
type TimeSeriesDataPoint = components['schemas']['TimeSeriesDataPoint'];
|
|
24887
|
+
type TimelineComment = components['schemas']['TimelineComment'];
|
|
24888
|
+
type Transaction = components['schemas']['Transaction'];
|
|
24889
|
+
type TransactionWebhook = components['schemas']['TransactionWebhook'];
|
|
24890
|
+
type Trigger = components['schemas']['Trigger'];
|
|
24891
|
+
type UninstallEventWebhook = components['schemas']['UninstallEventWebhook'];
|
|
24892
|
+
type UsageEvent = components['schemas']['UsageEvent'];
|
|
24893
|
+
type UsageEventResponse = components['schemas']['UsageEventResponse'];
|
|
24894
|
+
type UsageMetric = components['schemas']['UsageMetric'];
|
|
24895
|
+
type UsageMetricResponse = components['schemas']['UsageMetricResponse'];
|
|
24795
24896
|
type User = components['schemas']['User'];
|
|
24796
24897
|
type Webhook = components['schemas']['Webhook'];
|
|
24797
|
-
type AgentRun = components['schemas']['AgentRun'];
|
|
24798
|
-
type Pagination = components['schemas']['Pagination'];
|
|
24799
|
-
type CursorPagination = components['schemas']['CursorPagination'];
|
|
24800
24898
|
|
|
24801
24899
|
/**
|
|
24802
24900
|
* Base error class for Mantle API errors
|
|
@@ -24922,4 +25020,4 @@ interface RateLimitOptions {
|
|
|
24922
25020
|
*/
|
|
24923
25021
|
declare function createRateLimitMiddleware(options?: RateLimitOptions): Middleware;
|
|
24924
25022
|
|
|
24925
|
-
export { type AccountOwner, type Affiliate, type AffiliateCommission, AffiliateCommissionsResource, type AffiliatePayout, AffiliatePayoutsResource, type AffiliateProgram, AffiliateProgramsResource, type AffiliateReferral, AffiliateReferralsResource, AffiliatesResource, type AgentRun, AgentsResource, AiAgentRunsResource, type App, type AppEvent, AppsResource, type AuthRefreshOptions, BaseResource, ChannelsResource, type Charge, ChargesResource, CompaniesResource, type Company, type Contact, ContactsResource, type CursorPagination, CustomDataResource, type CustomField, type Customer, type CustomerSegment, CustomerSegmentsResource, CustomersResource, type Deal, DealActivitiesResource, type DealActivity, type DealEvent, type DealFlow, DealFlowsResource, type DealStage, DealsResource, type DocsCollection, type DocsGroup, type DocsPage, type DocsRepository, DocsResource, type EmailUnsubscribeGroup, type EmailUnsubscribeGroupMember, EmailUnsubscribeGroupsResource, EntitiesResource, type Feature, type Flow, type FlowActionRun, FlowExtensionsResource, FlowsResource, JournalEntriesResource, type JournalEntry, type List, ListsResource, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type Meeting, type MeetingAttendee, type MeetingTranscript, type MeetingUtterance, MeetingsResource, MetricsResource, type Organization, OrganizationResource, type Pagination, type Plan, type PlanFeature, type RateLimitOptions, type Review, type Subscription, SubscriptionsResource, SyncedEmailsResource, type Task, type TaskTodoItem, TasksResource, type Ticket, type TicketEvent, type TicketMessage, TicketsResource, type TimelineComment, TimelineCommentsResource, type Transaction, TransactionsResource, type UsageEvent, UsageEventsResource, type UsageMetric, type User, UsersResource, type Webhook, WebhooksResource, type components, createAuthRefreshMiddleware, createRateLimitMiddleware, type paths };
|
|
25023
|
+
export { type AccountOwner, type AccountOwnerType, type Action, type ActiveSubscriptionsResponse, type Affiliate, type AffiliateAttributionWebhook, type AffiliateCommission, AffiliateCommissionsResource, type AffiliateMembershipWebhook, type AffiliatePayout, type AffiliatePayoutWebhook, AffiliatePayoutsResource, type AffiliateProgram, type AffiliateProgramGroup, type AffiliateProgramMembership, type AffiliateProgramWebhook, AffiliateProgramsResource, type AffiliateReferral, AffiliateReferralsResource, type AffiliateRules, type AffiliateRulesWebhook, type AffiliateWebhook, AffiliatesResource, type AgentRun, AgentsResource, AiAgentRunsResource, type App, type AppChargeWebhook, type AppEvent, type AppInstallation, type AppInstallationWebhook, type AppWebhook, AppsResource, type AuthRefreshOptions, type BaseCustomerWebhook, BaseResource, ChannelsResource, type Charge, ChargesResource, type Checklist, type ChecklistStep, CompaniesResource, type Company, type Contact, type ContactWebhook, ContactsResource, type CursorPagination, CustomDataResource, type CustomField, type CustomFieldDefaultValue, type Customer, type CustomerContact, type CustomerContactWebhook, type CustomerSegment, CustomerSegmentsResource, type CustomerWebhook, type CustomerWithoutSubscriptionWebhook, CustomersResource, type Deal, type DealAcquirer, DealActivitiesResource, type DealActivity, type DealAffiliate, type DealApp, type DealContact, type DealCustomData, type DealCustomer, type DealEvent, type DealFlow, type DealFlowAffiliate, type DealFlowDefaultSource, type DealFlowPartnership, type DealFlowStage, type DealFlowUser, DealFlowsResource, type DealOwner, type DealPartnership, type DealPlan, type DealStage, DealsResource, type DetailedAffiliate, type DetailedFlow, type DocsCollection, type DocsCollectionResponse, type DocsGroup, type DocsGroupResponse, type DocsPage, type DocsPageResponse, type DocsPageSummary, type DocsRepository, DocsResource, type EmailUnsubscribeGroup, type EmailUnsubscribeGroupMember, EmailUnsubscribeGroupsResource, EntitiesResource, type EventWebhook, type ExtensionUninstallPayload, type ExtensionWebhook, type Feature, type Flow, type FlowActionRun, FlowExtensionsResource, FlowsResource, type InvalidTokenError, type Invoice, type InvoiceWebhook, JournalEntriesResource, type JournalEntry, type JournalEntryApp, type JournalEntryFile, type List, ListsResource, type LogoChurnResponse, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type Meeting, type MeetingAttendee, type MeetingAttendeeRef, type MeetingContactRef, type MeetingCustomer, type MeetingDeal, type MeetingTaskSuggestion, type MeetingTranscript, type MeetingUser, type MeetingUtterance, MeetingsResource, MetricsResource, type MissingScopesError, type MrrResponse, type NetInstallsResponse, type NetRevenueResponse, type NetRevenueRetentionResponse, type Organization, OrganizationResource, type Pagination, type PayoutResponse, type Plan, type PlanFeature, type PlanFeatureWebhook, type PlanUsageChargeWebhook, type PlanWebhook, type PredictedLtvResponse, type RateLimitOptions, type RevenueRetentionResponse, type Review, type ReviewWebhook, type StandardMetricResponse, type Subscription, type SubscriptionWebhook, SubscriptionsResource, type SyncedEmail, type SyncedEmailContact, type SyncedEmailCustomer, type SyncedEmailDeal, type SyncedEmailMessage, type SyncedEmailUser, SyncedEmailsResource, type Task, type TaskTodoItem, TasksResource, type ThreadEventType, type ThreadMessageWebhook, type ThreadWebhook, type Ticket, type TicketAgent, type TicketApp, type TicketAttachment, type TicketChannel, type TicketContact, type TicketCustomer, type TicketEvent, type TicketLoop, type TicketMessage, TicketsResource, type TimeSeriesDataPoint, type TimelineComment, TimelineCommentsResource, type Transaction, type TransactionWebhook, TransactionsResource, type Trigger, type UninstallEventWebhook, type UsageEvent, type UsageEventResponse, UsageEventsResource, type UsageMetric, type UsageMetricResponse, type User, UsersResource, type Webhook, WebhooksResource, type components, createAuthRefreshMiddleware, createRateLimitMiddleware, type paths };
|