github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/ui/src/interfaces/cockroachlabs.d.ts (about) 1 // Copyright 2018 The Cockroach Authors. 2 // 3 // Use of this software is governed by the Business Source License 4 // included in the file licenses/BSL.txt. 5 // 6 // As of the Change Date specified in that file, in accordance with 7 // the Business Source License, use of this software will be governed 8 // by the Apache License, Version 2.0, included in the file 9 // licenses/APL.txt. 10 11 /** 12 * These types are used when communicating with Cockroach Labs servers. They are 13 * based on https://github.com/cockroachlabs/registration/blob/master/db.go and 14 * the requests expected in 15 * https://github.com/cockroachlabs/registration/blob/master/http.go 16 */ 17 18 export interface Version { 19 version: string; 20 detail: string; 21 } 22 23 export interface VersionList { 24 details: Version[]; 25 } 26 27 export interface VersionStatus { 28 error: boolean; 29 message: string; 30 laterVersions: VersionList; 31 } 32 33 interface RegistrationData { 34 first_name: string; 35 last_name: string; 36 company: string; 37 email: string; 38 product_updates: boolean; 39 } 40 41 export interface VersionCheckRequest { 42 clusterID: string; 43 buildtag: string; 44 }