@appsemble/types
Advanced tools
Comparing version 0.19.0 to 0.19.1
@@ -14,4 +14,7 @@ import { IconName } from '@fortawesome/fontawesome-common-types'; | ||
email: string; | ||
emailVerified: boolean; | ||
picture: string; | ||
app: App; | ||
sso: SSOConfiguration[]; | ||
properties: Record<string, string>; | ||
} |
@@ -8,7 +8,10 @@ import { Action, BaseMessage, HTTPMethods, LogAction, Theme } from '@appsemble/sdk/src/types'; | ||
export * from './asset'; | ||
export * from './authentication'; | ||
export * from './author'; | ||
export * from './snapshot'; | ||
export * from './resource'; | ||
export * from './saml'; | ||
export * from './ssl'; | ||
export * from './template'; | ||
export * from './user'; | ||
export { Theme }; | ||
@@ -170,5 +173,6 @@ /** | ||
* - `id`: Get the app id. | ||
* - `locale`: Get the current locale of the app. | ||
* - `url`: Get the base URL of the app. | ||
*/ | ||
app: 'id' | 'url'; | ||
app: 'id' | 'locale' | 'url'; | ||
/** | ||
@@ -255,4 +259,10 @@ * Get page metadata. | ||
*/ | ||
prop: string; | ||
prop: number | string; | ||
/** | ||
* Recursively strip all nullish values from an object or array. | ||
*/ | ||
'null.strip': { | ||
depth: number; | ||
} | null; | ||
/** | ||
* Pick and return a random entry from an array. | ||
@@ -561,2 +571,64 @@ * | ||
} | ||
export interface UserLoginAction extends BaseActionDefinition<'user.login'> { | ||
/** | ||
* The email address to login with. | ||
*/ | ||
email: Remapper; | ||
/** | ||
* The password to login with. | ||
*/ | ||
password: Remapper; | ||
} | ||
export interface UserRegisterAction extends BaseActionDefinition<'user.register'> { | ||
/** | ||
* The email address to login with. | ||
*/ | ||
email: Remapper; | ||
/** | ||
* The password to login with. | ||
*/ | ||
password: Remapper; | ||
/** | ||
* The display name of the user. | ||
*/ | ||
displayName: Remapper; | ||
/** | ||
* The profile picture to use. | ||
* | ||
* This must be a file, otherwise it’s discarded. | ||
*/ | ||
picture?: Remapper; | ||
/** | ||
* Custom properties that can be assigned freely. | ||
* | ||
* Every value will be converted to a string. | ||
*/ | ||
properties?: Remapper; | ||
} | ||
export interface UserUpdateAction extends BaseActionDefinition<'user.update'> { | ||
/** | ||
* The email address to update. | ||
*/ | ||
email?: Remapper; | ||
/** | ||
* The password to update. | ||
*/ | ||
password?: Remapper; | ||
/** | ||
* The display name to update. | ||
*/ | ||
displayName?: Remapper; | ||
/** | ||
* The profile picture to update. | ||
* | ||
* This must be a file, otherwise it’s ignored. | ||
*/ | ||
picture?: Remapper; | ||
/** | ||
* Custom properties that can be assigned freely. | ||
* | ||
* Every value will be converted to a string. | ||
*/ | ||
properties?: Remapper; | ||
} | ||
export interface RequestLikeActionDefinition<T extends Action['type'] = Action['type']> extends BaseActionDefinition<T> { | ||
@@ -643,3 +715,3 @@ /** | ||
}; | ||
export declare type ActionDefinition = BaseActionDefinition<'dialog.error'> | BaseActionDefinition<'dialog.ok'> | BaseActionDefinition<'flow.back'> | BaseActionDefinition<'flow.cancel'> | BaseActionDefinition<'flow.finish'> | BaseActionDefinition<'flow.next'> | BaseActionDefinition<'link.back'> | BaseActionDefinition<'link.next'> | BaseActionDefinition<'noop'> | BaseActionDefinition<'team.join'> | BaseActionDefinition<'team.list'> | BaseActionDefinition<'throw'> | ConditionActionDefinition | DialogActionDefinition | EmailActionDefinition | EventActionDefinition | FlowToActionDefinition | LinkActionDefinition | LogActionDefinition | MessageActionDefinition | RequestActionDefinition | ResourceCountActionDefinition | ResourceCreateActionDefinition | ResourceDeleteActionDefinition | ResourceGetActionDefinition | ResourceQueryActionDefinition | ResourceSubscriptionStatusActionDefinition | ResourceSubscriptionSubscribeActionDefinition | ResourceSubscriptionToggleActionDefinition | ResourceSubscriptionUnsubscribeActionDefinition | ResourceUpdateActionDefinition | ShareActionDefinition | StaticActionDefinition | StorageReadActionDefinition | StorageWriteActionDefinition; | ||
export declare type ActionDefinition = BaseActionDefinition<'dialog.error'> | BaseActionDefinition<'dialog.ok'> | BaseActionDefinition<'flow.back'> | BaseActionDefinition<'flow.cancel'> | BaseActionDefinition<'flow.finish'> | BaseActionDefinition<'flow.next'> | BaseActionDefinition<'link.back'> | BaseActionDefinition<'link.next'> | BaseActionDefinition<'noop'> | BaseActionDefinition<'team.join'> | BaseActionDefinition<'team.list'> | BaseActionDefinition<'throw'> | ConditionActionDefinition | DialogActionDefinition | EmailActionDefinition | EventActionDefinition | FlowToActionDefinition | LinkActionDefinition | LogActionDefinition | MessageActionDefinition | RequestActionDefinition | ResourceCountActionDefinition | ResourceCreateActionDefinition | ResourceDeleteActionDefinition | ResourceGetActionDefinition | ResourceQueryActionDefinition | ResourceSubscriptionStatusActionDefinition | ResourceSubscriptionSubscribeActionDefinition | ResourceSubscriptionToggleActionDefinition | ResourceSubscriptionUnsubscribeActionDefinition | ResourceUpdateActionDefinition | ShareActionDefinition | StaticActionDefinition | StorageReadActionDefinition | StorageWriteActionDefinition | UserLoginAction | UserRegisterAction | UserUpdateAction; | ||
export interface ActionType { | ||
@@ -1265,2 +1337,6 @@ /** | ||
/** | ||
* When the secret was last updated. | ||
*/ | ||
updated?: string; | ||
/** | ||
* The SAML service provider certificate. | ||
@@ -1267,0 +1343,0 @@ */ |
export * from './appMember'; | ||
export * from './asset'; | ||
export * from './authentication'; | ||
export * from './author'; | ||
export * from './snapshot'; | ||
export * from './resource'; | ||
export * from './saml'; | ||
export * from './ssl'; | ||
export * from './template'; | ||
export * from './user'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@appsemble/types", | ||
"version": "0.19.0", | ||
"version": "0.19.1", | ||
"description": "TypeScript definitions reused within Appsemble internally", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@appsemble/sdk": "0.19.0", | ||
"@appsemble/sdk": "0.19.1", | ||
"@fortawesome/fontawesome-common-types": "^0.2.0", | ||
@@ -36,0 +36,0 @@ "jsonschema": "^1.0.0", |
Sorry, the diff of this file is not supported yet
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
45816
35
1580
+ Added@appsemble/sdk@0.19.1(transitive)
- Removed@appsemble/sdk@0.19.0(transitive)
Updated@appsemble/sdk@0.19.1