@heymantle/core-api-client 0.1.14 → 0.1.15
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 +125 -1
- package/dist/index.d.ts +125 -1
- package/dist/index.js +85 -0
- package/dist/index.mjs +85 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2327,6 +2327,69 @@ interface TimelineCommentUpdateResponse {
|
|
|
2327
2327
|
dealEventId?: string | null;
|
|
2328
2328
|
}
|
|
2329
2329
|
|
|
2330
|
+
interface List {
|
|
2331
|
+
id: string;
|
|
2332
|
+
name: string;
|
|
2333
|
+
description: string | null;
|
|
2334
|
+
customerCount?: number;
|
|
2335
|
+
contactCount?: number;
|
|
2336
|
+
createdAt: string;
|
|
2337
|
+
updatedAt: string;
|
|
2338
|
+
}
|
|
2339
|
+
interface ListEntity {
|
|
2340
|
+
_type: 'customer' | 'contact';
|
|
2341
|
+
id: string;
|
|
2342
|
+
name: string;
|
|
2343
|
+
email: string;
|
|
2344
|
+
tags: string[];
|
|
2345
|
+
createdAt: string;
|
|
2346
|
+
domain?: string;
|
|
2347
|
+
shopifyDomain?: string;
|
|
2348
|
+
phone?: string;
|
|
2349
|
+
jobTitle?: string;
|
|
2350
|
+
}
|
|
2351
|
+
interface ListListParams extends ListParams {
|
|
2352
|
+
all?: boolean;
|
|
2353
|
+
}
|
|
2354
|
+
interface ListListResponse extends PaginatedResponse {
|
|
2355
|
+
lists: List[];
|
|
2356
|
+
}
|
|
2357
|
+
interface ListRetrieveParams {
|
|
2358
|
+
page?: number;
|
|
2359
|
+
take?: number;
|
|
2360
|
+
type?: 'customer' | 'contact';
|
|
2361
|
+
search?: string;
|
|
2362
|
+
sort?: 'name' | 'email' | 'createdAt' | 'updatedAt';
|
|
2363
|
+
sortDirection?: 'asc' | 'desc';
|
|
2364
|
+
}
|
|
2365
|
+
interface ListRetrieveResponse extends PaginatedResponse {
|
|
2366
|
+
list: List;
|
|
2367
|
+
entities: ListEntity[];
|
|
2368
|
+
}
|
|
2369
|
+
interface ListCreateParams {
|
|
2370
|
+
name: string;
|
|
2371
|
+
description?: string;
|
|
2372
|
+
}
|
|
2373
|
+
interface ListUpdateParams {
|
|
2374
|
+
name?: string;
|
|
2375
|
+
description?: string;
|
|
2376
|
+
}
|
|
2377
|
+
interface ListAddEntitiesParams {
|
|
2378
|
+
customerIds?: string[];
|
|
2379
|
+
contactIds?: string[];
|
|
2380
|
+
}
|
|
2381
|
+
interface ListAddEntitiesResponse {
|
|
2382
|
+
added: number;
|
|
2383
|
+
skipped: number;
|
|
2384
|
+
}
|
|
2385
|
+
interface ListRemoveEntitiesParams {
|
|
2386
|
+
customerIds?: string[];
|
|
2387
|
+
contactIds?: string[];
|
|
2388
|
+
}
|
|
2389
|
+
interface ListRemoveEntitiesResponse {
|
|
2390
|
+
removed: number;
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2330
2393
|
/**
|
|
2331
2394
|
* Resource for managing customers
|
|
2332
2395
|
*/
|
|
@@ -3574,6 +3637,66 @@ declare class TimelineCommentsResource extends BaseResource {
|
|
|
3574
3637
|
del(id: string): Promise<DeleteResponse>;
|
|
3575
3638
|
}
|
|
3576
3639
|
|
|
3640
|
+
declare class ListsResource extends BaseResource {
|
|
3641
|
+
/**
|
|
3642
|
+
* List all lists
|
|
3643
|
+
*
|
|
3644
|
+
* @param params - Optional list parameters
|
|
3645
|
+
* @returns Paginated list of lists
|
|
3646
|
+
*/
|
|
3647
|
+
list(params?: ListListParams): Promise<ListListResponse>;
|
|
3648
|
+
/**
|
|
3649
|
+
* Retrieve a specific list with its entities
|
|
3650
|
+
*
|
|
3651
|
+
* @param listId - The ID of the list
|
|
3652
|
+
* @param params - Optional parameters to filter entities
|
|
3653
|
+
* @returns The list with its entities
|
|
3654
|
+
*/
|
|
3655
|
+
retrieve(listId: string, params?: ListRetrieveParams): Promise<ListRetrieveResponse>;
|
|
3656
|
+
/**
|
|
3657
|
+
* Create a new list
|
|
3658
|
+
*
|
|
3659
|
+
* @param data - List creation parameters
|
|
3660
|
+
* @returns The created list
|
|
3661
|
+
*/
|
|
3662
|
+
create(data: ListCreateParams): Promise<{
|
|
3663
|
+
list: List;
|
|
3664
|
+
}>;
|
|
3665
|
+
/**
|
|
3666
|
+
* Update an existing list
|
|
3667
|
+
*
|
|
3668
|
+
* @param listId - The ID of the list to update
|
|
3669
|
+
* @param data - List update parameters
|
|
3670
|
+
* @returns The updated list
|
|
3671
|
+
*/
|
|
3672
|
+
update(listId: string, data: ListUpdateParams): Promise<{
|
|
3673
|
+
list: List;
|
|
3674
|
+
}>;
|
|
3675
|
+
/**
|
|
3676
|
+
* Delete a list
|
|
3677
|
+
*
|
|
3678
|
+
* @param listId - The ID of the list to delete
|
|
3679
|
+
* @returns Delete confirmation
|
|
3680
|
+
*/
|
|
3681
|
+
del(listId: string): Promise<DeleteResponse>;
|
|
3682
|
+
/**
|
|
3683
|
+
* Add customers and/or contacts to a list
|
|
3684
|
+
*
|
|
3685
|
+
* @param listId - The ID of the list
|
|
3686
|
+
* @param data - IDs of customers and/or contacts to add
|
|
3687
|
+
* @returns Count of added and skipped entities
|
|
3688
|
+
*/
|
|
3689
|
+
addEntities(listId: string, data: ListAddEntitiesParams): Promise<ListAddEntitiesResponse>;
|
|
3690
|
+
/**
|
|
3691
|
+
* Remove customers and/or contacts from a list
|
|
3692
|
+
*
|
|
3693
|
+
* @param listId - The ID of the list
|
|
3694
|
+
* @param data - IDs of customers and/or contacts to remove
|
|
3695
|
+
* @returns Count of removed entities
|
|
3696
|
+
*/
|
|
3697
|
+
removeEntities(listId: string, data: ListRemoveEntitiesParams): Promise<ListRemoveEntitiesResponse>;
|
|
3698
|
+
}
|
|
3699
|
+
|
|
3577
3700
|
/**
|
|
3578
3701
|
* Mantle Core API Client
|
|
3579
3702
|
*
|
|
@@ -3630,6 +3753,7 @@ declare class MantleCoreClient {
|
|
|
3630
3753
|
readonly entities: EntitiesResource;
|
|
3631
3754
|
readonly customData: CustomDataResource;
|
|
3632
3755
|
readonly timelineComments: TimelineCommentsResource;
|
|
3756
|
+
readonly lists: ListsResource;
|
|
3633
3757
|
constructor(config: MantleCoreClientConfig);
|
|
3634
3758
|
/**
|
|
3635
3759
|
* Register a middleware function
|
|
@@ -3918,4 +4042,4 @@ interface RateLimitOptions {
|
|
|
3918
4042
|
*/
|
|
3919
4043
|
declare function createRateLimitMiddleware(options?: RateLimitOptions): Middleware;
|
|
3920
4044
|
|
|
3921
|
-
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 AgentCreateParams, type AgentListResponse, type AgentResponse, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, type AuthRefreshOptions, 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 ContactCreateResponse, type ContactEntity, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomDataDeleteParams, type CustomDataGetParams, CustomDataResource, type CustomDataResourceType, type CustomDataResponse, type CustomDataSetParams, 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 DealContactInput, type DealCreateParams, type DealCustomerInput, type DealEvent, type DealEventCreateParams, type DealEventCreateResponse, type DealEventListResponse, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealProgression, 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 HttpMethod, 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 Middleware, type MiddlewareContext, MiddlewareManager, type MiddlewareOptions, type MiddlewareRequest, type MiddlewareResponse, type NextFunction, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RateLimitOptions, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SocialProfile, type SocialProfileType, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, type TaskUpdateResponse, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineComment, type TimelineCommentAttachment, type TimelineCommentAttachmentInput, type TimelineCommentCreateParams, type TimelineCommentCreateResponse, type TimelineCommentListParams, type TimelineCommentListResponse, type TimelineCommentTaggedUser, type TimelineCommentTaggedUserInput, type TimelineCommentUpdateParams, type TimelineCommentUpdateResponse, type TimelineCommentUser, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type TodoItem, type TodoItemCreateParams, type TodoItemInput, type TodoItemListResponse, type TodoItemUpdateParams, 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, createAuthRefreshMiddleware, createRateLimitMiddleware };
|
|
4045
|
+
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 AgentCreateParams, type AgentListResponse, type AgentResponse, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, type AuthRefreshOptions, 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 ContactCreateResponse, type ContactEntity, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomDataDeleteParams, type CustomDataGetParams, CustomDataResource, type CustomDataResourceType, type CustomDataResponse, type CustomDataSetParams, 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 DealContactInput, type DealCreateParams, type DealCustomerInput, type DealEvent, type DealEventCreateParams, type DealEventCreateResponse, type DealEventListResponse, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealProgression, 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 HttpMethod, type List, type ListAddEntitiesParams, type ListAddEntitiesResponse, type ListCreateParams, type ListEntity, type ListListParams, type ListListResponse, type ListParams, type ListRemoveEntitiesParams, type ListRemoveEntitiesResponse, type ListRetrieveParams, type ListRetrieveResponse, type ListUpdateParams, 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 Middleware, type MiddlewareContext, MiddlewareManager, type MiddlewareOptions, type MiddlewareRequest, type MiddlewareResponse, type NextFunction, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RateLimitOptions, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SocialProfile, type SocialProfileType, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, type TaskUpdateResponse, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineComment, type TimelineCommentAttachment, type TimelineCommentAttachmentInput, type TimelineCommentCreateParams, type TimelineCommentCreateResponse, type TimelineCommentListParams, type TimelineCommentListResponse, type TimelineCommentTaggedUser, type TimelineCommentTaggedUserInput, type TimelineCommentUpdateParams, type TimelineCommentUpdateResponse, type TimelineCommentUser, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type TodoItem, type TodoItemCreateParams, type TodoItemInput, type TodoItemListResponse, type TodoItemUpdateParams, 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, createAuthRefreshMiddleware, createRateLimitMiddleware };
|
package/dist/index.d.ts
CHANGED
|
@@ -2327,6 +2327,69 @@ interface TimelineCommentUpdateResponse {
|
|
|
2327
2327
|
dealEventId?: string | null;
|
|
2328
2328
|
}
|
|
2329
2329
|
|
|
2330
|
+
interface List {
|
|
2331
|
+
id: string;
|
|
2332
|
+
name: string;
|
|
2333
|
+
description: string | null;
|
|
2334
|
+
customerCount?: number;
|
|
2335
|
+
contactCount?: number;
|
|
2336
|
+
createdAt: string;
|
|
2337
|
+
updatedAt: string;
|
|
2338
|
+
}
|
|
2339
|
+
interface ListEntity {
|
|
2340
|
+
_type: 'customer' | 'contact';
|
|
2341
|
+
id: string;
|
|
2342
|
+
name: string;
|
|
2343
|
+
email: string;
|
|
2344
|
+
tags: string[];
|
|
2345
|
+
createdAt: string;
|
|
2346
|
+
domain?: string;
|
|
2347
|
+
shopifyDomain?: string;
|
|
2348
|
+
phone?: string;
|
|
2349
|
+
jobTitle?: string;
|
|
2350
|
+
}
|
|
2351
|
+
interface ListListParams extends ListParams {
|
|
2352
|
+
all?: boolean;
|
|
2353
|
+
}
|
|
2354
|
+
interface ListListResponse extends PaginatedResponse {
|
|
2355
|
+
lists: List[];
|
|
2356
|
+
}
|
|
2357
|
+
interface ListRetrieveParams {
|
|
2358
|
+
page?: number;
|
|
2359
|
+
take?: number;
|
|
2360
|
+
type?: 'customer' | 'contact';
|
|
2361
|
+
search?: string;
|
|
2362
|
+
sort?: 'name' | 'email' | 'createdAt' | 'updatedAt';
|
|
2363
|
+
sortDirection?: 'asc' | 'desc';
|
|
2364
|
+
}
|
|
2365
|
+
interface ListRetrieveResponse extends PaginatedResponse {
|
|
2366
|
+
list: List;
|
|
2367
|
+
entities: ListEntity[];
|
|
2368
|
+
}
|
|
2369
|
+
interface ListCreateParams {
|
|
2370
|
+
name: string;
|
|
2371
|
+
description?: string;
|
|
2372
|
+
}
|
|
2373
|
+
interface ListUpdateParams {
|
|
2374
|
+
name?: string;
|
|
2375
|
+
description?: string;
|
|
2376
|
+
}
|
|
2377
|
+
interface ListAddEntitiesParams {
|
|
2378
|
+
customerIds?: string[];
|
|
2379
|
+
contactIds?: string[];
|
|
2380
|
+
}
|
|
2381
|
+
interface ListAddEntitiesResponse {
|
|
2382
|
+
added: number;
|
|
2383
|
+
skipped: number;
|
|
2384
|
+
}
|
|
2385
|
+
interface ListRemoveEntitiesParams {
|
|
2386
|
+
customerIds?: string[];
|
|
2387
|
+
contactIds?: string[];
|
|
2388
|
+
}
|
|
2389
|
+
interface ListRemoveEntitiesResponse {
|
|
2390
|
+
removed: number;
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2330
2393
|
/**
|
|
2331
2394
|
* Resource for managing customers
|
|
2332
2395
|
*/
|
|
@@ -3574,6 +3637,66 @@ declare class TimelineCommentsResource extends BaseResource {
|
|
|
3574
3637
|
del(id: string): Promise<DeleteResponse>;
|
|
3575
3638
|
}
|
|
3576
3639
|
|
|
3640
|
+
declare class ListsResource extends BaseResource {
|
|
3641
|
+
/**
|
|
3642
|
+
* List all lists
|
|
3643
|
+
*
|
|
3644
|
+
* @param params - Optional list parameters
|
|
3645
|
+
* @returns Paginated list of lists
|
|
3646
|
+
*/
|
|
3647
|
+
list(params?: ListListParams): Promise<ListListResponse>;
|
|
3648
|
+
/**
|
|
3649
|
+
* Retrieve a specific list with its entities
|
|
3650
|
+
*
|
|
3651
|
+
* @param listId - The ID of the list
|
|
3652
|
+
* @param params - Optional parameters to filter entities
|
|
3653
|
+
* @returns The list with its entities
|
|
3654
|
+
*/
|
|
3655
|
+
retrieve(listId: string, params?: ListRetrieveParams): Promise<ListRetrieveResponse>;
|
|
3656
|
+
/**
|
|
3657
|
+
* Create a new list
|
|
3658
|
+
*
|
|
3659
|
+
* @param data - List creation parameters
|
|
3660
|
+
* @returns The created list
|
|
3661
|
+
*/
|
|
3662
|
+
create(data: ListCreateParams): Promise<{
|
|
3663
|
+
list: List;
|
|
3664
|
+
}>;
|
|
3665
|
+
/**
|
|
3666
|
+
* Update an existing list
|
|
3667
|
+
*
|
|
3668
|
+
* @param listId - The ID of the list to update
|
|
3669
|
+
* @param data - List update parameters
|
|
3670
|
+
* @returns The updated list
|
|
3671
|
+
*/
|
|
3672
|
+
update(listId: string, data: ListUpdateParams): Promise<{
|
|
3673
|
+
list: List;
|
|
3674
|
+
}>;
|
|
3675
|
+
/**
|
|
3676
|
+
* Delete a list
|
|
3677
|
+
*
|
|
3678
|
+
* @param listId - The ID of the list to delete
|
|
3679
|
+
* @returns Delete confirmation
|
|
3680
|
+
*/
|
|
3681
|
+
del(listId: string): Promise<DeleteResponse>;
|
|
3682
|
+
/**
|
|
3683
|
+
* Add customers and/or contacts to a list
|
|
3684
|
+
*
|
|
3685
|
+
* @param listId - The ID of the list
|
|
3686
|
+
* @param data - IDs of customers and/or contacts to add
|
|
3687
|
+
* @returns Count of added and skipped entities
|
|
3688
|
+
*/
|
|
3689
|
+
addEntities(listId: string, data: ListAddEntitiesParams): Promise<ListAddEntitiesResponse>;
|
|
3690
|
+
/**
|
|
3691
|
+
* Remove customers and/or contacts from a list
|
|
3692
|
+
*
|
|
3693
|
+
* @param listId - The ID of the list
|
|
3694
|
+
* @param data - IDs of customers and/or contacts to remove
|
|
3695
|
+
* @returns Count of removed entities
|
|
3696
|
+
*/
|
|
3697
|
+
removeEntities(listId: string, data: ListRemoveEntitiesParams): Promise<ListRemoveEntitiesResponse>;
|
|
3698
|
+
}
|
|
3699
|
+
|
|
3577
3700
|
/**
|
|
3578
3701
|
* Mantle Core API Client
|
|
3579
3702
|
*
|
|
@@ -3630,6 +3753,7 @@ declare class MantleCoreClient {
|
|
|
3630
3753
|
readonly entities: EntitiesResource;
|
|
3631
3754
|
readonly customData: CustomDataResource;
|
|
3632
3755
|
readonly timelineComments: TimelineCommentsResource;
|
|
3756
|
+
readonly lists: ListsResource;
|
|
3633
3757
|
constructor(config: MantleCoreClientConfig);
|
|
3634
3758
|
/**
|
|
3635
3759
|
* Register a middleware function
|
|
@@ -3918,4 +4042,4 @@ interface RateLimitOptions {
|
|
|
3918
4042
|
*/
|
|
3919
4043
|
declare function createRateLimitMiddleware(options?: RateLimitOptions): Middleware;
|
|
3920
4044
|
|
|
3921
|
-
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 AgentCreateParams, type AgentListResponse, type AgentResponse, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, type AuthRefreshOptions, 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 ContactCreateResponse, type ContactEntity, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomDataDeleteParams, type CustomDataGetParams, CustomDataResource, type CustomDataResourceType, type CustomDataResponse, type CustomDataSetParams, 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 DealContactInput, type DealCreateParams, type DealCustomerInput, type DealEvent, type DealEventCreateParams, type DealEventCreateResponse, type DealEventListResponse, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealProgression, 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 HttpMethod, 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 Middleware, type MiddlewareContext, MiddlewareManager, type MiddlewareOptions, type MiddlewareRequest, type MiddlewareResponse, type NextFunction, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RateLimitOptions, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SocialProfile, type SocialProfileType, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, type TaskUpdateResponse, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineComment, type TimelineCommentAttachment, type TimelineCommentAttachmentInput, type TimelineCommentCreateParams, type TimelineCommentCreateResponse, type TimelineCommentListParams, type TimelineCommentListResponse, type TimelineCommentTaggedUser, type TimelineCommentTaggedUserInput, type TimelineCommentUpdateParams, type TimelineCommentUpdateResponse, type TimelineCommentUser, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type TodoItem, type TodoItemCreateParams, type TodoItemInput, type TodoItemListResponse, type TodoItemUpdateParams, 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, createAuthRefreshMiddleware, createRateLimitMiddleware };
|
|
4045
|
+
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 AgentCreateParams, type AgentListResponse, type AgentResponse, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, type AuthRefreshOptions, 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 ContactCreateResponse, type ContactEntity, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomDataDeleteParams, type CustomDataGetParams, CustomDataResource, type CustomDataResourceType, type CustomDataResponse, type CustomDataSetParams, 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 DealContactInput, type DealCreateParams, type DealCustomerInput, type DealEvent, type DealEventCreateParams, type DealEventCreateResponse, type DealEventListResponse, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealProgression, 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 HttpMethod, type List, type ListAddEntitiesParams, type ListAddEntitiesResponse, type ListCreateParams, type ListEntity, type ListListParams, type ListListResponse, type ListParams, type ListRemoveEntitiesParams, type ListRemoveEntitiesResponse, type ListRetrieveParams, type ListRetrieveResponse, type ListUpdateParams, 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 Middleware, type MiddlewareContext, MiddlewareManager, type MiddlewareOptions, type MiddlewareRequest, type MiddlewareResponse, type NextFunction, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RateLimitOptions, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SocialProfile, type SocialProfileType, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, type TaskUpdateResponse, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineComment, type TimelineCommentAttachment, type TimelineCommentAttachmentInput, type TimelineCommentCreateParams, type TimelineCommentCreateResponse, type TimelineCommentListParams, type TimelineCommentListResponse, type TimelineCommentTaggedUser, type TimelineCommentTaggedUserInput, type TimelineCommentUpdateParams, type TimelineCommentUpdateResponse, type TimelineCommentUser, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type TodoItem, type TodoItemCreateParams, type TodoItemInput, type TodoItemListResponse, type TodoItemUpdateParams, 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, createAuthRefreshMiddleware, createRateLimitMiddleware };
|
package/dist/index.js
CHANGED
|
@@ -2013,6 +2013,90 @@ var TimelineCommentsResource = class extends BaseResource {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
};
|
|
2015
2015
|
|
|
2016
|
+
// src/resources/lists.ts
|
|
2017
|
+
var ListsResource = class extends BaseResource {
|
|
2018
|
+
/**
|
|
2019
|
+
* List all lists
|
|
2020
|
+
*
|
|
2021
|
+
* @param params - Optional list parameters
|
|
2022
|
+
* @returns Paginated list of lists
|
|
2023
|
+
*/
|
|
2024
|
+
async list(params) {
|
|
2025
|
+
const response = await this.get("/lists", params);
|
|
2026
|
+
return {
|
|
2027
|
+
lists: response.lists || [],
|
|
2028
|
+
hasNextPage: response.hasNextPage || false,
|
|
2029
|
+
hasPreviousPage: response.hasPreviousPage || false,
|
|
2030
|
+
total: response.total
|
|
2031
|
+
};
|
|
2032
|
+
}
|
|
2033
|
+
/**
|
|
2034
|
+
* Retrieve a specific list with its entities
|
|
2035
|
+
*
|
|
2036
|
+
* @param listId - The ID of the list
|
|
2037
|
+
* @param params - Optional parameters to filter entities
|
|
2038
|
+
* @returns The list with its entities
|
|
2039
|
+
*/
|
|
2040
|
+
async retrieve(listId, params) {
|
|
2041
|
+
const response = await this.get(`/lists/${listId}`, params);
|
|
2042
|
+
return {
|
|
2043
|
+
list: response.list,
|
|
2044
|
+
entities: response.entities || [],
|
|
2045
|
+
hasNextPage: response.hasNextPage || false,
|
|
2046
|
+
hasPreviousPage: response.hasPreviousPage || false,
|
|
2047
|
+
total: response.total
|
|
2048
|
+
};
|
|
2049
|
+
}
|
|
2050
|
+
/**
|
|
2051
|
+
* Create a new list
|
|
2052
|
+
*
|
|
2053
|
+
* @param data - List creation parameters
|
|
2054
|
+
* @returns The created list
|
|
2055
|
+
*/
|
|
2056
|
+
async create(data) {
|
|
2057
|
+
return this.post("/lists", data);
|
|
2058
|
+
}
|
|
2059
|
+
/**
|
|
2060
|
+
* Update an existing list
|
|
2061
|
+
*
|
|
2062
|
+
* @param listId - The ID of the list to update
|
|
2063
|
+
* @param data - List update parameters
|
|
2064
|
+
* @returns The updated list
|
|
2065
|
+
*/
|
|
2066
|
+
async update(listId, data) {
|
|
2067
|
+
return this.put(`/lists/${listId}`, data);
|
|
2068
|
+
}
|
|
2069
|
+
/**
|
|
2070
|
+
* Delete a list
|
|
2071
|
+
*
|
|
2072
|
+
* @param listId - The ID of the list to delete
|
|
2073
|
+
* @returns Delete confirmation
|
|
2074
|
+
*/
|
|
2075
|
+
async del(listId) {
|
|
2076
|
+
return this._delete(`/lists/${listId}`);
|
|
2077
|
+
}
|
|
2078
|
+
/**
|
|
2079
|
+
* Add customers and/or contacts to a list
|
|
2080
|
+
*
|
|
2081
|
+
* @param listId - The ID of the list
|
|
2082
|
+
* @param data - IDs of customers and/or contacts to add
|
|
2083
|
+
* @returns Count of added and skipped entities
|
|
2084
|
+
*/
|
|
2085
|
+
async addEntities(listId, data) {
|
|
2086
|
+
return this.post(`/lists/${listId}/add`, data);
|
|
2087
|
+
}
|
|
2088
|
+
/**
|
|
2089
|
+
* Remove customers and/or contacts from a list
|
|
2090
|
+
*
|
|
2091
|
+
* @param listId - The ID of the list
|
|
2092
|
+
* @param data - IDs of customers and/or contacts to remove
|
|
2093
|
+
* @returns Count of removed entities
|
|
2094
|
+
*/
|
|
2095
|
+
async removeEntities(listId, data) {
|
|
2096
|
+
return this.post(`/lists/${listId}/remove`, data);
|
|
2097
|
+
}
|
|
2098
|
+
};
|
|
2099
|
+
|
|
2016
2100
|
// src/client.ts
|
|
2017
2101
|
var MantleCoreClient = class {
|
|
2018
2102
|
constructor(config) {
|
|
@@ -2066,6 +2150,7 @@ var MantleCoreClient = class {
|
|
|
2066
2150
|
this.entities = new EntitiesResource(this);
|
|
2067
2151
|
this.customData = new CustomDataResource(this);
|
|
2068
2152
|
this.timelineComments = new TimelineCommentsResource(this);
|
|
2153
|
+
this.lists = new ListsResource(this);
|
|
2069
2154
|
}
|
|
2070
2155
|
/**
|
|
2071
2156
|
* Register a middleware function
|
package/dist/index.mjs
CHANGED
|
@@ -1947,6 +1947,90 @@ var TimelineCommentsResource = class extends BaseResource {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
};
|
|
1949
1949
|
|
|
1950
|
+
// src/resources/lists.ts
|
|
1951
|
+
var ListsResource = class extends BaseResource {
|
|
1952
|
+
/**
|
|
1953
|
+
* List all lists
|
|
1954
|
+
*
|
|
1955
|
+
* @param params - Optional list parameters
|
|
1956
|
+
* @returns Paginated list of lists
|
|
1957
|
+
*/
|
|
1958
|
+
async list(params) {
|
|
1959
|
+
const response = await this.get("/lists", params);
|
|
1960
|
+
return {
|
|
1961
|
+
lists: response.lists || [],
|
|
1962
|
+
hasNextPage: response.hasNextPage || false,
|
|
1963
|
+
hasPreviousPage: response.hasPreviousPage || false,
|
|
1964
|
+
total: response.total
|
|
1965
|
+
};
|
|
1966
|
+
}
|
|
1967
|
+
/**
|
|
1968
|
+
* Retrieve a specific list with its entities
|
|
1969
|
+
*
|
|
1970
|
+
* @param listId - The ID of the list
|
|
1971
|
+
* @param params - Optional parameters to filter entities
|
|
1972
|
+
* @returns The list with its entities
|
|
1973
|
+
*/
|
|
1974
|
+
async retrieve(listId, params) {
|
|
1975
|
+
const response = await this.get(`/lists/${listId}`, params);
|
|
1976
|
+
return {
|
|
1977
|
+
list: response.list,
|
|
1978
|
+
entities: response.entities || [],
|
|
1979
|
+
hasNextPage: response.hasNextPage || false,
|
|
1980
|
+
hasPreviousPage: response.hasPreviousPage || false,
|
|
1981
|
+
total: response.total
|
|
1982
|
+
};
|
|
1983
|
+
}
|
|
1984
|
+
/**
|
|
1985
|
+
* Create a new list
|
|
1986
|
+
*
|
|
1987
|
+
* @param data - List creation parameters
|
|
1988
|
+
* @returns The created list
|
|
1989
|
+
*/
|
|
1990
|
+
async create(data) {
|
|
1991
|
+
return this.post("/lists", data);
|
|
1992
|
+
}
|
|
1993
|
+
/**
|
|
1994
|
+
* Update an existing list
|
|
1995
|
+
*
|
|
1996
|
+
* @param listId - The ID of the list to update
|
|
1997
|
+
* @param data - List update parameters
|
|
1998
|
+
* @returns The updated list
|
|
1999
|
+
*/
|
|
2000
|
+
async update(listId, data) {
|
|
2001
|
+
return this.put(`/lists/${listId}`, data);
|
|
2002
|
+
}
|
|
2003
|
+
/**
|
|
2004
|
+
* Delete a list
|
|
2005
|
+
*
|
|
2006
|
+
* @param listId - The ID of the list to delete
|
|
2007
|
+
* @returns Delete confirmation
|
|
2008
|
+
*/
|
|
2009
|
+
async del(listId) {
|
|
2010
|
+
return this._delete(`/lists/${listId}`);
|
|
2011
|
+
}
|
|
2012
|
+
/**
|
|
2013
|
+
* Add customers and/or contacts to a list
|
|
2014
|
+
*
|
|
2015
|
+
* @param listId - The ID of the list
|
|
2016
|
+
* @param data - IDs of customers and/or contacts to add
|
|
2017
|
+
* @returns Count of added and skipped entities
|
|
2018
|
+
*/
|
|
2019
|
+
async addEntities(listId, data) {
|
|
2020
|
+
return this.post(`/lists/${listId}/add`, data);
|
|
2021
|
+
}
|
|
2022
|
+
/**
|
|
2023
|
+
* Remove customers and/or contacts from a list
|
|
2024
|
+
*
|
|
2025
|
+
* @param listId - The ID of the list
|
|
2026
|
+
* @param data - IDs of customers and/or contacts to remove
|
|
2027
|
+
* @returns Count of removed entities
|
|
2028
|
+
*/
|
|
2029
|
+
async removeEntities(listId, data) {
|
|
2030
|
+
return this.post(`/lists/${listId}/remove`, data);
|
|
2031
|
+
}
|
|
2032
|
+
};
|
|
2033
|
+
|
|
1950
2034
|
// src/client.ts
|
|
1951
2035
|
var MantleCoreClient = class {
|
|
1952
2036
|
constructor(config) {
|
|
@@ -2000,6 +2084,7 @@ var MantleCoreClient = class {
|
|
|
2000
2084
|
this.entities = new EntitiesResource(this);
|
|
2001
2085
|
this.customData = new CustomDataResource(this);
|
|
2002
2086
|
this.timelineComments = new TimelineCommentsResource(this);
|
|
2087
|
+
this.lists = new ListsResource(this);
|
|
2003
2088
|
}
|
|
2004
2089
|
/**
|
|
2005
2090
|
* Register a middleware function
|