@knocklabs/types
Advanced tools
Comparing version 0.1.5-rc-1.0 to 0.1.5
# @knocklabs/types | ||
## 0.1.5-rc-1.0 | ||
## 0.1.5 | ||
### Patch Changes | ||
- f442962: feat: add in app messages client, hooks, provider, and components | ||
- 26166e3: fix: update preference set types | ||
@@ -9,0 +9,0 @@ ## 0.1.4 |
@@ -5,3 +5,3 @@ { | ||
"author": "@knocklabs", | ||
"version": "0.1.5-rc-1.0", | ||
"version": "0.1.5", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "types": "./src/index.d.ts", |
@@ -22,45 +22,2 @@ export type GenericData = { | ||
export interface Tenant<T = GenericData> { | ||
id: string; | ||
properties: T; | ||
settings?: TenantSettings; | ||
created_at?: string; | ||
updated_at: string; | ||
} | ||
export interface TenantSettings { | ||
branding?: TenantBrandingSettings; | ||
preference_set?: PreferenceSetProperties; | ||
} | ||
export interface TenantBrandingSettings { | ||
primary_color?: string; | ||
primary_color_contrast?: string; | ||
logo_url?: string; | ||
icon_url?: string; | ||
} | ||
export interface PreferenceSetProperties { | ||
workflows?: WorkflowPreferences; | ||
categories?: WorkflowPreferences; | ||
channel_types?: ChannelTypePreferences; | ||
} | ||
export interface WorkflowPreferences { | ||
[key: string]: WorkflowPreferenceSetting; | ||
} | ||
export type WorkflowPreferenceSetting = | ||
| boolean | ||
| { channel_types: ChannelTypePreferences } | ||
| ConditionalPreferenceSettings; | ||
export type ChannelTypePreferences = { | ||
[_K in ChannelType]?: boolean | ConditionalPreferenceSettings; | ||
}; | ||
export type ConditionalPreferenceSettings = { | ||
conditions: Condition[]; | ||
}; | ||
export interface Condition { | ||
@@ -67,0 +24,0 @@ argument: string; |
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
1834
34