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