@influxdata/influxdb-client-apis
Advanced tools
Comparing version 1.6.0-nightly.25 to 1.6.0-nightly.27
@@ -1,2 +0,2 @@ | ||
!function(e,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports):"function"==typeof define&&define.amd?define(["exports"],s):s((e=e||self)["@influxdata/influxdb-client-apis"]={})}(this,(function(e){"use strict";class s{constructor(e){if(!e)throw new Error("No influxDB supplied!");if(!e.transport)throw new Error("No transport supplied!");this.transport=e.transport}queryString(e,s){return e&&s?s.reduce((s,t)=>{const r=e[t];return null!=r&&(s+=s?"&":"?",s+=encodeURIComponent(t)+"="+encodeURIComponent(String(r))),s},""):""}request(e,s,t={},r,a){const i=Object.assign(Object.assign({},r),{method:e});if(a&&((i.headers||(i.headers={}))["content-type"]=a),t.auth){const e=`${t.auth.user}:${t.auth.password}`;(i.headers||(i.headers={})).authorization=btoa(e)}return this.transport.request(s,t.body?t.body:"",i)}}e.AuthorizationsAPI=class{constructor(e){this.base=new s(e)}getAuthorizations(e,s){return this.base.request("GET","/api/v2/authorizations"+this.base.queryString(e,["userID","user","orgID","org"]),e,s)}postAuthorizations(e,s){return this.base.request("POST","/api/v2/authorizations",e,s,"application/json")}getAuthorizationsID(e,s){return this.base.request("GET","/api/v2/authorizations/"+e.authID,e,s)}patchAuthorizationsID(e,s){return this.base.request("PATCH","/api/v2/authorizations/"+e.authID,e,s,"application/json")}deleteAuthorizationsID(e,s){return this.base.request("DELETE","/api/v2/authorizations/"+e.authID,e,s)}},e.BucketsAPI=class{constructor(e){this.base=new s(e)}getBuckets(e,s){return this.base.request("GET","/api/v2/buckets"+this.base.queryString(e,["offset","limit","org","orgID","name"]),e,s)}postBuckets(e,s){return this.base.request("POST","/api/v2/buckets",e,s,"application/json")}getBucketsID(e,s){return this.base.request("GET","/api/v2/buckets/"+e.bucketID,e,s)}patchBucketsID(e,s){return this.base.request("PATCH","/api/v2/buckets/"+e.bucketID,e,s,"application/json")}deleteBucketsID(e,s){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID,e,s)}getBucketsIDLabels(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/labels`,e,s)}postBucketsIDLabels(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/labels`,e,s,"application/json")}deleteBucketsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/labels/${e.labelID}`,e,s)}getBucketsIDMembers(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/members`,e,s)}postBucketsIDMembers(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/members`,e,s,"application/json")}deleteBucketsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/members/${e.userID}`,e,s)}getBucketsIDOwners(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/owners`,e,s)}postBucketsIDOwners(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/owners`,e,s,"application/json")}deleteBucketsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/owners/${e.userID}`,e,s)}},e.ChecksAPI=class{constructor(e){this.base=new s(e)}getChecks(e,s){return this.base.request("GET","/api/v2/checks"+this.base.queryString(e,["offset","limit","orgID"]),e,s)}createCheck(e,s){return this.base.request("POST","/api/v2/checks",e,s,"application/json")}getChecksID(e,s){return this.base.request("GET","/api/v2/checks/"+e.checkID,e,s)}putChecksID(e,s){return this.base.request("PUT","/api/v2/checks/"+e.checkID,e,s,"application/json")}patchChecksID(e,s){return this.base.request("PATCH","/api/v2/checks/"+e.checkID,e,s,"application/json")}deleteChecksID(e,s){return this.base.request("DELETE","/api/v2/checks/"+e.checkID,e,s)}getChecksIDLabels(e,s){return this.base.request("GET",`/api/v2/checks/${e.checkID}/labels`,e,s)}postChecksIDLabels(e,s){return this.base.request("POST",`/api/v2/checks/${e.checkID}/labels`,e,s,"application/json")}deleteChecksIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/checks/${e.checkID}/labels/${e.labelID}`,e,s)}getChecksIDQuery(e,s){return this.base.request("GET",`/api/v2/checks/${e.checkID}/query`,e,s)}},e.DashboardsAPI=class{constructor(e){this.base=new s(e)}getDashboards(e,s){return this.base.request("GET","/api/v2/dashboards"+this.base.queryString(e,["owner","sortBy","id","orgID","org"]),e,s)}postDashboards(e,s){return this.base.request("POST","/api/v2/dashboards",e,s,"application/json")}getDashboardsID(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}${this.base.queryString(e,["include"])}`,e,s)}patchDashboardsID(e,s){return this.base.request("PATCH","/api/v2/dashboards/"+e.dashboardID,e,s,"application/json")}deleteDashboardsID(e,s){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID,e,s)}postDashboardsIDCells(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}putDashboardsIDCells(e,s){return this.base.request("PUT",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}patchDashboardsIDCellsID(e,s){return this.base.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s,"application/json")}deleteDashboardsIDCellsID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s)}getDashboardsIDCellsIDView(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s)}patchDashboardsIDCellsIDView(e,s){return this.base.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s,"application/json")}getDashboardsIDLabels(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s)}postDashboardsIDLabels(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s,"application/json")}deleteDashboardsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/labels/${e.labelID}`,e,s)}getDashboardsIDMembers(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/members`,e,s)}postDashboardsIDMembers(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/members`,e,s,"application/json")}deleteDashboardsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/members/${e.userID}`,e,s)}getDashboardsIDOwners(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s)}postDashboardsIDOwners(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s,"application/json")}deleteDashboardsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/owners/${e.userID}`,e,s)}},e.DbrpsAPI=class{constructor(e){this.base=new s(e)}getDBRPs(e,s){return this.base.request("GET","/api/v2/dbrps"+this.base.queryString(e,["orgID","id","bucketID","default","db","rp"]),e,s)}postDBRP(e,s){return this.base.request("POST","/api/v2/dbrps",e,s,"application/json")}getDBRPsID(e,s){return this.base.request("GET",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s)}patchDBRPID(e,s){return this.base.request("PATCH",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s,"application/json")}deleteDBRPID(e,s){return this.base.request("DELETE",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s)}},e.DeleteAPI=class{constructor(e){this.base=new s(e)}postDelete(e,s){return this.base.request("POST","/api/v2/delete"+this.base.queryString(e,["org","bucket","orgID","bucketID"]),e,s,"application/json")}},e.DocumentsAPI=class{constructor(e){this.base=new s(e)}getDocumentsTemplates(e,s){return this.base.request("GET","/api/v2/documents/templates"+this.base.queryString(e,["org","orgID"]),e,s)}postDocumentsTemplates(e,s){return this.base.request("POST","/api/v2/documents/templates",e,s,"application/json")}getDocumentsTemplatesID(e,s){return this.base.request("GET","/api/v2/documents/templates/"+e.templateID,e,s)}putDocumentsTemplatesID(e,s){return this.base.request("PUT","/api/v2/documents/templates/"+e.templateID,e,s,"application/json")}deleteDocumentsTemplatesID(e,s){return this.base.request("DELETE","/api/v2/documents/templates/"+e.templateID,e,s)}getDocumentsTemplatesIDLabels(e,s){return this.base.request("GET",`/api/v2/documents/templates/${e.templateID}/labels`,e,s)}postDocumentsTemplatesIDLabels(e,s){return this.base.request("POST",`/api/v2/documents/templates/${e.templateID}/labels`,e,s,"application/json")}deleteDocumentsTemplatesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/documents/templates/${e.templateID}/labels/${e.labelID}`,e,s)}},e.FlagsAPI=class{constructor(e){this.base=new s(e)}getFlags(e,s){return this.base.request("GET","/api/v2/flags",e,s)}},e.HealthAPI=class{constructor(e){this.base=new s(e)}getHealth(e,s){return this.base.request("GET","/health",e,s)}},e.LabelsAPI=class{constructor(e){this.base=new s(e)}getLabels(e,s){return this.base.request("GET","/api/v2/labels"+this.base.queryString(e,["orgID"]),e,s)}postLabels(e,s){return this.base.request("POST","/api/v2/labels",e,s,"application/json")}getLabelsID(e,s){return this.base.request("GET","/api/v2/labels/"+e.labelID,e,s)}patchLabelsID(e,s){return this.base.request("PATCH","/api/v2/labels/"+e.labelID,e,s,"application/json")}deleteLabelsID(e,s){return this.base.request("DELETE","/api/v2/labels/"+e.labelID,e,s)}},e.MeAPI=class{constructor(e){this.base=new s(e)}getMe(e,s){return this.base.request("GET","/api/v2/me",e,s)}putMePassword(e,s){return this.base.request("PUT","/api/v2/me/password",e,s,"application/json")}},e.NotificationEndpointsAPI=class{constructor(e){this.base=new s(e)}getNotificationEndpoints(e,s){return this.base.request("GET","/api/v2/notificationEndpoints"+this.base.queryString(e,["offset","limit","orgID"]),e,s)}createNotificationEndpoint(e,s){return this.base.request("POST","/api/v2/notificationEndpoints",e,s,"application/json")}getNotificationEndpointsID(e,s){return this.base.request("GET","/api/v2/notificationEndpoints/"+e.endpointID,e,s)}putNotificationEndpointsID(e,s){return this.base.request("PUT","/api/v2/notificationEndpoints/"+e.endpointID,e,s,"application/json")}patchNotificationEndpointsID(e,s){return this.base.request("PATCH","/api/v2/notificationEndpoints/"+e.endpointID,e,s,"application/json")}deleteNotificationEndpointsID(e,s){return this.base.request("DELETE","/api/v2/notificationEndpoints/"+e.endpointID,e,s)}getNotificationEndpointsIDLabels(e,s){return this.base.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s)}postNotificationEndpointIDLabels(e,s){return this.base.request("POST",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s,"application/json")}deleteNotificationEndpointsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}/labels/${e.labelID}`,e,s)}},e.NotificationRulesAPI=class{constructor(e){this.base=new s(e)}getNotificationRules(e,s){return this.base.request("GET","/api/v2/notificationRules"+this.base.queryString(e,["offset","limit","orgID","checkID","tag"]),e,s)}createNotificationRule(e,s){return this.base.request("POST","/api/v2/notificationRules",e,s,"application/json")}getNotificationRulesID(e,s){return this.base.request("GET","/api/v2/notificationRules/"+e.ruleID,e,s)}putNotificationRulesID(e,s){return this.base.request("PUT","/api/v2/notificationRules/"+e.ruleID,e,s,"application/json")}patchNotificationRulesID(e,s){return this.base.request("PATCH","/api/v2/notificationRules/"+e.ruleID,e,s,"application/json")}deleteNotificationRulesID(e,s){return this.base.request("DELETE","/api/v2/notificationRules/"+e.ruleID,e,s)}getNotificationRulesIDLabels(e,s){return this.base.request("GET",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s)}postNotificationRuleIDLabels(e,s){return this.base.request("POST",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s,"application/json")}deleteNotificationRulesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/notificationRules/${e.ruleID}/labels/${e.labelID}`,e,s)}getNotificationRulesIDQuery(e,s){return this.base.request("GET",`/api/v2/notificationRules/${e.ruleID}/query`,e,s)}},e.OrgsAPI=class{constructor(e){this.base=new s(e)}getOrgs(e,s){return this.base.request("GET","/api/v2/orgs"+this.base.queryString(e,["org","orgID","userID"]),e,s)}postOrgs(e,s){return this.base.request("POST","/api/v2/orgs",e,s,"application/json")}getOrgsID(e,s){return this.base.request("GET","/api/v2/orgs/"+e.orgID,e,s)}patchOrgsID(e,s){return this.base.request("PATCH","/api/v2/orgs/"+e.orgID,e,s,"application/json")}deleteOrgsID(e,s){return this.base.request("DELETE","/api/v2/orgs/"+e.orgID,e,s)}getOrgsIDSecrets(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/secrets`,e,s)}patchOrgsIDSecrets(e,s){return this.base.request("PATCH",`/api/v2/orgs/${e.orgID}/secrets`,e,s,"application/json")}postOrgsIDSecrets(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/secrets/delete`,e,s,"application/json")}getOrgsIDMembers(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/members`,e,s)}postOrgsIDMembers(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/members`,e,s,"application/json")}deleteOrgsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/members/${e.userID}`,e,s)}getOrgsIDOwners(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/owners`,e,s)}postOrgsIDOwners(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/owners`,e,s,"application/json")}},e.QueryAPI=class{constructor(e){this.base=new s(e)}postQueryAst(e,s){return this.base.request("POST","/api/v2/query/ast",e,s,"application/json")}getQuerySuggestions(e,s){return this.base.request("GET","/api/v2/query/suggestions",e,s)}getQuerySuggestionsName(e,s){return this.base.request("GET","/api/v2/query/suggestions/"+e.name,e,s)}postQueryAnalyze(e,s){return this.base.request("POST","/api/v2/query/analyze",e,s,"application/json")}postQuery(e,s){return this.base.request("POST","/api/v2/query"+this.base.queryString(e,["org","orgID"]),e,s,"application/json")}},e.ReadyAPI=class{constructor(e){this.base=new s(e)}getReady(e,s){return this.base.request("GET","/ready",e,s)}},e.RootAPI=class{constructor(e){this.base=new s(e)}getRoutes(e,s){return this.base.request("GET","/api/v2/",e,s)}},e.ScrapersAPI=class{constructor(e){this.base=new s(e)}getScrapers(e,s){return this.base.request("GET","/api/v2/scrapers"+this.base.queryString(e,["name","id","orgID","org"]),e,s)}postScrapers(e,s){return this.base.request("POST","/api/v2/scrapers",e,s,"application/json")}getScrapersID(e,s){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID,e,s)}patchScrapersID(e,s){return this.base.request("PATCH","/api/v2/scrapers/"+e.scraperTargetID,e,s,"application/json")}deleteScrapersID(e,s){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID,e,s)}getScrapersIDLabels(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s)}postScrapersIDLabels(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s,"application/json")}patchScrapersIDLabelsID(e,s){return this.base.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s,"application/json")}deleteScrapersIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s)}getScrapersIDMembers(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s)}postScrapersIDMembers(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s,"application/json")}deleteScrapersIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/members/${e.userID}`,e,s)}getScrapersIDOwners(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s)}postScrapersIDOwners(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s,"application/json")}deleteScrapersIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/owners/${e.userID}`,e,s)}},e.SetupAPI=class{constructor(e){this.base=new s(e)}getSetup(e,s){return this.base.request("GET","/api/v2/setup",e,s)}postSetup(e,s){return this.base.request("POST","/api/v2/setup",e,s,"application/json")}postSetupUser(e,s){return this.base.request("POST","/api/v2/setup/user",e,s,"application/json")}},e.SigninAPI=class{constructor(e){this.base=new s(e)}postSignin(e,s){return this.base.request("POST","/api/v2/signin",e,s)}},e.SignoutAPI=class{constructor(e){this.base=new s(e)}postSignout(e,s){return this.base.request("POST","/api/v2/signout",e,s)}},e.SourcesAPI=class{constructor(e){this.base=new s(e)}getSources(e,s){return this.base.request("GET","/api/v2/sources"+this.base.queryString(e,["org"]),e,s)}postSources(e,s){return this.base.request("POST","/api/v2/sources",e,s,"application/json")}getSourcesID(e,s){return this.base.request("GET","/api/v2/sources/"+e.sourceID,e,s)}patchSourcesID(e,s){return this.base.request("PATCH","/api/v2/sources/"+e.sourceID,e,s,"application/json")}deleteSourcesID(e,s){return this.base.request("DELETE","/api/v2/sources/"+e.sourceID,e,s)}getSourcesIDHealth(e,s){return this.base.request("GET",`/api/v2/sources/${e.sourceID}/health`,e,s)}getSourcesIDBuckets(e,s){return this.base.request("GET",`/api/v2/sources/${e.sourceID}/buckets${this.base.queryString(e,["org"])}`,e,s)}},e.StacksAPI=class{constructor(e){this.base=new s(e)}listStacks(e,s){return this.base.request("GET","/api/v2/stacks"+this.base.queryString(e,["orgID","name","stackID"]),e,s)}createStack(e,s){return this.base.request("POST","/api/v2/stacks",e,s,"application/json")}readStack(e,s){return this.base.request("GET","/api/v2/stacks/"+e.stack_id,e,s)}updateStack(e,s){return this.base.request("PATCH","/api/v2/stacks/"+e.stack_id,e,s,"application/json")}deleteStack(e,s){return this.base.request("DELETE",`/api/v2/stacks/${e.stack_id}${this.base.queryString(e,["orgID"])}`,e,s)}uninstallStack(e,s){return this.base.request("POST",`/api/v2/stacks/${e.stack_id}/uninstall`,e,s)}},e.TasksAPI=class{constructor(e){this.base=new s(e)}getTasks(e,s){return this.base.request("GET","/api/v2/tasks"+this.base.queryString(e,["name","after","user","org","orgID","status","limit"]),e,s)}postTasks(e,s){return this.base.request("POST","/api/v2/tasks",e,s,"application/json")}getTasksID(e,s){return this.base.request("GET","/api/v2/tasks/"+e.taskID,e,s)}patchTasksID(e,s){return this.base.request("PATCH","/api/v2/tasks/"+e.taskID,e,s,"application/json")}deleteTasksID(e,s){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID,e,s)}getTasksIDRuns(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs${this.base.queryString(e,["after","limit","afterTime","beforeTime"])}`,e,s)}postTasksIDRuns(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/runs`,e,s,"application/json")}getTasksIDRunsID(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}deleteTasksIDRunsID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}postTasksIDRunsIDRetry(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/retry`,e,s)}getTasksIDLogs(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/logs`,e,s)}getTasksIDRunsIDLogs(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/logs`,e,s)}getTasksIDLabels(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/labels`,e,s)}postTasksIDLabels(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/labels`,e,s,"application/json")}deleteTasksIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/labels/${e.labelID}`,e,s)}getTasksIDMembers(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/members`,e,s)}postTasksIDMembers(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/members`,e,s,"application/json")}deleteTasksIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/members/${e.userID}`,e,s)}getTasksIDOwners(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/owners`,e,s)}postTasksIDOwners(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/owners`,e,s,"application/json")}deleteTasksIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/owners/${e.userID}`,e,s)}},e.TelegrafAPI=class{constructor(e){this.base=new s(e)}getTelegrafPlugins(e,s){return this.base.request("GET","/api/v2/telegraf/plugins"+this.base.queryString(e,["type"]),e,s)}},e.TelegrafsAPI=class{constructor(e){this.base=new s(e)}getTelegrafs(e,s){return this.base.request("GET","/api/v2/telegrafs"+this.base.queryString(e,["orgID"]),e,s)}postTelegrafs(e,s){return this.base.request("POST","/api/v2/telegrafs",e,s,"application/json")}getTelegrafsID(e,s){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID,e,s)}putTelegrafsID(e,s){return this.base.request("PUT","/api/v2/telegrafs/"+e.telegrafID,e,s,"application/json")}deleteTelegrafsID(e,s){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID,e,s)}getTelegrafsIDLabels(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s)}postTelegrafsIDLabels(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s,"application/json")}deleteTelegrafsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/labels/${e.labelID}`,e,s)}getTelegrafsIDMembers(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s)}postTelegrafsIDMembers(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s,"application/json")}deleteTelegrafsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/members/${e.userID}`,e,s)}getTelegrafsIDOwners(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s)}postTelegrafsIDOwners(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s,"application/json")}deleteTelegrafsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/owners/${e.userID}`,e,s)}},e.TemplatesAPI=class{constructor(e){this.base=new s(e)}applyTemplate(e,s){return this.base.request("POST","/api/v2/templates/apply",e,s,"application/json")}exportTemplate(e,s){return this.base.request("POST","/api/v2/templates/export",e,s,"application/json")}},e.UsersAPI=class{constructor(e){this.base=new s(e)}getUsers(e,s){return this.base.request("GET","/api/v2/users",e,s)}postUsers(e,s){return this.base.request("POST","/api/v2/users",e,s,"application/json")}getUsersID(e,s){return this.base.request("GET","/api/v2/users/"+e.userID,e,s)}patchUsersID(e,s){return this.base.request("PATCH","/api/v2/users/"+e.userID,e,s,"application/json")}deleteUsersID(e,s){return this.base.request("DELETE","/api/v2/users/"+e.userID,e,s)}postUsersIDPassword(e,s){return this.base.request("POST",`/api/v2/users/${e.userID}/password`,e,s,"application/json")}},e.VariablesAPI=class{constructor(e){this.base=new s(e)}getVariables(e,s){return this.base.request("GET","/api/v2/variables"+this.base.queryString(e,["org","orgID"]),e,s)}postVariables(e,s){return this.base.request("POST","/api/v2/variables",e,s,"application/json")}getVariablesID(e,s){return this.base.request("GET","/api/v2/variables/"+e.variableID,e,s)}putVariablesID(e,s){return this.base.request("PUT","/api/v2/variables/"+e.variableID,e,s,"application/json")}patchVariablesID(e,s){return this.base.request("PATCH","/api/v2/variables/"+e.variableID,e,s,"application/json")}deleteVariablesID(e,s){return this.base.request("DELETE","/api/v2/variables/"+e.variableID,e,s)}getVariablesIDLabels(e,s){return this.base.request("GET",`/api/v2/variables/${e.variableID}/labels`,e,s)}postVariablesIDLabels(e,s){return this.base.request("POST",`/api/v2/variables/${e.variableID}/labels`,e,s,"application/json")}deleteVariablesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/variables/${e.variableID}/labels/${e.labelID}`,e,s)}},e.WriteAPI=class{constructor(e){this.base=new s(e)}postWrite(e,s){return this.base.request("POST","/api/v2/write"+this.base.queryString(e,["org","orgID","bucket","precision"]),e,s,"text/plain")}},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports):"function"==typeof define&&define.amd?define(["exports"],s):s((e="undefined"!=typeof globalThis?globalThis:e||self)["@influxdata/influxdb-client-apis"]={})}(this,(function(e){"use strict";class s{constructor(e){if(!e)throw new Error("No influxDB supplied!");if(!e.transport)throw new Error("No transport supplied!");this.transport=e.transport}queryString(e,s){return e&&s?s.reduce((s,t)=>{const r=e[t];return null!=r&&(s+=s?"&":"?",s+=encodeURIComponent(t)+"="+encodeURIComponent(String(r))),s},""):""}request(e,s,t={},r,a){const i=Object.assign(Object.assign({},r),{method:e});if(a&&((i.headers||(i.headers={}))["content-type"]=a),t.auth){const e=`${t.auth.user}:${t.auth.password}`;(i.headers||(i.headers={})).authorization=btoa(e)}return this.transport.request(s,t.body?t.body:"",i)}}e.AuthorizationsAPI=class{constructor(e){this.base=new s(e)}getAuthorizations(e,s){return this.base.request("GET","/api/v2/authorizations"+this.base.queryString(e,["userID","user","orgID","org"]),e,s)}postAuthorizations(e,s){return this.base.request("POST","/api/v2/authorizations",e,s,"application/json")}getAuthorizationsID(e,s){return this.base.request("GET","/api/v2/authorizations/"+e.authID,e,s)}patchAuthorizationsID(e,s){return this.base.request("PATCH","/api/v2/authorizations/"+e.authID,e,s,"application/json")}deleteAuthorizationsID(e,s){return this.base.request("DELETE","/api/v2/authorizations/"+e.authID,e,s)}},e.BucketsAPI=class{constructor(e){this.base=new s(e)}getBuckets(e,s){return this.base.request("GET","/api/v2/buckets"+this.base.queryString(e,["offset","limit","org","orgID","name"]),e,s)}postBuckets(e,s){return this.base.request("POST","/api/v2/buckets",e,s,"application/json")}getBucketsID(e,s){return this.base.request("GET","/api/v2/buckets/"+e.bucketID,e,s)}patchBucketsID(e,s){return this.base.request("PATCH","/api/v2/buckets/"+e.bucketID,e,s,"application/json")}deleteBucketsID(e,s){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID,e,s)}getBucketsIDLabels(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/labels`,e,s)}postBucketsIDLabels(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/labels`,e,s,"application/json")}deleteBucketsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/labels/${e.labelID}`,e,s)}getBucketsIDMembers(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/members`,e,s)}postBucketsIDMembers(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/members`,e,s,"application/json")}deleteBucketsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/members/${e.userID}`,e,s)}getBucketsIDOwners(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/owners`,e,s)}postBucketsIDOwners(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/owners`,e,s,"application/json")}deleteBucketsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/owners/${e.userID}`,e,s)}},e.ChecksAPI=class{constructor(e){this.base=new s(e)}getChecks(e,s){return this.base.request("GET","/api/v2/checks"+this.base.queryString(e,["offset","limit","orgID"]),e,s)}createCheck(e,s){return this.base.request("POST","/api/v2/checks",e,s,"application/json")}getChecksID(e,s){return this.base.request("GET","/api/v2/checks/"+e.checkID,e,s)}putChecksID(e,s){return this.base.request("PUT","/api/v2/checks/"+e.checkID,e,s,"application/json")}patchChecksID(e,s){return this.base.request("PATCH","/api/v2/checks/"+e.checkID,e,s,"application/json")}deleteChecksID(e,s){return this.base.request("DELETE","/api/v2/checks/"+e.checkID,e,s)}getChecksIDLabels(e,s){return this.base.request("GET",`/api/v2/checks/${e.checkID}/labels`,e,s)}postChecksIDLabels(e,s){return this.base.request("POST",`/api/v2/checks/${e.checkID}/labels`,e,s,"application/json")}deleteChecksIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/checks/${e.checkID}/labels/${e.labelID}`,e,s)}getChecksIDQuery(e,s){return this.base.request("GET",`/api/v2/checks/${e.checkID}/query`,e,s)}},e.DashboardsAPI=class{constructor(e){this.base=new s(e)}getDashboards(e,s){return this.base.request("GET","/api/v2/dashboards"+this.base.queryString(e,["owner","sortBy","id","orgID","org"]),e,s)}postDashboards(e,s){return this.base.request("POST","/api/v2/dashboards",e,s,"application/json")}getDashboardsID(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}${this.base.queryString(e,["include"])}`,e,s)}patchDashboardsID(e,s){return this.base.request("PATCH","/api/v2/dashboards/"+e.dashboardID,e,s,"application/json")}deleteDashboardsID(e,s){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID,e,s)}postDashboardsIDCells(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}putDashboardsIDCells(e,s){return this.base.request("PUT",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}patchDashboardsIDCellsID(e,s){return this.base.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s,"application/json")}deleteDashboardsIDCellsID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s)}getDashboardsIDCellsIDView(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s)}patchDashboardsIDCellsIDView(e,s){return this.base.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s,"application/json")}getDashboardsIDLabels(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s)}postDashboardsIDLabels(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s,"application/json")}deleteDashboardsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/labels/${e.labelID}`,e,s)}getDashboardsIDMembers(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/members`,e,s)}postDashboardsIDMembers(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/members`,e,s,"application/json")}deleteDashboardsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/members/${e.userID}`,e,s)}getDashboardsIDOwners(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s)}postDashboardsIDOwners(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s,"application/json")}deleteDashboardsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/owners/${e.userID}`,e,s)}},e.DbrpsAPI=class{constructor(e){this.base=new s(e)}getDBRPs(e,s){return this.base.request("GET","/api/v2/dbrps"+this.base.queryString(e,["orgID","id","bucketID","default","db","rp"]),e,s)}postDBRP(e,s){return this.base.request("POST","/api/v2/dbrps",e,s,"application/json")}getDBRPsID(e,s){return this.base.request("GET",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s)}patchDBRPID(e,s){return this.base.request("PATCH",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s,"application/json")}deleteDBRPID(e,s){return this.base.request("DELETE",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s)}},e.DeleteAPI=class{constructor(e){this.base=new s(e)}postDelete(e,s){return this.base.request("POST","/api/v2/delete"+this.base.queryString(e,["org","bucket","orgID","bucketID"]),e,s,"application/json")}},e.DocumentsAPI=class{constructor(e){this.base=new s(e)}getDocumentsTemplates(e,s){return this.base.request("GET","/api/v2/documents/templates"+this.base.queryString(e,["org","orgID"]),e,s)}postDocumentsTemplates(e,s){return this.base.request("POST","/api/v2/documents/templates",e,s,"application/json")}getDocumentsTemplatesID(e,s){return this.base.request("GET","/api/v2/documents/templates/"+e.templateID,e,s)}putDocumentsTemplatesID(e,s){return this.base.request("PUT","/api/v2/documents/templates/"+e.templateID,e,s,"application/json")}deleteDocumentsTemplatesID(e,s){return this.base.request("DELETE","/api/v2/documents/templates/"+e.templateID,e,s)}getDocumentsTemplatesIDLabels(e,s){return this.base.request("GET",`/api/v2/documents/templates/${e.templateID}/labels`,e,s)}postDocumentsTemplatesIDLabels(e,s){return this.base.request("POST",`/api/v2/documents/templates/${e.templateID}/labels`,e,s,"application/json")}deleteDocumentsTemplatesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/documents/templates/${e.templateID}/labels/${e.labelID}`,e,s)}},e.FlagsAPI=class{constructor(e){this.base=new s(e)}getFlags(e,s){return this.base.request("GET","/api/v2/flags",e,s)}},e.HealthAPI=class{constructor(e){this.base=new s(e)}getHealth(e,s){return this.base.request("GET","/health",e,s)}},e.LabelsAPI=class{constructor(e){this.base=new s(e)}getLabels(e,s){return this.base.request("GET","/api/v2/labels"+this.base.queryString(e,["orgID"]),e,s)}postLabels(e,s){return this.base.request("POST","/api/v2/labels",e,s,"application/json")}getLabelsID(e,s){return this.base.request("GET","/api/v2/labels/"+e.labelID,e,s)}patchLabelsID(e,s){return this.base.request("PATCH","/api/v2/labels/"+e.labelID,e,s,"application/json")}deleteLabelsID(e,s){return this.base.request("DELETE","/api/v2/labels/"+e.labelID,e,s)}},e.MeAPI=class{constructor(e){this.base=new s(e)}getMe(e,s){return this.base.request("GET","/api/v2/me",e,s)}putMePassword(e,s){return this.base.request("PUT","/api/v2/me/password",e,s,"application/json")}},e.NotificationEndpointsAPI=class{constructor(e){this.base=new s(e)}getNotificationEndpoints(e,s){return this.base.request("GET","/api/v2/notificationEndpoints"+this.base.queryString(e,["offset","limit","orgID"]),e,s)}createNotificationEndpoint(e,s){return this.base.request("POST","/api/v2/notificationEndpoints",e,s,"application/json")}getNotificationEndpointsID(e,s){return this.base.request("GET","/api/v2/notificationEndpoints/"+e.endpointID,e,s)}putNotificationEndpointsID(e,s){return this.base.request("PUT","/api/v2/notificationEndpoints/"+e.endpointID,e,s,"application/json")}patchNotificationEndpointsID(e,s){return this.base.request("PATCH","/api/v2/notificationEndpoints/"+e.endpointID,e,s,"application/json")}deleteNotificationEndpointsID(e,s){return this.base.request("DELETE","/api/v2/notificationEndpoints/"+e.endpointID,e,s)}getNotificationEndpointsIDLabels(e,s){return this.base.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s)}postNotificationEndpointIDLabels(e,s){return this.base.request("POST",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s,"application/json")}deleteNotificationEndpointsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}/labels/${e.labelID}`,e,s)}},e.NotificationRulesAPI=class{constructor(e){this.base=new s(e)}getNotificationRules(e,s){return this.base.request("GET","/api/v2/notificationRules"+this.base.queryString(e,["offset","limit","orgID","checkID","tag"]),e,s)}createNotificationRule(e,s){return this.base.request("POST","/api/v2/notificationRules",e,s,"application/json")}getNotificationRulesID(e,s){return this.base.request("GET","/api/v2/notificationRules/"+e.ruleID,e,s)}putNotificationRulesID(e,s){return this.base.request("PUT","/api/v2/notificationRules/"+e.ruleID,e,s,"application/json")}patchNotificationRulesID(e,s){return this.base.request("PATCH","/api/v2/notificationRules/"+e.ruleID,e,s,"application/json")}deleteNotificationRulesID(e,s){return this.base.request("DELETE","/api/v2/notificationRules/"+e.ruleID,e,s)}getNotificationRulesIDLabels(e,s){return this.base.request("GET",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s)}postNotificationRuleIDLabels(e,s){return this.base.request("POST",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s,"application/json")}deleteNotificationRulesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/notificationRules/${e.ruleID}/labels/${e.labelID}`,e,s)}getNotificationRulesIDQuery(e,s){return this.base.request("GET",`/api/v2/notificationRules/${e.ruleID}/query`,e,s)}},e.OrgsAPI=class{constructor(e){this.base=new s(e)}getOrgs(e,s){return this.base.request("GET","/api/v2/orgs"+this.base.queryString(e,["org","orgID","userID"]),e,s)}postOrgs(e,s){return this.base.request("POST","/api/v2/orgs",e,s,"application/json")}getOrgsID(e,s){return this.base.request("GET","/api/v2/orgs/"+e.orgID,e,s)}patchOrgsID(e,s){return this.base.request("PATCH","/api/v2/orgs/"+e.orgID,e,s,"application/json")}deleteOrgsID(e,s){return this.base.request("DELETE","/api/v2/orgs/"+e.orgID,e,s)}getOrgsIDSecrets(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/secrets`,e,s)}patchOrgsIDSecrets(e,s){return this.base.request("PATCH",`/api/v2/orgs/${e.orgID}/secrets`,e,s,"application/json")}postOrgsIDSecrets(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/secrets/delete`,e,s,"application/json")}getOrgsIDMembers(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/members`,e,s)}postOrgsIDMembers(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/members`,e,s,"application/json")}deleteOrgsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/members/${e.userID}`,e,s)}getOrgsIDOwners(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/owners`,e,s)}postOrgsIDOwners(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/owners`,e,s,"application/json")}},e.QueryAPI=class{constructor(e){this.base=new s(e)}postQueryAst(e,s){return this.base.request("POST","/api/v2/query/ast",e,s,"application/json")}getQuerySuggestions(e,s){return this.base.request("GET","/api/v2/query/suggestions",e,s)}getQuerySuggestionsName(e,s){return this.base.request("GET","/api/v2/query/suggestions/"+e.name,e,s)}postQueryAnalyze(e,s){return this.base.request("POST","/api/v2/query/analyze",e,s,"application/json")}postQuery(e,s){return this.base.request("POST","/api/v2/query"+this.base.queryString(e,["org","orgID"]),e,s,"application/json")}},e.ReadyAPI=class{constructor(e){this.base=new s(e)}getReady(e,s){return this.base.request("GET","/ready",e,s)}},e.RootAPI=class{constructor(e){this.base=new s(e)}getRoutes(e,s){return this.base.request("GET","/api/v2/",e,s)}},e.ScrapersAPI=class{constructor(e){this.base=new s(e)}getScrapers(e,s){return this.base.request("GET","/api/v2/scrapers"+this.base.queryString(e,["name","id","orgID","org"]),e,s)}postScrapers(e,s){return this.base.request("POST","/api/v2/scrapers",e,s,"application/json")}getScrapersID(e,s){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID,e,s)}patchScrapersID(e,s){return this.base.request("PATCH","/api/v2/scrapers/"+e.scraperTargetID,e,s,"application/json")}deleteScrapersID(e,s){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID,e,s)}getScrapersIDLabels(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s)}postScrapersIDLabels(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s,"application/json")}patchScrapersIDLabelsID(e,s){return this.base.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s,"application/json")}deleteScrapersIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s)}getScrapersIDMembers(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s)}postScrapersIDMembers(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s,"application/json")}deleteScrapersIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/members/${e.userID}`,e,s)}getScrapersIDOwners(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s)}postScrapersIDOwners(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s,"application/json")}deleteScrapersIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/owners/${e.userID}`,e,s)}},e.SetupAPI=class{constructor(e){this.base=new s(e)}getSetup(e,s){return this.base.request("GET","/api/v2/setup",e,s)}postSetup(e,s){return this.base.request("POST","/api/v2/setup",e,s,"application/json")}postSetupUser(e,s){return this.base.request("POST","/api/v2/setup/user",e,s,"application/json")}},e.SigninAPI=class{constructor(e){this.base=new s(e)}postSignin(e,s){return this.base.request("POST","/api/v2/signin",e,s)}},e.SignoutAPI=class{constructor(e){this.base=new s(e)}postSignout(e,s){return this.base.request("POST","/api/v2/signout",e,s)}},e.SourcesAPI=class{constructor(e){this.base=new s(e)}getSources(e,s){return this.base.request("GET","/api/v2/sources"+this.base.queryString(e,["org"]),e,s)}postSources(e,s){return this.base.request("POST","/api/v2/sources",e,s,"application/json")}getSourcesID(e,s){return this.base.request("GET","/api/v2/sources/"+e.sourceID,e,s)}patchSourcesID(e,s){return this.base.request("PATCH","/api/v2/sources/"+e.sourceID,e,s,"application/json")}deleteSourcesID(e,s){return this.base.request("DELETE","/api/v2/sources/"+e.sourceID,e,s)}getSourcesIDHealth(e,s){return this.base.request("GET",`/api/v2/sources/${e.sourceID}/health`,e,s)}getSourcesIDBuckets(e,s){return this.base.request("GET",`/api/v2/sources/${e.sourceID}/buckets${this.base.queryString(e,["org"])}`,e,s)}},e.StacksAPI=class{constructor(e){this.base=new s(e)}listStacks(e,s){return this.base.request("GET","/api/v2/stacks"+this.base.queryString(e,["orgID","name","stackID"]),e,s)}createStack(e,s){return this.base.request("POST","/api/v2/stacks",e,s,"application/json")}readStack(e,s){return this.base.request("GET","/api/v2/stacks/"+e.stack_id,e,s)}updateStack(e,s){return this.base.request("PATCH","/api/v2/stacks/"+e.stack_id,e,s,"application/json")}deleteStack(e,s){return this.base.request("DELETE",`/api/v2/stacks/${e.stack_id}${this.base.queryString(e,["orgID"])}`,e,s)}uninstallStack(e,s){return this.base.request("POST",`/api/v2/stacks/${e.stack_id}/uninstall`,e,s)}},e.TasksAPI=class{constructor(e){this.base=new s(e)}getTasks(e,s){return this.base.request("GET","/api/v2/tasks"+this.base.queryString(e,["name","after","user","org","orgID","status","limit"]),e,s)}postTasks(e,s){return this.base.request("POST","/api/v2/tasks",e,s,"application/json")}getTasksID(e,s){return this.base.request("GET","/api/v2/tasks/"+e.taskID,e,s)}patchTasksID(e,s){return this.base.request("PATCH","/api/v2/tasks/"+e.taskID,e,s,"application/json")}deleteTasksID(e,s){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID,e,s)}getTasksIDRuns(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs${this.base.queryString(e,["after","limit","afterTime","beforeTime"])}`,e,s)}postTasksIDRuns(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/runs`,e,s,"application/json")}getTasksIDRunsID(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}deleteTasksIDRunsID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}postTasksIDRunsIDRetry(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/retry`,e,s)}getTasksIDLogs(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/logs`,e,s)}getTasksIDRunsIDLogs(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/logs`,e,s)}getTasksIDLabels(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/labels`,e,s)}postTasksIDLabels(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/labels`,e,s,"application/json")}deleteTasksIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/labels/${e.labelID}`,e,s)}getTasksIDMembers(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/members`,e,s)}postTasksIDMembers(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/members`,e,s,"application/json")}deleteTasksIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/members/${e.userID}`,e,s)}getTasksIDOwners(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/owners`,e,s)}postTasksIDOwners(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/owners`,e,s,"application/json")}deleteTasksIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/owners/${e.userID}`,e,s)}},e.TelegrafAPI=class{constructor(e){this.base=new s(e)}getTelegrafPlugins(e,s){return this.base.request("GET","/api/v2/telegraf/plugins"+this.base.queryString(e,["type"]),e,s)}},e.TelegrafsAPI=class{constructor(e){this.base=new s(e)}getTelegrafs(e,s){return this.base.request("GET","/api/v2/telegrafs"+this.base.queryString(e,["orgID"]),e,s)}postTelegrafs(e,s){return this.base.request("POST","/api/v2/telegrafs",e,s,"application/json")}getTelegrafsID(e,s){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID,e,s)}putTelegrafsID(e,s){return this.base.request("PUT","/api/v2/telegrafs/"+e.telegrafID,e,s,"application/json")}deleteTelegrafsID(e,s){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID,e,s)}getTelegrafsIDLabels(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s)}postTelegrafsIDLabels(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s,"application/json")}deleteTelegrafsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/labels/${e.labelID}`,e,s)}getTelegrafsIDMembers(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s)}postTelegrafsIDMembers(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s,"application/json")}deleteTelegrafsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/members/${e.userID}`,e,s)}getTelegrafsIDOwners(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s)}postTelegrafsIDOwners(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s,"application/json")}deleteTelegrafsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/owners/${e.userID}`,e,s)}},e.TemplatesAPI=class{constructor(e){this.base=new s(e)}applyTemplate(e,s){return this.base.request("POST","/api/v2/templates/apply",e,s,"application/json")}exportTemplate(e,s){return this.base.request("POST","/api/v2/templates/export",e,s,"application/json")}},e.UsersAPI=class{constructor(e){this.base=new s(e)}getUsers(e,s){return this.base.request("GET","/api/v2/users",e,s)}postUsers(e,s){return this.base.request("POST","/api/v2/users",e,s,"application/json")}getUsersID(e,s){return this.base.request("GET","/api/v2/users/"+e.userID,e,s)}patchUsersID(e,s){return this.base.request("PATCH","/api/v2/users/"+e.userID,e,s,"application/json")}deleteUsersID(e,s){return this.base.request("DELETE","/api/v2/users/"+e.userID,e,s)}postUsersIDPassword(e,s){return this.base.request("POST",`/api/v2/users/${e.userID}/password`,e,s,"application/json")}},e.VariablesAPI=class{constructor(e){this.base=new s(e)}getVariables(e,s){return this.base.request("GET","/api/v2/variables"+this.base.queryString(e,["org","orgID"]),e,s)}postVariables(e,s){return this.base.request("POST","/api/v2/variables",e,s,"application/json")}getVariablesID(e,s){return this.base.request("GET","/api/v2/variables/"+e.variableID,e,s)}putVariablesID(e,s){return this.base.request("PUT","/api/v2/variables/"+e.variableID,e,s,"application/json")}patchVariablesID(e,s){return this.base.request("PATCH","/api/v2/variables/"+e.variableID,e,s,"application/json")}deleteVariablesID(e,s){return this.base.request("DELETE","/api/v2/variables/"+e.variableID,e,s)}getVariablesIDLabels(e,s){return this.base.request("GET",`/api/v2/variables/${e.variableID}/labels`,e,s)}postVariablesIDLabels(e,s){return this.base.request("POST",`/api/v2/variables/${e.variableID}/labels`,e,s,"application/json")}deleteVariablesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/variables/${e.variableID}/labels/${e.labelID}`,e,s)}},e.WriteAPI=class{constructor(e){this.base=new s(e)}postWrite(e,s){return this.base.request("POST","/api/v2/write"+this.base.queryString(e,["org","orgID","bucket","precision"]),e,s,"text/plain")}},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.browser.js.map |
var influxdbApis=function(e){"use strict"; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
Copyright (c) Microsoft Corporation. | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */var t=function(){return(t=Object.assign||function(e){for(var t,s=1,r=arguments.length;s<r;s++)for(var o in t=arguments[s])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=function(){function e(e){if(!e)throw new Error("No influxDB supplied!");if(!e.transport)throw new Error("No transport supplied!");this.transport=e.transport}return e.prototype.queryString=function(e,t){return e&&t?t.reduce((function(t,s){var r=e[s];return null!=r&&(t+=t?"&":"?",t+=encodeURIComponent(s)+"="+encodeURIComponent(String(r))),t}),""):""},e.prototype.request=function(e,s,r,o,n){void 0===r&&(r={});var a=t(t({},o),{method:e});if(n&&((a.headers||(a.headers={}))["content-type"]=n),r.auth){var i=r.auth.user+":"+r.auth.password;(a.headers||(a.headers={})).authorization=btoa(i)}return this.transport.request(s,r.body?r.body:"",a)},e}(),r=function(){function e(e){this.base=new s(e)}return e.prototype.getRoutes=function(e,t){return this.base.request("GET","/api/v2/",e,t)},e}(),o=function(){function e(e){this.base=new s(e)}return e.prototype.getAuthorizations=function(e,t){return this.base.request("GET","/api/v2/authorizations"+this.base.queryString(e,["userID","user","orgID","org"]),e,t)},e.prototype.postAuthorizations=function(e,t){return this.base.request("POST","/api/v2/authorizations",e,t,"application/json")},e.prototype.getAuthorizationsID=function(e,t){return this.base.request("GET","/api/v2/authorizations/"+e.authID,e,t)},e.prototype.patchAuthorizationsID=function(e,t){return this.base.request("PATCH","/api/v2/authorizations/"+e.authID,e,t,"application/json")},e.prototype.deleteAuthorizationsID=function(e,t){return this.base.request("DELETE","/api/v2/authorizations/"+e.authID,e,t)},e}(),n=function(){function e(e){this.base=new s(e)}return e.prototype.getBuckets=function(e,t){return this.base.request("GET","/api/v2/buckets"+this.base.queryString(e,["offset","limit","org","orgID","name"]),e,t)},e.prototype.postBuckets=function(e,t){return this.base.request("POST","/api/v2/buckets",e,t,"application/json")},e.prototype.getBucketsID=function(e,t){return this.base.request("GET","/api/v2/buckets/"+e.bucketID,e,t)},e.prototype.patchBucketsID=function(e,t){return this.base.request("PATCH","/api/v2/buckets/"+e.bucketID,e,t,"application/json")},e.prototype.deleteBucketsID=function(e,t){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID,e,t)},e.prototype.getBucketsIDLabels=function(e,t){return this.base.request("GET","/api/v2/buckets/"+e.bucketID+"/labels",e,t)},e.prototype.postBucketsIDLabels=function(e,t){return this.base.request("POST","/api/v2/buckets/"+e.bucketID+"/labels",e,t,"application/json")},e.prototype.deleteBucketsIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID+"/labels/"+e.labelID,e,t)},e.prototype.getBucketsIDMembers=function(e,t){return this.base.request("GET","/api/v2/buckets/"+e.bucketID+"/members",e,t)},e.prototype.postBucketsIDMembers=function(e,t){return this.base.request("POST","/api/v2/buckets/"+e.bucketID+"/members",e,t,"application/json")},e.prototype.deleteBucketsIDMembersID=function(e,t){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID+"/members/"+e.userID,e,t)},e.prototype.getBucketsIDOwners=function(e,t){return this.base.request("GET","/api/v2/buckets/"+e.bucketID+"/owners",e,t)},e.prototype.postBucketsIDOwners=function(e,t){return this.base.request("POST","/api/v2/buckets/"+e.bucketID+"/owners",e,t,"application/json")},e.prototype.deleteBucketsIDOwnersID=function(e,t){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID+"/owners/"+e.userID,e,t)},e}(),a=function(){function e(e){this.base=new s(e)}return e.prototype.getChecks=function(e,t){return this.base.request("GET","/api/v2/checks"+this.base.queryString(e,["offset","limit","orgID"]),e,t)},e.prototype.createCheck=function(e,t){return this.base.request("POST","/api/v2/checks",e,t,"application/json")},e.prototype.getChecksID=function(e,t){return this.base.request("GET","/api/v2/checks/"+e.checkID,e,t)},e.prototype.putChecksID=function(e,t){return this.base.request("PUT","/api/v2/checks/"+e.checkID,e,t,"application/json")},e.prototype.patchChecksID=function(e,t){return this.base.request("PATCH","/api/v2/checks/"+e.checkID,e,t,"application/json")},e.prototype.deleteChecksID=function(e,t){return this.base.request("DELETE","/api/v2/checks/"+e.checkID,e,t)},e.prototype.getChecksIDLabels=function(e,t){return this.base.request("GET","/api/v2/checks/"+e.checkID+"/labels",e,t)},e.prototype.postChecksIDLabels=function(e,t){return this.base.request("POST","/api/v2/checks/"+e.checkID+"/labels",e,t,"application/json")},e.prototype.deleteChecksIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/checks/"+e.checkID+"/labels/"+e.labelID,e,t)},e.prototype.getChecksIDQuery=function(e,t){return this.base.request("GET","/api/v2/checks/"+e.checkID+"/query",e,t)},e}(),i=function(){function e(e){this.base=new s(e)}return e.prototype.getDashboards=function(e,t){return this.base.request("GET","/api/v2/dashboards"+this.base.queryString(e,["owner","sortBy","id","orgID","org"]),e,t)},e.prototype.postDashboards=function(e,t){return this.base.request("POST","/api/v2/dashboards",e,t,"application/json")},e.prototype.getDashboardsID=function(e,t){return this.base.request("GET","/api/v2/dashboards/"+e.dashboardID+this.base.queryString(e,["include"]),e,t)},e.prototype.patchDashboardsID=function(e,t){return this.base.request("PATCH","/api/v2/dashboards/"+e.dashboardID,e,t,"application/json")},e.prototype.deleteDashboardsID=function(e,t){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID,e,t)},e.prototype.postDashboardsIDCells=function(e,t){return this.base.request("POST","/api/v2/dashboards/"+e.dashboardID+"/cells",e,t,"application/json")},e.prototype.putDashboardsIDCells=function(e,t){return this.base.request("PUT","/api/v2/dashboards/"+e.dashboardID+"/cells",e,t,"application/json")},e.prototype.patchDashboardsIDCellsID=function(e,t){return this.base.request("PATCH","/api/v2/dashboards/"+e.dashboardID+"/cells/"+e.cellID,e,t,"application/json")},e.prototype.deleteDashboardsIDCellsID=function(e,t){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID+"/cells/"+e.cellID,e,t)},e.prototype.getDashboardsIDCellsIDView=function(e,t){return this.base.request("GET","/api/v2/dashboards/"+e.dashboardID+"/cells/"+e.cellID+"/view",e,t)},e.prototype.patchDashboardsIDCellsIDView=function(e,t){return this.base.request("PATCH","/api/v2/dashboards/"+e.dashboardID+"/cells/"+e.cellID+"/view",e,t,"application/json")},e.prototype.getDashboardsIDLabels=function(e,t){return this.base.request("GET","/api/v2/dashboards/"+e.dashboardID+"/labels",e,t)},e.prototype.postDashboardsIDLabels=function(e,t){return this.base.request("POST","/api/v2/dashboards/"+e.dashboardID+"/labels",e,t,"application/json")},e.prototype.deleteDashboardsIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID+"/labels/"+e.labelID,e,t)},e.prototype.getDashboardsIDMembers=function(e,t){return this.base.request("GET","/api/v2/dashboards/"+e.dashboardID+"/members",e,t)},e.prototype.postDashboardsIDMembers=function(e,t){return this.base.request("POST","/api/v2/dashboards/"+e.dashboardID+"/members",e,t,"application/json")},e.prototype.deleteDashboardsIDMembersID=function(e,t){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID+"/members/"+e.userID,e,t)},e.prototype.getDashboardsIDOwners=function(e,t){return this.base.request("GET","/api/v2/dashboards/"+e.dashboardID+"/owners",e,t)},e.prototype.postDashboardsIDOwners=function(e,t){return this.base.request("POST","/api/v2/dashboards/"+e.dashboardID+"/owners",e,t,"application/json")},e.prototype.deleteDashboardsIDOwnersID=function(e,t){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID+"/owners/"+e.userID,e,t)},e}(),p=function(){function e(e){this.base=new s(e)}return e.prototype.getDBRPs=function(e,t){return this.base.request("GET","/api/v2/dbrps"+this.base.queryString(e,["orgID","id","bucketID","default","db","rp"]),e,t)},e.prototype.postDBRP=function(e,t){return this.base.request("POST","/api/v2/dbrps",e,t,"application/json")},e.prototype.getDBRPsID=function(e,t){return this.base.request("GET","/api/v2/dbrps/"+e.dbrpID+this.base.queryString(e,["orgID"]),e,t)},e.prototype.patchDBRPID=function(e,t){return this.base.request("PATCH","/api/v2/dbrps/"+e.dbrpID+this.base.queryString(e,["orgID"]),e,t,"application/json")},e.prototype.deleteDBRPID=function(e,t){return this.base.request("DELETE","/api/v2/dbrps/"+e.dbrpID+this.base.queryString(e,["orgID"]),e,t)},e}(),u=function(){function e(e){this.base=new s(e)}return e.prototype.postDelete=function(e,t){return this.base.request("POST","/api/v2/delete"+this.base.queryString(e,["org","bucket","orgID","bucketID"]),e,t,"application/json")},e}(),c=function(){function e(e){this.base=new s(e)}return e.prototype.getDocumentsTemplates=function(e,t){return this.base.request("GET","/api/v2/documents/templates"+this.base.queryString(e,["org","orgID"]),e,t)},e.prototype.postDocumentsTemplates=function(e,t){return this.base.request("POST","/api/v2/documents/templates",e,t,"application/json")},e.prototype.getDocumentsTemplatesID=function(e,t){return this.base.request("GET","/api/v2/documents/templates/"+e.templateID,e,t)},e.prototype.putDocumentsTemplatesID=function(e,t){return this.base.request("PUT","/api/v2/documents/templates/"+e.templateID,e,t,"application/json")},e.prototype.deleteDocumentsTemplatesID=function(e,t){return this.base.request("DELETE","/api/v2/documents/templates/"+e.templateID,e,t)},e.prototype.getDocumentsTemplatesIDLabels=function(e,t){return this.base.request("GET","/api/v2/documents/templates/"+e.templateID+"/labels",e,t)},e.prototype.postDocumentsTemplatesIDLabels=function(e,t){return this.base.request("POST","/api/v2/documents/templates/"+e.templateID+"/labels",e,t,"application/json")},e.prototype.deleteDocumentsTemplatesIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/documents/templates/"+e.templateID+"/labels/"+e.labelID,e,t)},e}(),b=function(){function e(e){this.base=new s(e)}return e.prototype.getFlags=function(e,t){return this.base.request("GET","/api/v2/flags",e,t)},e}(),l=function(){function e(e){this.base=new s(e)}return e.prototype.getHealth=function(e,t){return this.base.request("GET","/health",e,t)},e}(),D=function(){function e(e){this.base=new s(e)}return e.prototype.getLabels=function(e,t){return this.base.request("GET","/api/v2/labels"+this.base.queryString(e,["orgID"]),e,t)},e.prototype.postLabels=function(e,t){return this.base.request("POST","/api/v2/labels",e,t,"application/json")},e.prototype.getLabelsID=function(e,t){return this.base.request("GET","/api/v2/labels/"+e.labelID,e,t)},e.prototype.patchLabelsID=function(e,t){return this.base.request("PATCH","/api/v2/labels/"+e.labelID,e,t,"application/json")},e.prototype.deleteLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/labels/"+e.labelID,e,t)},e}(),h=function(){function e(e){this.base=new s(e)}return e.prototype.getMe=function(e,t){return this.base.request("GET","/api/v2/me",e,t)},e.prototype.putMePassword=function(e,t){return this.base.request("PUT","/api/v2/me/password",e,t,"application/json")},e}(),I=function(){function e(e){this.base=new s(e)}return e.prototype.getNotificationEndpoints=function(e,t){return this.base.request("GET","/api/v2/notificationEndpoints"+this.base.queryString(e,["offset","limit","orgID"]),e,t)},e.prototype.createNotificationEndpoint=function(e,t){return this.base.request("POST","/api/v2/notificationEndpoints",e,t,"application/json")},e.prototype.getNotificationEndpointsID=function(e,t){return this.base.request("GET","/api/v2/notificationEndpoints/"+e.endpointID,e,t)},e.prototype.putNotificationEndpointsID=function(e,t){return this.base.request("PUT","/api/v2/notificationEndpoints/"+e.endpointID,e,t,"application/json")},e.prototype.patchNotificationEndpointsID=function(e,t){return this.base.request("PATCH","/api/v2/notificationEndpoints/"+e.endpointID,e,t,"application/json")},e.prototype.deleteNotificationEndpointsID=function(e,t){return this.base.request("DELETE","/api/v2/notificationEndpoints/"+e.endpointID,e,t)},e.prototype.getNotificationEndpointsIDLabels=function(e,t){return this.base.request("GET","/api/v2/notificationEndpoints/"+e.endpointID+"/labels",e,t)},e.prototype.postNotificationEndpointIDLabels=function(e,t){return this.base.request("POST","/api/v2/notificationEndpoints/"+e.endpointID+"/labels",e,t,"application/json")},e.prototype.deleteNotificationEndpointsIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/notificationEndpoints/"+e.endpointID+"/labels/"+e.labelID,e,t)},e}(),f=function(){function e(e){this.base=new s(e)}return e.prototype.getNotificationRules=function(e,t){return this.base.request("GET","/api/v2/notificationRules"+this.base.queryString(e,["offset","limit","orgID","checkID","tag"]),e,t)},e.prototype.createNotificationRule=function(e,t){return this.base.request("POST","/api/v2/notificationRules",e,t,"application/json")},e.prototype.getNotificationRulesID=function(e,t){return this.base.request("GET","/api/v2/notificationRules/"+e.ruleID,e,t)},e.prototype.putNotificationRulesID=function(e,t){return this.base.request("PUT","/api/v2/notificationRules/"+e.ruleID,e,t,"application/json")},e.prototype.patchNotificationRulesID=function(e,t){return this.base.request("PATCH","/api/v2/notificationRules/"+e.ruleID,e,t,"application/json")},e.prototype.deleteNotificationRulesID=function(e,t){return this.base.request("DELETE","/api/v2/notificationRules/"+e.ruleID,e,t)},e.prototype.getNotificationRulesIDLabels=function(e,t){return this.base.request("GET","/api/v2/notificationRules/"+e.ruleID+"/labels",e,t)},e.prototype.postNotificationRuleIDLabels=function(e,t){return this.base.request("POST","/api/v2/notificationRules/"+e.ruleID+"/labels",e,t,"application/json")},e.prototype.deleteNotificationRulesIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/notificationRules/"+e.ruleID+"/labels/"+e.labelID,e,t)},e.prototype.getNotificationRulesIDQuery=function(e,t){return this.base.request("GET","/api/v2/notificationRules/"+e.ruleID+"/query",e,t)},e}(),T=function(){function e(e){this.base=new s(e)}return e.prototype.getOrgs=function(e,t){return this.base.request("GET","/api/v2/orgs"+this.base.queryString(e,["org","orgID","userID"]),e,t)},e.prototype.postOrgs=function(e,t){return this.base.request("POST","/api/v2/orgs",e,t,"application/json")},e.prototype.getOrgsID=function(e,t){return this.base.request("GET","/api/v2/orgs/"+e.orgID,e,t)},e.prototype.patchOrgsID=function(e,t){return this.base.request("PATCH","/api/v2/orgs/"+e.orgID,e,t,"application/json")},e.prototype.deleteOrgsID=function(e,t){return this.base.request("DELETE","/api/v2/orgs/"+e.orgID,e,t)},e.prototype.getOrgsIDSecrets=function(e,t){return this.base.request("GET","/api/v2/orgs/"+e.orgID+"/secrets",e,t)},e.prototype.patchOrgsIDSecrets=function(e,t){return this.base.request("PATCH","/api/v2/orgs/"+e.orgID+"/secrets",e,t,"application/json")},e.prototype.postOrgsIDSecrets=function(e,t){return this.base.request("POST","/api/v2/orgs/"+e.orgID+"/secrets/delete",e,t,"application/json")},e.prototype.getOrgsIDMembers=function(e,t){return this.base.request("GET","/api/v2/orgs/"+e.orgID+"/members",e,t)},e.prototype.postOrgsIDMembers=function(e,t){return this.base.request("POST","/api/v2/orgs/"+e.orgID+"/members",e,t,"application/json")},e.prototype.deleteOrgsIDMembersID=function(e,t){return this.base.request("DELETE","/api/v2/orgs/"+e.orgID+"/members/"+e.userID,e,t)},e.prototype.getOrgsIDOwners=function(e,t){return this.base.request("GET","/api/v2/orgs/"+e.orgID+"/owners",e,t)},e.prototype.postOrgsIDOwners=function(e,t){return this.base.request("POST","/api/v2/orgs/"+e.orgID+"/owners",e,t,"application/json")},e}(),y=function(){function e(e){this.base=new s(e)}return e.prototype.postQueryAst=function(e,t){return this.base.request("POST","/api/v2/query/ast",e,t,"application/json")},e.prototype.getQuerySuggestions=function(e,t){return this.base.request("GET","/api/v2/query/suggestions",e,t)},e.prototype.getQuerySuggestionsName=function(e,t){return this.base.request("GET","/api/v2/query/suggestions/"+e.name,e,t)},e.prototype.postQueryAnalyze=function(e,t){return this.base.request("POST","/api/v2/query/analyze",e,t,"application/json")},e.prototype.postQuery=function(e,t){return this.base.request("POST","/api/v2/query"+this.base.queryString(e,["org","orgID"]),e,t,"application/json")},e}(),g=function(){function e(e){this.base=new s(e)}return e.prototype.getReady=function(e,t){return this.base.request("GET","/ready",e,t)},e}(),q=function(){function e(e){this.base=new s(e)}return e.prototype.getScrapers=function(e,t){return this.base.request("GET","/api/v2/scrapers"+this.base.queryString(e,["name","id","orgID","org"]),e,t)},e.prototype.postScrapers=function(e,t){return this.base.request("POST","/api/v2/scrapers",e,t,"application/json")},e.prototype.getScrapersID=function(e,t){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID,e,t)},e.prototype.patchScrapersID=function(e,t){return this.base.request("PATCH","/api/v2/scrapers/"+e.scraperTargetID,e,t,"application/json")},e.prototype.deleteScrapersID=function(e,t){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID,e,t)},e.prototype.getScrapersIDLabels=function(e,t){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID+"/labels",e,t)},e.prototype.postScrapersIDLabels=function(e,t){return this.base.request("POST","/api/v2/scrapers/"+e.scraperTargetID+"/labels",e,t,"application/json")},e.prototype.patchScrapersIDLabelsID=function(e,t){return this.base.request("PATCH","/api/v2/scrapers/"+e.scraperTargetID+"/labels/"+e.labelID,e,t,"application/json")},e.prototype.deleteScrapersIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID+"/labels/"+e.labelID,e,t)},e.prototype.getScrapersIDMembers=function(e,t){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID+"/members",e,t)},e.prototype.postScrapersIDMembers=function(e,t){return this.base.request("POST","/api/v2/scrapers/"+e.scraperTargetID+"/members",e,t,"application/json")},e.prototype.deleteScrapersIDMembersID=function(e,t){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID+"/members/"+e.userID,e,t)},e.prototype.getScrapersIDOwners=function(e,t){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID+"/owners",e,t)},e.prototype.postScrapersIDOwners=function(e,t){return this.base.request("POST","/api/v2/scrapers/"+e.scraperTargetID+"/owners",e,t,"application/json")},e.prototype.deleteScrapersIDOwnersID=function(e,t){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID+"/owners/"+e.userID,e,t)},e}(),v=function(){function e(e){this.base=new s(e)}return e.prototype.getSetup=function(e,t){return this.base.request("GET","/api/v2/setup",e,t)},e.prototype.postSetup=function(e,t){return this.base.request("POST","/api/v2/setup",e,t,"application/json")},e.prototype.postSetupUser=function(e,t){return this.base.request("POST","/api/v2/setup/user",e,t,"application/json")},e}(),E=function(){function e(e){this.base=new s(e)}return e.prototype.postSignin=function(e,t){return this.base.request("POST","/api/v2/signin",e,t)},e}(),d=function(){function e(e){this.base=new s(e)}return e.prototype.postSignout=function(e,t){return this.base.request("POST","/api/v2/signout",e,t)},e}(),k=function(){function e(e){this.base=new s(e)}return e.prototype.getSources=function(e,t){return this.base.request("GET","/api/v2/sources"+this.base.queryString(e,["org"]),e,t)},e.prototype.postSources=function(e,t){return this.base.request("POST","/api/v2/sources",e,t,"application/json")},e.prototype.getSourcesID=function(e,t){return this.base.request("GET","/api/v2/sources/"+e.sourceID,e,t)},e.prototype.patchSourcesID=function(e,t){return this.base.request("PATCH","/api/v2/sources/"+e.sourceID,e,t,"application/json")},e.prototype.deleteSourcesID=function(e,t){return this.base.request("DELETE","/api/v2/sources/"+e.sourceID,e,t)},e.prototype.getSourcesIDHealth=function(e,t){return this.base.request("GET","/api/v2/sources/"+e.sourceID+"/health",e,t)},e.prototype.getSourcesIDBuckets=function(e,t){return this.base.request("GET","/api/v2/sources/"+e.sourceID+"/buckets"+this.base.queryString(e,["org"]),e,t)},e}(),S=function(){function e(e){this.base=new s(e)}return e.prototype.listStacks=function(e,t){return this.base.request("GET","/api/v2/stacks"+this.base.queryString(e,["orgID","name","stackID"]),e,t)},e.prototype.createStack=function(e,t){return this.base.request("POST","/api/v2/stacks",e,t,"application/json")},e.prototype.readStack=function(e,t){return this.base.request("GET","/api/v2/stacks/"+e.stack_id,e,t)},e.prototype.updateStack=function(e,t){return this.base.request("PATCH","/api/v2/stacks/"+e.stack_id,e,t,"application/json")},e.prototype.deleteStack=function(e,t){return this.base.request("DELETE","/api/v2/stacks/"+e.stack_id+this.base.queryString(e,["orgID"]),e,t)},e.prototype.uninstallStack=function(e,t){return this.base.request("POST","/api/v2/stacks/"+e.stack_id+"/uninstall",e,t)},e}(),P=function(){function e(e){this.base=new s(e)}return e.prototype.getTasks=function(e,t){return this.base.request("GET","/api/v2/tasks"+this.base.queryString(e,["name","after","user","org","orgID","status","limit"]),e,t)},e.prototype.postTasks=function(e,t){return this.base.request("POST","/api/v2/tasks",e,t,"application/json")},e.prototype.getTasksID=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID,e,t)},e.prototype.patchTasksID=function(e,t){return this.base.request("PATCH","/api/v2/tasks/"+e.taskID,e,t,"application/json")},e.prototype.deleteTasksID=function(e,t){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID,e,t)},e.prototype.getTasksIDRuns=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/runs"+this.base.queryString(e,["after","limit","afterTime","beforeTime"]),e,t)},e.prototype.postTasksIDRuns=function(e,t){return this.base.request("POST","/api/v2/tasks/"+e.taskID+"/runs",e,t,"application/json")},e.prototype.getTasksIDRunsID=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/runs/"+e.runID,e,t)},e.prototype.deleteTasksIDRunsID=function(e,t){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID+"/runs/"+e.runID,e,t)},e.prototype.postTasksIDRunsIDRetry=function(e,t){return this.base.request("POST","/api/v2/tasks/"+e.taskID+"/runs/"+e.runID+"/retry",e,t)},e.prototype.getTasksIDLogs=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/logs",e,t)},e.prototype.getTasksIDRunsIDLogs=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/runs/"+e.runID+"/logs",e,t)},e.prototype.getTasksIDLabels=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/labels",e,t)},e.prototype.postTasksIDLabels=function(e,t){return this.base.request("POST","/api/v2/tasks/"+e.taskID+"/labels",e,t,"application/json")},e.prototype.deleteTasksIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID+"/labels/"+e.labelID,e,t)},e.prototype.getTasksIDMembers=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/members",e,t)},e.prototype.postTasksIDMembers=function(e,t){return this.base.request("POST","/api/v2/tasks/"+e.taskID+"/members",e,t,"application/json")},e.prototype.deleteTasksIDMembersID=function(e,t){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID+"/members/"+e.userID,e,t)},e.prototype.getTasksIDOwners=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/owners",e,t)},e.prototype.postTasksIDOwners=function(e,t){return this.base.request("POST","/api/v2/tasks/"+e.taskID+"/owners",e,t,"application/json")},e.prototype.deleteTasksIDOwnersID=function(e,t){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID+"/owners/"+e.userID,e,t)},e}(),m=function(){function e(e){this.base=new s(e)}return e.prototype.getTelegrafPlugins=function(e,t){return this.base.request("GET","/api/v2/telegraf/plugins"+this.base.queryString(e,["type"]),e,t)},e}(),O=function(){function e(e){this.base=new s(e)}return e.prototype.getTelegrafs=function(e,t){return this.base.request("GET","/api/v2/telegrafs"+this.base.queryString(e,["orgID"]),e,t)},e.prototype.postTelegrafs=function(e,t){return this.base.request("POST","/api/v2/telegrafs",e,t,"application/json")},e.prototype.getTelegrafsID=function(e,t){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID,e,t)},e.prototype.putTelegrafsID=function(e,t){return this.base.request("PUT","/api/v2/telegrafs/"+e.telegrafID,e,t,"application/json")},e.prototype.deleteTelegrafsID=function(e,t){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID,e,t)},e.prototype.getTelegrafsIDLabels=function(e,t){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID+"/labels",e,t)},e.prototype.postTelegrafsIDLabels=function(e,t){return this.base.request("POST","/api/v2/telegrafs/"+e.telegrafID+"/labels",e,t,"application/json")},e.prototype.deleteTelegrafsIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID+"/labels/"+e.labelID,e,t)},e.prototype.getTelegrafsIDMembers=function(e,t){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID+"/members",e,t)},e.prototype.postTelegrafsIDMembers=function(e,t){return this.base.request("POST","/api/v2/telegrafs/"+e.telegrafID+"/members",e,t,"application/json")},e.prototype.deleteTelegrafsIDMembersID=function(e,t){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID+"/members/"+e.userID,e,t)},e.prototype.getTelegrafsIDOwners=function(e,t){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID+"/owners",e,t)},e.prototype.postTelegrafsIDOwners=function(e,t){return this.base.request("POST","/api/v2/telegrafs/"+e.telegrafID+"/owners",e,t,"application/json")},e.prototype.deleteTelegrafsIDOwnersID=function(e,t){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID+"/owners/"+e.userID,e,t)},e}(),j=function(){function e(e){this.base=new s(e)}return e.prototype.applyTemplate=function(e,t){return this.base.request("POST","/api/v2/templates/apply",e,t,"application/json")},e.prototype.exportTemplate=function(e,t){return this.base.request("POST","/api/v2/templates/export",e,t,"application/json")},e}(),w=function(){function e(e){this.base=new s(e)}return e.prototype.getUsers=function(e,t){return this.base.request("GET","/api/v2/users",e,t)},e.prototype.postUsers=function(e,t){return this.base.request("POST","/api/v2/users",e,t,"application/json")},e.prototype.getUsersID=function(e,t){return this.base.request("GET","/api/v2/users/"+e.userID,e,t)},e.prototype.patchUsersID=function(e,t){return this.base.request("PATCH","/api/v2/users/"+e.userID,e,t,"application/json")},e.prototype.deleteUsersID=function(e,t){return this.base.request("DELETE","/api/v2/users/"+e.userID,e,t)},e.prototype.postUsersIDPassword=function(e,t){return this.base.request("POST","/api/v2/users/"+e.userID+"/password",e,t,"application/json")},e}(),L=function(){function e(e){this.base=new s(e)}return e.prototype.getVariables=function(e,t){return this.base.request("GET","/api/v2/variables"+this.base.queryString(e,["org","orgID"]),e,t)},e.prototype.postVariables=function(e,t){return this.base.request("POST","/api/v2/variables",e,t,"application/json")},e.prototype.getVariablesID=function(e,t){return this.base.request("GET","/api/v2/variables/"+e.variableID,e,t)},e.prototype.putVariablesID=function(e,t){return this.base.request("PUT","/api/v2/variables/"+e.variableID,e,t,"application/json")},e.prototype.patchVariablesID=function(e,t){return this.base.request("PATCH","/api/v2/variables/"+e.variableID,e,t,"application/json")},e.prototype.deleteVariablesID=function(e,t){return this.base.request("DELETE","/api/v2/variables/"+e.variableID,e,t)},e.prototype.getVariablesIDLabels=function(e,t){return this.base.request("GET","/api/v2/variables/"+e.variableID+"/labels",e,t)},e.prototype.postVariablesIDLabels=function(e,t){return this.base.request("POST","/api/v2/variables/"+e.variableID+"/labels",e,t,"application/json")},e.prototype.deleteVariablesIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/variables/"+e.variableID+"/labels/"+e.labelID,e,t)},e}(),G=function(){function e(e){this.base=new s(e)}return e.prototype.postWrite=function(e,t){return this.base.request("POST","/api/v2/write"+this.base.queryString(e,["org","orgID","bucket","precision"]),e,t,"text/plain")},e}();return e.AuthorizationsAPI=o,e.BucketsAPI=n,e.ChecksAPI=a,e.DashboardsAPI=i,e.DbrpsAPI=p,e.DeleteAPI=u,e.DocumentsAPI=c,e.FlagsAPI=b,e.HealthAPI=l,e.LabelsAPI=D,e.MeAPI=h,e.NotificationEndpointsAPI=I,e.NotificationRulesAPI=f,e.OrgsAPI=T,e.QueryAPI=y,e.ReadyAPI=g,e.RootAPI=r,e.ScrapersAPI=q,e.SetupAPI=v,e.SigninAPI=E,e.SignoutAPI=d,e.SourcesAPI=k,e.StacksAPI=S,e.TasksAPI=P,e.TelegrafAPI=m,e.TelegrafsAPI=O,e.TemplatesAPI=j,e.UsersAPI=w,e.VariablesAPI=L,e.WriteAPI=G,e}({}); | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var t=function(){return(t=Object.assign||function(e){for(var t,s=1,r=arguments.length;s<r;s++)for(var o in t=arguments[s])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=function(){function e(e){if(!e)throw new Error("No influxDB supplied!");if(!e.transport)throw new Error("No transport supplied!");this.transport=e.transport}return e.prototype.queryString=function(e,t){return e&&t?t.reduce((function(t,s){var r=e[s];return null!=r&&(t+=t?"&":"?",t+=encodeURIComponent(s)+"="+encodeURIComponent(String(r))),t}),""):""},e.prototype.request=function(e,s,r,o,n){void 0===r&&(r={});var a=t(t({},o),{method:e});if(n&&((a.headers||(a.headers={}))["content-type"]=n),r.auth){var i=r.auth.user+":"+r.auth.password;(a.headers||(a.headers={})).authorization=btoa(i)}return this.transport.request(s,r.body?r.body:"",a)},e}(),r=function(){function e(e){this.base=new s(e)}return e.prototype.getRoutes=function(e,t){return this.base.request("GET","/api/v2/",e,t)},e}(),o=function(){function e(e){this.base=new s(e)}return e.prototype.getAuthorizations=function(e,t){return this.base.request("GET","/api/v2/authorizations"+this.base.queryString(e,["userID","user","orgID","org"]),e,t)},e.prototype.postAuthorizations=function(e,t){return this.base.request("POST","/api/v2/authorizations",e,t,"application/json")},e.prototype.getAuthorizationsID=function(e,t){return this.base.request("GET","/api/v2/authorizations/"+e.authID,e,t)},e.prototype.patchAuthorizationsID=function(e,t){return this.base.request("PATCH","/api/v2/authorizations/"+e.authID,e,t,"application/json")},e.prototype.deleteAuthorizationsID=function(e,t){return this.base.request("DELETE","/api/v2/authorizations/"+e.authID,e,t)},e}(),n=function(){function e(e){this.base=new s(e)}return e.prototype.getBuckets=function(e,t){return this.base.request("GET","/api/v2/buckets"+this.base.queryString(e,["offset","limit","org","orgID","name"]),e,t)},e.prototype.postBuckets=function(e,t){return this.base.request("POST","/api/v2/buckets",e,t,"application/json")},e.prototype.getBucketsID=function(e,t){return this.base.request("GET","/api/v2/buckets/"+e.bucketID,e,t)},e.prototype.patchBucketsID=function(e,t){return this.base.request("PATCH","/api/v2/buckets/"+e.bucketID,e,t,"application/json")},e.prototype.deleteBucketsID=function(e,t){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID,e,t)},e.prototype.getBucketsIDLabels=function(e,t){return this.base.request("GET","/api/v2/buckets/"+e.bucketID+"/labels",e,t)},e.prototype.postBucketsIDLabels=function(e,t){return this.base.request("POST","/api/v2/buckets/"+e.bucketID+"/labels",e,t,"application/json")},e.prototype.deleteBucketsIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID+"/labels/"+e.labelID,e,t)},e.prototype.getBucketsIDMembers=function(e,t){return this.base.request("GET","/api/v2/buckets/"+e.bucketID+"/members",e,t)},e.prototype.postBucketsIDMembers=function(e,t){return this.base.request("POST","/api/v2/buckets/"+e.bucketID+"/members",e,t,"application/json")},e.prototype.deleteBucketsIDMembersID=function(e,t){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID+"/members/"+e.userID,e,t)},e.prototype.getBucketsIDOwners=function(e,t){return this.base.request("GET","/api/v2/buckets/"+e.bucketID+"/owners",e,t)},e.prototype.postBucketsIDOwners=function(e,t){return this.base.request("POST","/api/v2/buckets/"+e.bucketID+"/owners",e,t,"application/json")},e.prototype.deleteBucketsIDOwnersID=function(e,t){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID+"/owners/"+e.userID,e,t)},e}(),a=function(){function e(e){this.base=new s(e)}return e.prototype.getChecks=function(e,t){return this.base.request("GET","/api/v2/checks"+this.base.queryString(e,["offset","limit","orgID"]),e,t)},e.prototype.createCheck=function(e,t){return this.base.request("POST","/api/v2/checks",e,t,"application/json")},e.prototype.getChecksID=function(e,t){return this.base.request("GET","/api/v2/checks/"+e.checkID,e,t)},e.prototype.putChecksID=function(e,t){return this.base.request("PUT","/api/v2/checks/"+e.checkID,e,t,"application/json")},e.prototype.patchChecksID=function(e,t){return this.base.request("PATCH","/api/v2/checks/"+e.checkID,e,t,"application/json")},e.prototype.deleteChecksID=function(e,t){return this.base.request("DELETE","/api/v2/checks/"+e.checkID,e,t)},e.prototype.getChecksIDLabels=function(e,t){return this.base.request("GET","/api/v2/checks/"+e.checkID+"/labels",e,t)},e.prototype.postChecksIDLabels=function(e,t){return this.base.request("POST","/api/v2/checks/"+e.checkID+"/labels",e,t,"application/json")},e.prototype.deleteChecksIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/checks/"+e.checkID+"/labels/"+e.labelID,e,t)},e.prototype.getChecksIDQuery=function(e,t){return this.base.request("GET","/api/v2/checks/"+e.checkID+"/query",e,t)},e}(),i=function(){function e(e){this.base=new s(e)}return e.prototype.getDashboards=function(e,t){return this.base.request("GET","/api/v2/dashboards"+this.base.queryString(e,["owner","sortBy","id","orgID","org"]),e,t)},e.prototype.postDashboards=function(e,t){return this.base.request("POST","/api/v2/dashboards",e,t,"application/json")},e.prototype.getDashboardsID=function(e,t){return this.base.request("GET","/api/v2/dashboards/"+e.dashboardID+this.base.queryString(e,["include"]),e,t)},e.prototype.patchDashboardsID=function(e,t){return this.base.request("PATCH","/api/v2/dashboards/"+e.dashboardID,e,t,"application/json")},e.prototype.deleteDashboardsID=function(e,t){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID,e,t)},e.prototype.postDashboardsIDCells=function(e,t){return this.base.request("POST","/api/v2/dashboards/"+e.dashboardID+"/cells",e,t,"application/json")},e.prototype.putDashboardsIDCells=function(e,t){return this.base.request("PUT","/api/v2/dashboards/"+e.dashboardID+"/cells",e,t,"application/json")},e.prototype.patchDashboardsIDCellsID=function(e,t){return this.base.request("PATCH","/api/v2/dashboards/"+e.dashboardID+"/cells/"+e.cellID,e,t,"application/json")},e.prototype.deleteDashboardsIDCellsID=function(e,t){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID+"/cells/"+e.cellID,e,t)},e.prototype.getDashboardsIDCellsIDView=function(e,t){return this.base.request("GET","/api/v2/dashboards/"+e.dashboardID+"/cells/"+e.cellID+"/view",e,t)},e.prototype.patchDashboardsIDCellsIDView=function(e,t){return this.base.request("PATCH","/api/v2/dashboards/"+e.dashboardID+"/cells/"+e.cellID+"/view",e,t,"application/json")},e.prototype.getDashboardsIDLabels=function(e,t){return this.base.request("GET","/api/v2/dashboards/"+e.dashboardID+"/labels",e,t)},e.prototype.postDashboardsIDLabels=function(e,t){return this.base.request("POST","/api/v2/dashboards/"+e.dashboardID+"/labels",e,t,"application/json")},e.prototype.deleteDashboardsIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID+"/labels/"+e.labelID,e,t)},e.prototype.getDashboardsIDMembers=function(e,t){return this.base.request("GET","/api/v2/dashboards/"+e.dashboardID+"/members",e,t)},e.prototype.postDashboardsIDMembers=function(e,t){return this.base.request("POST","/api/v2/dashboards/"+e.dashboardID+"/members",e,t,"application/json")},e.prototype.deleteDashboardsIDMembersID=function(e,t){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID+"/members/"+e.userID,e,t)},e.prototype.getDashboardsIDOwners=function(e,t){return this.base.request("GET","/api/v2/dashboards/"+e.dashboardID+"/owners",e,t)},e.prototype.postDashboardsIDOwners=function(e,t){return this.base.request("POST","/api/v2/dashboards/"+e.dashboardID+"/owners",e,t,"application/json")},e.prototype.deleteDashboardsIDOwnersID=function(e,t){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID+"/owners/"+e.userID,e,t)},e}(),p=function(){function e(e){this.base=new s(e)}return e.prototype.getDBRPs=function(e,t){return this.base.request("GET","/api/v2/dbrps"+this.base.queryString(e,["orgID","id","bucketID","default","db","rp"]),e,t)},e.prototype.postDBRP=function(e,t){return this.base.request("POST","/api/v2/dbrps",e,t,"application/json")},e.prototype.getDBRPsID=function(e,t){return this.base.request("GET","/api/v2/dbrps/"+e.dbrpID+this.base.queryString(e,["orgID"]),e,t)},e.prototype.patchDBRPID=function(e,t){return this.base.request("PATCH","/api/v2/dbrps/"+e.dbrpID+this.base.queryString(e,["orgID"]),e,t,"application/json")},e.prototype.deleteDBRPID=function(e,t){return this.base.request("DELETE","/api/v2/dbrps/"+e.dbrpID+this.base.queryString(e,["orgID"]),e,t)},e}(),u=function(){function e(e){this.base=new s(e)}return e.prototype.postDelete=function(e,t){return this.base.request("POST","/api/v2/delete"+this.base.queryString(e,["org","bucket","orgID","bucketID"]),e,t,"application/json")},e}(),c=function(){function e(e){this.base=new s(e)}return e.prototype.getDocumentsTemplates=function(e,t){return this.base.request("GET","/api/v2/documents/templates"+this.base.queryString(e,["org","orgID"]),e,t)},e.prototype.postDocumentsTemplates=function(e,t){return this.base.request("POST","/api/v2/documents/templates",e,t,"application/json")},e.prototype.getDocumentsTemplatesID=function(e,t){return this.base.request("GET","/api/v2/documents/templates/"+e.templateID,e,t)},e.prototype.putDocumentsTemplatesID=function(e,t){return this.base.request("PUT","/api/v2/documents/templates/"+e.templateID,e,t,"application/json")},e.prototype.deleteDocumentsTemplatesID=function(e,t){return this.base.request("DELETE","/api/v2/documents/templates/"+e.templateID,e,t)},e.prototype.getDocumentsTemplatesIDLabels=function(e,t){return this.base.request("GET","/api/v2/documents/templates/"+e.templateID+"/labels",e,t)},e.prototype.postDocumentsTemplatesIDLabels=function(e,t){return this.base.request("POST","/api/v2/documents/templates/"+e.templateID+"/labels",e,t,"application/json")},e.prototype.deleteDocumentsTemplatesIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/documents/templates/"+e.templateID+"/labels/"+e.labelID,e,t)},e}(),b=function(){function e(e){this.base=new s(e)}return e.prototype.getFlags=function(e,t){return this.base.request("GET","/api/v2/flags",e,t)},e}(),l=function(){function e(e){this.base=new s(e)}return e.prototype.getHealth=function(e,t){return this.base.request("GET","/health",e,t)},e}(),D=function(){function e(e){this.base=new s(e)}return e.prototype.getLabels=function(e,t){return this.base.request("GET","/api/v2/labels"+this.base.queryString(e,["orgID"]),e,t)},e.prototype.postLabels=function(e,t){return this.base.request("POST","/api/v2/labels",e,t,"application/json")},e.prototype.getLabelsID=function(e,t){return this.base.request("GET","/api/v2/labels/"+e.labelID,e,t)},e.prototype.patchLabelsID=function(e,t){return this.base.request("PATCH","/api/v2/labels/"+e.labelID,e,t,"application/json")},e.prototype.deleteLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/labels/"+e.labelID,e,t)},e}(),h=function(){function e(e){this.base=new s(e)}return e.prototype.getMe=function(e,t){return this.base.request("GET","/api/v2/me",e,t)},e.prototype.putMePassword=function(e,t){return this.base.request("PUT","/api/v2/me/password",e,t,"application/json")},e}(),I=function(){function e(e){this.base=new s(e)}return e.prototype.getNotificationEndpoints=function(e,t){return this.base.request("GET","/api/v2/notificationEndpoints"+this.base.queryString(e,["offset","limit","orgID"]),e,t)},e.prototype.createNotificationEndpoint=function(e,t){return this.base.request("POST","/api/v2/notificationEndpoints",e,t,"application/json")},e.prototype.getNotificationEndpointsID=function(e,t){return this.base.request("GET","/api/v2/notificationEndpoints/"+e.endpointID,e,t)},e.prototype.putNotificationEndpointsID=function(e,t){return this.base.request("PUT","/api/v2/notificationEndpoints/"+e.endpointID,e,t,"application/json")},e.prototype.patchNotificationEndpointsID=function(e,t){return this.base.request("PATCH","/api/v2/notificationEndpoints/"+e.endpointID,e,t,"application/json")},e.prototype.deleteNotificationEndpointsID=function(e,t){return this.base.request("DELETE","/api/v2/notificationEndpoints/"+e.endpointID,e,t)},e.prototype.getNotificationEndpointsIDLabels=function(e,t){return this.base.request("GET","/api/v2/notificationEndpoints/"+e.endpointID+"/labels",e,t)},e.prototype.postNotificationEndpointIDLabels=function(e,t){return this.base.request("POST","/api/v2/notificationEndpoints/"+e.endpointID+"/labels",e,t,"application/json")},e.prototype.deleteNotificationEndpointsIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/notificationEndpoints/"+e.endpointID+"/labels/"+e.labelID,e,t)},e}(),f=function(){function e(e){this.base=new s(e)}return e.prototype.getNotificationRules=function(e,t){return this.base.request("GET","/api/v2/notificationRules"+this.base.queryString(e,["offset","limit","orgID","checkID","tag"]),e,t)},e.prototype.createNotificationRule=function(e,t){return this.base.request("POST","/api/v2/notificationRules",e,t,"application/json")},e.prototype.getNotificationRulesID=function(e,t){return this.base.request("GET","/api/v2/notificationRules/"+e.ruleID,e,t)},e.prototype.putNotificationRulesID=function(e,t){return this.base.request("PUT","/api/v2/notificationRules/"+e.ruleID,e,t,"application/json")},e.prototype.patchNotificationRulesID=function(e,t){return this.base.request("PATCH","/api/v2/notificationRules/"+e.ruleID,e,t,"application/json")},e.prototype.deleteNotificationRulesID=function(e,t){return this.base.request("DELETE","/api/v2/notificationRules/"+e.ruleID,e,t)},e.prototype.getNotificationRulesIDLabels=function(e,t){return this.base.request("GET","/api/v2/notificationRules/"+e.ruleID+"/labels",e,t)},e.prototype.postNotificationRuleIDLabels=function(e,t){return this.base.request("POST","/api/v2/notificationRules/"+e.ruleID+"/labels",e,t,"application/json")},e.prototype.deleteNotificationRulesIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/notificationRules/"+e.ruleID+"/labels/"+e.labelID,e,t)},e.prototype.getNotificationRulesIDQuery=function(e,t){return this.base.request("GET","/api/v2/notificationRules/"+e.ruleID+"/query",e,t)},e}(),T=function(){function e(e){this.base=new s(e)}return e.prototype.getOrgs=function(e,t){return this.base.request("GET","/api/v2/orgs"+this.base.queryString(e,["org","orgID","userID"]),e,t)},e.prototype.postOrgs=function(e,t){return this.base.request("POST","/api/v2/orgs",e,t,"application/json")},e.prototype.getOrgsID=function(e,t){return this.base.request("GET","/api/v2/orgs/"+e.orgID,e,t)},e.prototype.patchOrgsID=function(e,t){return this.base.request("PATCH","/api/v2/orgs/"+e.orgID,e,t,"application/json")},e.prototype.deleteOrgsID=function(e,t){return this.base.request("DELETE","/api/v2/orgs/"+e.orgID,e,t)},e.prototype.getOrgsIDSecrets=function(e,t){return this.base.request("GET","/api/v2/orgs/"+e.orgID+"/secrets",e,t)},e.prototype.patchOrgsIDSecrets=function(e,t){return this.base.request("PATCH","/api/v2/orgs/"+e.orgID+"/secrets",e,t,"application/json")},e.prototype.postOrgsIDSecrets=function(e,t){return this.base.request("POST","/api/v2/orgs/"+e.orgID+"/secrets/delete",e,t,"application/json")},e.prototype.getOrgsIDMembers=function(e,t){return this.base.request("GET","/api/v2/orgs/"+e.orgID+"/members",e,t)},e.prototype.postOrgsIDMembers=function(e,t){return this.base.request("POST","/api/v2/orgs/"+e.orgID+"/members",e,t,"application/json")},e.prototype.deleteOrgsIDMembersID=function(e,t){return this.base.request("DELETE","/api/v2/orgs/"+e.orgID+"/members/"+e.userID,e,t)},e.prototype.getOrgsIDOwners=function(e,t){return this.base.request("GET","/api/v2/orgs/"+e.orgID+"/owners",e,t)},e.prototype.postOrgsIDOwners=function(e,t){return this.base.request("POST","/api/v2/orgs/"+e.orgID+"/owners",e,t,"application/json")},e}(),y=function(){function e(e){this.base=new s(e)}return e.prototype.postQueryAst=function(e,t){return this.base.request("POST","/api/v2/query/ast",e,t,"application/json")},e.prototype.getQuerySuggestions=function(e,t){return this.base.request("GET","/api/v2/query/suggestions",e,t)},e.prototype.getQuerySuggestionsName=function(e,t){return this.base.request("GET","/api/v2/query/suggestions/"+e.name,e,t)},e.prototype.postQueryAnalyze=function(e,t){return this.base.request("POST","/api/v2/query/analyze",e,t,"application/json")},e.prototype.postQuery=function(e,t){return this.base.request("POST","/api/v2/query"+this.base.queryString(e,["org","orgID"]),e,t,"application/json")},e}(),g=function(){function e(e){this.base=new s(e)}return e.prototype.getReady=function(e,t){return this.base.request("GET","/ready",e,t)},e}(),q=function(){function e(e){this.base=new s(e)}return e.prototype.getScrapers=function(e,t){return this.base.request("GET","/api/v2/scrapers"+this.base.queryString(e,["name","id","orgID","org"]),e,t)},e.prototype.postScrapers=function(e,t){return this.base.request("POST","/api/v2/scrapers",e,t,"application/json")},e.prototype.getScrapersID=function(e,t){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID,e,t)},e.prototype.patchScrapersID=function(e,t){return this.base.request("PATCH","/api/v2/scrapers/"+e.scraperTargetID,e,t,"application/json")},e.prototype.deleteScrapersID=function(e,t){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID,e,t)},e.prototype.getScrapersIDLabels=function(e,t){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID+"/labels",e,t)},e.prototype.postScrapersIDLabels=function(e,t){return this.base.request("POST","/api/v2/scrapers/"+e.scraperTargetID+"/labels",e,t,"application/json")},e.prototype.patchScrapersIDLabelsID=function(e,t){return this.base.request("PATCH","/api/v2/scrapers/"+e.scraperTargetID+"/labels/"+e.labelID,e,t,"application/json")},e.prototype.deleteScrapersIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID+"/labels/"+e.labelID,e,t)},e.prototype.getScrapersIDMembers=function(e,t){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID+"/members",e,t)},e.prototype.postScrapersIDMembers=function(e,t){return this.base.request("POST","/api/v2/scrapers/"+e.scraperTargetID+"/members",e,t,"application/json")},e.prototype.deleteScrapersIDMembersID=function(e,t){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID+"/members/"+e.userID,e,t)},e.prototype.getScrapersIDOwners=function(e,t){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID+"/owners",e,t)},e.prototype.postScrapersIDOwners=function(e,t){return this.base.request("POST","/api/v2/scrapers/"+e.scraperTargetID+"/owners",e,t,"application/json")},e.prototype.deleteScrapersIDOwnersID=function(e,t){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID+"/owners/"+e.userID,e,t)},e}(),v=function(){function e(e){this.base=new s(e)}return e.prototype.getSetup=function(e,t){return this.base.request("GET","/api/v2/setup",e,t)},e.prototype.postSetup=function(e,t){return this.base.request("POST","/api/v2/setup",e,t,"application/json")},e.prototype.postSetupUser=function(e,t){return this.base.request("POST","/api/v2/setup/user",e,t,"application/json")},e}(),E=function(){function e(e){this.base=new s(e)}return e.prototype.postSignin=function(e,t){return this.base.request("POST","/api/v2/signin",e,t)},e}(),d=function(){function e(e){this.base=new s(e)}return e.prototype.postSignout=function(e,t){return this.base.request("POST","/api/v2/signout",e,t)},e}(),k=function(){function e(e){this.base=new s(e)}return e.prototype.getSources=function(e,t){return this.base.request("GET","/api/v2/sources"+this.base.queryString(e,["org"]),e,t)},e.prototype.postSources=function(e,t){return this.base.request("POST","/api/v2/sources",e,t,"application/json")},e.prototype.getSourcesID=function(e,t){return this.base.request("GET","/api/v2/sources/"+e.sourceID,e,t)},e.prototype.patchSourcesID=function(e,t){return this.base.request("PATCH","/api/v2/sources/"+e.sourceID,e,t,"application/json")},e.prototype.deleteSourcesID=function(e,t){return this.base.request("DELETE","/api/v2/sources/"+e.sourceID,e,t)},e.prototype.getSourcesIDHealth=function(e,t){return this.base.request("GET","/api/v2/sources/"+e.sourceID+"/health",e,t)},e.prototype.getSourcesIDBuckets=function(e,t){return this.base.request("GET","/api/v2/sources/"+e.sourceID+"/buckets"+this.base.queryString(e,["org"]),e,t)},e}(),S=function(){function e(e){this.base=new s(e)}return e.prototype.listStacks=function(e,t){return this.base.request("GET","/api/v2/stacks"+this.base.queryString(e,["orgID","name","stackID"]),e,t)},e.prototype.createStack=function(e,t){return this.base.request("POST","/api/v2/stacks",e,t,"application/json")},e.prototype.readStack=function(e,t){return this.base.request("GET","/api/v2/stacks/"+e.stack_id,e,t)},e.prototype.updateStack=function(e,t){return this.base.request("PATCH","/api/v2/stacks/"+e.stack_id,e,t,"application/json")},e.prototype.deleteStack=function(e,t){return this.base.request("DELETE","/api/v2/stacks/"+e.stack_id+this.base.queryString(e,["orgID"]),e,t)},e.prototype.uninstallStack=function(e,t){return this.base.request("POST","/api/v2/stacks/"+e.stack_id+"/uninstall",e,t)},e}(),P=function(){function e(e){this.base=new s(e)}return e.prototype.getTasks=function(e,t){return this.base.request("GET","/api/v2/tasks"+this.base.queryString(e,["name","after","user","org","orgID","status","limit"]),e,t)},e.prototype.postTasks=function(e,t){return this.base.request("POST","/api/v2/tasks",e,t,"application/json")},e.prototype.getTasksID=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID,e,t)},e.prototype.patchTasksID=function(e,t){return this.base.request("PATCH","/api/v2/tasks/"+e.taskID,e,t,"application/json")},e.prototype.deleteTasksID=function(e,t){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID,e,t)},e.prototype.getTasksIDRuns=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/runs"+this.base.queryString(e,["after","limit","afterTime","beforeTime"]),e,t)},e.prototype.postTasksIDRuns=function(e,t){return this.base.request("POST","/api/v2/tasks/"+e.taskID+"/runs",e,t,"application/json")},e.prototype.getTasksIDRunsID=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/runs/"+e.runID,e,t)},e.prototype.deleteTasksIDRunsID=function(e,t){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID+"/runs/"+e.runID,e,t)},e.prototype.postTasksIDRunsIDRetry=function(e,t){return this.base.request("POST","/api/v2/tasks/"+e.taskID+"/runs/"+e.runID+"/retry",e,t)},e.prototype.getTasksIDLogs=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/logs",e,t)},e.prototype.getTasksIDRunsIDLogs=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/runs/"+e.runID+"/logs",e,t)},e.prototype.getTasksIDLabels=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/labels",e,t)},e.prototype.postTasksIDLabels=function(e,t){return this.base.request("POST","/api/v2/tasks/"+e.taskID+"/labels",e,t,"application/json")},e.prototype.deleteTasksIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID+"/labels/"+e.labelID,e,t)},e.prototype.getTasksIDMembers=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/members",e,t)},e.prototype.postTasksIDMembers=function(e,t){return this.base.request("POST","/api/v2/tasks/"+e.taskID+"/members",e,t,"application/json")},e.prototype.deleteTasksIDMembersID=function(e,t){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID+"/members/"+e.userID,e,t)},e.prototype.getTasksIDOwners=function(e,t){return this.base.request("GET","/api/v2/tasks/"+e.taskID+"/owners",e,t)},e.prototype.postTasksIDOwners=function(e,t){return this.base.request("POST","/api/v2/tasks/"+e.taskID+"/owners",e,t,"application/json")},e.prototype.deleteTasksIDOwnersID=function(e,t){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID+"/owners/"+e.userID,e,t)},e}(),m=function(){function e(e){this.base=new s(e)}return e.prototype.getTelegrafPlugins=function(e,t){return this.base.request("GET","/api/v2/telegraf/plugins"+this.base.queryString(e,["type"]),e,t)},e}(),O=function(){function e(e){this.base=new s(e)}return e.prototype.getTelegrafs=function(e,t){return this.base.request("GET","/api/v2/telegrafs"+this.base.queryString(e,["orgID"]),e,t)},e.prototype.postTelegrafs=function(e,t){return this.base.request("POST","/api/v2/telegrafs",e,t,"application/json")},e.prototype.getTelegrafsID=function(e,t){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID,e,t)},e.prototype.putTelegrafsID=function(e,t){return this.base.request("PUT","/api/v2/telegrafs/"+e.telegrafID,e,t,"application/json")},e.prototype.deleteTelegrafsID=function(e,t){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID,e,t)},e.prototype.getTelegrafsIDLabels=function(e,t){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID+"/labels",e,t)},e.prototype.postTelegrafsIDLabels=function(e,t){return this.base.request("POST","/api/v2/telegrafs/"+e.telegrafID+"/labels",e,t,"application/json")},e.prototype.deleteTelegrafsIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID+"/labels/"+e.labelID,e,t)},e.prototype.getTelegrafsIDMembers=function(e,t){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID+"/members",e,t)},e.prototype.postTelegrafsIDMembers=function(e,t){return this.base.request("POST","/api/v2/telegrafs/"+e.telegrafID+"/members",e,t,"application/json")},e.prototype.deleteTelegrafsIDMembersID=function(e,t){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID+"/members/"+e.userID,e,t)},e.prototype.getTelegrafsIDOwners=function(e,t){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID+"/owners",e,t)},e.prototype.postTelegrafsIDOwners=function(e,t){return this.base.request("POST","/api/v2/telegrafs/"+e.telegrafID+"/owners",e,t,"application/json")},e.prototype.deleteTelegrafsIDOwnersID=function(e,t){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID+"/owners/"+e.userID,e,t)},e}(),j=function(){function e(e){this.base=new s(e)}return e.prototype.applyTemplate=function(e,t){return this.base.request("POST","/api/v2/templates/apply",e,t,"application/json")},e.prototype.exportTemplate=function(e,t){return this.base.request("POST","/api/v2/templates/export",e,t,"application/json")},e}(),w=function(){function e(e){this.base=new s(e)}return e.prototype.getUsers=function(e,t){return this.base.request("GET","/api/v2/users",e,t)},e.prototype.postUsers=function(e,t){return this.base.request("POST","/api/v2/users",e,t,"application/json")},e.prototype.getUsersID=function(e,t){return this.base.request("GET","/api/v2/users/"+e.userID,e,t)},e.prototype.patchUsersID=function(e,t){return this.base.request("PATCH","/api/v2/users/"+e.userID,e,t,"application/json")},e.prototype.deleteUsersID=function(e,t){return this.base.request("DELETE","/api/v2/users/"+e.userID,e,t)},e.prototype.postUsersIDPassword=function(e,t){return this.base.request("POST","/api/v2/users/"+e.userID+"/password",e,t,"application/json")},e}(),L=function(){function e(e){this.base=new s(e)}return e.prototype.getVariables=function(e,t){return this.base.request("GET","/api/v2/variables"+this.base.queryString(e,["org","orgID"]),e,t)},e.prototype.postVariables=function(e,t){return this.base.request("POST","/api/v2/variables",e,t,"application/json")},e.prototype.getVariablesID=function(e,t){return this.base.request("GET","/api/v2/variables/"+e.variableID,e,t)},e.prototype.putVariablesID=function(e,t){return this.base.request("PUT","/api/v2/variables/"+e.variableID,e,t,"application/json")},e.prototype.patchVariablesID=function(e,t){return this.base.request("PATCH","/api/v2/variables/"+e.variableID,e,t,"application/json")},e.prototype.deleteVariablesID=function(e,t){return this.base.request("DELETE","/api/v2/variables/"+e.variableID,e,t)},e.prototype.getVariablesIDLabels=function(e,t){return this.base.request("GET","/api/v2/variables/"+e.variableID+"/labels",e,t)},e.prototype.postVariablesIDLabels=function(e,t){return this.base.request("POST","/api/v2/variables/"+e.variableID+"/labels",e,t,"application/json")},e.prototype.deleteVariablesIDLabelsID=function(e,t){return this.base.request("DELETE","/api/v2/variables/"+e.variableID+"/labels/"+e.labelID,e,t)},e}(),G=function(){function e(e){this.base=new s(e)}return e.prototype.postWrite=function(e,t){return this.base.request("POST","/api/v2/write"+this.base.queryString(e,["org","orgID","bucket","precision"]),e,t,"text/plain")},e}();return e.AuthorizationsAPI=o,e.BucketsAPI=n,e.ChecksAPI=a,e.DashboardsAPI=i,e.DbrpsAPI=p,e.DeleteAPI=u,e.DocumentsAPI=c,e.FlagsAPI=b,e.HealthAPI=l,e.LabelsAPI=D,e.MeAPI=h,e.NotificationEndpointsAPI=I,e.NotificationRulesAPI=f,e.OrgsAPI=T,e.QueryAPI=y,e.ReadyAPI=g,e.RootAPI=r,e.ScrapersAPI=q,e.SetupAPI=v,e.SigninAPI=E,e.SignoutAPI=d,e.SourcesAPI=k,e.StacksAPI=S,e.TasksAPI=P,e.TelegrafAPI=m,e.TelegrafsAPI=O,e.TemplatesAPI=j,e.UsersAPI=w,e.VariablesAPI=L,e.WriteAPI=G,e}({}); | ||
//# sourceMappingURL=influxdbApis.min.js.map |
{ | ||
"name": "@influxdata/influxdb-client-apis", | ||
"version": "1.6.0-nightly.25+ca9c742", | ||
"version": "1.6.0-nightly.27+1e7fe56", | ||
"description": "InfluxDB 2.0 generated APIs", | ||
@@ -38,3 +38,3 @@ "scripts": { | ||
"devDependencies": { | ||
"@influxdata/influxdb-client": "^1.6.0-nightly.25+ca9c742", | ||
"@influxdata/influxdb-client": "^1.6.0-nightly.27+1e7fe56", | ||
"@microsoft/api-extractor": "^7.9.2", | ||
@@ -52,10 +52,10 @@ "@typescript-eslint/eslint-plugin": "^2.9.0", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^1.27.5", | ||
"rollup": "^2.23.1", | ||
"rollup-plugin-gzip": "^2.2.0", | ||
"rollup-plugin-terser": "^5.1.2", | ||
"rollup-plugin-typescript2": "^0.25.2", | ||
"rollup-plugin-terser": "^7.0.0", | ||
"rollup-plugin-typescript2": "^0.27.2", | ||
"ts-node": "^8.5.4", | ||
"typescript": "^3.7.4" | ||
}, | ||
"gitHead": "ca9c742d035fd4ce9cfb3dad1b1016a267fe9145" | ||
"gitHead": "1e7fe5648ad8cdd2a92600d46314fe2523b91119" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
1713096
0
8267