This is an automated email from the ASF dual-hosted git repository. ocket8888 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficcontrol-trafficops-types.git
commit 9d5094e4b042a55dc064695ecaa31e01d7f38688 Author: ocket8888 <[email protected]> AuthorDate: Wed Apr 27 20:48:53 2022 -0600 Remove built files --- dist/about.d.ts | 12 -- dist/about.js | 1 - dist/acme.d.ts | 10 -- dist/acme.js | 1 - dist/alert.d.ts | 11 -- dist/alert.js | 3 - dist/cache.group.d.ts | 85 ------------- dist/cache.group.js | 10 -- dist/cdn.d.ts | 20 --- dist/cdn.js | 1 - dist/delivery.service.d.ts | 301 -------------------------------------------- dist/delivery.service.js | 50 -------- dist/division.d.ts | 21 ---- dist/division.js | 1 - dist/index.d.ts | 51 -------- dist/index.js | 41 ------ dist/invalidation.d.ts | 19 --- dist/invalidation.js | 1 - dist/iso.d.ts | 25 ---- dist/iso.js | 1 - dist/login.d.ts | 21 ---- dist/login.js | 1 - dist/logs.d.ts | 12 -- dist/logs.js | 8 -- dist/parameter.d.ts | 16 --- dist/parameter.js | 1 - dist/physical.location.d.ts | 29 ----- dist/physical.location.js | 1 - dist/plugin.d.ts | 5 - dist/plugin.js | 1 - dist/profile.d.ts | 124 ------------------ dist/profile.js | 1 - dist/server.d.ts | 142 --------------------- dist/server.js | 74 ----------- dist/stats.d.ts | 92 -------------- dist/stats.js | 3 - dist/status.d.ts | 15 --- dist/status.js | 1 - dist/type.d.ts | 13 -- dist/type.js | 1 - dist/user.d.ts | 163 ------------------------ dist/user.js | 3 - dist/vault.d.ts | 7 -- dist/vault.js | 1 - 44 files changed, 1400 deletions(-) diff --git a/dist/about.d.ts b/dist/about.d.ts deleted file mode 100644 index 411ae82..0000000 --- a/dist/about.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export interface About { - commitHash?: string; - commits?: string; - goVersion?: string; - name?: string; - release: string; - RPMVersion?: string; - Version?: string; -} -export interface SystemInfo { - [parameter: string]: string; -} diff --git a/dist/about.js b/dist/about.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/about.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/acme.d.ts b/dist/acme.d.ts deleted file mode 100644 index 333c179..0000000 --- a/dist/acme.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export interface ACMEAccount { - email: string; - privateKey: string; - provider: string; - uri: string; -} -export interface ACMEDNSRecord { - fqdn: string; - record: string; -} diff --git a/dist/acme.js b/dist/acme.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/acme.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/alert.d.ts b/dist/alert.d.ts deleted file mode 100644 index a43808e..0000000 --- a/dist/alert.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export declare const enum AlertLevel { - ERROR = "error", - INFO = "info", - SUCCESS = "success", - WARNING = "warning" -} -export interface Alert { - level: AlertLevel; - text: string; -} -export declare function errors(as: Array<Alert>): Array<string>; diff --git a/dist/alert.js b/dist/alert.js deleted file mode 100644 index ab80f21..0000000 --- a/dist/alert.js +++ /dev/null @@ -1,3 +0,0 @@ -export function errors(as) { - return as.filter(a => a.level === "error").map(a => a.text); -} diff --git a/dist/cache.group.d.ts b/dist/cache.group.d.ts deleted file mode 100644 index 579f332..0000000 --- a/dist/cache.group.d.ts +++ /dev/null @@ -1,85 +0,0 @@ -export interface ResponseASN { - asn: number; - cachegroup: string; - cachegroupId: number; - readonly id: number; - readonly lastUpdated: Date; -} -export interface RequestASN { - asn: number; - cachegroupId: number; -} -export declare type ASN = RequestASN | ResponseASN; -export declare const enum LocalizationMethod { - CZ = "CZ", - DEEP_CZ = "DEEP_CZ", - GEO = "GEO" -} -export declare function localizationMethodToString(l: LocalizationMethod): string; -export interface RequestCacheGroup { - fallbacks?: Array<string> | null; - fallbackToClosest?: boolean | null; - latitude?: number | null; - localizationMethods?: Array<LocalizationMethod> | null; - longitude?: number | null; - name: string; - parentCacheGroupId?: number | null; - secondaryParentId?: number | null; - shortName: string; - typeId: number; -} -interface ResponseCacheGroupBase { - fallbacks: Array<string>; - fallbackToClosest: boolean; - readonly id: number; - readonly lastUpdated: Date; - latitude: number | null; - localizationMethods: Array<LocalizationMethod>; - longitude: number | null; - name: string; - shortName: string; - typeId: number; - typeName: string; -} -interface ResponseCacheGroupWithParent extends ResponseCacheGroupBase { - parentCacheGroupId: number; - parentCacheGroupName: string; -} -interface ResponseCacheGroupWithoutParent extends ResponseCacheGroupBase { - parentCacheGroupId: null; - parentCacheGroupName: null; -} -interface ResponseCacheGroupWithSecondaryParent extends ResponseCacheGroupBase { - secondaryParentId: number; - secondaryParentName: string; -} -interface ResponseCacheGroupWithoutSecondaryParent extends ResponseCacheGroupBase { - secondaryParentId: null; - secondaryParentName: null; -} -declare type ResponseCacheGroupWithParentButNotSecondary = ResponseCacheGroupWithParent & ResponseCacheGroupWithoutSecondaryParent; -declare type ResponseCacheGroupWithParentAndSecondary = ResponseCacheGroupWithParent & ResponseCacheGroupWithSecondaryParent; -declare type ResponseCacheGroupWithSecondaryButNotParent = ResponseCacheGroupWithoutParent & ResponseCacheGroupWithSecondaryParent; -declare type ResponseCacheGroupWithoutParentOrSecondary = ResponseCacheGroupWithoutParent & ResponseCacheGroupWithoutSecondaryParent; -export declare type ResponseCacheGroup = ResponseCacheGroupWithParentButNotSecondary | ResponseCacheGroupWithParentAndSecondary | ResponseCacheGroupWithSecondaryButNotParent | ResponseCacheGroupWithoutParentOrSecondary; -export declare type CacheGroup = RequestCacheGroup | ResponseCacheGroup; -export interface ResponseCacheGroupParameters { - cachegroupParameters: Array<{ - parameter: number; - readonly lastUpdated: Date; - cachegroup: string; - }>; -} -export interface RequestCacheGroupParameter { - cacheGroupId: number; - parameterId: number; -} -export interface CacheGroupDeliveryServiceAssignmentRequest { - deliveryServices: Array<number>; -} -export interface CacheGroupDeliveryServiceAssignmentResponse { - deliveryServices: Array<number>; - readonly id: number; - serverNames: Array<string>; -} -export {}; diff --git a/dist/cache.group.js b/dist/cache.group.js deleted file mode 100644 index 326ed49..0000000 --- a/dist/cache.group.js +++ /dev/null @@ -1,10 +0,0 @@ -export function localizationMethodToString(l) { - switch (l) { - case "CZ": - return "Coverage Zone File"; - case "DEEP_CZ": - return "Deep Coverage Zone File"; - case "GEO": - return "Geo-IP Database"; - } -} diff --git a/dist/cdn.d.ts b/dist/cdn.d.ts deleted file mode 100644 index a0c79f7..0000000 --- a/dist/cdn.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -export interface RequestCDN { - dnssecEnabled: boolean; - domainName: string; - name: string; -} -export interface ResponseCDN { - dnssecEnabled: boolean; - domainName: string; - readonly id: number; - readonly lastUpdated: Date; - name: string; -} -export declare type CDN = RequestCDN | ResponseCDN; -export interface CDNDomain { - domainName: string; - profileId: number; - parameterId: number; - profileName: string; - profileDescription: string; -} diff --git a/dist/cdn.js b/dist/cdn.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/cdn.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/delivery.service.d.ts b/dist/delivery.service.d.ts deleted file mode 100644 index 5d5cdd6..0000000 --- a/dist/delivery.service.d.ts +++ /dev/null @@ -1,301 +0,0 @@ -export declare const enum GeoLimit { - NONE = 0, - CZF_ONLY = 1, - CZF_AND_COUNTRY_CODES = 2 -} -export declare const enum GeoProvider { - MAX_MIND = 0, - NEUSTAR = 1 -} -export interface DeliveryServiceMatch { - pattern: string; - setNumber: number; - type: string; -} -export declare const enum Protocol { - HTTP = 0, - HTTPS = 1, - HTTP_AND_HTTPS = 2, - HTTP_TO_HTTPS = 3 -} -export declare function protocolToString(p: Protocol): string; -export declare const enum QStringHandling { - USE = 0, - IGNORE = 1, - DROP = 2 -} -export declare function qStringHandlingToString(q: QStringHandling): string; -export declare const enum RangeRequestHandling { - NONE = 0, - BACKGROUND_FETCH = 1, - CACHE_RANGE_REQUESTS = 2 -} -export declare function rangeRequestHandlingToString(r: RangeRequestHandling): string; -interface RequestDeliveryServiceBase { - active: boolean; - anonymousBlockingEnabled?: number | null; - cacheurl: string | null; - ccrDnsTtl?: number | null; - cdnId: number; - checkPath?: string | null; - consistentHashQueryParams?: Array<string> | null; - consistentHashRegex?: string | null; - deepCachingType?: "ALWAYS" | "NEVER" | null; - displayName: string; - dnsBypassCname?: string | null; - dnsBypassIp?: string | null; - dnsBypassIp6?: string | null; - dnsBypassTtl?: string | null; - dscp: number; - ecsEnabled?: boolean | null; - edgeHeaderRewrite?: string | null; - firstHeaderRewrite?: string | null; - fqPacingRate?: number | null; - geoLimit: GeoLimit; - geoLimitCountries?: string | null; - geoLimitRedirectUrl?: string | null; - geoProvider: GeoProvider; - globalMaxMbps?: number | null; - globalMaxTps?: number | null; - httpBypassFqdn: string | null; - infoUrl: string | null; - initialDispersion?: number | null; - innerHeaderRewrite?: string | null; - ipv6RoutingEnabled?: boolean | null; - lastHeaderRewrite?: string | null; - logsEnabled: boolean; - longDesc?: string | null; - longDesc1?: string | null; - longDesc2?: string | null; - maxDnsAnswers?: number | null; - maxOriginConnections?: number | null; - maxRequestHeaderBytes?: number | null; - midHeaderRewrite?: string | null; - missLat?: number | null; - missLong?: number | null; - multiSiteOrigin?: boolean | null; - orgServerFqdn?: string | null; - originShield?: string | null; - profileId?: number | null; - protocol?: Protocol | null; - qstringIgnore?: QStringHandling | null; - rangeRequestHandling?: RangeRequestHandling | null; - rangeSliceBlockSize?: null | number; - regexRemap?: string | null; - regionalGeoBlocking: boolean; - remapText: string | null; - routingName?: string | null; - serviceCategory?: string | null; - signed?: boolean | null; - signingAlgorithm?: "url_sig" | "uri_signing" | null; - sslKeyVersion?: number | null; - tenantId: number; - topology?: string | null; - trRequestHeaders?: string | null; - trResponseHeaders?: string | null; - typeId: number; - xmlId: string; -} -export interface RequestHTTPDeliveryService extends RequestDeliveryServiceBase { - initialDispersion: number; - ipv6RoutingEnabled: boolean; - missLat: number; - missLong: number; - multiSiteOrigin: boolean; - orgServerFqdn: string; - protocol: Protocol; - qstringIgnore: QStringHandling; - rangeRequestHandling: RangeRequestHandling; -} -export interface RequestDNSDeliveryService extends RequestDeliveryServiceBase { - ipv6RoutingEnabled: boolean; - missLat: number; - missLong: number; - multiSiteOrigin: boolean; - orgServerFqdn: string; - protocol: Protocol; - qstringIgnore: QStringHandling; - rangeRequestHandling: RangeRequestHandling; -} -export declare type RequestSteeringDeliveryService = RequestDeliveryServiceBase; -export declare type RequestAnyMapDeliveryService = RequestDeliveryServiceBase; -export declare type RequestDeliveryService = RequestHTTPDeliveryService | RequestDNSDeliveryService | RequestSteeringDeliveryService | RequestAnyMapDeliveryService; -interface ResponseDeliveryServiceBase { - active: boolean; - anonymousBlockingEnabled: boolean; - cacheurl: string | null; - ccrDnsTtl: number | null; - cdnId: number; - cdnName: string | null; - checkPath: string | null; - consistentHashQueryParams: null | [string, ...Array<string>]; - consistentHashRegex: string | null; - deepCachingType: "ALWAYS" | "NEVER"; - displayName: string; - dnsBypassCname: string | null; - dnsBypassIp: string | null; - dnsBypassIp6: string | null; - dnsBypassTtl: number | null; - dscp: number; - ecsEnabled: boolean; - edgeHeaderRewrite: string | null; - readonly exampleURLs: readonly string[]; - firstHeaderRewrite: string | null; - fqPacingRate: number; - geoLimit: GeoLimit; - geoLimitCountries: string | null; - geoLimitRedirectURL: string | null; - geoProvider: GeoProvider; - globalMaxMbps: number | null; - globalMaxTps: number | null; - httpBypassFqdn: string | null; - readonly id: number; - infoUrl: string | null; - initialDispersion: number; - innerHeaderRewrite: string | null; - ipv6RoutingEnabled: boolean; - lastHeaderRewrite: string | null; - readonly lastUpdated: Date; - logsEnabled: boolean; - longDesc: string | null; - longDesc1?: string; - longDesc2?: string; - matchList: Array<DeliveryServiceMatch>; - maxDnsAnswers: number | null; - maxOriginConnections: number; - maxRequestHeaderBytes: number; - midHeaderRewrite: string | null; - missLat: number; - missLong: number; - multiSiteOrigin: boolean; - originShield: string | null; - orgServerFqdn: string; - protocol: Protocol; - qstringIgnore: QStringHandling; - rangeRequestHandling: RangeRequestHandling; - rangeSliceBlockSize: null | number; - regexRemap: string | null; - regionalGeoBlocking: boolean; - remapText: string | null; - routingName: string; - serviceCategory: string | null; - signed: boolean; - signingAlgorithm: "url_sig" | "uri_signing"; - sslKeyVersion: number | null; - tenant: string; - tenantId: number; - topology: string | null; - trResponseHeaders: string | null; - trRequestHeaders: string | null; - type: string; - typeId: number; - xmlId: string; -} -interface ResponseDeliveryServiceWithProfile extends ResponseDeliveryServiceBase { - profileDescription: string; - profileId: number; - profileName: string; -} -interface ResponseDeliveryServiceWithoutProfile extends ResponseDeliveryServiceBase { - profileDescription: null; - profileId: null; - profileName: null; -} -export declare type ResponseDeliveryService = ResponseDeliveryServiceWithProfile | ResponseDeliveryServiceWithoutProfile; -export declare type DeliveryService = RequestDeliveryService | ResponseDeliveryService; -export declare function bypassable(ds: DeliveryService): boolean; -export interface RequestDeliveryServiceRegexp { - pattern: string; - setNumber: number; - type: number; -} -export interface ResponseDeliveryServiceRegexp { - readonly id: number; - pattern: string; - setNumber: number; - type: number; - typeName: string; -} -export declare type DeliveryServiceRegexp = RequestDeliveryServiceRegexp | ResponseDeliveryServiceRegexp; -export interface DeliveryServicesRegexps { - dsName: string; - regexes: Array<{ - pattern: string; - setNumber: number; - type: string; - }>; -} -export interface DSSafeUpdateRequest { - displayName: string; - infoUrl?: string | null; - longDesc?: string | null; - longDesc1?: string | null; -} -export interface RequestDeliveryServicesServers { - serverNames: Array<string>; -} -export interface ResponseDeliveryServicesServers { - serverNames: Array<string>; - xmlId: string; -} -export interface RequestDeliveryServiceServer { - dsId: number; - replace?: boolean | null; - servers?: Array<number> | null; -} -export interface ResponseDeliveryServiceServer { - deliveryService: number; - readonly lastUpdated: Date; - server: number; -} -export interface RequestServiceCategory { - name: string; -} -export interface ResponseServiceCategory { - readonly lastUpdated: Date; - name: string; -} -export declare type ServiceCategory = RequestServiceCategory | ResponseServiceCategory; -export interface RequestStaticDNSEntry { - address: string; - cachegroupId?: number | null; - deliveryserviceId: number; - host: string; - ttl: number; - typeId: number; -} -export interface RequestStaticDNSEntryResponse { - address: string; - cachegroupId: number | null; - cachegroup: string | null; - deliveryserviceId: number; - deliveryservice: string | null; - host: string; - readonly id: number; - readonly lastUpdated: Date; - ttl: number; - type: string; - typeId: number; -} -interface ResponseStaticDNSEntryBase { - address: string; - deliveryserviceId: number; - deliveryservice: string; - host: string; - readonly id: number; - readonly lastUpdated: Date; - ttl: number; - type: string; - typeId: number; -} -interface ResponseStaticDNSEntryWithCacheGroup extends ResponseStaticDNSEntryBase { - cachegroupId: number; - cachegroup: string; -} -interface ResponseStaticDNSEntryWithoutCacheGroup extends ResponseStaticDNSEntryBase { - cachegroupId: null; - cachegroup: null; -} -export declare type ResponseStaticDNSEntry = ResponseStaticDNSEntryWithCacheGroup | ResponseStaticDNSEntryWithoutCacheGroup; -export declare type StaticDNSEntry = RequestStaticDNSEntry | RequestStaticDNSEntryResponse | ResponseStaticDNSEntry; -export {}; diff --git a/dist/delivery.service.js b/dist/delivery.service.js deleted file mode 100644 index 78d2190..0000000 --- a/dist/delivery.service.js +++ /dev/null @@ -1,50 +0,0 @@ -export function protocolToString(p) { - switch (p) { - case 0: - return "Serve only unsecured HTTP requests"; - case 1: - return "Serve only secured HTTPS requests"; - case 2: - return "Serve both unsecured HTTP requests and secured HTTPS requests"; - case 3: - return "Serve secured HTTPS requests normally, but redirect unsecured HTTP requests to use HTTPS"; - } -} -export function qStringHandlingToString(q) { - switch (q) { - case 0: - return "Use the query parameter string when deciding if a URL is cached, and pass it in upstream requests to the" + - " Mid-tier/origin"; - case 1: - return "Do not use the query parameter string when deciding if a URL is cached, but do pass it in upstream requests to the" + - " Mid-tier/origin"; - case 2: - return "Immediately strip URLs of their query parameter strings before checking cached objects or making upstream requests"; - } -} -export function rangeRequestHandlingToString(r) { - switch (r) { - case 0: - return "Do not cache Range requests"; - case 1: - return "Use the background_fetch plugin to serve Range requests while quietly caching the entire object"; - case 2: - return "Use the cache_range_requests plugin to directly cache object ranges"; - } -} -export function bypassable(ds) { - if (!Object.prototype.hasOwnProperty.call(ds, "type")) { - return false; - } - switch (ds.type) { - case "HTTP": - case "HTTP_LIVE": - case "HTTP_LIVE_NATNL": - case "DNS": - case "DNS_LIVE": - case "DNS_LIVE_NATNL": - return true; - default: - return false; - } -} diff --git a/dist/division.d.ts b/dist/division.d.ts deleted file mode 100644 index 234cca7..0000000 --- a/dist/division.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export interface RequestDivision { - name: string; -} -export interface ResponseDivision { - readonly id: number; - readonly lastUpdated: Date; - name: string; -} -export declare type Division = RequestDivision | ResponseDivision; -export interface RequestRegion { - division: number; - name: string; -} -export interface ResponseRegion { - division: number; - divisionName: string; - readonly id: number; - readonly lastUpdated: Date; - name: string; -} -export declare type Region = RequestRegion | ResponseRegion; diff --git a/dist/division.js b/dist/division.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/division.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 4846846..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -export * from "./about"; -export * from "./acme"; -export * from "./alert"; -export * from "./cache.group"; -export * from "./capability"; -export * from "./cdn"; -export * from "./coordinate"; -export * from "./delivery.service.request"; -export * from "./delivery.service"; -export * from "./division"; -export * from "./dnssec"; -export * from "./federation"; -export * from "./invalidation"; -export * from "./iso"; -export * from "./login"; -export * from "./logs"; -export * from "./origin"; -export * from "./physical.location"; -export * from "./plugin"; -export * from "./profile"; -export * from "./router"; -export * from "./server.capability"; -export * from "./server"; -export * from "./snap.and.queue"; -export * from "./ssl"; -export * from "./stats"; -export * from "./status"; -export * from "./steering"; -export * from "./topology"; -export * from "./type"; -export * from "./uri.signing"; -export * from "./user"; -export * from "./vault"; -import type { Alert } from "./alert"; -interface VersionType { - readonly major: number; - readonly minor: number; - toString(): string; - readonly unstable: boolean; -} -export declare const VERSION: VersionType; -export interface APISuccessResponse<T> { - alerts?: Array<Alert>; - response: T; - summary?: { - count: number; - }; -} -export interface PingResponse { - ping: "pong"; -} diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index aa2a912..0000000 --- a/dist/index.js +++ /dev/null @@ -1,41 +0,0 @@ -export * from "./about"; -export * from "./acme"; -export * from "./alert"; -export * from "./cache.group"; -export * from "./capability"; -export * from "./cdn"; -export * from "./coordinate"; -export * from "./delivery.service.request"; -export * from "./delivery.service"; -export * from "./division"; -export * from "./dnssec"; -export * from "./federation"; -export * from "./invalidation"; -export * from "./iso"; -export * from "./login"; -export * from "./logs"; -export * from "./origin"; -export * from "./physical.location"; -export * from "./plugin"; -export * from "./profile"; -export * from "./router"; -export * from "./server.capability"; -export * from "./server"; -export * from "./snap.and.queue"; -export * from "./ssl"; -export * from "./stats"; -export * from "./status"; -export * from "./steering"; -export * from "./topology"; -export * from "./type"; -export * from "./uri.signing"; -export * from "./user"; -export * from "./vault"; -export const VERSION = { - major: 3, - minor: 1, - toString() { - return `${this.major}.${this.minor}`; - }, - unstable: false -}; diff --git a/dist/invalidation.d.ts b/dist/invalidation.d.ts deleted file mode 100644 index f2610c0..0000000 --- a/dist/invalidation.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -export declare const enum JobType { - PURGE = "PURGE" -} -export interface ResponseInvalidationJob { - assetURL: string; - createdBy: string; - deliveryService: string; - readonly id: number; - keyword: JobType; - parameters: string; - startTime: Date; -} -export interface RequestInvalidationJob { - deliveryService: number | string; - startTime: Date | string; - regex: string; - ttl: number | string; -} -export declare type InvalidationJob = RequestInvalidationJob | ResponseInvalidationJob; diff --git a/dist/invalidation.js b/dist/invalidation.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/invalidation.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/iso.d.ts b/dist/iso.d.ts deleted file mode 100644 index 53d8c0b..0000000 --- a/dist/iso.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -interface ISOFields { - disk: string; - domainName: string; - hostName: string; - interfaceMtu: number; - interfaceName?: string | null; - ip6Address?: string | null; - ip6Gateway?: string | null; - osVersionsDir: string; - rootPass: string; -} -interface ISORequestDHCP extends ISOFields { - dhcp: "no"; - ipAddress: string; - ipGateway: string; - ipNetmask: string; -} -interface ISORequestNonDHCP extends ISOFields { - dhcp: "yes"; -} -export declare type ISORequest = ISORequestDHCP | ISORequestNonDHCP; -export interface OSVersions { - [osversion: string]: string; -} -export {}; diff --git a/dist/iso.js b/dist/iso.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/iso.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/login.d.ts b/dist/login.d.ts deleted file mode 100644 index 4e738a4..0000000 --- a/dist/login.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export interface LoginRequest { - p: string; - u: string; -} -export interface OAuthLoginRequest { - authCodeTokenUrl: string; - code: string; - clientId: string; - redirectUri: string; -} -export interface TokenLoginRequest { - t: string; -} -export interface ResetPasswordRequest { - email: `${string}@${string}.${string}`; -} -export interface RegistrationRequest { - email: `${string}@${string}.${string}`; - role: number; - tenantId: number; -} diff --git a/dist/login.js b/dist/login.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/login.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/logs.d.ts b/dist/logs.d.ts deleted file mode 100644 index bcdcd2e..0000000 --- a/dist/logs.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export interface Log { - readonly id: number; - readonly lastUpdated: Date; - level: "APICHANGE"; - message: string; - readonly ticketNum: number | null; - user: string; -} -export declare function logEntryToString(log: Log): string; -export interface NewLogCount { - newLogcount: number; -} diff --git a/dist/logs.js b/dist/logs.js deleted file mode 100644 index 413bfd6..0000000 --- a/dist/logs.js +++ /dev/null @@ -1,8 +0,0 @@ -export function logEntryToString(log) { - const { id, lastUpdated, level, message, ticketNum, user } = log; - let ret = `#${id} ${lastUpdated.toISOString()}: ${user} via ${level}`; - if (ticketNum !== null) { - ret += ` (From Ticket #${ticketNum})`; - } - return `${ret}: ${message}`; -} diff --git a/dist/parameter.d.ts b/dist/parameter.d.ts deleted file mode 100644 index 7db0d29..0000000 --- a/dist/parameter.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export interface RequestParameter { - configFile: string; - name: string; - secure: boolean; - value: string; -} -export interface ResponseParameter { - configFile: string; - readonly id: number; - lastUpdated: Date; - name: string; - profiles: Array<string>; - secure: boolean; - value: string; -} -export declare type Parameter = RequestParameter | ResponseParameter; diff --git a/dist/parameter.js b/dist/parameter.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/parameter.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/physical.location.d.ts b/dist/physical.location.d.ts deleted file mode 100644 index 1ae0a40..0000000 --- a/dist/physical.location.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -export interface ResponsePhysicalLocation { - address: string; - city: string; - comments: string | null; - email: string | null; - id: number; - readonly lastUpdated: Date; - name: string; - phone: string | null; - poc: string | null; - region: string | null; - regionId: number; - shortName: string; - state: string; - zip: string; -} -export interface RequestPhysicalLocation { - address: string; - city: string; - comments?: string | null; - email?: string | null; - name: string; - phone?: string | null; - poc?: string | null; - regionId: number; - state: string; - zip: string; -} -export declare type PhysicalLocation = ResponsePhysicalLocation | RequestPhysicalLocation; diff --git a/dist/physical.location.js b/dist/physical.location.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/physical.location.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/plugin.d.ts b/dist/plugin.d.ts deleted file mode 100644 index 50ecd0c..0000000 --- a/dist/plugin.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface TOPlugin { - readonly description: string; - readonly name: string; - readonly version: string; -} diff --git a/dist/plugin.js b/dist/plugin.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/plugin.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/profile.d.ts b/dist/profile.d.ts deleted file mode 100644 index 2814f3f..0000000 --- a/dist/profile.d.ts +++ /dev/null @@ -1,124 +0,0 @@ -export declare const enum ProfileType { - ATS_PROFILE = "ATS_PROFILE", - TR_PROFILE = "TR_PROFILE", - TM_PROFILE = "TM_PROFILE", - TS_PROFILE = "TS_PROFILE", - TP_PROFILE = "TP_PROFILE", - INFLUXDB_PROFILE = "INFLUXDB_PROFILE", - RIAK_PROFILE = "RIAK_PROFILE", - SPLUNK_PROFILE = "SPLUNK_PROFILE", - DS_PROFILE = "DS_PROFILE", - ORG_PROFILE = "ORG_PROFILE", - KAFKA_PROFILE = "KAFKA_PROFILE", - LOGSTASH_PROFILE = "LOGSTASH_PROFILE", - ES_PROFILE = "ES_PROFILE", - UNK_PROFILE = "UNK_PROFILE", - GROVE_PROFILE = "GROVE_PROFILE" -} -interface ResponseProfileParameter { - configFile: string; - readonly id: number; - readonly lastUpdated: null; - name: string; - profiles: null; - secure: boolean; - value: string; -} -export interface ResponseProfile { - cdn: number; - cdnName: string | null; - description: string; - id: number; - readonly lastUpdated: Date; - name: string; - params?: [ResponseProfileParameter, ...ResponseProfileParameter[]]; - routingDisabled: boolean; - type: ProfileType; -} -export interface RequestProfile { - cdn: number; - description: string; - name: string; - routingDisabled: boolean; - type: ProfileType; -} -export declare type Profile = RequestProfile | ResponseProfile; -export interface RequestParameter { - configFile: string; - name: string; - secure: boolean; - value?: string | null; -} -export interface ResponseParameter { - configFile: string; - readonly id: number; - readonly lastUpdated: Date; - name: string; - profiles: Array<string> | null; - secure: boolean; - value: string; -} -export declare type Parameter = RequestParameter | ResponseParameter; -export interface RequestParameterProfile { - paramId: number; - profileIds: Array<number>; - replace?: boolean | null; -} -export interface RequestParameterProfileResponse { - paramId: number; - profileIds: Array<number>; - replace: boolean; -} -export declare type ParameterProfile = RequestParameterProfile | RequestParameterProfileResponse; -export interface RequestProfileParameter { - profileId: number; - paramIds: Array<number>; - replace?: boolean | null; -} -export interface RequestProfileParameterResponse { - profileId: number; - paramIds: Array<number>; - replace: boolean; -} -export declare type ProfileParameter = RequestProfileParameter | RequestProfileParameterResponse; -export interface RequestProfileParameters { - parameterId: number; - profileId: number; -} -export interface RequestProfileParametersResponse { - readonly lastUpdated: null; - parameter: string | null; - parameterId: number; - profileId: number; - profile: string | null; -} -export interface ResponseProfileParameters { - readonly lastUpdated: Date; - profile: string; - parameter: number; -} -export declare type ProfileParameters = RequestProfileParameters | RequestProfileParametersResponse | ResponseProfileParameters; -export interface ProfileImport { - profile: { - cdn: string; - description: string; - name: string; - type: ProfileType; - }; - parameters: Array<{ - config_file: string; - name: string; - value: string; - }>; -} -export interface ProfileExport extends ProfileImport { - alerts: null; -} -export interface ProfileCopyResponse { - description: string; - idCopyFrom: number; - id: number; - name: string; - profileCopyFrom: string; -} -export {}; diff --git a/dist/profile.js b/dist/profile.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/profile.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/server.d.ts b/dist/server.d.ts deleted file mode 100644 index 5a5f71c..0000000 --- a/dist/server.d.ts +++ /dev/null @@ -1,142 +0,0 @@ -import type { Alert } from "./alert"; -export interface IPAddress { - address: string; - gateway: string | null; - serviceAddress: boolean; -} -export interface Interface { - ipAddresses: Array<IPAddress>; - maxBandwidth: number | null; - monitor: boolean; - mtu: number | null; - name: string; -} -export declare function serviceAddresses(infs: Array<Interface>, exhaustive?: boolean): [ipv4Address: IPAddress | null, ipv6Address: IPAddress | null]; -export interface ResponseServer { - cachegroup: string; - cachegroupId: number; - cdnId: number; - cdnName: string; - domainName: string; - guid: number | null; - hostName: string; - httpsPort: number | null; - readonly id: number; - iloIpAddress: string | null; - iloIpGateway: string | null; - iloIpNetmask: string | null; - iloPassword: string | null; - iloUsername: string | null; - interfaces: Array<Interface>; - readonly lastUpdated: Date; - mgmtIpAddress: string | null; - mgmtIpGateway: string | null; - mgmtIpNetmask: string | null; - offlineReason: string | null; - physLocation: string; - physLocationId: number; - profile: string; - profileDesc: string; - profileId: number; - revalPending: boolean; - rack: string | null; - routerHostName: string | null; - routerPortName: string | null; - status: string; - statusId: number; - statusLastUpdated: Date | null; - tcpPort: number | null; - type: string; - typeId: number; - updPending: boolean; - readonly xmppId: string; - xmppPasswd?: string | null; -} -export interface Servercheck { - adminState: string; - cacheGroup: string; - checks?: Record<string, number>; - hostName: string; - id: number; - profile: string; - revalPending: boolean; - type: string; - updPending: boolean; -} -export declare function checkMap(srv: Servercheck): Map<string, number | boolean>; -export interface RequestServercheckExtension { - additional_config_json?: string | null; - description?: string | null; - info_url: string; - isactive: 0 | 1; - name: string; - servercheck_short_name: string; - script_file: string; - type: string; - version: string; -} -export interface RequestServercheckExtensionResponse { - alerts: Array<Alert>; - supplemental: { - readonly id: number; - }; -} -export interface ResponseServercheckExtension { - additional_config_json: string | null; - description: string | null; - info_url: string; - isactive: 0 | 1; - name: string; - servercheck_short_name: string; - script_file: string; - type: string; - version: string; -} -export declare type ServercheckExtension = RequestServercheckExtension | ResponseServercheckExtension; -export interface ServerDetails { - cachegroup: string; - cdnName: string; - deliveryservices?: [number, ...number[]]; - domainName: string; - guid: string | null; - hardwareInfo: unknown; - hostName: string; - httpsPort: number | null; - readonly id: number; - iloIpAddress: string; - iloIpGateway: string; - iloIpNetmask: string; - iloPassword: string; - iloUsername: string; - interfaces: Array<Interface>; - mgmtIpAddress: string; - mgmtIpGateway: string; - mgmtIpNetmask: string; - offlineReason: string; - physLocation: string; - profile: string; - profileDesc: string; - rack: string; - routerHostName: string; - routerPortName: string; - status: string; - tcpPort: number; - type: string; - xmppId: string; - xmppPasswd: string; -} -export interface ServerUpdateStatus { - host_id: number; - host_name: string; - parent_pending: boolean; - parent_reval_pending: boolean; - reval_pending: boolean; - status: string; - upd_pending: boolean; - use_reval_pending: boolean; -} -export interface ServerDeliveryServices { - dsIds: Array<number>; - serverId: number; - replace: boolean; -} diff --git a/dist/server.js b/dist/server.js deleted file mode 100644 index 8634891..0000000 --- a/dist/server.js +++ /dev/null @@ -1,74 +0,0 @@ -function exhaustiveServiceAddresses(ips) { - let ipv4 = null; - let ipv6 = null; - for (const ip of ips) { - if (ip.serviceAddress) { - if (ip.address.includes(":")) { - if (ipv6 !== null) { - throw new Error(`found two IPv6 service addresses: '${ipv6.address}' and '${ip.address}'`); - } - ipv6 = ip; - } - else if (ipv4 !== null) { - throw new Error(`found two IPv4 service addresses: '${ipv4.address}' and '${ip.address}'`); - } - else { - ipv4 = ip; - } - } - } - return [ipv4, ipv6]; -} -function inexhaustiveServiceAddresses(ips) { - let ipv4 = null; - let ipv6 = null; - for (const ip of ips) { - if (ip.serviceAddress) { - if (ip.address.includes(":")) { - if (ipv6 !== null) { - throw new Error(`found two IPv6 service addresses: '${ipv6.address}' and '${ip.address}'`); - } - ipv6 = ip; - } - else if (ipv4 !== null) { - throw new Error(`found two IPv4 service addresses: '${ipv4.address}' and '${ip.address}'`); - } - else { - ipv4 = ip; - } - } - if (ipv4 !== null && ipv6 !== null) { - break; - } - } - return [ipv4, ipv6]; -} -export function serviceAddresses(infs, exhaustive = false) { - const arr = infs.map(inf => inf.ipAddresses).flat(); - if (exhaustive) { - return exhaustiveServiceAddresses(arr); - } - return inexhaustiveServiceAddresses(arr); -} -export function checkMap(srv) { - const ret = new Map(); - if (!srv.checks) { - return ret; - } - for (const [key, value] of Object.entries(srv.checks)) { - switch (key) { - case "ILO": - case "10G": - case "FQDN": - case "DSCP": - case "10G6": - case "MTU": - ret.set(key, value === 1); - break; - default: - ret.set(key, value); - break; - } - } - return ret; -} diff --git a/dist/stats.d.ts b/dist/stats.d.ts deleted file mode 100644 index 10d02f6..0000000 --- a/dist/stats.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -export interface CacheStatsSeries { - columns: ["time", "sum_count"]; - count: number; - name: `${"bandwidth" | "connections" | "maxkbps"}.cdn.1min`; - values: Array<[Date, number | null]>; -} -export interface CacheStatsSummary { - average: number; - count: number; - fifthPercentile: number; - max: number; - min: number; - ninetyEightPercentile: number; - ninetyFifthPercentile: number; -} -export interface CacheStats { - series?: CacheStatsSeries; - summary?: CacheStatsSummary; -} -export interface CurrentStats { - currentStats: [ - ...Array<{ - bandwidth: number | null; - capacity: number | null; - cdn: string; - connections: number | null; - }>, - { - bandwidth: number | null; - cdn: "total"; - connections: number | null; - } - ]; -} -export interface CachesStats { - cachegroup: string; - connections: number; - healthy: boolean; - hostname: string; - ip: string | null; - kbps: number; - profile: string; - status: string; -} -export interface Health { - cacheGroups: Array<{ - name: string; - offline: number; - online: number; - }>; - totalOffline: number; - totalOnline: number; -} -export interface Capacity { - readonly availablePercent: number; - readonly maintenancePercent: number; - readonly unavailablePercent: number; - readonly utilizedPercent: number; -} -export interface CDNDNSSECKSKKeyGenerationRequest { - effectiveDate?: Date | null; - expirationDays: number; -} -export interface Routing { - cz: number; - deepCz: number; - dsr: number; - err: number; - fed: number; - geo: number; - miss: number; - regionalAlternate: number; - regionalDenied: number; - staticRoute: number; -} -export interface RequestStatsSummary { - cdnName?: string | null; - deliveryServiceName?: string | null; - statName: string; - statValue: number; - summaryTime: Date; - statDate?: `${number}-${number}-${number}` | Date | null; -} -export interface ResponseStatsSummary { - cdnName: string; - deliveryServiceName: string; - summaryTime: Date; - statDate: `${number}-${number}-${number}` | null; - statValue: number; -} -export declare type StatsSummary = RequestStatsSummary | ResponseStatsSummary; -export declare function isValidStatDate(statDate: string): statDate is `${number}-${number}-${number}`; diff --git a/dist/stats.js b/dist/stats.js deleted file mode 100644 index 9c6bab7..0000000 --- a/dist/stats.js +++ /dev/null @@ -1,3 +0,0 @@ -export function isValidStatDate(statDate) { - return /^\d{4}-(0[1-9]|1[12])-([12][0-9]|3[01])$/.test(statDate); -} diff --git a/dist/status.d.ts b/dist/status.d.ts deleted file mode 100644 index d4d52f9..0000000 --- a/dist/status.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export interface ResponseStatus { - description: string | null; - id: number; - readonly lastUpdated: Date; - name: string; -} -export interface RequestStatus { - description?: string | null; - name: string; -} -export declare type Status = ResponseStatus | RequestStatus; -export interface StatusChangeRequest { - offlineReason?: string | null; - status: string; -} diff --git a/dist/status.js b/dist/status.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/status.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/type.d.ts b/dist/type.d.ts deleted file mode 100644 index 3c749e2..0000000 --- a/dist/type.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export interface TypeFromResponse { - description: string; - readonly id: number; - readonly lastUpdated: Date; - name: string; - useInTable: string; -} -export interface RequestType { - description: string; - name: string; - useInTable: string; -} -export declare type Type = TypeFromResponse | RequestType; diff --git a/dist/type.js b/dist/type.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/type.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/user.d.ts b/dist/user.d.ts deleted file mode 100644 index 7ce5400..0000000 --- a/dist/user.d.ts +++ /dev/null @@ -1,163 +0,0 @@ -export interface PostRequestUser { - addressLine1?: string | null; - addressLine2?: string | null; - city?: string | null; - company?: string | null; - confirmLocalPasswd: string; - country?: string | null; - email: `${string}@${string}.${string}`; - fullName: string; - gid?: number | null; - localPasswd: string; - newUser?: boolean | null; - phoneNumber?: string | null; - postalCode?: string | null; - publicSshKey?: string | null; - role: number; - stateOrProvince?: string | null; - tenantId?: never; - tenantID: number; - uid?: number | null; - username: string; -} -interface PutRequestNotChangingPasswordUser { - addressLine1?: string | null; - addressLine2?: string | null; - city?: string | null; - company?: string | null; - country?: string | null; - email: `${string}@${string}.${string}`; - fullName: string; - gid?: number | null; - newUser?: boolean | null; - phoneNumber?: string | null; - postalCode?: string | null; - publicSshKey?: string | null; - role: number; - stateOrProvince?: string | null; - tenantId?: never; - tenantID: number; - uid?: number | null; - username: string; -} -export declare type PutRequestUser = PostRequestUser | PutRequestNotChangingPasswordUser; -interface ResponseUser { - addressLine1: string | null; - addressLine2: string | null; - city: string | null; - company: string | null; - country: string | null; - email: `${string}@${string}.${string}`; - fullName: string; - gid: number | null; - id: number; - readonly lastUpdated: Date; - newUser: boolean | null; - phoneNumber: string | null; - postalCode: string | null; - publicSshKey: string | null; - registrationSent?: null | Date; - role: number; - stateOrProvince: null; - tenant: string; - tenantID?: never; - tenantId: number; - uid: number | null; - username: string; -} -export interface PutOrPostResponseUser extends ResponseUser { - confirmLocalPasswd?: string; - rolename?: never; - roleName: string; -} -export interface GetResponseUser extends ResponseUser { - confirmLocalPasswd?: never; - rolename: string; - roleName?: never; -} -export declare type User = PutRequestUser | PostRequestUser | PutOrPostResponseUser | GetResponseUser; -export interface ResponseCurrentUser { - addressLine1: string | null; - addressLine2: string | null; - city: string | null; - company: string | null; - country: string | null; - email: `${string}@${string}.${string}`; - fullName: string; - gid: number | null; - id: number; - readonly lastUpdated: Date; - localUser: boolean; - newUser: boolean; - phoneNumber: string | null; - postalCode: string | null; - publicSshKey: string | null; - role: number; - rolename?: never; - roleName: string; - stateOrProvince: string | null; - tenant: string; - tenantId: number; - uid: number | null; - username: string; -} -export declare function userEmailIsValid(email: string): email is `${string}@${string}.${string}`; -export interface RequestCurrentUser { - addressLine1?: string | null; - addressLine2?: string | null; - city?: string | null; - company?: string | null; - country?: string | null; - email?: string | null; - fullName?: string | null; - gid?: string | null; - localUser?: boolean | null; - newUser?: boolean | null; - phoneNumber?: string | null; - postalCode?: string | null; - publicSshKey?: string | null; - role?: number | null; - stateOrProvince?: string | null; - tenantId?: number | null; - tenantID?: never; - uid?: string | null; - username?: never; -} -export declare type CurrentUser = ResponseCurrentUser | RequestCurrentUser; -export interface RequestRole { - capabilities: Array<string>; - description: string; - name: string; - privLevel: number; -} -export interface ResponseRole extends RequestRole { - readonly id: number; -} -export declare type Role = RequestRole | ResponseRole; -export interface RequestTenant { - active: boolean; - name: string; - parentId: number; -} -export interface RequestTenantResponse extends RequestTenant { - readonly id: number; - readonly lastUpdated: Date; -} -interface ResponseTenantBase { - active: boolean; - readonly id: number; - readonly lastUpdated: Date; - name: string; -} -interface ResponseRootTenant extends ResponseTenantBase { - active: true; - name: "root"; - parentId: null; -} -interface ResponseRegularTenant extends ResponseTenantBase { - name: Exclude<string, "root">; - parentId: number; -} -export declare type ResponseTenant = ResponseRootTenant | ResponseRegularTenant; -export declare type Tenant = ResponseTenant | RequestTenant | RequestTenantResponse; -export {}; diff --git a/dist/user.js b/dist/user.js deleted file mode 100644 index 26251dc..0000000 --- a/dist/user.js +++ /dev/null @@ -1,3 +0,0 @@ -export function userEmailIsValid(email) { - return /^.+@.+\..+$/.test(email); -} diff --git a/dist/vault.d.ts b/dist/vault.d.ts deleted file mode 100644 index cc3fca2..0000000 --- a/dist/vault.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface VaultPing { - status: string; - server: string; -} -export interface BucketValues { - [bucket: string]: unknown; -} diff --git a/dist/vault.js b/dist/vault.js deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/vault.js +++ /dev/null @@ -1 +0,0 @@ -export {};
