@thisisagile/easy 8.3.3 → 8.3.7

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.
@@ -1,8 +1,5 @@
1
1
  import { Enum, Text } from '../types';
2
2
  export declare class Scope extends Enum {
3
3
  readonly name: string;
4
- static readonly Basic: Scope;
5
- static readonly Auth: Scope;
6
- static readonly Admin: Scope;
7
4
  protected constructor(name: string, id?: Text);
8
5
  }
@@ -9,7 +9,4 @@ class Scope extends types_1.Enum {
9
9
  }
10
10
  }
11
11
  exports.Scope = Scope;
12
- Scope.Basic = new Scope('Basic');
13
- Scope.Auth = new Scope('Authorization', 'auth');
14
- Scope.Admin = new Scope('Administration', 'admin');
15
12
  //# sourceMappingURL=Scope.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/process/Scope.ts"],"names":[],"mappings":";;;AAAA,oCAA4C;AAE5C,MAAa,KAAM,SAAQ,YAAI;IAK7B,YAA+B,IAAY,EAAE,KAAW,IAAA,YAAI,EAAC,IAAI,CAAC,CAAC,KAAK;QACtE,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QADE,SAAI,GAAJ,IAAI,CAAQ;IAE3C,CAAC;;AAPH,sBAQC;AAPiB,WAAK,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AAC3B,UAAI,GAAG,IAAI,KAAK,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;AAC1C,WAAK,GAAG,IAAI,KAAK,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/process/Scope.ts"],"names":[],"mappings":";;;AAAA,oCAA4C;AAE5C,MAAa,KAAM,SAAQ,YAAI;IAK7B,YAA+B,IAAY,EAAE,KAAW,IAAA,YAAI,EAAC,IAAI,CAAC,CAAC,KAAK;QACtE,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QADE,SAAI,GAAJ,IAAI,CAAQ;IAE3C,CAAC;CACF;AARD,sBAQC"}
@@ -7,9 +7,4 @@ export declare class UseCase extends Enum {
7
7
  constructor(app: App, name: string, id?: Text, scopes?: List<Scope>);
8
8
  with: (...s: Scope[]) => this;
9
9
  static byScopes<U extends UseCase>(...s: Scope[]): List<U>;
10
- static readonly Main: UseCase;
11
- static readonly Login: UseCase;
12
- static readonly Logout: UseCase;
13
- static readonly ForgotPassword: UseCase;
14
- static readonly ChangePassword: UseCase;
15
10
  }
@@ -2,8 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UseCase = void 0;
4
4
  const types_1 = require("../types");
5
- const Scope_1 = require("./Scope");
6
- const App_1 = require("./App");
7
5
  class UseCase extends types_1.Enum {
8
6
  constructor(app, name, id = (0, types_1.text)(name).kebab, scopes = (0, types_1.toList)()) {
9
7
  super(name, id.toString());
@@ -19,9 +17,4 @@ class UseCase extends types_1.Enum {
19
17
  }
20
18
  }
21
19
  exports.UseCase = UseCase;
22
- UseCase.Main = new UseCase(App_1.App.Main, 'Main');
23
- UseCase.Login = new UseCase(App_1.App.Main, 'Login').with(Scope_1.Scope.Basic, Scope_1.Scope.Auth);
24
- UseCase.Logout = new UseCase(App_1.App.Main, 'Logout').with(Scope_1.Scope.Basic, Scope_1.Scope.Auth);
25
- UseCase.ForgotPassword = new UseCase(App_1.App.Main, 'Forgot password').with(Scope_1.Scope.Basic, Scope_1.Scope.Auth);
26
- UseCase.ChangePassword = new UseCase(App_1.App.Main, 'Change password').with(Scope_1.Scope.Basic, Scope_1.Scope.Auth);
27
20
  //# sourceMappingURL=UseCase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UseCase.js","sourceRoot":"","sources":["../../src/process/UseCase.ts"],"names":[],"mappings":";;;AAAA,oCAAgE;AAChE,mCAAgC;AAChC,+BAA4B;AAE5B,MAAa,OAAQ,SAAQ,YAAI;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CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,IAAI,CAAC,aAAK,CAAC,KAAK,EAAE,aAAK,CAAC,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"UseCase.js","sourceRoot":"","sources":["../../src/process/UseCase.ts"],"names":[],"mappings":";;;AAAA,oCAAgE;AAIhE,MAAa,OAAQ,SAAQ,YAAI;IAC/B,YAAqB,GAAQ,EAAE,IAAY,EAAE,KAAW,IAAA,YAAI,EAAC,IAAI,CAAC,CAAC,KAAK,EAAW,SAAsB,IAAA,cAAM,GAAS;QACtH,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QADR,QAAG,GAAH,GAAG,CAAK;QAAsD,WAAM,GAAN,MAAM,CAA+B;QAIxH,SAAI,GAAG,CAAC,GAAG,CAAU,EAAQ,EAAE;YAC7B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;YACtB,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;IALF,CAAC;IAOD,MAAM,CAAC,QAAQ,CAAoB,GAAG,CAAU;QAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,IAAA,YAAI,EAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5D,CAAC;CAOF;AAnBD,0BAmBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thisisagile/easy",
3
- "version": "8.3.3",
3
+ "version": "8.3.7",
4
4
  "description": "Straightforward library for building domain-driven microservice architectures",
5
5
  "author": "Sander Hoogendoorn",
6
6
  "license": "MIT",
@@ -31,13 +31,13 @@
31
31
  "access": "public"
32
32
  },
33
33
  "devDependencies": {
34
- "@thisisagile/easy-test": "8.3.3",
34
+ "@thisisagile/easy-test": "8.3.7",
35
35
  "@types/form-urlencoded": "^4.4.0",
36
36
  "@types/jsonwebtoken": "^8.5.6",
37
37
  "@types/validator": "^13.7.0"
38
38
  },
39
39
  "dependencies": {
40
- "@types/uuid": "^8.3.1",
40
+ "@types/uuid": "^8.3.3",
41
41
  "axios": "^0.24.0",
42
42
  "form-urlencoded": "^6.0.5",
43
43
  "jsonwebtoken": "^8.5.1",
@@ -1,9 +1,9 @@
1
1
  import { Enum, Text, text } from '../types';
2
2
 
3
3
  export class Scope extends Enum {
4
- static readonly Basic = new Scope('Basic');
5
- static readonly Auth = new Scope('Authorization', 'auth');
6
- static readonly Admin = new Scope('Administration', 'admin');
4
+ // static readonly Basic = new Scope('Basic');
5
+ // static readonly Auth = new Scope('Authorization', 'auth');
6
+ // static readonly Admin = new Scope('Administration', 'admin');
7
7
 
8
8
  protected constructor(readonly name: string, id: Text = text(name).kebab) {
9
9
  super(name, id.toString());
@@ -16,9 +16,9 @@ export class UseCase extends Enum {
16
16
  return this.filter(u => u.scopes.some(us => isIn(us, s)));
17
17
  }
18
18
 
19
- static readonly Main = new UseCase(App.Main, 'Main');
20
- static readonly Login = new UseCase(App.Main, 'Login').with(Scope.Basic, Scope.Auth);
21
- static readonly Logout = new UseCase(App.Main, 'Logout').with(Scope.Basic, Scope.Auth);
22
- static readonly ForgotPassword = new UseCase(App.Main, 'Forgot password').with(Scope.Basic, Scope.Auth);
23
- static readonly ChangePassword = new UseCase(App.Main, 'Change password').with(Scope.Basic, Scope.Auth);
19
+ // static readonly Main = new UseCase(App.Main, 'Main');
20
+ // static readonly Login = new UseCase(App.Main, 'Login').with(Scope.Basic, Scope.Auth);
21
+ // static readonly Logout = new UseCase(App.Main, 'Logout').with(Scope.Basic, Scope.Auth);
22
+ // static readonly ForgotPassword = new UseCase(App.Main, 'Forgot password').with(Scope.Basic, Scope.Auth);
23
+ // static readonly ChangePassword = new UseCase(App.Main, 'Change password').with(Scope.Basic, Scope.Auth);
24
24
  }