@knocklabs/types
Advanced tools
Comparing version 0.1.4 to 0.1.5-rc.0
# @knocklabs/types | ||
## 0.1.5-rc.0 | ||
### Patch Changes | ||
- f442962: feat: add in app messages client, hooks, provider, and components | ||
## 0.1.4 | ||
@@ -4,0 +10,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "@knocklabs", | ||
"version": "0.1.4", | ||
"version": "0.1.5-rc.0", | ||
"license": "MIT", | ||
@@ -17,3 +17,3 @@ "types": "./src/index.d.ts", | ||
"eslint": "^8.56.0", | ||
"typescript": "^5.3.3" | ||
"typescript": "^5.6.2" | ||
}, | ||
@@ -20,0 +20,0 @@ "publishConfig": { |
@@ -21,1 +21,50 @@ export type GenericData = { | ||
| "http"; | ||
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 { | ||
argument: string; | ||
variable: string; | ||
operator: 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
2858
69