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