@cloudflare/types
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.0.6](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/types@1.0.5...@cloudflare/types@1.0.6) (2019-02-07) | ||
**Note:** Version bump only for package @cloudflare/types | ||
<a name="1.0.5"></a> | ||
@@ -8,0 +16,0 @@ ## [1.0.5](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/types@1.0.4...@cloudflare/types@1.0.5) (2019-02-03) |
{ | ||
"name": "@cloudflare/types", | ||
"description": "", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"types": "./src", | ||
@@ -19,3 +19,4 @@ "main": "lib/index.js", | ||
"autoGeneratedReadme": true | ||
} | ||
}, | ||
"gitHead": "95f5f9028346c17b6601bd7464a806f70c4151ba" | ||
} |
@@ -12,2 +12,12 @@ export * from './account'; | ||
export interface APIResponse< | ||
TExpectedData = {}, | ||
TExpectedResultInfo = IPaginationInfo | ||
> { | ||
headers: Headers; | ||
status: number; | ||
body: APIResponseBody<TExpectedData, TExpectedResultInfo>; | ||
text: string; | ||
} | ||
export interface APIResponseBody< | ||
@@ -17,3 +27,3 @@ TExpectedData = {}, | ||
> { | ||
result: TExpectedData | {}; | ||
result: TExpectedData; | ||
success: boolean; | ||
@@ -20,0 +30,0 @@ errors: APIResponseBodyError[]; |
@@ -0,1 +1,3 @@ | ||
import { TPlanId } from './zone'; | ||
export interface ISubscription { | ||
@@ -6,8 +8,9 @@ app: { | ||
id: string; | ||
state: string; | ||
state: TState; | ||
price: number; | ||
currency: string; | ||
currency: TCurrency; | ||
component_values: ISubscriptionComponentValue[]; | ||
zone: ISubscriptionZone; | ||
frequency: string; | ||
product: ISubscriptionProduct; | ||
zone?: ISubscriptionZone; | ||
frequency: TFrequency; | ||
rate_plan: ISubscriptionRatePlan; | ||
@@ -19,3 +22,3 @@ current_period_end: string; | ||
export interface ISubscriptionComponentValue { | ||
name: string; | ||
name: TComponentName; | ||
value: number; | ||
@@ -32,7 +35,34 @@ default: number; | ||
export interface ISubscriptionRatePlan { | ||
id: string; | ||
id: TPlanId; | ||
public_name: string; | ||
currency: string; | ||
scope: string; | ||
currency: TCurrency; | ||
scope: TScope; | ||
externally_managed: boolean; | ||
} | ||
export interface ISubscriptionProduct { | ||
name: TProductName; | ||
period: string; | ||
billing: string; | ||
public_name: string; | ||
duration: number; | ||
} | ||
export type TCurrency = 'USD'; | ||
export type TFrequency = 'monthly' | 'yearly'; | ||
export type TState = 'Paid' | 'Unpaid' | 'subscription.state.'; | ||
export type TScope = 'zone' | 'user'; | ||
export type TComponentName = | ||
| 'dedicated_certificates' | ||
| 'dedicated_certificates_custom' | ||
| 'page_rules' | ||
| 'zones'; | ||
export type TProductName = | ||
| 'prod_cloudflare' | ||
| 'prod_registrar' | ||
| 'apps_welcome_bar' | ||
| 'prod_argo' | ||
| 'prod_rate_limiting' | ||
| 'prod_load_balancing' | ||
| 'prod_stream' | ||
| 'prod_access'; |
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
16235
556