@appsemble/types
Advanced tools
Comparing version 0.30.3 to 0.30.8
@@ -39,2 +39,3 @@ import { type HTTPMethods } from './http.js'; | ||
export type ResourceGetAction = RequestLikeAction<'resource.get'>; | ||
export type ResourceHistoryGetAction = RequestLikeAction<'resource.history.get'>; | ||
export type ResourceQueryAction = RequestLikeAction<'resource.query'>; | ||
@@ -47,3 +48,3 @@ export type ResourceCountAction = RequestLikeAction<'resource.count'>; | ||
*/ | ||
export type Action = BaseAction<'analytics'> | BaseAction<'app.member.current.patch'> | BaseAction<'app.member.delete'> | BaseAction<'app.member.invite'> | BaseAction<'app.member.login'> | BaseAction<'app.member.logout'> | BaseAction<'app.member.properties.patch'> | BaseAction<'app.member.query'> | BaseAction<'app.member.register'> | BaseAction<'app.member.role.update'> | 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<'group.member.delete'> | BaseAction<'group.member.invite'> | BaseAction<'group.member.query'> | BaseAction<'group.member.role.update'> | BaseAction<'group.query'> | 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<'throw'> | LinkAction | LogAction | RequestAction | ResourceCountAction | ResourceCreateAction | ResourceDeleteAction | ResourceGetAction | ResourcePatchAction | ResourceQueryAction | ResourceUpdateAction; | ||
export type Action = BaseAction<'analytics'> | BaseAction<'app.member.current.patch'> | BaseAction<'app.member.delete'> | BaseAction<'app.member.invite'> | BaseAction<'app.member.login'> | BaseAction<'app.member.logout'> | BaseAction<'app.member.properties.patch'> | BaseAction<'app.member.query'> | BaseAction<'app.member.register'> | BaseAction<'app.member.role.update'> | 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<'group.member.delete'> | BaseAction<'group.member.invite'> | BaseAction<'group.member.query'> | BaseAction<'group.member.role.update'> | BaseAction<'group.query'> | 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<'throw'> | LinkAction | LogAction | RequestAction | ResourceCountAction | ResourceCreateAction | ResourceDeleteAction | ResourceGetAction | ResourceHistoryGetAction | ResourcePatchAction | ResourceQueryAction | ResourceUpdateAction; | ||
interface ActionErrorOptions<D extends ActionDefinition> { | ||
@@ -50,0 +51,0 @@ /** |
{ | ||
"name": "@appsemble/types", | ||
"version": "0.30.3", | ||
"version": "0.30.8", | ||
"description": "TypeScript definitions reused within Appsemble internally", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -62,2 +62,6 @@ /** | ||
/** | ||
* The permission to fetch history of a resource. | ||
*/ | ||
GetResourceHistory = "$resource:all:history:get", | ||
/** | ||
* The permission to query app resources. | ||
@@ -208,177 +212,189 @@ */ | ||
/** | ||
* The permission to fetch history of a resource. | ||
*/ | ||
GetAppResourceHistory = 25, | ||
/** | ||
* The permission to query app resources. | ||
*/ | ||
QueryAppResources = 25, | ||
QueryAppResources = 26, | ||
/** | ||
* The permission to get app resources. | ||
*/ | ||
GetAppResources = 26, | ||
GetAppResources = 27, | ||
/** | ||
* The permission to update app resources. | ||
*/ | ||
UpdateAppResources = 27, | ||
UpdateAppResources = 28, | ||
/** | ||
* The permission to patch app resources. | ||
*/ | ||
PatchAppResources = 28, | ||
PatchAppResources = 29, | ||
/** | ||
* The permission to delete app resources. | ||
*/ | ||
DeleteAppResources = 29, | ||
DeleteAppResources = 30, | ||
/** | ||
* The permission to create app assets. | ||
*/ | ||
CreateAppAssets = 30, | ||
CreateAppAssets = 31, | ||
/** | ||
* The permission to query app assets. | ||
*/ | ||
QueryAppAssets = 31, | ||
QueryAppAssets = 32, | ||
/** | ||
* The permission to update app assets. | ||
*/ | ||
UpdateAppAssets = 32, | ||
UpdateAppAssets = 33, | ||
/** | ||
* The permission to delete app assets. | ||
*/ | ||
DeleteAppAssets = 33, | ||
DeleteAppAssets = 34, | ||
/** | ||
* The permission to update organizations. | ||
*/ | ||
UpdateOrganizations = 34, | ||
UpdateOrganizations = 35, | ||
/** | ||
* The permission to delete organizations. | ||
*/ | ||
DeleteOrganizations = 35, | ||
DeleteOrganizations = 36, | ||
/** | ||
* The permission to create organization invites. | ||
*/ | ||
CreateOrganizationInvites = 36, | ||
CreateOrganizationInvites = 37, | ||
/** | ||
* The permission to query organization invites. | ||
*/ | ||
QueryOrganizationInvites = 37, | ||
QueryOrganizationInvites = 38, | ||
/** | ||
* The permission to update organization invites. | ||
*/ | ||
UpdateOrganizationInvites = 38, | ||
UpdateOrganizationInvites = 39, | ||
/** | ||
* The permission to delete organization invites. | ||
*/ | ||
DeleteOrganizationInvites = 39, | ||
DeleteOrganizationInvites = 40, | ||
/** | ||
* The permission to view the list of members in an organization. | ||
*/ | ||
QueryOrganizationMembers = 40, | ||
QueryOrganizationMembers = 41, | ||
/** | ||
* The permission to remove organization members. | ||
*/ | ||
RemoveOrganizationMembers = 41, | ||
RemoveOrganizationMembers = 42, | ||
/** | ||
* The permission to change the roles of organization members. | ||
*/ | ||
UpdateOrganizationMemberRoles = 42, | ||
UpdateOrganizationMemberRoles = 43, | ||
/** | ||
* The permission to create app invites. | ||
*/ | ||
CreateAppInvites = 43, | ||
CreateAppInvites = 44, | ||
/** | ||
* The permission to query app invites, | ||
*/ | ||
QueryAppInvites = 44, | ||
QueryAppInvites = 45, | ||
/** | ||
* The permission to delete app invites. | ||
*/ | ||
DeleteAppInvites = 46, | ||
/** | ||
* The permission to query app members. | ||
*/ | ||
QueryAppMembers = 45, | ||
QueryAppMembers = 47, | ||
/** | ||
* The permission to delete app members. | ||
*/ | ||
DeleteAppMembers = 46, | ||
DeleteAppMembers = 48, | ||
/** | ||
* The permission to update the role of app members. | ||
*/ | ||
UpdateAppMemberRoles = 47, | ||
UpdateAppMemberRoles = 49, | ||
/** | ||
* The permission to patch the properties of app members. | ||
*/ | ||
PatchAppMemberProperties = 48, | ||
PatchAppMemberProperties = 50, | ||
/** | ||
* The permission to query app groups. | ||
*/ | ||
QueryGroups = 49, | ||
QueryGroups = 51, | ||
/** | ||
* The permission to create app groups. | ||
*/ | ||
CreateGroups = 50, | ||
CreateGroups = 52, | ||
/** | ||
* The permission to update app groups. | ||
*/ | ||
UpdateGroups = 51, | ||
UpdateGroups = 53, | ||
/** | ||
* The permission to create app groups. | ||
*/ | ||
DeleteGroups = 52, | ||
DeleteGroups = 54, | ||
/** | ||
* The permission to create group invites. | ||
*/ | ||
CreateGroupInvites = 53, | ||
CreateGroupInvites = 55, | ||
/** | ||
* The permission to query group invites. | ||
*/ | ||
QueryGroupInvites = 54, | ||
QueryGroupInvites = 56, | ||
/** | ||
* The permission to delete group invites. | ||
*/ | ||
DeleteGroupInvites = 57, | ||
/** | ||
* The permission to query group members. | ||
*/ | ||
QueryGroupMembers = 55, | ||
QueryGroupMembers = 58, | ||
/** | ||
* The permission to remove group members. | ||
*/ | ||
RemoveGroupMembers = 56, | ||
RemoveGroupMembers = 59, | ||
/** | ||
* The permission to update group member roles. | ||
*/ | ||
UpdateGroupMemberRoles = 57, | ||
UpdateGroupMemberRoles = 60, | ||
/** | ||
* The permission to query app snapshots. | ||
*/ | ||
QueryAppSnapshots = 58, | ||
QueryAppSnapshots = 61, | ||
/** | ||
* The permission to create app collections. | ||
*/ | ||
CreateAppCollections = 59, | ||
CreateAppCollections = 62, | ||
/** | ||
* The permission to delete app collections. | ||
*/ | ||
DeleteAppCollections = 60, | ||
DeleteAppCollections = 63, | ||
/** | ||
* The permission to update app collections. | ||
*/ | ||
UpdateAppCollections = 61, | ||
UpdateAppCollections = 64, | ||
/** | ||
* The permission to send manual push notifications for an app. | ||
*/ | ||
PushAppNotifications = 62, | ||
PushAppNotifications = 65, | ||
/** | ||
* The permission to create trainings. | ||
*/ | ||
CreateTrainings = 63, | ||
CreateTrainings = 66, | ||
/** | ||
* The permission to update trainings. | ||
*/ | ||
UpdateTrainings = 64, | ||
UpdateTrainings = 67, | ||
/** | ||
* The permission to delete trainings. | ||
*/ | ||
DeleteTrainings = 65, | ||
DeleteTrainings = 68, | ||
/** | ||
* The permission to create training blocks. | ||
*/ | ||
CreateTrainingBlocks = 66, | ||
CreateTrainingBlocks = 69, | ||
/** | ||
* The permission to update training blocks. | ||
*/ | ||
UpdateTrainingBlocks = 67, | ||
UpdateTrainingBlocks = 70, | ||
/** | ||
* The permission to delete training blocks. | ||
*/ | ||
DeleteTrainingBlocks = 68 | ||
DeleteTrainingBlocks = 71 | ||
} | ||
@@ -385,0 +401,0 @@ export declare const appOrganizationPermissionMapping: { |
@@ -63,2 +63,6 @@ /** | ||
/** | ||
* The permission to fetch history of a resource. | ||
*/ | ||
AppPermission["GetResourceHistory"] = "$resource:all:history:get"; | ||
/** | ||
* The permission to query app resources. | ||
@@ -210,177 +214,189 @@ */ | ||
/** | ||
* The permission to fetch history of a resource. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["GetAppResourceHistory"] = 25] = "GetAppResourceHistory"; | ||
/** | ||
* The permission to query app resources. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["QueryAppResources"] = 25] = "QueryAppResources"; | ||
OrganizationPermission[OrganizationPermission["QueryAppResources"] = 26] = "QueryAppResources"; | ||
/** | ||
* The permission to get app resources. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["GetAppResources"] = 26] = "GetAppResources"; | ||
OrganizationPermission[OrganizationPermission["GetAppResources"] = 27] = "GetAppResources"; | ||
/** | ||
* The permission to update app resources. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["UpdateAppResources"] = 27] = "UpdateAppResources"; | ||
OrganizationPermission[OrganizationPermission["UpdateAppResources"] = 28] = "UpdateAppResources"; | ||
/** | ||
* The permission to patch app resources. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["PatchAppResources"] = 28] = "PatchAppResources"; | ||
OrganizationPermission[OrganizationPermission["PatchAppResources"] = 29] = "PatchAppResources"; | ||
/** | ||
* The permission to delete app resources. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["DeleteAppResources"] = 29] = "DeleteAppResources"; | ||
OrganizationPermission[OrganizationPermission["DeleteAppResources"] = 30] = "DeleteAppResources"; | ||
/** | ||
* The permission to create app assets. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["CreateAppAssets"] = 30] = "CreateAppAssets"; | ||
OrganizationPermission[OrganizationPermission["CreateAppAssets"] = 31] = "CreateAppAssets"; | ||
/** | ||
* The permission to query app assets. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["QueryAppAssets"] = 31] = "QueryAppAssets"; | ||
OrganizationPermission[OrganizationPermission["QueryAppAssets"] = 32] = "QueryAppAssets"; | ||
/** | ||
* The permission to update app assets. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["UpdateAppAssets"] = 32] = "UpdateAppAssets"; | ||
OrganizationPermission[OrganizationPermission["UpdateAppAssets"] = 33] = "UpdateAppAssets"; | ||
/** | ||
* The permission to delete app assets. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["DeleteAppAssets"] = 33] = "DeleteAppAssets"; | ||
OrganizationPermission[OrganizationPermission["DeleteAppAssets"] = 34] = "DeleteAppAssets"; | ||
/** | ||
* The permission to update organizations. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["UpdateOrganizations"] = 34] = "UpdateOrganizations"; | ||
OrganizationPermission[OrganizationPermission["UpdateOrganizations"] = 35] = "UpdateOrganizations"; | ||
/** | ||
* The permission to delete organizations. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["DeleteOrganizations"] = 35] = "DeleteOrganizations"; | ||
OrganizationPermission[OrganizationPermission["DeleteOrganizations"] = 36] = "DeleteOrganizations"; | ||
/** | ||
* The permission to create organization invites. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["CreateOrganizationInvites"] = 36] = "CreateOrganizationInvites"; | ||
OrganizationPermission[OrganizationPermission["CreateOrganizationInvites"] = 37] = "CreateOrganizationInvites"; | ||
/** | ||
* The permission to query organization invites. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["QueryOrganizationInvites"] = 37] = "QueryOrganizationInvites"; | ||
OrganizationPermission[OrganizationPermission["QueryOrganizationInvites"] = 38] = "QueryOrganizationInvites"; | ||
/** | ||
* The permission to update organization invites. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["UpdateOrganizationInvites"] = 38] = "UpdateOrganizationInvites"; | ||
OrganizationPermission[OrganizationPermission["UpdateOrganizationInvites"] = 39] = "UpdateOrganizationInvites"; | ||
/** | ||
* The permission to delete organization invites. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["DeleteOrganizationInvites"] = 39] = "DeleteOrganizationInvites"; | ||
OrganizationPermission[OrganizationPermission["DeleteOrganizationInvites"] = 40] = "DeleteOrganizationInvites"; | ||
/** | ||
* The permission to view the list of members in an organization. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["QueryOrganizationMembers"] = 40] = "QueryOrganizationMembers"; | ||
OrganizationPermission[OrganizationPermission["QueryOrganizationMembers"] = 41] = "QueryOrganizationMembers"; | ||
/** | ||
* The permission to remove organization members. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["RemoveOrganizationMembers"] = 41] = "RemoveOrganizationMembers"; | ||
OrganizationPermission[OrganizationPermission["RemoveOrganizationMembers"] = 42] = "RemoveOrganizationMembers"; | ||
/** | ||
* The permission to change the roles of organization members. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["UpdateOrganizationMemberRoles"] = 42] = "UpdateOrganizationMemberRoles"; | ||
OrganizationPermission[OrganizationPermission["UpdateOrganizationMemberRoles"] = 43] = "UpdateOrganizationMemberRoles"; | ||
/** | ||
* The permission to create app invites. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["CreateAppInvites"] = 43] = "CreateAppInvites"; | ||
OrganizationPermission[OrganizationPermission["CreateAppInvites"] = 44] = "CreateAppInvites"; | ||
/** | ||
* The permission to query app invites, | ||
*/ | ||
OrganizationPermission[OrganizationPermission["QueryAppInvites"] = 44] = "QueryAppInvites"; | ||
OrganizationPermission[OrganizationPermission["QueryAppInvites"] = 45] = "QueryAppInvites"; | ||
/** | ||
* The permission to delete app invites. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["DeleteAppInvites"] = 46] = "DeleteAppInvites"; | ||
/** | ||
* The permission to query app members. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["QueryAppMembers"] = 45] = "QueryAppMembers"; | ||
OrganizationPermission[OrganizationPermission["QueryAppMembers"] = 47] = "QueryAppMembers"; | ||
/** | ||
* The permission to delete app members. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["DeleteAppMembers"] = 46] = "DeleteAppMembers"; | ||
OrganizationPermission[OrganizationPermission["DeleteAppMembers"] = 48] = "DeleteAppMembers"; | ||
/** | ||
* The permission to update the role of app members. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["UpdateAppMemberRoles"] = 47] = "UpdateAppMemberRoles"; | ||
OrganizationPermission[OrganizationPermission["UpdateAppMemberRoles"] = 49] = "UpdateAppMemberRoles"; | ||
/** | ||
* The permission to patch the properties of app members. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["PatchAppMemberProperties"] = 48] = "PatchAppMemberProperties"; | ||
OrganizationPermission[OrganizationPermission["PatchAppMemberProperties"] = 50] = "PatchAppMemberProperties"; | ||
/** | ||
* The permission to query app groups. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["QueryGroups"] = 49] = "QueryGroups"; | ||
OrganizationPermission[OrganizationPermission["QueryGroups"] = 51] = "QueryGroups"; | ||
/** | ||
* The permission to create app groups. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["CreateGroups"] = 50] = "CreateGroups"; | ||
OrganizationPermission[OrganizationPermission["CreateGroups"] = 52] = "CreateGroups"; | ||
/** | ||
* The permission to update app groups. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["UpdateGroups"] = 51] = "UpdateGroups"; | ||
OrganizationPermission[OrganizationPermission["UpdateGroups"] = 53] = "UpdateGroups"; | ||
/** | ||
* The permission to create app groups. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["DeleteGroups"] = 52] = "DeleteGroups"; | ||
OrganizationPermission[OrganizationPermission["DeleteGroups"] = 54] = "DeleteGroups"; | ||
/** | ||
* The permission to create group invites. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["CreateGroupInvites"] = 53] = "CreateGroupInvites"; | ||
OrganizationPermission[OrganizationPermission["CreateGroupInvites"] = 55] = "CreateGroupInvites"; | ||
/** | ||
* The permission to query group invites. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["QueryGroupInvites"] = 54] = "QueryGroupInvites"; | ||
OrganizationPermission[OrganizationPermission["QueryGroupInvites"] = 56] = "QueryGroupInvites"; | ||
/** | ||
* The permission to delete group invites. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["DeleteGroupInvites"] = 57] = "DeleteGroupInvites"; | ||
/** | ||
* The permission to query group members. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["QueryGroupMembers"] = 55] = "QueryGroupMembers"; | ||
OrganizationPermission[OrganizationPermission["QueryGroupMembers"] = 58] = "QueryGroupMembers"; | ||
/** | ||
* The permission to remove group members. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["RemoveGroupMembers"] = 56] = "RemoveGroupMembers"; | ||
OrganizationPermission[OrganizationPermission["RemoveGroupMembers"] = 59] = "RemoveGroupMembers"; | ||
/** | ||
* The permission to update group member roles. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["UpdateGroupMemberRoles"] = 57] = "UpdateGroupMemberRoles"; | ||
OrganizationPermission[OrganizationPermission["UpdateGroupMemberRoles"] = 60] = "UpdateGroupMemberRoles"; | ||
/** | ||
* The permission to query app snapshots. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["QueryAppSnapshots"] = 58] = "QueryAppSnapshots"; | ||
OrganizationPermission[OrganizationPermission["QueryAppSnapshots"] = 61] = "QueryAppSnapshots"; | ||
/** | ||
* The permission to create app collections. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["CreateAppCollections"] = 59] = "CreateAppCollections"; | ||
OrganizationPermission[OrganizationPermission["CreateAppCollections"] = 62] = "CreateAppCollections"; | ||
/** | ||
* The permission to delete app collections. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["DeleteAppCollections"] = 60] = "DeleteAppCollections"; | ||
OrganizationPermission[OrganizationPermission["DeleteAppCollections"] = 63] = "DeleteAppCollections"; | ||
/** | ||
* The permission to update app collections. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["UpdateAppCollections"] = 61] = "UpdateAppCollections"; | ||
OrganizationPermission[OrganizationPermission["UpdateAppCollections"] = 64] = "UpdateAppCollections"; | ||
/** | ||
* The permission to send manual push notifications for an app. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["PushAppNotifications"] = 62] = "PushAppNotifications"; | ||
OrganizationPermission[OrganizationPermission["PushAppNotifications"] = 65] = "PushAppNotifications"; | ||
/** | ||
* The permission to create trainings. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["CreateTrainings"] = 63] = "CreateTrainings"; | ||
OrganizationPermission[OrganizationPermission["CreateTrainings"] = 66] = "CreateTrainings"; | ||
/** | ||
* The permission to update trainings. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["UpdateTrainings"] = 64] = "UpdateTrainings"; | ||
OrganizationPermission[OrganizationPermission["UpdateTrainings"] = 67] = "UpdateTrainings"; | ||
/** | ||
* The permission to delete trainings. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["DeleteTrainings"] = 65] = "DeleteTrainings"; | ||
OrganizationPermission[OrganizationPermission["DeleteTrainings"] = 68] = "DeleteTrainings"; | ||
/** | ||
* The permission to create training blocks. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["CreateTrainingBlocks"] = 66] = "CreateTrainingBlocks"; | ||
OrganizationPermission[OrganizationPermission["CreateTrainingBlocks"] = 69] = "CreateTrainingBlocks"; | ||
/** | ||
* The permission to update training blocks. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["UpdateTrainingBlocks"] = 67] = "UpdateTrainingBlocks"; | ||
OrganizationPermission[OrganizationPermission["UpdateTrainingBlocks"] = 70] = "UpdateTrainingBlocks"; | ||
/** | ||
* The permission to delete training blocks. | ||
*/ | ||
OrganizationPermission[OrganizationPermission["DeleteTrainingBlocks"] = 68] = "DeleteTrainingBlocks"; | ||
OrganizationPermission[OrganizationPermission["DeleteTrainingBlocks"] = 71] = "DeleteTrainingBlocks"; | ||
})(OrganizationPermission || (OrganizationPermission = {})); | ||
@@ -404,2 +420,3 @@ export const appOrganizationPermissionMapping = { | ||
[AppPermission.GetResources]: OrganizationPermission.GetAppResources, | ||
[AppPermission.GetResourceHistory]: OrganizationPermission.GetAppResourceHistory, | ||
[AppPermission.UpdateResources]: OrganizationPermission.UpdateAppResources, | ||
@@ -406,0 +423,0 @@ [AppPermission.PatchResources]: OrganizationPermission.PatchAppResources, |
@@ -1,2 +0,2 @@ | ||
# ![](https://gitlab.com/appsemble/appsemble/-/raw/0.30.3/config/assets/logo.svg) Appsemble Types | ||
# ![](https://gitlab.com/appsemble/appsemble/-/raw/0.30.8/config/assets/logo.svg) Appsemble Types | ||
@@ -6,3 +6,3 @@ > Reusable TypeScript types | ||
[![npm](https://img.shields.io/npm/v/@appsemble/types)](https://www.npmjs.com/package/@appsemble/types) | ||
[![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.30.3/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.30.3) | ||
[![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.30.8/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.30.8) | ||
[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io) | ||
@@ -30,3 +30,3 @@ | ||
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.30.3/LICENSE.md) © | ||
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.30.8/LICENSE.md) © | ||
[Appsemble](https://appsemble.com) |
@@ -39,3 +39,3 @@ import { AppPermission, OrganizationPermission } from './permissions.js'; | ||
} | ||
export type AppRole = PredefinedAppRole | string; | ||
export type AppRole = string; | ||
export declare const predefinedAppRolePermissions: { | ||
@@ -42,0 +42,0 @@ Member: AppPermission[]; |
@@ -32,2 +32,3 @@ import { AppPermission, OrganizationPermission } from './permissions.js'; | ||
OrganizationPermission.QueryAppInvites, | ||
OrganizationPermission.DeleteAppInvites, | ||
OrganizationPermission.QueryAppMembers, | ||
@@ -41,2 +42,3 @@ OrganizationPermission.DeleteAppMembers, | ||
OrganizationPermission.QueryGroupInvites, | ||
OrganizationPermission.DeleteGroupInvites, | ||
OrganizationPermission.QueryGroupMembers, | ||
@@ -174,2 +176,3 @@ OrganizationPermission.RemoveGroupMembers, | ||
AppPermission.QueryResources, | ||
AppPermission.GetResourceHistory, | ||
AppPermission.GetResources, | ||
@@ -176,0 +179,0 @@ AppPermission.UpdateResources, |
Sorry, the diff of this file is too big to display
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
135002
4134