@cloudflare/types
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.0.7](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/types@1.0.6...@cloudflare/types@1.0.7) (2019-02-20) | ||
**Note:** Version bump only for package @cloudflare/types | ||
## [1.0.6](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/types@1.0.5...@cloudflare/types@1.0.6) (2019-02-07) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@cloudflare/types", | ||
"description": "", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"types": "./src", | ||
@@ -20,3 +20,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "95f5f9028346c17b6601bd7464a806f70c4151ba" | ||
"gitHead": "916c2bb2b75d79bcc1d28bb43ad053c3222dc984" | ||
} |
@@ -9,3 +9,3 @@ import { TPlanId } from './zone'; | ||
state: TState; | ||
price: number; | ||
price?: number; | ||
currency: TCurrency; | ||
@@ -45,3 +45,3 @@ component_values: ISubscriptionComponentValue[]; | ||
billing: string; | ||
public_name: string; | ||
public_name: TProductPublicName; | ||
duration: number; | ||
@@ -52,2 +52,3 @@ } | ||
export type TFrequency = 'monthly' | 'yearly'; | ||
// subscription.state. is a bug on backend (BILL-4697) | ||
export type TState = 'Paid' | 'Unpaid' | 'subscription.state.'; | ||
@@ -69,1 +70,11 @@ export type TScope = 'zone' | 'user'; | ||
| 'prod_access'; | ||
export type TProductPublicName = | ||
| 'Argo' | ||
| 'Load Balancing' | ||
| 'CloudFlare Services' | ||
| 'Rate Limiting' | ||
| 'Workers' | ||
| 'Access' | ||
| 'Stream' | ||
| 'Cloudflare Registrar' | ||
| 'Cloudflare Apps'; |
@@ -8,1 +8,14 @@ // (A - keys of B) | ||
export type Omit<A, B extends keyof A> = Pick<A, Exclude<keyof A, B>>; | ||
/** | ||
* ValueOf: similar to keyof, but picks a value. | ||
* | ||
* @example | ||
* type Person = { | ||
* name: string, | ||
* phone: number | null | ||
* } | ||
* | ||
* type PhoneType = ValueOf<Person>; // string | number | null | ||
*/ | ||
export type ValueOf<T> = T[keyof T]; |
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
16932
579