@colearn/microservices-kit
Advanced tools
Comparing version 0.0.45-beta.6 to 0.0.46
@@ -16,2 +16,3 @@ import { SystemRole } from '../types'; | ||
isContentEditor(): boolean; | ||
isService(): boolean; | ||
findRole(entityType: 'family' | 'school', id: string | number, ...roles: string[]): RoleRecord | undefined; | ||
@@ -18,0 +19,0 @@ findRoleWithExtra(entityType: 'family' | 'school', id: string | number, role: string, extra: string): RoleRecord | undefined; |
@@ -27,2 +27,5 @@ "use strict"; | ||
} | ||
isService() { | ||
return this.system === types_1.SystemRole.Service; | ||
} | ||
findRole(entityType, id, ...roles) { | ||
@@ -29,0 +32,0 @@ return this.getRoles(entityType, id).find((r) => roles.indexOf(r.role) > -1); |
@@ -5,3 +5,4 @@ export type Maybe<T> = T | null; | ||
Contenteditor = "contenteditor", | ||
User = "user" | ||
User = "user", | ||
Service = "service" | ||
} | ||
@@ -8,0 +9,0 @@ export declare enum Grade { |
@@ -9,2 +9,3 @@ "use strict"; | ||
SystemRole["User"] = "user"; | ||
SystemRole["Service"] = "service"; | ||
})(SystemRole || (exports.SystemRole = SystemRole = {})); | ||
@@ -11,0 +12,0 @@ var Grade; |
{ | ||
"name": "@colearn/microservices-kit", | ||
"version": "0.0.45-beta.6", | ||
"version": "0.0.46", | ||
"description": "colearn microservice kit", | ||
@@ -37,3 +37,3 @@ "author": "Colearn", | ||
"dependencies": { | ||
"@sentry/node": "^7.54.0", | ||
"@sentry/node": "^7.55.2", | ||
"body-parser": "^1.20.2", | ||
@@ -47,3 +47,3 @@ "express-jwt": "^8.3.0", | ||
"@types/express-jwt": "^7.4.2", | ||
"@types/node": "^20.2.5", | ||
"@types/node": "^20.3.1", | ||
"eslint": "^8.42.0", | ||
@@ -50,0 +50,0 @@ "express": "^4.18.2", |
Sorry, the diff of this file is not supported yet
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
69754
1108
Updated@sentry/node@^7.55.2