@zernio/node 0.2.518 → 0.2.520

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