@cloudflare/types
Advanced tools
Comparing version 1.0.22 to 1.0.23
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.0.23](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/types@1.0.22...@cloudflare/types@1.0.23) (2019-05-06) | ||
**Note:** Version bump only for package @cloudflare/types | ||
## [1.0.22](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/types@1.0.21...@cloudflare/types@1.0.22) (2019-05-02) | ||
@@ -8,0 +16,0 @@ |
export * from './account'; | ||
export * from './billing'; | ||
export * from './dns'; | ||
export * from './captcha'; | ||
export * from './entitlement'; | ||
@@ -11,2 +12,5 @@ export * from './flags'; | ||
export * from './user'; | ||
export * from './zone'; | ||
export * from './zone'; | ||
export * from './ratePlan'; | ||
export * from './settings'; | ||
export * from './zendesk'; |
@@ -43,2 +43,14 @@ "use strict"; | ||
var _captcha = require("./captcha"); | ||
Object.keys(_captcha).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _captcha[key]; | ||
} | ||
}); | ||
}); | ||
var _entitlement = require("./entitlement"); | ||
@@ -138,2 +150,38 @@ | ||
}); | ||
}); | ||
var _ratePlan = require("./ratePlan"); | ||
Object.keys(_ratePlan).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _ratePlan[key]; | ||
} | ||
}); | ||
}); | ||
var _settings = require("./settings"); | ||
Object.keys(_settings).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _settings[key]; | ||
} | ||
}); | ||
}); | ||
var _zendesk = require("./zendesk"); | ||
Object.keys(_zendesk).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _zendesk[key]; | ||
} | ||
}); | ||
}); |
{ | ||
"name": "@cloudflare/types", | ||
"description": "", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"types": "./src", | ||
@@ -23,3 +23,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "154e3286f742ab43447019bfe22b2782e89b8e0e" | ||
"gitHead": "e2fbb81bedfa465573496fb4ebf16e6bc58286c6" | ||
} |
@@ -0,1 +1,3 @@ | ||
import { IUser } from './user'; | ||
import { IPermissions } from './permissions'; | ||
export interface IAccount { | ||
@@ -49,1 +51,40 @@ id: string; | ||
} | ||
export interface IAccountMember { | ||
id: string; | ||
user: Pick< | ||
IUser, | ||
| 'id' | ||
| 'first_name' | ||
| 'last_name' | ||
| 'email' | ||
| 'two_factor_authentication_enabled' | ||
>; | ||
status: 'accepted'; | ||
roles: IAccountRole[]; | ||
} | ||
export interface IAccountRole { | ||
id: string; | ||
name: string; | ||
description: string; | ||
permissions: IPermissions; | ||
} | ||
export interface IAccountDpa { | ||
created_on: string | null; | ||
type?: string; | ||
} | ||
// Triggers incomplete | ||
export interface IAccountWebhook { | ||
id: string; | ||
category: string; | ||
triggers: object; | ||
url: string; | ||
} | ||
export interface IAccountInvite { | ||
account_pubname: string; | ||
user_email: string; | ||
} |
@@ -0,1 +1,4 @@ | ||
import { TPlanId } from './zone'; | ||
import { TComponentName, TSet } from './subscription'; | ||
export interface IBillingProfile { | ||
@@ -42,1 +45,49 @@ id: string; | ||
} | ||
export interface IBillableUsage { | ||
rows: number; | ||
data?: { metrics: number[][] }[]; | ||
data_lag: number; | ||
min: {}; | ||
max: {}; | ||
totals: {}; | ||
query: { | ||
dimensions: number[]; | ||
metrics?: TMetric[]; | ||
since: string; | ||
until: string; | ||
time_delta: 'day'; | ||
limit: number; | ||
}; | ||
time_intervals?: [string, string][]; | ||
} | ||
type TMetric = | ||
| 'streamMinutesViewed' | ||
| 'rateLimitingRequestsAllowed' | ||
| 'loadBalancingQueries' | ||
| 'argoAcceleratedBytes' | ||
| 'workersRequests' | ||
| 'workersKVReads'; | ||
// If possible, use IZonePlan instead. It has more stuff. | ||
export interface IBillingPlan { | ||
id: TPlanId; | ||
name: TPlanName; | ||
currency: 'USD'; | ||
frequency: 'monthly'; | ||
components: { name: TComponentName; default: number; unit_price: number }[]; | ||
sets: TSet[]; | ||
is_contract: boolean; | ||
} | ||
export type TPlanName = | ||
| 'CF_BIZ' | ||
| 'CF_BIZ_EMP' | ||
| 'CF_BIZ_FREE' | ||
| 'CF_BIZ_PLUS' | ||
| 'CF_ENT' | ||
| 'CF_FREE' | ||
| 'CF_PRO_20_20' | ||
| 'CF_PRO_20_5' | ||
| 'CF_PRO_FREE'; |
@@ -1,52 +0,83 @@ | ||
export interface IFlags { | ||
access: { | ||
access_service_tokens: boolean; | ||
custom_auth_domain: boolean; | ||
disable_login_lockdown: boolean; | ||
tls_client_auth: boolean; | ||
export interface IAccountFlags { | ||
access?: { | ||
access_non_idp_rules_at_allow?: boolean; | ||
access_service_tokens?: boolean; | ||
custom_auth_domain?: boolean; | ||
disable_login_lockdown?: boolean; | ||
tls_client_auth?: boolean; | ||
use_workers_kv?: boolean; | ||
wildcard_subdomains?: boolean; | ||
}; | ||
analytics: { | ||
secondary_nav: boolean; | ||
billing?: { | ||
no_cf_free_zero_cost?: boolean; | ||
ui_refresh?: boolean; | ||
}; | ||
billing: { | ||
ui_refresh: boolean; | ||
bots?: { | ||
enabled?: boolean; | ||
}; | ||
firewall: { | ||
filter_ui: boolean; | ||
tab_analytics: boolean; | ||
kv?: { | ||
enabled?: boolean; | ||
}; | ||
quic: { | ||
enabled: boolean; | ||
show_signup_ui: boolean; | ||
registrar?: { | ||
donated?: boolean; | ||
enabled?: boolean; | ||
global_wave?: number; | ||
opted_in?: boolean; | ||
tweeted?: boolean; | ||
}; | ||
registrar: { | ||
donated: boolean; | ||
enabled: boolean; | ||
global_wave: number; | ||
opted_in: boolean; | ||
tweeted: boolean; | ||
stream?: { | ||
'4k'?: boolean; | ||
canaryEncoding?: boolean; | ||
enabled?: boolean; | ||
maxUploadSizeMib?: number; | ||
maxUploadTotalMib?: number; | ||
priorityModifier?: number; | ||
remoteCopy?: boolean; | ||
webhook?: boolean; | ||
}; | ||
spectrum: { | ||
enabled: boolean; | ||
udp: boolean; | ||
workers?: { | ||
appworker_develop?: boolean; | ||
enabled?: boolean; | ||
same_zone_worker_on_subrequest?: boolean; | ||
scripts?: number; | ||
use_pipeline?: boolean; | ||
}; | ||
stream: { | ||
'4k': boolean; | ||
enabled: boolean; | ||
maxUploadSizeMib: number; | ||
maxUploadTotalMib: number; | ||
priorityModifier: number; | ||
remoteCopy: boolean; | ||
} | ||
export interface IZoneFlags extends IAccountFlags { | ||
analytics?: { | ||
secondary_nav?: boolean; | ||
}; | ||
warp: { | ||
allowedTunnels: number; | ||
enabled: boolean; | ||
firewall?: { | ||
analytics_load_on_scroll?: boolean; | ||
filter_ui?: boolean; | ||
rule_preview?: boolean; | ||
tab_analytics?: boolean; | ||
}; | ||
workers: { | ||
appworker_develop: boolean; | ||
enabled: boolean; | ||
same_zone_worker_on_subrequest: boolean; | ||
scripts: number; | ||
use_pipeline: boolean; | ||
quic?: { | ||
enabled?: boolean; | ||
show_signup_ui?: boolean; | ||
}; | ||
spectrum?: { | ||
byoip?: boolean; | ||
cdn?: boolean; | ||
enabled?: boolean; | ||
ftp?: boolean; | ||
improved_analytics?: boolean; | ||
subscribed?: boolean; | ||
udp?: boolean; | ||
}; | ||
speed?: { | ||
enabled?: boolean; | ||
}; | ||
ssl?: { | ||
show_ussl_ca_selector_card?: boolean; | ||
}; | ||
warp?: { | ||
allowedTunnels?: number; | ||
enabled?: boolean; | ||
maxConnectionsPerHostname?: number; | ||
}; | ||
} | ||
export type TFlagValue = boolean | number; |
export * from './account'; | ||
export * from './billing'; | ||
export * from './dns'; | ||
export * from './captcha'; | ||
export * from './entitlement'; | ||
@@ -12,2 +13,5 @@ export * from './flags'; | ||
export * from './zone'; | ||
export * from './ratePlan'; | ||
export * from './settings'; | ||
export * from './zendesk'; | ||
@@ -14,0 +18,0 @@ export interface APIResponse< |
@@ -7,3 +7,3 @@ import { IAccount } from './account'; | ||
status: string; | ||
permissions?: IPermissions; | ||
permissions: IPermissions; | ||
roles: string[]; | ||
@@ -10,0 +10,0 @@ account: IAccount; |
export interface IPermissions { | ||
access?: IPermission; | ||
analytics?: IPermission; | ||
app?: IPermission; | ||
billing?: IPermission; | ||
cache_purge?: IPermission; | ||
dns_records?: IPermission; | ||
lb?: IPermission; | ||
legal?: IPermission; | ||
logs?: IPermission; | ||
member?: IPermission; | ||
organization?: IPermission; | ||
ssl?: IPermission; | ||
stream?: IPermission; | ||
subscription?: IPermission; | ||
waf?: IPermission; | ||
webhooks?: IPermission; | ||
worker?: IPermission; | ||
zone?: IPermission; | ||
zone_settings?: IPermission; | ||
access: IPermission; | ||
analytics: IPermission; | ||
app: IPermission; | ||
auditlogs: IPermission; | ||
billing: IPermission; | ||
cache_purge: IPermission; | ||
dns_records: IPermission; | ||
lb: IPermission; | ||
legal: IPermission; | ||
logs: IPermission; | ||
member: IPermission; | ||
organization: IPermission; | ||
ssl: IPermission; | ||
stream: IPermission; | ||
subscription: IPermission; | ||
waf: IPermission; | ||
webhooks: IPermission; | ||
worker: IPermission; | ||
zone: IPermission; | ||
zone_settings: IPermission; | ||
} | ||
@@ -22,0 +23,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { TPlanId } from './zone'; | ||
import { TRatePlanId } from './ratePlan'; | ||
@@ -39,3 +39,3 @@ export interface ISubscription { | ||
is_contract: boolean; | ||
sets: Array<'zone' | 'is_cloudflare' | 'public' | 'usage'>; | ||
sets: TSet[]; | ||
} | ||
@@ -56,2 +56,3 @@ | ||
export type TScope = 'zone' | 'user'; | ||
export type TSet = 'zone' | 'is_cloudflare' | 'public' | 'usage'; | ||
export type TComponentName = | ||
@@ -81,30 +82,1 @@ | 'dedicated_certificates' | ||
| 'Cloudflare Apps'; | ||
export type TRatePlanId = | ||
| TPlanId | ||
| 'access_basic' | ||
| 'access_ent' | ||
| 'access_free' | ||
| 'access_premium' | ||
| 'argo_basic' | ||
| 'argo_free' | ||
| 'browser_blaster_basic' | ||
| 'load_balancing_basic' | ||
| 'load_balancing_basic_plus' | ||
| 'load_balancing_free' | ||
| 'rate_limiting_basic' | ||
| 'rate_limiting_free' | ||
| 'stream_basic' | ||
| 'stream_ent' | ||
| 'stream_free' | ||
| 'workers_basic' | ||
| 'workers_ent' | ||
| 'workers_free' | ||
| 'cf_biz' | ||
| 'cf_biz_emp' | ||
| 'cf_biz_free' | ||
| 'cf_biz_plus' | ||
| 'cf_ent' | ||
| 'cf_free' | ||
| 'cf_pro_20_20' | ||
| 'cf_pro_20_5' | ||
| 'cf_pro_free'; |
@@ -22,1 +22,37 @@ import { IOrganization } from './organization'; | ||
} | ||
export interface IUserCommunicationPreferences { | ||
email: { | ||
verified: boolean; | ||
hard_bounce: boolean; | ||
}; | ||
preferences: { | ||
analytics: IPreference; | ||
apps: IPreference; | ||
apps_communication: IPreference; | ||
blog: IPreference; | ||
cf_status: IPreference; | ||
comm_ea: IPreference; | ||
comm_news: IPreference; | ||
comm_ssu: IPreference; | ||
coms_optout_ssl_cert_expired_fallbacks_deployed: IPreference; | ||
coms_optout_ssl_cert_expired_no_fallbacks: IPreference; | ||
coms_optout_ssl_customcert_expiring_notification: IPreference; | ||
coms_optout_ssl_dedicated_cert_expiring_cname_notification: IPreference; | ||
coms_optout_ssl_dedicated_cert_expiring_dns_notification: IPreference; | ||
education: IPreference; | ||
events: IPreference; | ||
feedback: IPreference; | ||
marketing_communication: IPreference; | ||
origin_status: IPreference; | ||
product_news: IPreference; | ||
}; | ||
created_on: string; | ||
updated_on: string; | ||
} | ||
export interface IPreference { | ||
subscribed: boolean; | ||
created_on: string; | ||
updated_on: string; | ||
} |
@@ -26,2 +26,3 @@ export interface IZone { | ||
plan: IZonePlan; | ||
plan_pending?: IZonePlan; | ||
vanity_name_servers?: string[]; | ||
@@ -34,3 +35,5 @@ vanity_name_servers_ips?: { | ||
}; | ||
verification_key: string; | ||
verification_key?: string; | ||
host?: string; | ||
betas?: string[]; | ||
} | ||
@@ -72,1 +75,14 @@ | ||
} | ||
export interface IZoneUIConfig { | ||
id: string; | ||
value: any; | ||
} | ||
export interface IAbuseUrl { | ||
id: string; | ||
created_on: string; | ||
type: string; | ||
url: string; | ||
status: string; | ||
} |
@@ -53,3 +53,4 @@ // (A - keys of B) | ||
* Overwrite certain keys with new types. | ||
* Example: | ||
* | ||
* @example | ||
* type A = {a: string, b?: string} | ||
@@ -59,4 +60,3 @@ * type result = Overwrite<A, {b: string}> = {a: string, b: string} | ||
*/ | ||
export type Overwrite<T1, T2> = { [P in Exclude<keyof T1, keyof T2>]: T1[P] } & | ||
T2; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31312
66
1052