@laboratory-one/api-components 0.0.27 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laboratory-one/api-components",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "description": "API components for Laboratory One",
5
5
  "author": "Laboratory One",
6
6
  "private": false,
@@ -1,5 +1,5 @@
1
1
  import { Action, ACTIONS } from './action.enum';
2
- import { Subject } from './services.enum';
2
+ import { Subject } from './subject.enum';
3
3
 
4
4
  export const mapPermissionToAbility = (
5
5
  permissions: string[],
@@ -1,5 +1,5 @@
1
1
  import { MongoAbility, InferSubjects } from '@casl/ability';
2
- import { Subject } from './services.enum';
2
+ import { Subject } from './subject.enum';
3
3
  import { Action } from './action.enum';
4
4
 
5
5
  type SubjectTypes = InferSubjects<Subject>;
@@ -2,5 +2,5 @@ export * from './ability.factory';
2
2
  export * from './ability.module';
3
3
  export * from './action.enum';
4
4
  export * from './app-ability.type';
5
- export * from './services.enum';
5
+ export * from './subject.enum';
6
6
  export * from './ability.util';
@@ -1,7 +1,8 @@
1
1
  export const SUBJECTS = {
2
- SUNG_JINWOO: 'sung-jinwoo',
3
- AUTH: 'auth',
4
2
  ALL: 'all',
3
+ AUTH: 'auth',
4
+ SUNG_JINWOO: 'sung-jinwoo',
5
+ MOMENTAI: 'momentai',
5
6
  } as const;
6
7
 
7
8
  export type Subject = (typeof SUBJECTS)[keyof typeof SUBJECTS];
@@ -1 +0,0 @@
1
- {"version":3,"file":"services.enum.d.ts","sourceRoot":"","sources":["../../../src/ability/services.enum.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;CAIX,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"services.enum.js","sourceRoot":"","sources":["../../../src/ability/services.enum.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;CACF,CAAC","sourcesContent":["export const SUBJECTS = {\n SUNG_JINWOO: 'sung-jinwoo',\n AUTH: 'auth',\n ALL: 'all',\n} as const;\n\nexport type Subject = (typeof SUBJECTS)[keyof typeof SUBJECTS];\n"]}