@thisisagile/easy 7.40.1 → 7.40.2

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,13 +1,13 @@
1
1
  import { List } from './List';
2
2
  import { Json, JsonValue } from './Json';
3
3
  import { Id } from './Id';
4
- export interface Gateway {
5
- all: () => Promise<List<Json>>;
6
- byId: (id: Id) => Promise<Json | undefined>;
7
- by: (key: string, value: JsonValue) => Promise<List<Json>>;
8
- search: (q: JsonValue) => Promise<List<Json>>;
9
- exists: (id: Id) => Promise<boolean>;
10
- add: (item: Json) => Promise<Json>;
11
- update: (item: Json) => Promise<Json>;
12
- remove: (id: Id) => Promise<boolean>;
4
+ export declare abstract class Gateway {
5
+ all(): Promise<List<Json>>;
6
+ byId(id: Id): Promise<Json | undefined>;
7
+ by(key: string, value: JsonValue): Promise<List<Json>>;
8
+ search(q: JsonValue): Promise<List<Json>>;
9
+ exists(id: Id): Promise<boolean>;
10
+ add(item: Json): Promise<Json>;
11
+ update(item: Json): Promise<Json>;
12
+ remove(id: Id): Promise<boolean>;
13
13
  }
@@ -1,3 +1,39 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Gateway = void 0;
4
+ const Exception_1 = require("./Exception");
5
+ class Gateway {
6
+ all() {
7
+ throw Exception_1.Exception.IsNotImplemented;
8
+ }
9
+ byId(id) {
10
+ throw Exception_1.Exception.IsNotImplemented;
11
+ }
12
+ ;
13
+ by(key, value) {
14
+ throw Exception_1.Exception.IsNotImplemented;
15
+ }
16
+ ;
17
+ search(q) {
18
+ throw Exception_1.Exception.IsNotImplemented;
19
+ }
20
+ ;
21
+ exists(id) {
22
+ throw Exception_1.Exception.IsNotImplemented;
23
+ }
24
+ ;
25
+ add(item) {
26
+ throw Exception_1.Exception.IsNotImplemented;
27
+ }
28
+ ;
29
+ update(item) {
30
+ throw Exception_1.Exception.IsNotImplemented;
31
+ }
32
+ ;
33
+ remove(id) {
34
+ throw Exception_1.Exception.IsNotImplemented;
35
+ }
36
+ ;
37
+ }
38
+ exports.Gateway = Gateway;
3
39
  //# sourceMappingURL=Gateway.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Gateway.js","sourceRoot":"","sources":["../../src/types/Gateway.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Gateway.js","sourceRoot":"","sources":["../../src/types/Gateway.ts"],"names":[],"mappings":";;;AAGA,2CAAwC;AAcxC,MAAsB,OAAO;IAC3B,GAAG;QACD,MAAM,qBAAS,CAAC,gBAAgB,CAAC;IACnC,CAAC;IAED,IAAI,CAAC,EAAM;QACT,MAAM,qBAAS,CAAC,gBAAgB,CAAC;IACnC,CAAC;IAAA,CAAC;IAEF,EAAE,CAAC,GAAW,EAAE,KAAgB;QAC9B,MAAM,qBAAS,CAAC,gBAAgB,CAAC;IACnC,CAAC;IAAA,CAAC;IAEF,MAAM,CAAC,CAAY;QACjB,MAAM,qBAAS,CAAC,gBAAgB,CAAC;IACnC,CAAC;IAAA,CAAC;IAEF,MAAM,CAAC,EAAM;QACX,MAAM,qBAAS,CAAC,gBAAgB,CAAC;IACnC,CAAC;IAAA,CAAC;IAEF,GAAG,CAAC,IAAU;QACZ,MAAM,qBAAS,CAAC,gBAAgB,CAAC;IACnC,CAAC;IAAA,CAAC;IAEF,MAAM,CAAC,IAAU;QACf,MAAM,qBAAS,CAAC,gBAAgB,CAAC;IACnC,CAAC;IAAA,CAAC;IAEF,MAAM,CAAC,EAAM;QACX,MAAM,qBAAS,CAAC,gBAAgB,CAAC;IACnC,CAAC;IAAA,CAAC;CACH;AAhCD,0BAgCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thisisagile/easy",
3
- "version": "7.40.1",
3
+ "version": "7.40.2",
4
4
  "description": "Straightforward library for building domain-driven microservice architectures",
5
5
  "author": "Sander Hoogendoorn",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "devDependencies": {
34
- "@thisisagile/easy-test": "7.40.1",
34
+ "@thisisagile/easy-test": "7.40.2",
35
35
  "@types/form-urlencoded": "^4.4.0",
36
36
  "@types/jsonwebtoken": "^8.5.5",
37
37
  "@types/validator": "^13.6.6"
@@ -1,15 +1,50 @@
1
1
  import { List } from './List';
2
2
  import { Json, JsonValue } from './Json';
3
3
  import { Id } from './Id';
4
+ import { Exception } from './Exception';
4
5
 
5
- export interface Gateway {
6
- all: () => Promise<List<Json>>;
7
- byId: (id: Id) => Promise<Json | undefined>;
8
- by: (key: string, value: JsonValue) => Promise<List<Json>>;
9
- search: (q: JsonValue) => Promise<List<Json>>;
10
- exists: (id: Id) => Promise<boolean>;
6
+ // export interface Gateway {
7
+ // all: () => Promise<List<Json>>;
8
+ // byId: (id: Id) => Promise<Json | undefined>;
9
+ // by: (key: string, value: JsonValue) => Promise<List<Json>>;
10
+ // search: (q: JsonValue) => Promise<List<Json>>;
11
+ // exists: (id: Id) => Promise<boolean>;
12
+ //
13
+ // add: (item: Json) => Promise<Json>;
14
+ // update: (item: Json) => Promise<Json>;
15
+ // remove: (id: Id) => Promise<boolean>;
16
+ // }
11
17
 
12
- add: (item: Json) => Promise<Json>;
13
- update: (item: Json) => Promise<Json>;
14
- remove: (id: Id) => Promise<boolean>;
18
+ export abstract class Gateway {
19
+ all(): Promise<List<Json>> {
20
+ throw Exception.IsNotImplemented;
21
+ }
22
+
23
+ byId(id: Id): Promise<Json | undefined> {
24
+ throw Exception.IsNotImplemented;
25
+ };
26
+
27
+ by(key: string, value: JsonValue): Promise<List<Json>> {
28
+ throw Exception.IsNotImplemented;
29
+ };
30
+
31
+ search(q: JsonValue): Promise<List<Json>> {
32
+ throw Exception.IsNotImplemented;
33
+ };
34
+
35
+ exists(id: Id): Promise<boolean> {
36
+ throw Exception.IsNotImplemented;
37
+ };
38
+
39
+ add(item: Json): Promise<Json> {
40
+ throw Exception.IsNotImplemented;
41
+ };
42
+
43
+ update(item: Json): Promise<Json> {
44
+ throw Exception.IsNotImplemented;
45
+ };
46
+
47
+ remove(id: Id): Promise<boolean> {
48
+ throw Exception.IsNotImplemented;
49
+ };
15
50
  }