@zernio/node 0.2.517 → 0.2.519

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.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@zernio/node",
8
- version: "0.2.517",
8
+ version: "0.2.519",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -748,6 +748,12 @@ var getAccountHealth = (options) => {
748
748
  url: "/v1/accounts/{accountId}/health"
749
749
  });
750
750
  };
751
+ var getInstagramFollowStatus = (options) => {
752
+ return (options?.client ?? client).get({
753
+ ...options,
754
+ url: "/v1/accounts/{accountId}/follow-status/{userId}"
755
+ });
756
+ };
751
757
  var getTikTokCreatorInfo = (options) => {
752
758
  return (options?.client ?? client).get({
753
759
  ...options,
@@ -3706,865 +3712,866 @@ var Zernio = class {
3706
3712
  * validate API
3707
3713
  */
3708
3714
  this.validate = {
3709
- validatePostLength,
3710
- validatePost,
3711
- validateMedia,
3712
- validateSubreddit
3715
+ validatePostLength: this._bind(validatePostLength),
3716
+ validatePost: this._bind(validatePost),
3717
+ validateMedia: this._bind(validateMedia),
3718
+ validateSubreddit: this._bind(validateSubreddit)
3713
3719
  };
3714
3720
  /**
3715
3721
  * Analytics API - Get performance metrics
3716
3722
  */
3717
3723
  this.analytics = {
3718
- getAnalytics,
3719
- getYouTubeChannelInsights,
3720
- getLinkedInOrgAggregateAnalytics,
3721
- getTikTokAccountInsights,
3722
- getYouTubeDailyViews,
3723
- getYouTubeVideoRetention,
3724
- getFacebookPageInsights,
3725
- getFacebookPostEarnings,
3726
- getInstagramAccountInsights,
3727
- getInstagramFollowerHistory,
3728
- getInstagramDemographics,
3729
- getYouTubeDemographics,
3730
- getDailyMetrics,
3731
- getBestTimeToPost,
3732
- getContentDecay,
3733
- getPostingFrequency,
3734
- getPostTimeline,
3735
- getGoogleBusinessPerformance,
3736
- getGoogleBusinessSearchKeywords,
3737
- syncExternalPosts,
3738
- getLinkedInAggregateAnalytics,
3739
- getLinkedInPostAnalytics,
3740
- getLinkedInPostReactions,
3741
- getFacebookPostReactions
3724
+ getAnalytics: this._bind(getAnalytics),
3725
+ getYouTubeChannelInsights: this._bind(getYouTubeChannelInsights),
3726
+ getLinkedInOrgAggregateAnalytics: this._bind(getLinkedInOrgAggregateAnalytics),
3727
+ getTikTokAccountInsights: this._bind(getTikTokAccountInsights),
3728
+ getYouTubeDailyViews: this._bind(getYouTubeDailyViews),
3729
+ getYouTubeVideoRetention: this._bind(getYouTubeVideoRetention),
3730
+ getFacebookPageInsights: this._bind(getFacebookPageInsights),
3731
+ getFacebookPostEarnings: this._bind(getFacebookPostEarnings),
3732
+ getInstagramAccountInsights: this._bind(getInstagramAccountInsights),
3733
+ getInstagramFollowerHistory: this._bind(getInstagramFollowerHistory),
3734
+ getInstagramDemographics: this._bind(getInstagramDemographics),
3735
+ getYouTubeDemographics: this._bind(getYouTubeDemographics),
3736
+ getDailyMetrics: this._bind(getDailyMetrics),
3737
+ getBestTimeToPost: this._bind(getBestTimeToPost),
3738
+ getContentDecay: this._bind(getContentDecay),
3739
+ getPostingFrequency: this._bind(getPostingFrequency),
3740
+ getPostTimeline: this._bind(getPostTimeline),
3741
+ getGoogleBusinessPerformance: this._bind(getGoogleBusinessPerformance),
3742
+ getGoogleBusinessSearchKeywords: this._bind(getGoogleBusinessSearchKeywords),
3743
+ syncExternalPosts: this._bind(syncExternalPosts),
3744
+ getLinkedInAggregateAnalytics: this._bind(getLinkedInAggregateAnalytics),
3745
+ getLinkedInPostAnalytics: this._bind(getLinkedInPostAnalytics),
3746
+ getLinkedInPostReactions: this._bind(getLinkedInPostReactions),
3747
+ getFacebookPostReactions: this._bind(getFacebookPostReactions)
3742
3748
  };
3743
3749
  /**
3744
3750
  * inboxanalytics API
3745
3751
  */
3746
3752
  this.inboxanalytics = {
3747
- getInboxVolume,
3748
- getInboxHeatmap,
3749
- getInboxSourceBreakdown,
3750
- getInboxResponseTime,
3751
- getInboxTopAccounts,
3752
- listInboxConversationAnalytics,
3753
- getInboxConversationAnalytics
3753
+ getInboxVolume: this._bind(getInboxVolume),
3754
+ getInboxHeatmap: this._bind(getInboxHeatmap),
3755
+ getInboxSourceBreakdown: this._bind(getInboxSourceBreakdown),
3756
+ getInboxResponseTime: this._bind(getInboxResponseTime),
3757
+ getInboxTopAccounts: this._bind(getInboxTopAccounts),
3758
+ listInboxConversationAnalytics: this._bind(listInboxConversationAnalytics),
3759
+ getInboxConversationAnalytics: this._bind(getInboxConversationAnalytics)
3754
3760
  };
3755
3761
  /**
3756
3762
  * Account Groups API - Organize accounts into groups
3757
3763
  */
3758
3764
  this.accountGroups = {
3759
- listAccountGroups,
3760
- createAccountGroup,
3761
- updateAccountGroup,
3762
- deleteAccountGroup
3765
+ listAccountGroups: this._bind(listAccountGroups),
3766
+ createAccountGroup: this._bind(createAccountGroup),
3767
+ updateAccountGroup: this._bind(updateAccountGroup),
3768
+ deleteAccountGroup: this._bind(deleteAccountGroup)
3763
3769
  };
3764
3770
  /**
3765
3771
  * Media API - Upload and manage media files
3766
3772
  */
3767
3773
  this.media = {
3768
- getMediaPresignedUrl
3774
+ getMediaPresignedUrl: this._bind(getMediaPresignedUrl)
3769
3775
  };
3770
3776
  /**
3771
3777
  * Reddit API - Search and feed
3772
3778
  */
3773
3779
  this.reddit = {
3774
- searchReddit,
3775
- getRedditFeed
3780
+ searchReddit: this._bind(searchReddit),
3781
+ getRedditFeed: this._bind(getRedditFeed)
3776
3782
  };
3777
3783
  /**
3778
3784
  * Usage API - Get usage statistics
3779
3785
  */
3780
3786
  this.usage = {
3781
- getBilling,
3782
- getXApiPricing,
3783
- getUsage,
3784
- getUsageStats,
3785
- getCallsUsage,
3786
- getSmsUsage
3787
+ getBilling: this._bind(getBilling),
3788
+ getXApiPricing: this._bind(getXApiPricing),
3789
+ getUsage: this._bind(getUsage),
3790
+ getUsageStats: this._bind(getUsageStats),
3791
+ getCallsUsage: this._bind(getCallsUsage),
3792
+ getSmsUsage: this._bind(getSmsUsage)
3787
3793
  };
3788
3794
  /**
3789
3795
  * Posts API - Create, schedule, and manage social media posts
3790
3796
  */
3791
3797
  this.posts = {
3792
- listPosts,
3793
- createPost,
3794
- getPost,
3795
- updatePost,
3796
- deletePost,
3797
- bulkUploadPosts,
3798
- retryPost,
3799
- unpublishPost,
3800
- editPost,
3801
- updatePostMetadata
3798
+ listPosts: this._bind(listPosts),
3799
+ createPost: this._bind(createPost),
3800
+ getPost: this._bind(getPost),
3801
+ updatePost: this._bind(updatePost),
3802
+ deletePost: this._bind(deletePost),
3803
+ bulkUploadPosts: this._bind(bulkUploadPosts),
3804
+ retryPost: this._bind(retryPost),
3805
+ unpublishPost: this._bind(unpublishPost),
3806
+ editPost: this._bind(editPost),
3807
+ updatePostMetadata: this._bind(updatePostMetadata)
3802
3808
  };
3803
3809
  /**
3804
3810
  * Users API - User management
3805
3811
  */
3806
3812
  this.users = {
3807
- listUsers,
3808
- getUser
3813
+ listUsers: this._bind(listUsers),
3814
+ getUser: this._bind(getUser)
3809
3815
  };
3810
3816
  /**
3811
3817
  * Profiles API - Manage workspace profiles
3812
3818
  */
3813
3819
  this.profiles = {
3814
- listProfiles,
3815
- createProfile,
3816
- getProfile,
3817
- updateProfile,
3818
- deleteProfile
3820
+ listProfiles: this._bind(listProfiles),
3821
+ createProfile: this._bind(createProfile),
3822
+ getProfile: this._bind(getProfile),
3823
+ updateProfile: this._bind(updateProfile),
3824
+ deleteProfile: this._bind(deleteProfile)
3819
3825
  };
3820
3826
  /**
3821
3827
  * Accounts API - Manage connected social media accounts
3822
3828
  */
3823
3829
  this.accounts = {
3824
- listAccounts,
3825
- getFollowerStats,
3826
- updateAccount,
3827
- moveAccountToProfile,
3828
- deleteAccount,
3829
- getAllAccountsHealth,
3830
- getAccountHealth,
3831
- getTikTokCreatorInfo,
3832
- getGoogleBusinessReviews,
3833
- batchGetGoogleBusinessReviews,
3834
- replyToGoogleBusinessReview,
3835
- deleteGoogleBusinessReviewReply,
3836
- getLinkedInMentions,
3837
- getSlackSettings,
3838
- updateSlackSettings
3830
+ listAccounts: this._bind(listAccounts),
3831
+ getFollowerStats: this._bind(getFollowerStats),
3832
+ updateAccount: this._bind(updateAccount),
3833
+ moveAccountToProfile: this._bind(moveAccountToProfile),
3834
+ deleteAccount: this._bind(deleteAccount),
3835
+ getAllAccountsHealth: this._bind(getAllAccountsHealth),
3836
+ getAccountHealth: this._bind(getAccountHealth),
3837
+ getInstagramFollowStatus: this._bind(getInstagramFollowStatus),
3838
+ getTikTokCreatorInfo: this._bind(getTikTokCreatorInfo),
3839
+ getGoogleBusinessReviews: this._bind(getGoogleBusinessReviews),
3840
+ batchGetGoogleBusinessReviews: this._bind(batchGetGoogleBusinessReviews),
3841
+ replyToGoogleBusinessReview: this._bind(replyToGoogleBusinessReview),
3842
+ deleteGoogleBusinessReviewReply: this._bind(deleteGoogleBusinessReviewReply),
3843
+ getLinkedInMentions: this._bind(getLinkedInMentions),
3844
+ getSlackSettings: this._bind(getSlackSettings),
3845
+ updateSlackSettings: this._bind(updateSlackSettings)
3839
3846
  };
3840
3847
  /**
3841
3848
  * whatsapp API
3842
3849
  */
3843
3850
  this.whatsapp = {
3844
- registerWhatsAppNumber,
3845
- getWhatsAppMedia,
3846
- getWhatsAppTemplates,
3847
- createWhatsAppTemplate,
3848
- getWhatsAppTemplate,
3849
- updateWhatsAppTemplate,
3850
- deleteWhatsAppTemplate,
3851
- getWhatsAppBusinessProfile,
3852
- updateWhatsAppBusinessProfile,
3853
- uploadWhatsAppProfilePhoto,
3854
- getWhatsAppDisplayName,
3855
- updateWhatsAppDisplayName,
3856
- getWhatsappBusinessUsername,
3857
- setWhatsappBusinessUsername,
3858
- deleteWhatsappBusinessUsername,
3859
- getWhatsappBusinessUsernameSuggestions,
3860
- getWhatsAppBlockStatus,
3861
- getWhatsAppBlockedUsers,
3862
- blockWhatsAppUsers,
3863
- unblockWhatsAppUsers,
3864
- getWhatsAppDataset,
3865
- createWhatsAppDataset,
3866
- listWhatsAppGroupChats,
3867
- createWhatsAppGroupChat,
3868
- getWhatsAppGroupChat,
3869
- updateWhatsAppGroupChat,
3870
- deleteWhatsAppGroupChat,
3871
- addWhatsAppGroupParticipants,
3872
- removeWhatsAppGroupParticipants,
3873
- createWhatsAppGroupInviteLink,
3874
- listWhatsAppGroupJoinRequests,
3875
- approveWhatsAppGroupJoinRequests,
3876
- rejectWhatsAppGroupJoinRequests,
3877
- listWhatsAppConversions,
3878
- sendWhatsAppConversion
3851
+ registerWhatsAppNumber: this._bind(registerWhatsAppNumber),
3852
+ getWhatsAppMedia: this._bind(getWhatsAppMedia),
3853
+ getWhatsAppTemplates: this._bind(getWhatsAppTemplates),
3854
+ createWhatsAppTemplate: this._bind(createWhatsAppTemplate),
3855
+ getWhatsAppTemplate: this._bind(getWhatsAppTemplate),
3856
+ updateWhatsAppTemplate: this._bind(updateWhatsAppTemplate),
3857
+ deleteWhatsAppTemplate: this._bind(deleteWhatsAppTemplate),
3858
+ getWhatsAppBusinessProfile: this._bind(getWhatsAppBusinessProfile),
3859
+ updateWhatsAppBusinessProfile: this._bind(updateWhatsAppBusinessProfile),
3860
+ uploadWhatsAppProfilePhoto: this._bind(uploadWhatsAppProfilePhoto),
3861
+ getWhatsAppDisplayName: this._bind(getWhatsAppDisplayName),
3862
+ updateWhatsAppDisplayName: this._bind(updateWhatsAppDisplayName),
3863
+ getWhatsappBusinessUsername: this._bind(getWhatsappBusinessUsername),
3864
+ setWhatsappBusinessUsername: this._bind(setWhatsappBusinessUsername),
3865
+ deleteWhatsappBusinessUsername: this._bind(deleteWhatsappBusinessUsername),
3866
+ getWhatsappBusinessUsernameSuggestions: this._bind(getWhatsappBusinessUsernameSuggestions),
3867
+ getWhatsAppBlockStatus: this._bind(getWhatsAppBlockStatus),
3868
+ getWhatsAppBlockedUsers: this._bind(getWhatsAppBlockedUsers),
3869
+ blockWhatsAppUsers: this._bind(blockWhatsAppUsers),
3870
+ unblockWhatsAppUsers: this._bind(unblockWhatsAppUsers),
3871
+ getWhatsAppDataset: this._bind(getWhatsAppDataset),
3872
+ createWhatsAppDataset: this._bind(createWhatsAppDataset),
3873
+ listWhatsAppGroupChats: this._bind(listWhatsAppGroupChats),
3874
+ createWhatsAppGroupChat: this._bind(createWhatsAppGroupChat),
3875
+ getWhatsAppGroupChat: this._bind(getWhatsAppGroupChat),
3876
+ updateWhatsAppGroupChat: this._bind(updateWhatsAppGroupChat),
3877
+ deleteWhatsAppGroupChat: this._bind(deleteWhatsAppGroupChat),
3878
+ addWhatsAppGroupParticipants: this._bind(addWhatsAppGroupParticipants),
3879
+ removeWhatsAppGroupParticipants: this._bind(removeWhatsAppGroupParticipants),
3880
+ createWhatsAppGroupInviteLink: this._bind(createWhatsAppGroupInviteLink),
3881
+ listWhatsAppGroupJoinRequests: this._bind(listWhatsAppGroupJoinRequests),
3882
+ approveWhatsAppGroupJoinRequests: this._bind(approveWhatsAppGroupJoinRequests),
3883
+ rejectWhatsAppGroupJoinRequests: this._bind(rejectWhatsAppGroupJoinRequests),
3884
+ listWhatsAppConversions: this._bind(listWhatsAppConversions),
3885
+ sendWhatsAppConversion: this._bind(sendWhatsAppConversion)
3879
3886
  };
3880
3887
  /**
3881
3888
  * API Keys API - Manage API keys
3882
3889
  */
3883
3890
  this.apiKeys = {
3884
- verifyCredential,
3885
- listApiKeys,
3886
- createApiKey,
3887
- deleteApiKey
3891
+ verifyCredential: this._bind(verifyCredential),
3892
+ listApiKeys: this._bind(listApiKeys),
3893
+ createApiKey: this._bind(createApiKey),
3894
+ deleteApiKey: this._bind(deleteApiKey)
3888
3895
  };
3889
3896
  /**
3890
3897
  * connectedapps API
3891
3898
  */
3892
3899
  this.connectedapps = {
3893
- listConnectedApps,
3894
- revokeConnectedApp
3900
+ listConnectedApps: this._bind(listConnectedApps),
3901
+ revokeConnectedApp: this._bind(revokeConnectedApp)
3895
3902
  };
3896
3903
  /**
3897
3904
  * Invites API - Team invitations
3898
3905
  */
3899
3906
  this.invites = {
3900
- createInviteToken
3907
+ createInviteToken: this._bind(createInviteToken)
3901
3908
  };
3902
3909
  /**
3903
3910
  * Connect API - OAuth connection flows
3904
3911
  */
3905
3912
  this.connect = {
3906
- getConnectUrl,
3907
- handleOAuthCallback,
3908
- connectAds,
3909
- configureTikTokAdsBrandIdentity,
3910
- getPendingOAuthData,
3911
- connectOpenAIAdsCredentials: connectOpenAiAdsCredentials,
3912
- connectWhatsAppCredentials,
3913
- listWhatsAppPhoneNumbers,
3914
- completeWhatsAppPhoneSelection,
3915
- getFacebookPages,
3916
- updateFacebookPage,
3917
- getLinkedInOrganizations,
3918
- updateLinkedInOrganization,
3919
- getPinterestBoards,
3920
- updatePinterestBoards,
3921
- createPinterestBoard,
3922
- getYoutubePlaylists,
3923
- updateYoutubeDefaultPlaylist,
3924
- getGmbLocations,
3925
- updateGmbLocation,
3926
- assignGoogleBusinessLocation,
3927
- getRedditSubreddits,
3928
- updateRedditSubreddits,
3929
- getSubredditRules,
3930
- voteRedditThing,
3931
- getRedditFlairs,
3932
- setRedditPostFlair,
3913
+ getConnectUrl: this._bind(getConnectUrl),
3914
+ handleOAuthCallback: this._bind(handleOAuthCallback),
3915
+ connectAds: this._bind(connectAds),
3916
+ configureTikTokAdsBrandIdentity: this._bind(configureTikTokAdsBrandIdentity),
3917
+ getPendingOAuthData: this._bind(getPendingOAuthData),
3918
+ connectOpenAIAdsCredentials: this._bind(connectOpenAiAdsCredentials),
3919
+ connectWhatsAppCredentials: this._bind(connectWhatsAppCredentials),
3920
+ listWhatsAppPhoneNumbers: this._bind(listWhatsAppPhoneNumbers),
3921
+ completeWhatsAppPhoneSelection: this._bind(completeWhatsAppPhoneSelection),
3922
+ getFacebookPages: this._bind(getFacebookPages),
3923
+ updateFacebookPage: this._bind(updateFacebookPage),
3924
+ getLinkedInOrganizations: this._bind(getLinkedInOrganizations),
3925
+ updateLinkedInOrganization: this._bind(updateLinkedInOrganization),
3926
+ getPinterestBoards: this._bind(getPinterestBoards),
3927
+ updatePinterestBoards: this._bind(updatePinterestBoards),
3928
+ createPinterestBoard: this._bind(createPinterestBoard),
3929
+ getYoutubePlaylists: this._bind(getYoutubePlaylists),
3930
+ updateYoutubeDefaultPlaylist: this._bind(updateYoutubeDefaultPlaylist),
3931
+ getGmbLocations: this._bind(getGmbLocations),
3932
+ updateGmbLocation: this._bind(updateGmbLocation),
3933
+ assignGoogleBusinessLocation: this._bind(assignGoogleBusinessLocation),
3934
+ getRedditSubreddits: this._bind(getRedditSubreddits),
3935
+ updateRedditSubreddits: this._bind(updateRedditSubreddits),
3936
+ getSubredditRules: this._bind(getSubredditRules),
3937
+ voteRedditThing: this._bind(voteRedditThing),
3938
+ getRedditFlairs: this._bind(getRedditFlairs),
3939
+ setRedditPostFlair: this._bind(setRedditPostFlair),
3933
3940
  facebook: {
3934
- listFacebookPages,
3935
- selectFacebookPage
3941
+ listFacebookPages: this._bind(listFacebookPages),
3942
+ selectFacebookPage: this._bind(selectFacebookPage)
3936
3943
  },
3937
3944
  googleBusiness: {
3938
- listGoogleBusinessLocations,
3939
- selectGoogleBusinessLocation
3945
+ listGoogleBusinessLocations: this._bind(listGoogleBusinessLocations),
3946
+ selectGoogleBusinessLocation: this._bind(selectGoogleBusinessLocation)
3940
3947
  },
3941
3948
  linkedin: {
3942
- listLinkedInOrganizations,
3943
- selectLinkedInOrganization
3949
+ listLinkedInOrganizations: this._bind(listLinkedInOrganizations),
3950
+ selectLinkedInOrganization: this._bind(selectLinkedInOrganization)
3944
3951
  },
3945
3952
  pinterest: {
3946
- listPinterestBoardsForSelection,
3947
- selectPinterestBoard
3953
+ listPinterestBoardsForSelection: this._bind(listPinterestBoardsForSelection),
3954
+ selectPinterestBoard: this._bind(selectPinterestBoard)
3948
3955
  },
3949
3956
  snapchat: {
3950
- listSnapchatProfiles,
3951
- selectSnapchatProfile
3957
+ listSnapchatProfiles: this._bind(listSnapchatProfiles),
3958
+ selectSnapchatProfile: this._bind(selectSnapchatProfile)
3952
3959
  },
3953
3960
  bluesky: {
3954
- connectBlueskyCredentials
3961
+ connectBlueskyCredentials: this._bind(connectBlueskyCredentials)
3955
3962
  },
3956
3963
  telegram: {
3957
- getTelegramConnectStatus,
3958
- initiateTelegramConnect,
3959
- completeTelegramConnect
3964
+ getTelegramConnectStatus: this._bind(getTelegramConnectStatus),
3965
+ initiateTelegramConnect: this._bind(initiateTelegramConnect),
3966
+ completeTelegramConnect: this._bind(completeTelegramConnect)
3960
3967
  }
3961
3968
  };
3962
3969
  /**
3963
3970
  * gmbverifications API
3964
3971
  */
3965
3972
  this.gmbverifications = {
3966
- getGoogleBusinessVerifications,
3967
- startGoogleBusinessVerification,
3968
- fetchGoogleBusinessVerificationOptions,
3969
- completeGoogleBusinessVerification
3973
+ getGoogleBusinessVerifications: this._bind(getGoogleBusinessVerifications),
3974
+ startGoogleBusinessVerification: this._bind(startGoogleBusinessVerification),
3975
+ fetchGoogleBusinessVerificationOptions: this._bind(fetchGoogleBusinessVerificationOptions),
3976
+ completeGoogleBusinessVerification: this._bind(completeGoogleBusinessVerification)
3970
3977
  };
3971
3978
  /**
3972
3979
  * gmbfoodmenus API
3973
3980
  */
3974
3981
  this.gmbfoodmenus = {
3975
- getGoogleBusinessFoodMenus,
3976
- updateGoogleBusinessFoodMenus
3982
+ getGoogleBusinessFoodMenus: this._bind(getGoogleBusinessFoodMenus),
3983
+ updateGoogleBusinessFoodMenus: this._bind(updateGoogleBusinessFoodMenus)
3977
3984
  };
3978
3985
  /**
3979
3986
  * gmblocationdetails API
3980
3987
  */
3981
3988
  this.gmblocationdetails = {
3982
- getGoogleBusinessLocationDetails,
3983
- updateGoogleBusinessLocationDetails
3989
+ getGoogleBusinessLocationDetails: this._bind(getGoogleBusinessLocationDetails),
3990
+ updateGoogleBusinessLocationDetails: this._bind(updateGoogleBusinessLocationDetails)
3984
3991
  };
3985
3992
  /**
3986
3993
  * gmbmedia API
3987
3994
  */
3988
3995
  this.gmbmedia = {
3989
- listGoogleBusinessMedia,
3990
- createGoogleBusinessMedia,
3991
- deleteGoogleBusinessMedia
3996
+ listGoogleBusinessMedia: this._bind(listGoogleBusinessMedia),
3997
+ createGoogleBusinessMedia: this._bind(createGoogleBusinessMedia),
3998
+ deleteGoogleBusinessMedia: this._bind(deleteGoogleBusinessMedia)
3992
3999
  };
3993
4000
  /**
3994
4001
  * gmbattributes API
3995
4002
  */
3996
4003
  this.gmbattributes = {
3997
- getGmbAttributeMetadata,
3998
- getGoogleBusinessAttributes,
3999
- updateGoogleBusinessAttributes
4004
+ getGmbAttributeMetadata: this._bind(getGmbAttributeMetadata),
4005
+ getGoogleBusinessAttributes: this._bind(getGoogleBusinessAttributes),
4006
+ updateGoogleBusinessAttributes: this._bind(updateGoogleBusinessAttributes)
4000
4007
  };
4001
4008
  /**
4002
4009
  * gmbplaceactions API
4003
4010
  */
4004
4011
  this.gmbplaceactions = {
4005
- listGoogleBusinessPlaceActions,
4006
- createGoogleBusinessPlaceAction,
4007
- deleteGoogleBusinessPlaceAction,
4008
- updateGoogleBusinessPlaceAction
4012
+ listGoogleBusinessPlaceActions: this._bind(listGoogleBusinessPlaceActions),
4013
+ createGoogleBusinessPlaceAction: this._bind(createGoogleBusinessPlaceAction),
4014
+ deleteGoogleBusinessPlaceAction: this._bind(deleteGoogleBusinessPlaceAction),
4015
+ updateGoogleBusinessPlaceAction: this._bind(updateGoogleBusinessPlaceAction)
4009
4016
  };
4010
4017
  /**
4011
4018
  * gmbservices API
4012
4019
  */
4013
4020
  this.gmbservices = {
4014
- getGoogleBusinessServices,
4015
- updateGoogleBusinessServices
4021
+ getGoogleBusinessServices: this._bind(getGoogleBusinessServices),
4022
+ updateGoogleBusinessServices: this._bind(updateGoogleBusinessServices)
4016
4023
  };
4017
4024
  /**
4018
4025
  * instagram API
4019
4026
  */
4020
4027
  this.instagram = {
4021
- listInstagramStories,
4022
- getInstagramPublishingLimit,
4023
- getInstagramStoryInsights
4028
+ listInstagramStories: this._bind(listInstagramStories),
4029
+ getInstagramPublishingLimit: this._bind(getInstagramPublishingLimit),
4030
+ getInstagramStoryInsights: this._bind(getInstagramStoryInsights)
4024
4031
  };
4025
4032
  /**
4026
4033
  * discord API
4027
4034
  */
4028
4035
  this.discord = {
4029
- getDiscordSettings,
4030
- updateDiscordSettings,
4031
- getDiscordChannels,
4032
- sendDiscordDirectMessage,
4033
- listDiscordGuildRoles,
4034
- createDiscordGuildRole,
4035
- editDiscordGuildRole,
4036
- deleteDiscordGuildRole,
4037
- listDiscordGuildMembers,
4038
- searchDiscordGuildMembers,
4039
- getDiscordGuildMember,
4040
- addDiscordMemberRole,
4041
- removeDiscordMemberRole,
4042
- deleteDiscordMessage,
4043
- crosspostDiscordMessage,
4044
- createDiscordThread,
4045
- listDiscordPinnedMessages,
4046
- pinDiscordMessage,
4047
- unpinDiscordMessage,
4048
- listDiscordScheduledEvents,
4049
- createDiscordScheduledEvent,
4050
- getDiscordScheduledEvent,
4051
- updateDiscordScheduledEvent,
4052
- deleteDiscordScheduledEvent
4036
+ getDiscordSettings: this._bind(getDiscordSettings),
4037
+ updateDiscordSettings: this._bind(updateDiscordSettings),
4038
+ getDiscordChannels: this._bind(getDiscordChannels),
4039
+ sendDiscordDirectMessage: this._bind(sendDiscordDirectMessage),
4040
+ listDiscordGuildRoles: this._bind(listDiscordGuildRoles),
4041
+ createDiscordGuildRole: this._bind(createDiscordGuildRole),
4042
+ editDiscordGuildRole: this._bind(editDiscordGuildRole),
4043
+ deleteDiscordGuildRole: this._bind(deleteDiscordGuildRole),
4044
+ listDiscordGuildMembers: this._bind(listDiscordGuildMembers),
4045
+ searchDiscordGuildMembers: this._bind(searchDiscordGuildMembers),
4046
+ getDiscordGuildMember: this._bind(getDiscordGuildMember),
4047
+ addDiscordMemberRole: this._bind(addDiscordMemberRole),
4048
+ removeDiscordMemberRole: this._bind(removeDiscordMemberRole),
4049
+ deleteDiscordMessage: this._bind(deleteDiscordMessage),
4050
+ crosspostDiscordMessage: this._bind(crosspostDiscordMessage),
4051
+ createDiscordThread: this._bind(createDiscordThread),
4052
+ listDiscordPinnedMessages: this._bind(listDiscordPinnedMessages),
4053
+ pinDiscordMessage: this._bind(pinDiscordMessage),
4054
+ unpinDiscordMessage: this._bind(unpinDiscordMessage),
4055
+ listDiscordScheduledEvents: this._bind(listDiscordScheduledEvents),
4056
+ createDiscordScheduledEvent: this._bind(createDiscordScheduledEvent),
4057
+ getDiscordScheduledEvent: this._bind(getDiscordScheduledEvent),
4058
+ updateDiscordScheduledEvent: this._bind(updateDiscordScheduledEvent),
4059
+ deleteDiscordScheduledEvent: this._bind(deleteDiscordScheduledEvent)
4053
4060
  };
4054
4061
  /**
4055
4062
  * slack API
4056
4063
  */
4057
4064
  this.slack = {
4058
- listSlackMembers
4065
+ listSlackMembers: this._bind(listSlackMembers)
4059
4066
  };
4060
4067
  /**
4061
4068
  * Queue API - Manage posting queue
4062
4069
  */
4063
4070
  this.queue = {
4064
- listQueueSlots,
4065
- createQueueSlot,
4066
- updateQueueSlot,
4067
- deleteQueueSlot,
4068
- previewQueue,
4069
- getNextQueueSlot
4071
+ listQueueSlots: this._bind(listQueueSlots),
4072
+ createQueueSlot: this._bind(createQueueSlot),
4073
+ updateQueueSlot: this._bind(updateQueueSlot),
4074
+ deleteQueueSlot: this._bind(deleteQueueSlot),
4075
+ previewQueue: this._bind(previewQueue),
4076
+ getNextQueueSlot: this._bind(getNextQueueSlot)
4070
4077
  };
4071
4078
  /**
4072
4079
  * Webhooks API - Configure event webhooks
4073
4080
  */
4074
4081
  this.webhooks = {
4075
- getWebhookSettings,
4076
- createWebhookSettings,
4077
- updateWebhookSettings,
4078
- deleteWebhookSettings,
4079
- getWebhookLogs,
4080
- testWebhook
4082
+ getWebhookSettings: this._bind(getWebhookSettings),
4083
+ createWebhookSettings: this._bind(createWebhookSettings),
4084
+ updateWebhookSettings: this._bind(updateWebhookSettings),
4085
+ deleteWebhookSettings: this._bind(deleteWebhookSettings),
4086
+ getWebhookLogs: this._bind(getWebhookLogs),
4087
+ testWebhook: this._bind(testWebhook)
4081
4088
  };
4082
4089
  /**
4083
4090
  * Logs API - Publishing logs
4084
4091
  */
4085
4092
  this.logs = {
4086
- listLogs
4093
+ listLogs: this._bind(listLogs)
4087
4094
  };
4088
4095
  /**
4089
4096
  * messages API
4090
4097
  */
4091
4098
  this.messages = {
4092
- listInboxConversations,
4093
- createInboxConversation,
4094
- searchInboxConversations,
4095
- getInboxConversation,
4096
- updateInboxConversation,
4097
- getInboxConversationMessages,
4098
- sendInboxMessage,
4099
- editInboxMessage,
4100
- deleteInboxMessage,
4101
- sendTypingIndicator,
4102
- markConversationRead,
4103
- addMessageReaction,
4104
- removeMessageReaction,
4105
- uploadMediaDirect
4099
+ listInboxConversations: this._bind(listInboxConversations),
4100
+ createInboxConversation: this._bind(createInboxConversation),
4101
+ searchInboxConversations: this._bind(searchInboxConversations),
4102
+ getInboxConversation: this._bind(getInboxConversation),
4103
+ updateInboxConversation: this._bind(updateInboxConversation),
4104
+ getInboxConversationMessages: this._bind(getInboxConversationMessages),
4105
+ sendInboxMessage: this._bind(sendInboxMessage),
4106
+ editInboxMessage: this._bind(editInboxMessage),
4107
+ deleteInboxMessage: this._bind(deleteInboxMessage),
4108
+ sendTypingIndicator: this._bind(sendTypingIndicator),
4109
+ markConversationRead: this._bind(markConversationRead),
4110
+ addMessageReaction: this._bind(addMessageReaction),
4111
+ removeMessageReaction: this._bind(removeMessageReaction),
4112
+ uploadMediaDirect: this._bind(uploadMediaDirect)
4106
4113
  };
4107
4114
  /**
4108
4115
  * accountsettings API
4109
4116
  */
4110
4117
  this.accountsettings = {
4111
- getMessengerMenu,
4112
- setMessengerMenu,
4113
- deleteMessengerMenu,
4114
- getInstagramIceBreakers,
4115
- setInstagramIceBreakers,
4116
- deleteInstagramIceBreakers,
4117
- getTelegramCommands,
4118
- setTelegramCommands,
4119
- deleteTelegramCommands
4118
+ getMessengerMenu: this._bind(getMessengerMenu),
4119
+ setMessengerMenu: this._bind(setMessengerMenu),
4120
+ deleteMessengerMenu: this._bind(deleteMessengerMenu),
4121
+ getInstagramIceBreakers: this._bind(getInstagramIceBreakers),
4122
+ setInstagramIceBreakers: this._bind(setInstagramIceBreakers),
4123
+ deleteInstagramIceBreakers: this._bind(deleteInstagramIceBreakers),
4124
+ getTelegramCommands: this._bind(getTelegramCommands),
4125
+ setTelegramCommands: this._bind(setTelegramCommands),
4126
+ deleteTelegramCommands: this._bind(deleteTelegramCommands)
4120
4127
  };
4121
4128
  /**
4122
4129
  * comments API
4123
4130
  */
4124
4131
  this.comments = {
4125
- listInboxComments,
4126
- getInboxPostComments,
4127
- replyToInboxPost,
4128
- deleteInboxComment,
4129
- editInboxComment,
4130
- setCommentModeration,
4131
- hideInboxComment,
4132
- unhideInboxComment,
4133
- likeInboxComment,
4134
- unlikeInboxComment,
4135
- sendPrivateReplyToComment
4132
+ listInboxComments: this._bind(listInboxComments),
4133
+ getInboxPostComments: this._bind(getInboxPostComments),
4134
+ replyToInboxPost: this._bind(replyToInboxPost),
4135
+ deleteInboxComment: this._bind(deleteInboxComment),
4136
+ editInboxComment: this._bind(editInboxComment),
4137
+ setCommentModeration: this._bind(setCommentModeration),
4138
+ hideInboxComment: this._bind(hideInboxComment),
4139
+ unhideInboxComment: this._bind(unhideInboxComment),
4140
+ likeInboxComment: this._bind(likeInboxComment),
4141
+ unlikeInboxComment: this._bind(unlikeInboxComment),
4142
+ sendPrivateReplyToComment: this._bind(sendPrivateReplyToComment)
4136
4143
  };
4137
4144
  /**
4138
4145
  * twitterengagement API
4139
4146
  */
4140
4147
  this.twitterengagement = {
4141
- retweetPost,
4142
- undoRetweet,
4143
- bookmarkPost,
4144
- removeBookmark,
4145
- followUser,
4146
- unfollowUser,
4147
- searchTweets,
4148
- getTweet
4148
+ retweetPost: this._bind(retweetPost),
4149
+ undoRetweet: this._bind(undoRetweet),
4150
+ bookmarkPost: this._bind(bookmarkPost),
4151
+ removeBookmark: this._bind(removeBookmark),
4152
+ followUser: this._bind(followUser),
4153
+ unfollowUser: this._bind(unfollowUser),
4154
+ searchTweets: this._bind(searchTweets),
4155
+ getTweet: this._bind(getTweet)
4149
4156
  };
4150
4157
  /**
4151
4158
  * mentions API
4152
4159
  */
4153
4160
  this.mentions = {
4154
- listInboxMentions,
4155
- replyToMention
4161
+ listInboxMentions: this._bind(listInboxMentions),
4162
+ replyToMention: this._bind(replyToMention)
4156
4163
  };
4157
4164
  /**
4158
4165
  * reviews API
4159
4166
  */
4160
4167
  this.reviews = {
4161
- listInboxReviews,
4162
- replyToInboxReview,
4163
- deleteInboxReviewReply
4168
+ listInboxReviews: this._bind(listInboxReviews),
4169
+ replyToInboxReview: this._bind(replyToInboxReview),
4170
+ deleteInboxReviewReply: this._bind(deleteInboxReviewReply)
4164
4171
  };
4165
4172
  /**
4166
4173
  * whatsappcalling API
4167
4174
  */
4168
4175
  this.whatsappcalling = {
4169
- getWhatsAppCallingConfig,
4170
- enableWhatsAppCallingLegacy,
4171
- updateWhatsAppCallingLegacy,
4172
- disableWhatsAppCallingLegacy,
4173
- getWhatsAppCallPermissions,
4174
- initiateWhatsAppCall,
4175
- listWhatsAppCalls,
4176
- getWhatsAppCall,
4177
- getWhatsAppCallRecording,
4178
- getWhatsAppCallEstimate,
4179
- getWhatsAppCalling,
4180
- enableWhatsAppCalling,
4181
- updateWhatsAppCalling,
4182
- disableWhatsAppCalling,
4183
- startWhatsAppCallerIdVerification,
4184
- verifyWhatsAppCallerId
4176
+ getWhatsAppCallingConfig: this._bind(getWhatsAppCallingConfig),
4177
+ enableWhatsAppCallingLegacy: this._bind(enableWhatsAppCallingLegacy),
4178
+ updateWhatsAppCallingLegacy: this._bind(updateWhatsAppCallingLegacy),
4179
+ disableWhatsAppCallingLegacy: this._bind(disableWhatsAppCallingLegacy),
4180
+ getWhatsAppCallPermissions: this._bind(getWhatsAppCallPermissions),
4181
+ initiateWhatsAppCall: this._bind(initiateWhatsAppCall),
4182
+ listWhatsAppCalls: this._bind(listWhatsAppCalls),
4183
+ getWhatsAppCall: this._bind(getWhatsAppCall),
4184
+ getWhatsAppCallRecording: this._bind(getWhatsAppCallRecording),
4185
+ getWhatsAppCallEstimate: this._bind(getWhatsAppCallEstimate),
4186
+ getWhatsAppCalling: this._bind(getWhatsAppCalling),
4187
+ enableWhatsAppCalling: this._bind(enableWhatsAppCalling),
4188
+ updateWhatsAppCalling: this._bind(updateWhatsAppCalling),
4189
+ disableWhatsAppCalling: this._bind(disableWhatsAppCalling),
4190
+ startWhatsAppCallerIdVerification: this._bind(startWhatsAppCallerIdVerification),
4191
+ verifyWhatsAppCallerId: this._bind(verifyWhatsAppCallerId)
4185
4192
  };
4186
4193
  /**
4187
4194
  * calls API
4188
4195
  */
4189
4196
  this.calls = {
4190
- listCalls,
4191
- getCall,
4192
- getCallRecording
4197
+ listCalls: this._bind(listCalls),
4198
+ getCall: this._bind(getCall),
4199
+ getCallRecording: this._bind(getCallRecording)
4193
4200
  };
4194
4201
  /**
4195
4202
  * voice API
4196
4203
  */
4197
4204
  this.voice = {
4198
- createVoiceCall,
4199
- listVoiceCalls,
4200
- getVoiceCall,
4201
- endVoiceCall,
4202
- getVoiceCallRecording,
4203
- transferVoiceCall,
4204
- getVoiceCallEstimate,
4205
- createVoiceWebSession,
4206
- dialVoiceWebCall,
4207
- enableVoiceOnNumber,
4208
- disableVoiceOnNumber
4205
+ createVoiceCall: this._bind(createVoiceCall),
4206
+ listVoiceCalls: this._bind(listVoiceCalls),
4207
+ getVoiceCall: this._bind(getVoiceCall),
4208
+ endVoiceCall: this._bind(endVoiceCall),
4209
+ getVoiceCallRecording: this._bind(getVoiceCallRecording),
4210
+ transferVoiceCall: this._bind(transferVoiceCall),
4211
+ getVoiceCallEstimate: this._bind(getVoiceCallEstimate),
4212
+ createVoiceWebSession: this._bind(createVoiceWebSession),
4213
+ dialVoiceWebCall: this._bind(dialVoiceWebCall),
4214
+ enableVoiceOnNumber: this._bind(enableVoiceOnNumber),
4215
+ disableVoiceOnNumber: this._bind(disableVoiceOnNumber)
4209
4216
  };
4210
4217
  /**
4211
4218
  * sms API
4212
4219
  */
4213
4220
  this.sms = {
4214
- sendSms,
4215
- lookupSmsNumber,
4216
- listSmsOptOuts,
4217
- createSmsSenderId,
4218
- listSmsSenderIds,
4219
- requestSmsSenderIdLimitIncrease,
4220
- deleteSmsSenderId,
4221
- startSmsRegistration,
4222
- listSmsRegistrations,
4223
- preflightSmsRegistration,
4224
- deactivateSmsRegistration,
4225
- getSmsRegistration,
4226
- verifySmsRegistrationOtp,
4227
- resendSmsRegistrationOtp,
4228
- appealSmsRegistration,
4229
- respondToSmsRegistrationReview,
4230
- uploadSmsOptInProofFile,
4231
- uploadSmsOptInProof,
4232
- shareSmsRegistration,
4233
- enableSmsOnNumber,
4234
- disableSmsOnNumber,
4235
- reuseSmsRegistrationForNumber
4221
+ sendSms: this._bind(sendSms),
4222
+ lookupSmsNumber: this._bind(lookupSmsNumber),
4223
+ listSmsOptOuts: this._bind(listSmsOptOuts),
4224
+ createSmsSenderId: this._bind(createSmsSenderId),
4225
+ listSmsSenderIds: this._bind(listSmsSenderIds),
4226
+ requestSmsSenderIdLimitIncrease: this._bind(requestSmsSenderIdLimitIncrease),
4227
+ deleteSmsSenderId: this._bind(deleteSmsSenderId),
4228
+ startSmsRegistration: this._bind(startSmsRegistration),
4229
+ listSmsRegistrations: this._bind(listSmsRegistrations),
4230
+ preflightSmsRegistration: this._bind(preflightSmsRegistration),
4231
+ deactivateSmsRegistration: this._bind(deactivateSmsRegistration),
4232
+ getSmsRegistration: this._bind(getSmsRegistration),
4233
+ verifySmsRegistrationOtp: this._bind(verifySmsRegistrationOtp),
4234
+ resendSmsRegistrationOtp: this._bind(resendSmsRegistrationOtp),
4235
+ appealSmsRegistration: this._bind(appealSmsRegistration),
4236
+ respondToSmsRegistrationReview: this._bind(respondToSmsRegistrationReview),
4237
+ uploadSmsOptInProofFile: this._bind(uploadSmsOptInProofFile),
4238
+ uploadSmsOptInProof: this._bind(uploadSmsOptInProof),
4239
+ shareSmsRegistration: this._bind(shareSmsRegistration),
4240
+ enableSmsOnNumber: this._bind(enableSmsOnNumber),
4241
+ disableSmsOnNumber: this._bind(disableSmsOnNumber),
4242
+ reuseSmsRegistrationForNumber: this._bind(reuseSmsRegistrationForNumber)
4236
4243
  };
4237
4244
  /**
4238
4245
  * whatsapptemplates API
4239
4246
  */
4240
4247
  this.whatsapptemplates = {
4241
- getWhatsAppLibraryTemplate
4248
+ getWhatsAppLibraryTemplate: this._bind(getWhatsAppLibraryTemplate)
4242
4249
  };
4243
4250
  /**
4244
4251
  * whatsappphonenumbers API
4245
4252
  */
4246
4253
  this.whatsappphonenumbers = {
4247
- getWhatsAppNumberInfo,
4248
- getWhatsAppPhoneNumbers,
4249
- purchaseWhatsAppPhoneNumber,
4250
- listWhatsAppNumberCountries,
4251
- searchAvailableWhatsAppNumbers,
4252
- checkWhatsAppNumberAvailability,
4253
- getWhatsAppNumberKycForm,
4254
- submitWhatsAppNumberKyc,
4255
- uploadWhatsAppNumberKycDocument,
4256
- validateWhatsAppNumberKycAddress,
4257
- createWhatsAppNumberKycLink,
4258
- getWhatsAppNumberRemediation,
4259
- remediateWhatsAppNumber,
4260
- getWhatsAppPhoneNumber,
4261
- releaseWhatsAppPhoneNumber
4254
+ getWhatsAppNumberInfo: this._bind(getWhatsAppNumberInfo),
4255
+ getWhatsAppPhoneNumbers: this._bind(getWhatsAppPhoneNumbers),
4256
+ purchaseWhatsAppPhoneNumber: this._bind(purchaseWhatsAppPhoneNumber),
4257
+ listWhatsAppNumberCountries: this._bind(listWhatsAppNumberCountries),
4258
+ searchAvailableWhatsAppNumbers: this._bind(searchAvailableWhatsAppNumbers),
4259
+ checkWhatsAppNumberAvailability: this._bind(checkWhatsAppNumberAvailability),
4260
+ getWhatsAppNumberKycForm: this._bind(getWhatsAppNumberKycForm),
4261
+ submitWhatsAppNumberKyc: this._bind(submitWhatsAppNumberKyc),
4262
+ uploadWhatsAppNumberKycDocument: this._bind(uploadWhatsAppNumberKycDocument),
4263
+ validateWhatsAppNumberKycAddress: this._bind(validateWhatsAppNumberKycAddress),
4264
+ createWhatsAppNumberKycLink: this._bind(createWhatsAppNumberKycLink),
4265
+ getWhatsAppNumberRemediation: this._bind(getWhatsAppNumberRemediation),
4266
+ remediateWhatsAppNumber: this._bind(remediateWhatsAppNumber),
4267
+ getWhatsAppPhoneNumber: this._bind(getWhatsAppPhoneNumber),
4268
+ releaseWhatsAppPhoneNumber: this._bind(releaseWhatsAppPhoneNumber)
4262
4269
  };
4263
4270
  /**
4264
4271
  * phonenumbers API
4265
4272
  */
4266
4273
  this.phonenumbers = {
4267
- listPhoneNumbers,
4268
- getPhoneNumber,
4269
- releasePhoneNumber,
4270
- purchasePhoneNumber,
4271
- listPhoneNumberCountries,
4272
- searchAvailablePhoneNumbers,
4273
- checkPhoneNumberAvailability,
4274
- getPhoneNumberKycForm,
4275
- submitPhoneNumberKyc,
4276
- viewPhoneNumberKycDocument,
4277
- uploadPhoneNumberKycDocument,
4278
- validatePhoneNumberKycAddress,
4279
- createPhoneNumberKycLink,
4280
- createPhoneNumberPortIn,
4281
- listPhoneNumberPortIns,
4282
- checkPhoneNumberPortability,
4283
- uploadPhoneNumberPortInDocument,
4284
- getPhoneNumberPortInRequirements,
4285
- getPhoneNumberPortInOrderRequirements,
4286
- cancelPhoneNumberPortIn,
4287
- reviewPhoneNumberKycPacket,
4288
- getPhoneNumberRemediation,
4289
- remediatePhoneNumber,
4290
- replyToPhoneNumberReviewer,
4291
- respondToPhoneNumberReviewer
4274
+ listPhoneNumbers: this._bind(listPhoneNumbers),
4275
+ getPhoneNumber: this._bind(getPhoneNumber),
4276
+ releasePhoneNumber: this._bind(releasePhoneNumber),
4277
+ purchasePhoneNumber: this._bind(purchasePhoneNumber),
4278
+ listPhoneNumberCountries: this._bind(listPhoneNumberCountries),
4279
+ searchAvailablePhoneNumbers: this._bind(searchAvailablePhoneNumbers),
4280
+ checkPhoneNumberAvailability: this._bind(checkPhoneNumberAvailability),
4281
+ getPhoneNumberKycForm: this._bind(getPhoneNumberKycForm),
4282
+ submitPhoneNumberKyc: this._bind(submitPhoneNumberKyc),
4283
+ viewPhoneNumberKycDocument: this._bind(viewPhoneNumberKycDocument),
4284
+ uploadPhoneNumberKycDocument: this._bind(uploadPhoneNumberKycDocument),
4285
+ validatePhoneNumberKycAddress: this._bind(validatePhoneNumberKycAddress),
4286
+ createPhoneNumberKycLink: this._bind(createPhoneNumberKycLink),
4287
+ createPhoneNumberPortIn: this._bind(createPhoneNumberPortIn),
4288
+ listPhoneNumberPortIns: this._bind(listPhoneNumberPortIns),
4289
+ checkPhoneNumberPortability: this._bind(checkPhoneNumberPortability),
4290
+ uploadPhoneNumberPortInDocument: this._bind(uploadPhoneNumberPortInDocument),
4291
+ getPhoneNumberPortInRequirements: this._bind(getPhoneNumberPortInRequirements),
4292
+ getPhoneNumberPortInOrderRequirements: this._bind(getPhoneNumberPortInOrderRequirements),
4293
+ cancelPhoneNumberPortIn: this._bind(cancelPhoneNumberPortIn),
4294
+ reviewPhoneNumberKycPacket: this._bind(reviewPhoneNumberKycPacket),
4295
+ getPhoneNumberRemediation: this._bind(getPhoneNumberRemediation),
4296
+ remediatePhoneNumber: this._bind(remediatePhoneNumber),
4297
+ replyToPhoneNumberReviewer: this._bind(replyToPhoneNumberReviewer),
4298
+ respondToPhoneNumberReviewer: this._bind(respondToPhoneNumberReviewer)
4292
4299
  };
4293
4300
  /**
4294
4301
  * whatsappsandbox API
4295
4302
  */
4296
4303
  this.whatsappsandbox = {
4297
- listWhatsAppSandboxSessions,
4298
- createWhatsAppSandboxSession,
4299
- deleteWhatsAppSandboxSession
4304
+ listWhatsAppSandboxSessions: this._bind(listWhatsAppSandboxSessions),
4305
+ createWhatsAppSandboxSession: this._bind(createWhatsAppSandboxSession),
4306
+ deleteWhatsAppSandboxSession: this._bind(deleteWhatsAppSandboxSession)
4300
4307
  };
4301
4308
  /**
4302
4309
  * whatsappflows API
4303
4310
  */
4304
4311
  this.whatsappflows = {
4305
- listWhatsAppFlows,
4306
- createWhatsAppFlow,
4307
- getWhatsAppFlow,
4308
- updateWhatsAppFlow,
4309
- deleteWhatsAppFlow,
4310
- getWhatsAppFlowJson,
4311
- uploadWhatsAppFlowJson,
4312
- getWhatsAppFlowPreview,
4313
- listWhatsAppFlowVersions,
4314
- publishWhatsAppFlow,
4315
- deprecateWhatsAppFlow,
4316
- sendWhatsAppFlowMessage,
4317
- listWhatsAppFlowResponses
4312
+ listWhatsAppFlows: this._bind(listWhatsAppFlows),
4313
+ createWhatsAppFlow: this._bind(createWhatsAppFlow),
4314
+ getWhatsAppFlow: this._bind(getWhatsAppFlow),
4315
+ updateWhatsAppFlow: this._bind(updateWhatsAppFlow),
4316
+ deleteWhatsAppFlow: this._bind(deleteWhatsAppFlow),
4317
+ getWhatsAppFlowJson: this._bind(getWhatsAppFlowJson),
4318
+ uploadWhatsAppFlowJson: this._bind(uploadWhatsAppFlowJson),
4319
+ getWhatsAppFlowPreview: this._bind(getWhatsAppFlowPreview),
4320
+ listWhatsAppFlowVersions: this._bind(listWhatsAppFlowVersions),
4321
+ publishWhatsAppFlow: this._bind(publishWhatsAppFlow),
4322
+ deprecateWhatsAppFlow: this._bind(deprecateWhatsAppFlow),
4323
+ sendWhatsAppFlowMessage: this._bind(sendWhatsAppFlowMessage),
4324
+ listWhatsAppFlowResponses: this._bind(listWhatsAppFlowResponses)
4318
4325
  };
4319
4326
  /**
4320
4327
  * contacts API
4321
4328
  */
4322
4329
  this.contacts = {
4323
- listContacts,
4324
- createContact,
4325
- getContact,
4326
- updateContact,
4327
- deleteContact,
4328
- getContactChannels,
4329
- bulkCreateContacts
4330
+ listContacts: this._bind(listContacts),
4331
+ createContact: this._bind(createContact),
4332
+ getContact: this._bind(getContact),
4333
+ updateContact: this._bind(updateContact),
4334
+ deleteContact: this._bind(deleteContact),
4335
+ getContactChannels: this._bind(getContactChannels),
4336
+ bulkCreateContacts: this._bind(bulkCreateContacts)
4330
4337
  };
4331
4338
  /**
4332
4339
  * customfields API
4333
4340
  */
4334
4341
  this.customfields = {
4335
- setContactFieldValue,
4336
- clearContactFieldValue,
4337
- listCustomFields,
4338
- createCustomField,
4339
- updateCustomField,
4340
- deleteCustomField
4342
+ setContactFieldValue: this._bind(setContactFieldValue),
4343
+ clearContactFieldValue: this._bind(clearContactFieldValue),
4344
+ listCustomFields: this._bind(listCustomFields),
4345
+ createCustomField: this._bind(createCustomField),
4346
+ updateCustomField: this._bind(updateCustomField),
4347
+ deleteCustomField: this._bind(deleteCustomField)
4341
4348
  };
4342
4349
  /**
4343
4350
  * broadcasts API
4344
4351
  */
4345
4352
  this.broadcasts = {
4346
- listBroadcasts,
4347
- createBroadcast,
4348
- getBroadcast,
4349
- updateBroadcast,
4350
- deleteBroadcast,
4351
- sendBroadcast,
4352
- scheduleBroadcast,
4353
- cancelBroadcast,
4354
- listBroadcastRecipients,
4355
- addBroadcastRecipients
4353
+ listBroadcasts: this._bind(listBroadcasts),
4354
+ createBroadcast: this._bind(createBroadcast),
4355
+ getBroadcast: this._bind(getBroadcast),
4356
+ updateBroadcast: this._bind(updateBroadcast),
4357
+ deleteBroadcast: this._bind(deleteBroadcast),
4358
+ sendBroadcast: this._bind(sendBroadcast),
4359
+ scheduleBroadcast: this._bind(scheduleBroadcast),
4360
+ cancelBroadcast: this._bind(cancelBroadcast),
4361
+ listBroadcastRecipients: this._bind(listBroadcastRecipients),
4362
+ addBroadcastRecipients: this._bind(addBroadcastRecipients)
4356
4363
  };
4357
4364
  /**
4358
4365
  * workflows API
4359
4366
  */
4360
4367
  this.workflows = {
4361
- listWorkflows,
4362
- createWorkflow,
4363
- getWorkflow,
4364
- updateWorkflow,
4365
- deleteWorkflow,
4366
- activateWorkflow,
4367
- pauseWorkflow,
4368
- listWorkflowExecutions,
4369
- triggerWorkflow,
4370
- listWorkflowExecutionEvents,
4371
- duplicateWorkflow,
4372
- listWorkflowVersions,
4373
- getWorkflowVersion,
4374
- restoreWorkflowVersion
4368
+ listWorkflows: this._bind(listWorkflows),
4369
+ createWorkflow: this._bind(createWorkflow),
4370
+ getWorkflow: this._bind(getWorkflow),
4371
+ updateWorkflow: this._bind(updateWorkflow),
4372
+ deleteWorkflow: this._bind(deleteWorkflow),
4373
+ activateWorkflow: this._bind(activateWorkflow),
4374
+ pauseWorkflow: this._bind(pauseWorkflow),
4375
+ listWorkflowExecutions: this._bind(listWorkflowExecutions),
4376
+ triggerWorkflow: this._bind(triggerWorkflow),
4377
+ listWorkflowExecutionEvents: this._bind(listWorkflowExecutionEvents),
4378
+ duplicateWorkflow: this._bind(duplicateWorkflow),
4379
+ listWorkflowVersions: this._bind(listWorkflowVersions),
4380
+ getWorkflowVersion: this._bind(getWorkflowVersion),
4381
+ restoreWorkflowVersion: this._bind(restoreWorkflowVersion)
4375
4382
  };
4376
4383
  /**
4377
4384
  * sequences API
4378
4385
  */
4379
4386
  this.sequences = {
4380
- listSequences,
4381
- createSequence,
4382
- getSequence,
4383
- updateSequence,
4384
- deleteSequence,
4385
- activateSequence,
4386
- pauseSequence,
4387
- enrollContacts,
4388
- unenrollContact,
4389
- listSequenceEnrollments
4387
+ listSequences: this._bind(listSequences),
4388
+ createSequence: this._bind(createSequence),
4389
+ getSequence: this._bind(getSequence),
4390
+ updateSequence: this._bind(updateSequence),
4391
+ deleteSequence: this._bind(deleteSequence),
4392
+ activateSequence: this._bind(activateSequence),
4393
+ pauseSequence: this._bind(pauseSequence),
4394
+ enrollContacts: this._bind(enrollContacts),
4395
+ unenrollContact: this._bind(unenrollContact),
4396
+ listSequenceEnrollments: this._bind(listSequenceEnrollments)
4390
4397
  };
4391
4398
  /**
4392
4399
  * commentautomations API
4393
4400
  */
4394
4401
  this.commentautomations = {
4395
- listCommentAutomations,
4396
- createCommentAutomation,
4397
- getCommentAutomation,
4398
- updateCommentAutomation,
4399
- deleteCommentAutomation,
4400
- listCommentAutomationLogs
4402
+ listCommentAutomations: this._bind(listCommentAutomations),
4403
+ createCommentAutomation: this._bind(createCommentAutomation),
4404
+ getCommentAutomation: this._bind(getCommentAutomation),
4405
+ updateCommentAutomation: this._bind(updateCommentAutomation),
4406
+ deleteCommentAutomation: this._bind(deleteCommentAutomation),
4407
+ listCommentAutomationLogs: this._bind(listCommentAutomationLogs)
4401
4408
  };
4402
4409
  /**
4403
4410
  * adcampaigns API
4404
4411
  */
4405
4412
  this.adcampaigns = {
4406
- listAds,
4407
- listAdKeywords,
4408
- listAdCampaigns,
4409
- createAdCampaign,
4410
- updateAdCampaignStatus,
4411
- updateAdCampaign,
4412
- deleteAdCampaign,
4413
- bulkUpdateAdCampaignStatus,
4414
- duplicateAdCampaign,
4415
- duplicateAdSet,
4416
- duplicateAd,
4417
- getAdSetDetails,
4418
- updateAdSet,
4419
- updateAdSetStatus,
4420
- getAdTree,
4421
- getAdsTimeline,
4422
- getAd,
4423
- updateAd,
4424
- deleteAd,
4425
- updateAdStatus,
4426
- boostPost,
4427
- createStandaloneAd
4413
+ listAds: this._bind(listAds),
4414
+ listAdKeywords: this._bind(listAdKeywords),
4415
+ listAdCampaigns: this._bind(listAdCampaigns),
4416
+ createAdCampaign: this._bind(createAdCampaign),
4417
+ updateAdCampaignStatus: this._bind(updateAdCampaignStatus),
4418
+ updateAdCampaign: this._bind(updateAdCampaign),
4419
+ deleteAdCampaign: this._bind(deleteAdCampaign),
4420
+ bulkUpdateAdCampaignStatus: this._bind(bulkUpdateAdCampaignStatus),
4421
+ duplicateAdCampaign: this._bind(duplicateAdCampaign),
4422
+ duplicateAdSet: this._bind(duplicateAdSet),
4423
+ duplicateAd: this._bind(duplicateAd),
4424
+ getAdSetDetails: this._bind(getAdSetDetails),
4425
+ updateAdSet: this._bind(updateAdSet),
4426
+ updateAdSetStatus: this._bind(updateAdSetStatus),
4427
+ getAdTree: this._bind(getAdTree),
4428
+ getAdsTimeline: this._bind(getAdsTimeline),
4429
+ getAd: this._bind(getAd),
4430
+ updateAd: this._bind(updateAd),
4431
+ deleteAd: this._bind(deleteAd),
4432
+ updateAdStatus: this._bind(updateAdStatus),
4433
+ boostPost: this._bind(boostPost),
4434
+ createStandaloneAd: this._bind(createStandaloneAd)
4428
4435
  };
4429
4436
  /**
4430
4437
  * adinsights API
4431
4438
  */
4432
4439
  this.adinsights = {
4433
- getCampaignAnalytics,
4434
- generateKeywordIdeas,
4435
- generateKeywordHistoricalMetrics,
4436
- queryAdInsights,
4437
- createAdInsightsReport,
4438
- getAdInsightsReport,
4439
- getAdAnalytics
4440
+ getCampaignAnalytics: this._bind(getCampaignAnalytics),
4441
+ generateKeywordIdeas: this._bind(generateKeywordIdeas),
4442
+ generateKeywordHistoricalMetrics: this._bind(generateKeywordHistoricalMetrics),
4443
+ queryAdInsights: this._bind(queryAdInsights),
4444
+ createAdInsightsReport: this._bind(createAdInsightsReport),
4445
+ getAdInsightsReport: this._bind(getAdInsightsReport),
4446
+ getAdAnalytics: this._bind(getAdAnalytics)
4440
4447
  };
4441
4448
  /**
4442
4449
  * adcreatives API
4443
4450
  */
4444
4451
  this.adcreatives = {
4445
- generateAdPreviews,
4446
- getAdPreviews,
4447
- listAdCreatives,
4448
- createAdCreative,
4449
- getAdCreative,
4450
- updateAdCreative,
4451
- deleteAdCreative,
4452
- uploadAdImage,
4453
- listAdImages,
4454
- listAdCatalogs,
4455
- listAdCatalogProductSets
4452
+ generateAdPreviews: this._bind(generateAdPreviews),
4453
+ getAdPreviews: this._bind(getAdPreviews),
4454
+ listAdCreatives: this._bind(listAdCreatives),
4455
+ createAdCreative: this._bind(createAdCreative),
4456
+ getAdCreative: this._bind(getAdCreative),
4457
+ updateAdCreative: this._bind(updateAdCreative),
4458
+ deleteAdCreative: this._bind(deleteAdCreative),
4459
+ uploadAdImage: this._bind(uploadAdImage),
4460
+ listAdImages: this._bind(listAdImages),
4461
+ listAdCatalogs: this._bind(listAdCatalogs),
4462
+ listAdCatalogProductSets: this._bind(listAdCatalogProductSets)
4456
4463
  };
4457
4464
  /**
4458
4465
  * trackingtags API
4459
4466
  */
4460
4467
  this.trackingtags = {
4461
- getAdTrackingTags,
4462
- updateAdTrackingTags,
4463
- listTrackingTags,
4464
- createTrackingTag,
4465
- getTrackingTag,
4466
- updateTrackingTag,
4467
- listTrackingTagSharedAccounts,
4468
- addTrackingTagSharedAccount,
4469
- removeTrackingTagSharedAccount,
4470
- getTrackingTagStats
4468
+ getAdTrackingTags: this._bind(getAdTrackingTags),
4469
+ updateAdTrackingTags: this._bind(updateAdTrackingTags),
4470
+ listTrackingTags: this._bind(listTrackingTags),
4471
+ createTrackingTag: this._bind(createTrackingTag),
4472
+ getTrackingTag: this._bind(getTrackingTag),
4473
+ updateTrackingTag: this._bind(updateTrackingTag),
4474
+ listTrackingTagSharedAccounts: this._bind(listTrackingTagSharedAccounts),
4475
+ addTrackingTagSharedAccount: this._bind(addTrackingTagSharedAccount),
4476
+ removeTrackingTagSharedAccount: this._bind(removeTrackingTagSharedAccount),
4477
+ getTrackingTagStats: this._bind(getTrackingTagStats)
4471
4478
  };
4472
4479
  /**
4473
4480
  * adaccounts API
4474
4481
  */
4475
4482
  this.adaccounts = {
4476
- getAdComments,
4477
- listAdsBusinessCenters,
4478
- getAdsActivityLog,
4479
- listAdStudies,
4480
- listMetaBusinesses,
4481
- listAdLabels,
4482
- listHighDemandPeriods,
4483
- listValueRuleSets,
4484
- createValueRuleSet,
4485
- getValueRuleSet,
4486
- updateValueRuleSet,
4487
- deleteValueRuleSet,
4488
- getAdAccountFinance,
4489
- listAdAccounts,
4490
- updateAdAccount,
4491
- getDsaDefaults,
4492
- getDsaRecommendations
4483
+ getAdComments: this._bind(getAdComments),
4484
+ listAdsBusinessCenters: this._bind(listAdsBusinessCenters),
4485
+ getAdsActivityLog: this._bind(getAdsActivityLog),
4486
+ listAdStudies: this._bind(listAdStudies),
4487
+ listMetaBusinesses: this._bind(listMetaBusinesses),
4488
+ listAdLabels: this._bind(listAdLabels),
4489
+ listHighDemandPeriods: this._bind(listHighDemandPeriods),
4490
+ listValueRuleSets: this._bind(listValueRuleSets),
4491
+ createValueRuleSet: this._bind(createValueRuleSet),
4492
+ getValueRuleSet: this._bind(getValueRuleSet),
4493
+ updateValueRuleSet: this._bind(updateValueRuleSet),
4494
+ deleteValueRuleSet: this._bind(deleteValueRuleSet),
4495
+ getAdAccountFinance: this._bind(getAdAccountFinance),
4496
+ listAdAccounts: this._bind(listAdAccounts),
4497
+ updateAdAccount: this._bind(updateAdAccount),
4498
+ getDsaDefaults: this._bind(getDsaDefaults),
4499
+ getDsaRecommendations: this._bind(getDsaRecommendations)
4493
4500
  };
4494
4501
  /**
4495
4502
  * reachandfrequency API
4496
4503
  */
4497
4504
  this.reachandfrequency = {
4498
- createRfPrediction,
4499
- getRfPrediction,
4500
- cancelRfReservation,
4501
- reserveRfPrediction
4505
+ createRfPrediction: this._bind(createRfPrediction),
4506
+ getRfPrediction: this._bind(getRfPrediction),
4507
+ cancelRfReservation: this._bind(cancelRfReservation),
4508
+ reserveRfPrediction: this._bind(reserveRfPrediction)
4502
4509
  };
4503
4510
  /**
4504
4511
  * leadgen API
4505
4512
  */
4506
4513
  this.leadgen = {
4507
- listLeads,
4508
- listLeadForms,
4509
- createLeadForm,
4510
- getLeadForm,
4511
- archiveLeadForm,
4512
- listFormLeads,
4513
- createTestLead
4514
+ listLeads: this._bind(listLeads),
4515
+ listLeadForms: this._bind(listLeadForms),
4516
+ createLeadForm: this._bind(createLeadForm),
4517
+ getLeadForm: this._bind(getLeadForm),
4518
+ archiveLeadForm: this._bind(archiveLeadForm),
4519
+ listFormLeads: this._bind(listFormLeads),
4520
+ createTestLead: this._bind(createTestLead)
4514
4521
  };
4515
4522
  /**
4516
4523
  * adtargeting API
4517
4524
  */
4518
4525
  this.adtargeting = {
4519
- searchAdInterests,
4520
- searchAdTargeting,
4521
- estimateAdReach,
4522
- getLinkedInBidPricing,
4523
- getLinkedInSupplyForecast
4526
+ searchAdInterests: this._bind(searchAdInterests),
4527
+ searchAdTargeting: this._bind(searchAdTargeting),
4528
+ estimateAdReach: this._bind(estimateAdReach),
4529
+ getLinkedInBidPricing: this._bind(getLinkedInBidPricing),
4530
+ getLinkedInSupplyForecast: this._bind(getLinkedInSupplyForecast)
4524
4531
  };
4525
4532
  /**
4526
4533
  * adaudiences API
4527
4534
  */
4528
4535
  this.adaudiences = {
4529
- listAdAudiences,
4530
- createAdAudience,
4531
- getAdAudience,
4532
- updateAdAudience,
4533
- deleteAdAudience,
4534
- addUsersToAdAudience
4536
+ listAdAudiences: this._bind(listAdAudiences),
4537
+ createAdAudience: this._bind(createAdAudience),
4538
+ getAdAudience: this._bind(getAdAudience),
4539
+ updateAdAudience: this._bind(updateAdAudience),
4540
+ deleteAdAudience: this._bind(deleteAdAudience),
4541
+ addUsersToAdAudience: this._bind(addUsersToAdAudience)
4535
4542
  };
4536
4543
  /**
4537
4544
  * conversions API
4538
4545
  */
4539
4546
  this.conversions = {
4540
- getConversionsQuality,
4541
- sendConversions,
4542
- adjustConversions,
4543
- listConversionDestinations,
4544
- createConversionDestination,
4545
- getConversionDestination,
4546
- updateConversionDestination,
4547
- deleteConversionDestination,
4548
- listConversionAssociations,
4549
- addConversionAssociations,
4550
- removeConversionAssociations,
4551
- getConversionMetrics
4547
+ getConversionsQuality: this._bind(getConversionsQuality),
4548
+ sendConversions: this._bind(sendConversions),
4549
+ adjustConversions: this._bind(adjustConversions),
4550
+ listConversionDestinations: this._bind(listConversionDestinations),
4551
+ createConversionDestination: this._bind(createConversionDestination),
4552
+ getConversionDestination: this._bind(getConversionDestination),
4553
+ updateConversionDestination: this._bind(updateConversionDestination),
4554
+ deleteConversionDestination: this._bind(deleteConversionDestination),
4555
+ listConversionAssociations: this._bind(listConversionAssociations),
4556
+ addConversionAssociations: this._bind(addConversionAssociations),
4557
+ removeConversionAssociations: this._bind(removeConversionAssociations),
4558
+ getConversionMetrics: this._bind(getConversionMetrics)
4552
4559
  };
4553
4560
  /**
4554
4561
  * messagingads API
4555
4562
  */
4556
4563
  this.messagingads = {
4557
- createMessagingAd,
4558
- createCallAd,
4559
- createCtwaAd
4564
+ createMessagingAd: this._bind(createMessagingAd),
4565
+ createCallAd: this._bind(createCallAd),
4566
+ createCtwaAd: this._bind(createCtwaAd)
4560
4567
  };
4561
4568
  /**
4562
4569
  * verify API
4563
4570
  */
4564
4571
  this.verify = {
4565
- createVerification,
4566
- getVerification,
4567
- checkVerification
4572
+ createVerification: this._bind(createVerification),
4573
+ getVerification: this._bind(getVerification),
4574
+ checkVerification: this._bind(checkVerification)
4568
4575
  };
4569
4576
  /**
4570
4577
  * @deprecated The `ads` namespace has been split. Use one of these instead:
@@ -4573,213 +4580,213 @@ var Zernio = class {
4573
4580
  */
4574
4581
  this.ads = {
4575
4582
  /** @deprecated Use `zernio.adcampaigns.listAds` instead. */
4576
- listAds,
4583
+ listAds: this._bind(listAds),
4577
4584
  /** @deprecated Use `zernio.adcampaigns.listAdKeywords` instead. */
4578
- listAdKeywords,
4585
+ listAdKeywords: this._bind(listAdKeywords),
4579
4586
  /** @deprecated Use `zernio.adcampaigns.listAdCampaigns` instead. */
4580
- listAdCampaigns,
4587
+ listAdCampaigns: this._bind(listAdCampaigns),
4581
4588
  /** @deprecated Use `zernio.adcampaigns.createAdCampaign` instead. */
4582
- createAdCampaign,
4589
+ createAdCampaign: this._bind(createAdCampaign),
4583
4590
  /** @deprecated Use `zernio.adcampaigns.updateAdCampaignStatus` instead. */
4584
- updateAdCampaignStatus,
4591
+ updateAdCampaignStatus: this._bind(updateAdCampaignStatus),
4585
4592
  /** @deprecated Use `zernio.adcampaigns.updateAdCampaign` instead. */
4586
- updateAdCampaign,
4593
+ updateAdCampaign: this._bind(updateAdCampaign),
4587
4594
  /** @deprecated Use `zernio.adcampaigns.deleteAdCampaign` instead. */
4588
- deleteAdCampaign,
4595
+ deleteAdCampaign: this._bind(deleteAdCampaign),
4589
4596
  /** @deprecated Use `zernio.adcampaigns.bulkUpdateAdCampaignStatus` instead. */
4590
- bulkUpdateAdCampaignStatus,
4597
+ bulkUpdateAdCampaignStatus: this._bind(bulkUpdateAdCampaignStatus),
4591
4598
  /** @deprecated Use `zernio.adcampaigns.duplicateAdCampaign` instead. */
4592
- duplicateAdCampaign,
4599
+ duplicateAdCampaign: this._bind(duplicateAdCampaign),
4593
4600
  /** @deprecated Use `zernio.adcampaigns.duplicateAdSet` instead. */
4594
- duplicateAdSet,
4601
+ duplicateAdSet: this._bind(duplicateAdSet),
4595
4602
  /** @deprecated Use `zernio.adcampaigns.duplicateAd` instead. */
4596
- duplicateAd,
4603
+ duplicateAd: this._bind(duplicateAd),
4597
4604
  /** @deprecated Use `zernio.adcampaigns.getAdSetDetails` instead. */
4598
- getAdSetDetails,
4605
+ getAdSetDetails: this._bind(getAdSetDetails),
4599
4606
  /** @deprecated Use `zernio.adcampaigns.updateAdSet` instead. */
4600
- updateAdSet,
4607
+ updateAdSet: this._bind(updateAdSet),
4601
4608
  /** @deprecated Use `zernio.adcampaigns.updateAdSetStatus` instead. */
4602
- updateAdSetStatus,
4609
+ updateAdSetStatus: this._bind(updateAdSetStatus),
4603
4610
  /** @deprecated Use `zernio.adcampaigns.getAdTree` instead. */
4604
- getAdTree,
4611
+ getAdTree: this._bind(getAdTree),
4605
4612
  /** @deprecated Use `zernio.adcampaigns.getAdsTimeline` instead. */
4606
- getAdsTimeline,
4613
+ getAdsTimeline: this._bind(getAdsTimeline),
4607
4614
  /** @deprecated Use `zernio.adcampaigns.getAd` instead. */
4608
- getAd,
4615
+ getAd: this._bind(getAd),
4609
4616
  /** @deprecated Use `zernio.adcampaigns.updateAd` instead. */
4610
- updateAd,
4617
+ updateAd: this._bind(updateAd),
4611
4618
  /** @deprecated Use `zernio.adcampaigns.deleteAd` instead. */
4612
- deleteAd,
4619
+ deleteAd: this._bind(deleteAd),
4613
4620
  /** @deprecated Use `zernio.adcampaigns.updateAdStatus` instead. */
4614
- updateAdStatus,
4621
+ updateAdStatus: this._bind(updateAdStatus),
4615
4622
  /** @deprecated Use `zernio.adcampaigns.boostPost` instead. */
4616
- boostPost,
4623
+ boostPost: this._bind(boostPost),
4617
4624
  /** @deprecated Use `zernio.adcampaigns.createStandaloneAd` instead. */
4618
- createStandaloneAd,
4625
+ createStandaloneAd: this._bind(createStandaloneAd),
4619
4626
  /** @deprecated Use `zernio.adaccounts.getAdComments` instead. */
4620
- getAdComments,
4627
+ getAdComments: this._bind(getAdComments),
4621
4628
  /** @deprecated Use `zernio.adaccounts.listAdsBusinessCenters` instead. */
4622
- listAdsBusinessCenters,
4629
+ listAdsBusinessCenters: this._bind(listAdsBusinessCenters),
4623
4630
  /** @deprecated Use `zernio.adaccounts.getAdsActivityLog` instead. */
4624
- getAdsActivityLog,
4631
+ getAdsActivityLog: this._bind(getAdsActivityLog),
4625
4632
  /** @deprecated Use `zernio.adaccounts.listAdStudies` instead. */
4626
- listAdStudies,
4633
+ listAdStudies: this._bind(listAdStudies),
4627
4634
  /** @deprecated Use `zernio.adaccounts.listMetaBusinesses` instead. */
4628
- listMetaBusinesses,
4635
+ listMetaBusinesses: this._bind(listMetaBusinesses),
4629
4636
  /** @deprecated Use `zernio.adaccounts.listAdLabels` instead. */
4630
- listAdLabels,
4637
+ listAdLabels: this._bind(listAdLabels),
4631
4638
  /** @deprecated Use `zernio.adaccounts.listHighDemandPeriods` instead. */
4632
- listHighDemandPeriods,
4639
+ listHighDemandPeriods: this._bind(listHighDemandPeriods),
4633
4640
  /** @deprecated Use `zernio.adaccounts.listValueRuleSets` instead. */
4634
- listValueRuleSets,
4641
+ listValueRuleSets: this._bind(listValueRuleSets),
4635
4642
  /** @deprecated Use `zernio.adaccounts.createValueRuleSet` instead. */
4636
- createValueRuleSet,
4643
+ createValueRuleSet: this._bind(createValueRuleSet),
4637
4644
  /** @deprecated Use `zernio.adaccounts.getValueRuleSet` instead. */
4638
- getValueRuleSet,
4645
+ getValueRuleSet: this._bind(getValueRuleSet),
4639
4646
  /** @deprecated Use `zernio.adaccounts.updateValueRuleSet` instead. */
4640
- updateValueRuleSet,
4647
+ updateValueRuleSet: this._bind(updateValueRuleSet),
4641
4648
  /** @deprecated Use `zernio.adaccounts.deleteValueRuleSet` instead. */
4642
- deleteValueRuleSet,
4649
+ deleteValueRuleSet: this._bind(deleteValueRuleSet),
4643
4650
  /** @deprecated Use `zernio.adaccounts.getAdAccountFinance` instead. */
4644
- getAdAccountFinance,
4651
+ getAdAccountFinance: this._bind(getAdAccountFinance),
4645
4652
  /** @deprecated Use `zernio.adaccounts.listAdAccounts` instead. */
4646
- listAdAccounts,
4653
+ listAdAccounts: this._bind(listAdAccounts),
4647
4654
  /** @deprecated Use `zernio.adaccounts.updateAdAccount` instead. */
4648
- updateAdAccount,
4655
+ updateAdAccount: this._bind(updateAdAccount),
4649
4656
  /** @deprecated Use `zernio.adaccounts.getDsaDefaults` instead. */
4650
- getDsaDefaults,
4657
+ getDsaDefaults: this._bind(getDsaDefaults),
4651
4658
  /** @deprecated Use `zernio.adaccounts.getDsaRecommendations` instead. */
4652
- getDsaRecommendations,
4659
+ getDsaRecommendations: this._bind(getDsaRecommendations),
4653
4660
  /** @deprecated Use `zernio.adcreatives.generateAdPreviews` instead. */
4654
- generateAdPreviews,
4661
+ generateAdPreviews: this._bind(generateAdPreviews),
4655
4662
  /** @deprecated Use `zernio.adcreatives.getAdPreviews` instead. */
4656
- getAdPreviews,
4663
+ getAdPreviews: this._bind(getAdPreviews),
4657
4664
  /** @deprecated Use `zernio.adcreatives.listAdCreatives` instead. */
4658
- listAdCreatives,
4665
+ listAdCreatives: this._bind(listAdCreatives),
4659
4666
  /** @deprecated Use `zernio.adcreatives.createAdCreative` instead. */
4660
- createAdCreative,
4667
+ createAdCreative: this._bind(createAdCreative),
4661
4668
  /** @deprecated Use `zernio.adcreatives.getAdCreative` instead. */
4662
- getAdCreative,
4669
+ getAdCreative: this._bind(getAdCreative),
4663
4670
  /** @deprecated Use `zernio.adcreatives.updateAdCreative` instead. */
4664
- updateAdCreative,
4671
+ updateAdCreative: this._bind(updateAdCreative),
4665
4672
  /** @deprecated Use `zernio.adcreatives.deleteAdCreative` instead. */
4666
- deleteAdCreative,
4673
+ deleteAdCreative: this._bind(deleteAdCreative),
4667
4674
  /** @deprecated Use `zernio.adcreatives.uploadAdImage` instead. */
4668
- uploadAdImage,
4675
+ uploadAdImage: this._bind(uploadAdImage),
4669
4676
  /** @deprecated Use `zernio.adcreatives.listAdImages` instead. */
4670
- listAdImages,
4677
+ listAdImages: this._bind(listAdImages),
4671
4678
  /** @deprecated Use `zernio.adcreatives.listAdCatalogs` instead. */
4672
- listAdCatalogs,
4679
+ listAdCatalogs: this._bind(listAdCatalogs),
4673
4680
  /** @deprecated Use `zernio.adcreatives.listAdCatalogProductSets` instead. */
4674
- listAdCatalogProductSets,
4681
+ listAdCatalogProductSets: this._bind(listAdCatalogProductSets),
4675
4682
  /** @deprecated Use `zernio.adaudiences.listAdAudiences` instead. */
4676
- listAdAudiences,
4683
+ listAdAudiences: this._bind(listAdAudiences),
4677
4684
  /** @deprecated Use `zernio.adaudiences.createAdAudience` instead. */
4678
- createAdAudience,
4685
+ createAdAudience: this._bind(createAdAudience),
4679
4686
  /** @deprecated Use `zernio.adaudiences.getAdAudience` instead. */
4680
- getAdAudience,
4687
+ getAdAudience: this._bind(getAdAudience),
4681
4688
  /** @deprecated Use `zernio.adaudiences.updateAdAudience` instead. */
4682
- updateAdAudience,
4689
+ updateAdAudience: this._bind(updateAdAudience),
4683
4690
  /** @deprecated Use `zernio.adaudiences.deleteAdAudience` instead. */
4684
- deleteAdAudience,
4691
+ deleteAdAudience: this._bind(deleteAdAudience),
4685
4692
  /** @deprecated Use `zernio.adaudiences.addUsersToAdAudience` instead. */
4686
- addUsersToAdAudience,
4693
+ addUsersToAdAudience: this._bind(addUsersToAdAudience),
4687
4694
  /** @deprecated Use `zernio.adtargeting.searchAdInterests` instead. */
4688
- searchAdInterests,
4695
+ searchAdInterests: this._bind(searchAdInterests),
4689
4696
  /** @deprecated Use `zernio.adtargeting.searchAdTargeting` instead. */
4690
- searchAdTargeting,
4697
+ searchAdTargeting: this._bind(searchAdTargeting),
4691
4698
  /** @deprecated Use `zernio.adtargeting.estimateAdReach` instead. */
4692
- estimateAdReach,
4699
+ estimateAdReach: this._bind(estimateAdReach),
4693
4700
  /** @deprecated Use `zernio.adtargeting.getLinkedInBidPricing` instead. */
4694
- getLinkedInBidPricing,
4701
+ getLinkedInBidPricing: this._bind(getLinkedInBidPricing),
4695
4702
  /** @deprecated Use `zernio.adtargeting.getLinkedInSupplyForecast` instead. */
4696
- getLinkedInSupplyForecast,
4703
+ getLinkedInSupplyForecast: this._bind(getLinkedInSupplyForecast),
4697
4704
  /** @deprecated Use `zernio.adinsights.getCampaignAnalytics` instead. */
4698
- getCampaignAnalytics,
4705
+ getCampaignAnalytics: this._bind(getCampaignAnalytics),
4699
4706
  /** @deprecated Use `zernio.adinsights.generateKeywordIdeas` instead. */
4700
- generateKeywordIdeas,
4707
+ generateKeywordIdeas: this._bind(generateKeywordIdeas),
4701
4708
  /** @deprecated Use `zernio.adinsights.generateKeywordHistoricalMetrics` instead. */
4702
- generateKeywordHistoricalMetrics,
4709
+ generateKeywordHistoricalMetrics: this._bind(generateKeywordHistoricalMetrics),
4703
4710
  /** @deprecated Use `zernio.adinsights.queryAdInsights` instead. */
4704
- queryAdInsights,
4711
+ queryAdInsights: this._bind(queryAdInsights),
4705
4712
  /** @deprecated Use `zernio.adinsights.createAdInsightsReport` instead. */
4706
- createAdInsightsReport,
4713
+ createAdInsightsReport: this._bind(createAdInsightsReport),
4707
4714
  /** @deprecated Use `zernio.adinsights.getAdInsightsReport` instead. */
4708
- getAdInsightsReport,
4715
+ getAdInsightsReport: this._bind(getAdInsightsReport),
4709
4716
  /** @deprecated Use `zernio.adinsights.getAdAnalytics` instead. */
4710
- getAdAnalytics,
4717
+ getAdAnalytics: this._bind(getAdAnalytics),
4711
4718
  /** @deprecated Use `zernio.conversions.getConversionsQuality` instead. */
4712
- getConversionsQuality,
4719
+ getConversionsQuality: this._bind(getConversionsQuality),
4713
4720
  /** @deprecated Use `zernio.conversions.sendConversions` instead. */
4714
- sendConversions,
4721
+ sendConversions: this._bind(sendConversions),
4715
4722
  /** @deprecated Use `zernio.conversions.adjustConversions` instead. */
4716
- adjustConversions,
4723
+ adjustConversions: this._bind(adjustConversions),
4717
4724
  /** @deprecated Use `zernio.conversions.listConversionDestinations` instead. */
4718
- listConversionDestinations,
4725
+ listConversionDestinations: this._bind(listConversionDestinations),
4719
4726
  /** @deprecated Use `zernio.conversions.createConversionDestination` instead. */
4720
- createConversionDestination,
4727
+ createConversionDestination: this._bind(createConversionDestination),
4721
4728
  /** @deprecated Use `zernio.conversions.getConversionDestination` instead. */
4722
- getConversionDestination,
4729
+ getConversionDestination: this._bind(getConversionDestination),
4723
4730
  /** @deprecated Use `zernio.conversions.updateConversionDestination` instead. */
4724
- updateConversionDestination,
4731
+ updateConversionDestination: this._bind(updateConversionDestination),
4725
4732
  /** @deprecated Use `zernio.conversions.deleteConversionDestination` instead. */
4726
- deleteConversionDestination,
4733
+ deleteConversionDestination: this._bind(deleteConversionDestination),
4727
4734
  /** @deprecated Use `zernio.conversions.listConversionAssociations` instead. */
4728
- listConversionAssociations,
4735
+ listConversionAssociations: this._bind(listConversionAssociations),
4729
4736
  /** @deprecated Use `zernio.conversions.addConversionAssociations` instead. */
4730
- addConversionAssociations,
4737
+ addConversionAssociations: this._bind(addConversionAssociations),
4731
4738
  /** @deprecated Use `zernio.conversions.removeConversionAssociations` instead. */
4732
- removeConversionAssociations,
4739
+ removeConversionAssociations: this._bind(removeConversionAssociations),
4733
4740
  /** @deprecated Use `zernio.conversions.getConversionMetrics` instead. */
4734
- getConversionMetrics,
4741
+ getConversionMetrics: this._bind(getConversionMetrics),
4735
4742
  /** @deprecated Use `zernio.messagingads.createMessagingAd` instead. */
4736
- createMessagingAd,
4743
+ createMessagingAd: this._bind(createMessagingAd),
4737
4744
  /** @deprecated Use `zernio.messagingads.createCallAd` instead. */
4738
- createCallAd,
4745
+ createCallAd: this._bind(createCallAd),
4739
4746
  /** @deprecated Use `zernio.messagingads.createCtwaAd` instead. */
4740
- createCtwaAd,
4747
+ createCtwaAd: this._bind(createCtwaAd),
4741
4748
  /** @deprecated Use `zernio.reachandfrequency.createRfPrediction` instead. */
4742
- createRfPrediction,
4749
+ createRfPrediction: this._bind(createRfPrediction),
4743
4750
  /** @deprecated Use `zernio.reachandfrequency.getRfPrediction` instead. */
4744
- getRfPrediction,
4751
+ getRfPrediction: this._bind(getRfPrediction),
4745
4752
  /** @deprecated Use `zernio.reachandfrequency.cancelRfReservation` instead. */
4746
- cancelRfReservation,
4753
+ cancelRfReservation: this._bind(cancelRfReservation),
4747
4754
  /** @deprecated Use `zernio.reachandfrequency.reserveRfPrediction` instead. */
4748
- reserveRfPrediction,
4755
+ reserveRfPrediction: this._bind(reserveRfPrediction),
4749
4756
  /** @deprecated Use `zernio.leadgen.listLeads` instead. */
4750
- listLeads,
4757
+ listLeads: this._bind(listLeads),
4751
4758
  /** @deprecated Use `zernio.leadgen.listLeadForms` instead. */
4752
- listLeadForms,
4759
+ listLeadForms: this._bind(listLeadForms),
4753
4760
  /** @deprecated Use `zernio.leadgen.createLeadForm` instead. */
4754
- createLeadForm,
4761
+ createLeadForm: this._bind(createLeadForm),
4755
4762
  /** @deprecated Use `zernio.leadgen.getLeadForm` instead. */
4756
- getLeadForm,
4763
+ getLeadForm: this._bind(getLeadForm),
4757
4764
  /** @deprecated Use `zernio.leadgen.archiveLeadForm` instead. */
4758
- archiveLeadForm,
4765
+ archiveLeadForm: this._bind(archiveLeadForm),
4759
4766
  /** @deprecated Use `zernio.leadgen.listFormLeads` instead. */
4760
- listFormLeads,
4767
+ listFormLeads: this._bind(listFormLeads),
4761
4768
  /** @deprecated Use `zernio.leadgen.createTestLead` instead. */
4762
- createTestLead,
4769
+ createTestLead: this._bind(createTestLead),
4763
4770
  /** @deprecated Use `zernio.trackingtags.getAdTrackingTags` instead. */
4764
- getAdTrackingTags,
4771
+ getAdTrackingTags: this._bind(getAdTrackingTags),
4765
4772
  /** @deprecated Use `zernio.trackingtags.updateAdTrackingTags` instead. */
4766
- updateAdTrackingTags,
4773
+ updateAdTrackingTags: this._bind(updateAdTrackingTags),
4767
4774
  /** @deprecated Use `zernio.trackingtags.listTrackingTags` instead. */
4768
- listTrackingTags,
4775
+ listTrackingTags: this._bind(listTrackingTags),
4769
4776
  /** @deprecated Use `zernio.trackingtags.createTrackingTag` instead. */
4770
- createTrackingTag,
4777
+ createTrackingTag: this._bind(createTrackingTag),
4771
4778
  /** @deprecated Use `zernio.trackingtags.getTrackingTag` instead. */
4772
- getTrackingTag,
4779
+ getTrackingTag: this._bind(getTrackingTag),
4773
4780
  /** @deprecated Use `zernio.trackingtags.updateTrackingTag` instead. */
4774
- updateTrackingTag,
4781
+ updateTrackingTag: this._bind(updateTrackingTag),
4775
4782
  /** @deprecated Use `zernio.trackingtags.listTrackingTagSharedAccounts` instead. */
4776
- listTrackingTagSharedAccounts,
4783
+ listTrackingTagSharedAccounts: this._bind(listTrackingTagSharedAccounts),
4777
4784
  /** @deprecated Use `zernio.trackingtags.addTrackingTagSharedAccount` instead. */
4778
- addTrackingTagSharedAccount,
4785
+ addTrackingTagSharedAccount: this._bind(addTrackingTagSharedAccount),
4779
4786
  /** @deprecated Use `zernio.trackingtags.removeTrackingTagSharedAccount` instead. */
4780
- removeTrackingTagSharedAccount,
4787
+ removeTrackingTagSharedAccount: this._bind(removeTrackingTagSharedAccount),
4781
4788
  /** @deprecated Use `zernio.trackingtags.getTrackingTagStats` instead. */
4782
- getTrackingTagStats
4789
+ getTrackingTagStats: this._bind(getTrackingTagStats)
4783
4790
  };
4784
4791
  const apiKey = options.apiKey ?? process.env["ZERNIO_API_KEY"] ?? process.env["LATE_API_KEY"];
4785
4792
  if (!apiKey) {
@@ -4792,18 +4799,20 @@ var Zernio = class {
4792
4799
  this.apiKey = apiKey;
4793
4800
  this.baseURL = options.baseURL ?? "https://zernio.com/api";
4794
4801
  this._options = options;
4795
- client.setConfig({
4796
- baseUrl: this.baseURL,
4797
- headers: {
4798
- "User-Agent": `zernio-node/${package_default.version}`,
4799
- ...options.defaultHeaders ?? {}
4800
- }
4801
- });
4802
- client.interceptors.request.use((request) => {
4802
+ this._client = M(
4803
+ q({
4804
+ baseUrl: this.baseURL,
4805
+ headers: {
4806
+ "User-Agent": `zernio-node/${package_default.version}`,
4807
+ ...options.defaultHeaders ?? {}
4808
+ }
4809
+ })
4810
+ );
4811
+ this._client.interceptors.request.use((request) => {
4803
4812
  request.headers.set("Authorization", `Bearer ${this.apiKey}`);
4804
4813
  return request;
4805
4814
  });
4806
- client.interceptors.response.use(async (response) => {
4815
+ this._client.interceptors.response.use(async (response) => {
4807
4816
  if (!response.ok) {
4808
4817
  let body;
4809
4818
  try {
@@ -4815,6 +4824,21 @@ var Zernio = class {
4815
4824
  return response;
4816
4825
  });
4817
4826
  }
4827
+ /**
4828
+ * Routes a generated operation through this instance's client, preserving the
4829
+ * operation's own signature. Reads `_client` when the method is called, not
4830
+ * when it is bound, because class fields initialize before the constructor
4831
+ * body runs.
4832
+ */
4833
+ _bind(operation) {
4834
+ return ((options) => {
4835
+ const withClient = { ...options };
4836
+ if (withClient["client"] === void 0) {
4837
+ withClient["client"] = this._client;
4838
+ }
4839
+ return operation(withClient);
4840
+ });
4841
+ }
4818
4842
  };
4819
4843
  var Late = Zernio;
4820
4844
  export {