@appsemble/types
Advanced tools
Comparing version 0.23.9 to 0.24.0
@@ -46,3 +46,3 @@ import { type HTTPMethods } from './http.js'; | ||
*/ | ||
export type Action = BaseAction<'analytics'> | BaseAction<'condition'> | BaseAction<'controller'> | BaseAction<'dialog.error'> | BaseAction<'dialog.ok'> | BaseAction<'dialog'> | BaseAction<'download'> | BaseAction<'each'> | BaseAction<'email'> | BaseAction<'event'> | BaseAction<'flow.back'> | BaseAction<'flow.cancel'> | BaseAction<'flow.finish'> | BaseAction<'flow.next'> | BaseAction<'flow.to'> | BaseAction<'link.back'> | BaseAction<'link.next'> | BaseAction<'match'> | BaseAction<'message'> | BaseAction<'noop'> | BaseAction<'notify'> | BaseAction<'resource.subscription.status'> | BaseAction<'resource.subscription.subscribe'> | BaseAction<'resource.subscription.toggle'> | BaseAction<'resource.subscription.unsubscribe'> | BaseAction<'share'> | BaseAction<'static'> | BaseAction<'storage.append'> | BaseAction<'storage.delete'> | BaseAction<'storage.read'> | BaseAction<'storage.subtract'> | BaseAction<'storage.update'> | BaseAction<'storage.write'> | BaseAction<'team.invite'> | BaseAction<'team.join'> | BaseAction<'team.list'> | BaseAction<'team.members'> | BaseAction<'throw'> | BaseAction<'user.create'> | BaseAction<'user.login'> | BaseAction<'user.logout'> | BaseAction<'user.register'> | BaseAction<'user.update'> | LinkAction | LogAction | RequestAction | ResourceCountAction | ResourceCreateAction | ResourceDeleteAction | ResourceGetAction | ResourcePatchAction | ResourceQueryAction | ResourceUpdateAction; | ||
export type Action = BaseAction<'analytics'> | BaseAction<'condition'> | BaseAction<'controller'> | BaseAction<'dialog.error'> | BaseAction<'dialog.ok'> | BaseAction<'dialog'> | BaseAction<'download'> | BaseAction<'each'> | BaseAction<'email'> | BaseAction<'event'> | BaseAction<'flow.back'> | BaseAction<'flow.cancel'> | BaseAction<'flow.finish'> | BaseAction<'flow.next'> | BaseAction<'flow.to'> | BaseAction<'link.back'> | BaseAction<'link.next'> | BaseAction<'match'> | BaseAction<'message'> | BaseAction<'noop'> | BaseAction<'notify'> | BaseAction<'resource.subscription.status'> | BaseAction<'resource.subscription.subscribe'> | BaseAction<'resource.subscription.toggle'> | BaseAction<'resource.subscription.unsubscribe'> | BaseAction<'share'> | BaseAction<'static'> | BaseAction<'storage.append'> | BaseAction<'storage.delete'> | BaseAction<'storage.read'> | BaseAction<'storage.subtract'> | BaseAction<'storage.update'> | BaseAction<'storage.write'> | BaseAction<'team.invite'> | BaseAction<'team.join'> | BaseAction<'team.list'> | BaseAction<'team.members'> | BaseAction<'throw'> | BaseAction<'user.create'> | BaseAction<'user.login'> | BaseAction<'user.logout'> | BaseAction<'user.query'> | BaseAction<'user.register'> | BaseAction<'user.remove'> | BaseAction<'user.update'> | LinkAction | LogAction | RequestAction | ResourceCountAction | ResourceCreateAction | ResourceDeleteAction | ResourceGetAction | ResourcePatchAction | ResourceQueryAction | ResourceUpdateAction; | ||
export {}; |
@@ -886,3 +886,3 @@ import { type IconName } from '@fortawesome/fontawesome-common-types'; | ||
*/ | ||
to: string[] | string; | ||
to: Remapper | string[] | string; | ||
} | ||
@@ -1079,2 +1079,6 @@ export interface NotifyActionDefinition extends BaseActionDefinition<'notify'> { | ||
/** | ||
* The display name of the user. | ||
*/ | ||
name: Remapper; | ||
/** | ||
* The email address to login with. | ||
@@ -1088,5 +1092,7 @@ */ | ||
/** | ||
* The display name of the user. | ||
* Custom properties that can be assigned freely. | ||
* | ||
* Every value will be converted to a string. | ||
*/ | ||
displayName: Remapper; | ||
properties?: Remapper; | ||
/** | ||
@@ -1096,33 +1102,27 @@ * The role of the created user | ||
role?: Remapper; | ||
} | ||
export interface UserQueryAction extends BaseActionDefinition<'user.query'> { | ||
/** | ||
* Custom properties that can be assigned freely. | ||
* | ||
* Every value will be converted to a string. | ||
* The roles of the users to fetch. | ||
*/ | ||
properties?: Remapper; | ||
roles?: Remapper; | ||
} | ||
export interface UserUpdateAction extends BaseActionDefinition<'user.update'> { | ||
/** | ||
* The email address to update. | ||
* The display name to update. | ||
*/ | ||
email?: Remapper; | ||
name?: Remapper; | ||
/** | ||
* The password to update. | ||
* The email address of the user to update. | ||
*/ | ||
password?: Remapper; | ||
currentEmail: Remapper; | ||
/** | ||
* The display name to update. | ||
* The new email address of the user. | ||
*/ | ||
displayName?: Remapper; | ||
newEmail?: Remapper; | ||
/** | ||
* The role of the created user | ||
* The password to update. | ||
*/ | ||
role?: Remapper; | ||
password?: Remapper; | ||
/** | ||
* The profile picture to update. | ||
* | ||
* This must be a file, otherwise it’s ignored. | ||
*/ | ||
picture?: Remapper; | ||
/** | ||
* Custom properties that can be assigned freely. | ||
@@ -1133,3 +1133,13 @@ * | ||
properties?: Remapper; | ||
/** | ||
* The role of the created user | ||
*/ | ||
role?: Remapper; | ||
} | ||
export interface UserRemoveAction extends BaseActionDefinition<'user.remove'> { | ||
/** | ||
* The email address of the account to delete. | ||
*/ | ||
email: Remapper; | ||
} | ||
export interface RequestLikeActionDefinition<T extends Action['type'] = Action['type']> extends BaseActionDefinition<T> { | ||
@@ -1253,3 +1263,3 @@ /** | ||
}; | ||
export type ActionDefinition = AnalyticsAction | 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 | ControllerActionDefinition | DialogActionDefinition | DownloadActionDefinition | EachActionDefinition | EmailActionDefinition | EventActionDefinition | FlowToActionDefinition | LinkActionDefinition | LogActionDefinition | MatchActionDefinition | MessageActionDefinition | NotifyActionDefinition | RequestActionDefinition | ResourceCountActionDefinition | ResourceCreateActionDefinition | ResourceDeleteActionDefinition | ResourceGetActionDefinition | ResourcePatchActionDefinition | ResourceQueryActionDefinition | ResourceSubscriptionStatusActionDefinition | ResourceSubscriptionSubscribeActionDefinition | ResourceSubscriptionToggleActionDefinition | ResourceSubscriptionUnsubscribeActionDefinition | ResourceUpdateActionDefinition | ShareActionDefinition | StaticActionDefinition | StorageAppendActionDefinition | StorageDeleteActionDefinition | StorageReadActionDefinition | StorageSubtractActionDefinition | StorageUpdateActionDefinition | StorageWriteActionDefinition | TeamInviteActionDefinition | TeamMembersActionDefinition | UserCreateAction | UserLoginAction | UserLogoutAction | UserRegisterAction | UserUpdateAction; | ||
export type ActionDefinition = AnalyticsAction | 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 | ControllerActionDefinition | DialogActionDefinition | DownloadActionDefinition | EachActionDefinition | EmailActionDefinition | EventActionDefinition | FlowToActionDefinition | LinkActionDefinition | LogActionDefinition | MatchActionDefinition | MessageActionDefinition | NotifyActionDefinition | RequestActionDefinition | ResourceCountActionDefinition | ResourceCreateActionDefinition | ResourceDeleteActionDefinition | ResourceGetActionDefinition | ResourcePatchActionDefinition | ResourceQueryActionDefinition | ResourceSubscriptionStatusActionDefinition | ResourceSubscriptionSubscribeActionDefinition | ResourceSubscriptionToggleActionDefinition | ResourceSubscriptionUnsubscribeActionDefinition | ResourceUpdateActionDefinition | ShareActionDefinition | StaticActionDefinition | StorageAppendActionDefinition | StorageDeleteActionDefinition | StorageReadActionDefinition | StorageSubtractActionDefinition | StorageUpdateActionDefinition | StorageWriteActionDefinition | TeamInviteActionDefinition | TeamMembersActionDefinition | UserCreateAction | UserLoginAction | UserLogoutAction | UserQueryAction | UserRegisterAction | UserRemoveAction | UserUpdateAction; | ||
export interface ActionType { | ||
@@ -1933,3 +1943,3 @@ /** | ||
*/ | ||
competence: string; | ||
competences: string[]; | ||
/** | ||
@@ -1936,0 +1946,0 @@ * Difficulty level of the training. |
{ | ||
"name": "@appsemble/types", | ||
"version": "0.23.9", | ||
"version": "0.24.0", | ||
"description": "TypeScript definitions reused within Appsemble internally", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
#  Appsemble Types | ||
#  Appsemble Types | ||
@@ -6,3 +6,3 @@ > Reusable TypeScript types | ||
[](https://www.npmjs.com/package/@appsemble/types) | ||
[](https://gitlab.com/appsemble/appsemble/-/releases/0.23.9) | ||
[](https://gitlab.com/appsemble/appsemble/-/releases/0.24.0) | ||
[](https://prettier.io) | ||
@@ -30,3 +30,3 @@ | ||
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.23.9/LICENSE.md) © | ||
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.24.0/LICENSE.md) © | ||
[Appsemble](https://appsemble.com) |
82958
2641