strata.client.core 0.0.0 → 0.0.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.
- package/{dist/Main → Main}/AbstractApplication.d.ts +13 -13
- package/{dist/Main → Main}/AbstractApplication.js +23 -21
- package/Main/AbstractApplication.js.map +1 -0
- package/{dist/Main → Main}/IApplication.d.ts +4 -4
- package/{dist/Presenter/IUpdatable.js → Main/IApplication.js} +3 -3
- package/Main/IApplication.js.map +1 -0
- package/Main/index.d.ts +2 -0
- package/Main/index.js +6 -0
- package/Main/index.js.map +1 -0
- package/{dist/Presenter → Presenter}/AbstractPresenter.d.ts +11 -11
- package/{dist/Presenter → Presenter}/AbstractPresenter.js +21 -20
- package/Presenter/AbstractPresenter.js.map +1 -0
- package/{dist/Presenter → Presenter}/AbstractUpdatable.d.ts +14 -14
- package/{dist/Presenter → Presenter}/AbstractUpdatable.js +32 -30
- package/Presenter/AbstractUpdatable.js.map +1 -0
- package/{dist/Presenter → Presenter}/Action.d.ts +9 -9
- package/{dist/Presenter → Presenter}/Action.js +18 -16
- package/Presenter/Action.js.map +1 -0
- package/{dist/Presenter → Presenter}/IAction.d.ts +5 -5
- package/{dist/Presenter → Presenter}/IAction.js +2 -2
- package/Presenter/IAction.js.map +1 -0
- package/{dist/Presenter → Presenter}/IModelStore.d.ts +11 -11
- package/{dist/Service/IResponse.js → Presenter/IModelStore.js} +3 -3
- package/Presenter/IModelStore.js.map +1 -0
- package/{dist/Presenter → Presenter}/IPresentable.d.ts +4 -4
- package/{dist/Presenter/IPresenter.js → Presenter/IPresentable.js} +3 -3
- package/Presenter/IPresentable.js.map +1 -0
- package/{dist/Presenter → Presenter}/IPresenter.d.ts +4 -4
- package/Presenter/IPresenter.js +3 -0
- package/Presenter/IPresenter.js.map +1 -0
- package/{dist/Presenter → Presenter}/IUpdatable.d.ts +8 -8
- package/Presenter/IUpdatable.js +3 -0
- package/Presenter/IUpdatable.js.map +1 -0
- package/{dist/Presenter → Presenter}/IView.d.ts +4 -4
- package/{dist/Presenter → Presenter}/IView.js +2 -2
- package/Presenter/IView.js.map +1 -0
- package/{dist/Presenter → Presenter}/IViewVisitor.d.ts +4 -4
- package/Presenter/IViewVisitor.js +3 -0
- package/Presenter/IViewVisitor.js.map +1 -0
- package/{dist/Presenter → Presenter}/ModelStore.d.ts +16 -16
- package/{dist/Presenter → Presenter}/ModelStore.js +58 -56
- package/Presenter/ModelStore.js.map +1 -0
- package/{dist/Presenter → Presenter}/SimpleAction.d.ts +9 -9
- package/{dist/Presenter → Presenter}/SimpleAction.js +19 -17
- package/Presenter/SimpleAction.js.map +1 -0
- package/Presenter/index.d.ts +10 -0
- package/Presenter/index.js +14 -0
- package/Presenter/index.js.map +1 -0
- package/{dist/Service → Service}/AbstractRestClient.d.ts +23 -23
- package/{dist/Service → Service}/AbstractRestClient.js +94 -91
- package/{dist/Service → Service}/AbstractRestClient.js.map +1 -1
- package/{dist/Service → Service}/IResponse.d.ts +8 -8
- package/{src/Presenter/IAction.js → Service/IResponse.js} +3 -3
- package/Service/IResponse.js.map +1 -0
- package/{dist/Service → Service}/IResponseProcessor.d.ts +4 -4
- package/{dist/Main/IApplication.js → Service/IResponseProcessor.js} +3 -3
- package/Service/IResponseProcessor.js.map +1 -0
- package/{dist/Service → Service}/ServiceError.d.ts +10 -10
- package/{dist/Service → Service}/ServiceError.js +31 -28
- package/Service/ServiceError.js.map +1 -0
- package/{dist/Service → Service}/StandardResponse.d.ts +12 -12
- package/{dist/Service → Service}/StandardResponse.js +31 -29
- package/Service/StandardResponse.js.map +1 -0
- package/{dist/Service → Service}/StandardResponseProcessor.d.ts +5 -5
- package/{dist/Service → Service}/StandardResponseProcessor.js +16 -16
- package/Service/StandardResponseProcessor.js.map +1 -0
- package/Service/index.d.ts +6 -0
- package/Service/index.js +12 -0
- package/Service/index.js.map +1 -0
- package/package.json +15 -20
- package/strata.client.core-v0.0.1.tgz +0 -0
- package/Strata.Client.Core.iml +0 -10
- package/dist/Main/AbstractApplication.js.map +0 -1
- package/dist/Main/IApplication.js.map +0 -1
- package/dist/Presenter/AbstractPresenter.js.map +0 -1
- package/dist/Presenter/AbstractUpdatable.js.map +0 -1
- package/dist/Presenter/Action.js.map +0 -1
- package/dist/Presenter/IAction.js.map +0 -1
- package/dist/Presenter/IModelStore.js +0 -3
- package/dist/Presenter/IModelStore.js.map +0 -1
- package/dist/Presenter/IPresentable.js +0 -3
- package/dist/Presenter/IPresentable.js.map +0 -1
- package/dist/Presenter/IPresenter.js.map +0 -1
- package/dist/Presenter/IUpdatable.js.map +0 -1
- package/dist/Presenter/IView.js.map +0 -1
- package/dist/Presenter/IViewVisitor.js +0 -3
- package/dist/Presenter/IViewVisitor.js.map +0 -1
- package/dist/Presenter/ModelStore.js.map +0 -1
- package/dist/Presenter/SimpleAction.js.map +0 -1
- package/dist/Service/IResponse.js.map +0 -1
- package/dist/Service/IResponseProcessor.js +0 -3
- package/dist/Service/IResponseProcessor.js.map +0 -1
- package/dist/Service/ServiceError.js.map +0 -1
- package/dist/Service/StandardResponse.js.map +0 -1
- package/dist/Service/StandardResponseProcessor.js.map +0 -1
- package/dist/index.d.ts +0 -18
- package/dist/index.js +0 -23
- package/dist/index.js.map +0 -1
- package/src/Main/AbstractApplication.ts +0 -39
- package/src/Main/IApplication.ts +0 -7
- package/src/Presenter/AbstractPresenter.js +0 -21
- package/src/Presenter/AbstractPresenter.js.map +0 -1
- package/src/Presenter/AbstractPresenter.ts +0 -35
- package/src/Presenter/AbstractUpdatable.js +0 -27
- package/src/Presenter/AbstractUpdatable.js.map +0 -1
- package/src/Presenter/AbstractUpdatable.ts +0 -52
- package/src/Presenter/Action.ts +0 -27
- package/src/Presenter/IAction.js.map +0 -1
- package/src/Presenter/IAction.ts +0 -9
- package/src/Presenter/IModelStore.js +0 -3
- package/src/Presenter/IModelStore.js.map +0 -1
- package/src/Presenter/IModelStore.ts +0 -21
- package/src/Presenter/IPresentable.ts +0 -9
- package/src/Presenter/IPresenter.js +0 -3
- package/src/Presenter/IPresenter.js.map +0 -1
- package/src/Presenter/IPresenter.ts +0 -6
- package/src/Presenter/IUpdatable.js +0 -3
- package/src/Presenter/IUpdatable.js.map +0 -1
- package/src/Presenter/IUpdatable.ts +0 -16
- package/src/Presenter/IView.ts +0 -7
- package/src/Presenter/IViewVisitor.ts +0 -7
- package/src/Presenter/ModelStore.js +0 -32
- package/src/Presenter/ModelStore.js.map +0 -1
- package/src/Presenter/ModelStore.ts +0 -95
- package/src/Presenter/SimpleAction.ts +0 -27
- package/src/Service/AbstractRestClient.ts +0 -171
- package/src/Service/IResponse.ts +0 -16
- package/src/Service/IResponseProcessor.ts +0 -7
- package/src/Service/ServiceError.ts +0 -43
- package/src/Service/StandardResponse.ts +0 -48
- package/src/Service/StandardResponseProcessor.ts +0 -21
- package/src/index.ts +0 -20
- package/strata.client.core-0.0.0.tgz +0 -0
- package/tsconfig.json +0 -18
|
@@ -1,57 +1,59 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModelStore = void 0;
|
|
4
|
-
const
|
|
5
|
-
class ModelStore {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
let
|
|
40
|
-
let
|
|
41
|
-
this.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
.
|
|
53
|
-
.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModelStore = void 0;
|
|
4
|
+
const Container_1 = require("strata.foundation.core/Container");
|
|
5
|
+
class ModelStore {
|
|
6
|
+
updatables;
|
|
7
|
+
models;
|
|
8
|
+
constructor() {
|
|
9
|
+
this.updatables = new Container_1.MultiMap();
|
|
10
|
+
this.models = new Map();
|
|
11
|
+
}
|
|
12
|
+
attach(updatable) {
|
|
13
|
+
this.updatables.put(updatable.getKey(), updatable);
|
|
14
|
+
if (updatable.getModelStore() != this)
|
|
15
|
+
updatable.setModelStore(this);
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
detach(updatable) {
|
|
19
|
+
this.updatables.remove(updatable.getKey(), updatable);
|
|
20
|
+
if (updatable.getModelStore() == this)
|
|
21
|
+
updatable.clearModelStore();
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
insert(key, model) {
|
|
25
|
+
this.models.set(key, model);
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
remove(key) {
|
|
29
|
+
this.models.delete(key);
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
hasUpdatable(key) {
|
|
33
|
+
return this.updatables.containsKey(key);
|
|
34
|
+
}
|
|
35
|
+
hasModel(key) {
|
|
36
|
+
return this.models.has(key);
|
|
37
|
+
}
|
|
38
|
+
apply(action) {
|
|
39
|
+
let key = action.getKey();
|
|
40
|
+
let updatables = this.updatables.get(key);
|
|
41
|
+
let model = this.models.get(key);
|
|
42
|
+
let updated = action.apply(model);
|
|
43
|
+
this.replace(key, updated, model, updatables);
|
|
44
|
+
}
|
|
45
|
+
replace(key, updated, previous, updatables) {
|
|
46
|
+
updated
|
|
47
|
+
.thenApply(current => {
|
|
48
|
+
this.models.delete(key);
|
|
49
|
+
this.models.set(key, current);
|
|
50
|
+
return current;
|
|
51
|
+
})
|
|
52
|
+
.thenAccept(current => updatables
|
|
53
|
+
.map(updatable => updatable)
|
|
54
|
+
.forEach(updatable => updatable.update(current)), error => console.error(error))
|
|
55
|
+
.subscribe();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.ModelStore = ModelStore;
|
|
57
59
|
//# sourceMappingURL=ModelStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelStore.js","sourceRoot":"","sources":["../../../main/typescript/Presenter/ModelStore.ts"],"names":[],"mappings":";;;AAKA,gEAA0D;AAE1D,MACM,UAAU;IAGJ,UAAU,CAA2B;IACrC,MAAM,CAAqB;IAEnC;QAEI,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAQ,EAAiB,CAAC;QAChD,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IAC5C,CAAC;IAED,MAAM,CAAI,SAAwB;QAE9B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,EAAE,EAAC,SAAS,CAAC,CAAC;QAElD,IAAI,SAAS,CAAC,aAAa,EAAE,IAAI,IAAI;YACjC,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAElC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,CAAI,SAAwB;QAE9B,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,EAAC,SAAS,CAAC,CAAC;QAErD,IAAI,SAAS,CAAC,aAAa,EAAE,IAAI,IAAI;YACjC,SAAS,CAAC,eAAe,EAAE,CAAC;QAEhC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,CAAI,GAAW,EAAE,KAAQ;QAE3B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAC,KAAK,CAAC,CAAC;QAC3B,OAAO,IAAI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AC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;aACjC,SAAS,EAAE,CAAC;IACrB,CAAC;CAEJ;AAxFD,gCAwFC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IAction } from "./IAction";
|
|
2
|
-
import { ICompletionStage } from "strata.foundation.core";
|
|
3
|
-
export declare class SimpleAction<M> implements IAction<M> {
|
|
4
|
-
private readonly key;
|
|
5
|
-
private readonly action;
|
|
6
|
-
constructor(key: string, action: (model: M) => M);
|
|
7
|
-
getKey(): string;
|
|
8
|
-
apply(model: M): ICompletionStage<M>;
|
|
9
|
-
}
|
|
1
|
+
import { IAction } from "./IAction";
|
|
2
|
+
import { ICompletionStage } from "strata.foundation.core/Concurrent";
|
|
3
|
+
export declare class SimpleAction<M> implements IAction<M> {
|
|
4
|
+
private readonly key;
|
|
5
|
+
private readonly action;
|
|
6
|
+
constructor(key: string, action: (model: M) => M);
|
|
7
|
+
getKey(): string;
|
|
8
|
+
apply(model: M): ICompletionStage<M>;
|
|
9
|
+
}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SimpleAction = void 0;
|
|
4
|
-
const
|
|
5
|
-
class SimpleAction {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimpleAction = void 0;
|
|
4
|
+
const Concurrent_1 = require("strata.foundation.core/Concurrent");
|
|
5
|
+
class SimpleAction {
|
|
6
|
+
key;
|
|
7
|
+
action;
|
|
8
|
+
constructor(key, action) {
|
|
9
|
+
this.key = key;
|
|
10
|
+
this.action = action;
|
|
11
|
+
}
|
|
12
|
+
getKey() {
|
|
13
|
+
return this.key;
|
|
14
|
+
}
|
|
15
|
+
apply(model) {
|
|
16
|
+
return Concurrent_1.CompletableObservable.fromResult(this.action(model));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.SimpleAction = SimpleAction;
|
|
18
20
|
//# sourceMappingURL=SimpleAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleAction.js","sourceRoot":"","sources":["../../../main/typescript/Presenter/SimpleAction.ts"],"names":[],"mappings":";;;AACA,kEAAyF;AAEzF,MACM,YAAY;IAGG,GAAG,CAAS;IACZ,MAAM,CAAkB;IAEzC,YAAY,GAAW,EAAC,MAAuB;QAE3C,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED,MAAM;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAED,KAAK,CAAC,KAAQ;QAEV,OAAO,kCAAqB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAChE,CAAC;CAEJ;AAvBD,oCAuBC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { IUpdatable } from './IUpdatable';
|
|
2
|
+
export { IPresentable } from './IPresentable';
|
|
3
|
+
export { IAction } from './IAction';
|
|
4
|
+
export { IModelStore } from './IModelStore';
|
|
5
|
+
export { IPresenter } from './IPresenter';
|
|
6
|
+
export { AbstractUpdatable } from './AbstractUpdatable';
|
|
7
|
+
export { AbstractPresenter } from './AbstractPresenter';
|
|
8
|
+
export { ModelStore } from './ModelStore';
|
|
9
|
+
export { Action } from './Action';
|
|
10
|
+
export { SimpleAction } from './SimpleAction';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimpleAction = exports.Action = exports.ModelStore = exports.AbstractPresenter = exports.AbstractUpdatable = void 0;
|
|
4
|
+
var AbstractUpdatable_1 = require("./AbstractUpdatable");
|
|
5
|
+
Object.defineProperty(exports, "AbstractUpdatable", { enumerable: true, get: function () { return AbstractUpdatable_1.AbstractUpdatable; } });
|
|
6
|
+
var AbstractPresenter_1 = require("./AbstractPresenter");
|
|
7
|
+
Object.defineProperty(exports, "AbstractPresenter", { enumerable: true, get: function () { return AbstractPresenter_1.AbstractPresenter; } });
|
|
8
|
+
var ModelStore_1 = require("./ModelStore");
|
|
9
|
+
Object.defineProperty(exports, "ModelStore", { enumerable: true, get: function () { return ModelStore_1.ModelStore; } });
|
|
10
|
+
var Action_1 = require("./Action");
|
|
11
|
+
Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return Action_1.Action; } });
|
|
12
|
+
var SimpleAction_1 = require("./SimpleAction");
|
|
13
|
+
Object.defineProperty(exports, "SimpleAction", { enumerable: true, get: function () { return SimpleAction_1.SimpleAction; } });
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../main/typescript/Presenter/index.ts"],"names":[],"mappings":";;;AAKA,yDAAsD;AAA9C,sHAAA,iBAAiB,OAAA;AACzB,yDAAsD;AAA9C,sHAAA,iBAAiB,OAAA;AACzB,2CAAwC;AAAhC,wGAAA,UAAU,OAAA;AAClB,mCAAgC;AAAxB,gGAAA,MAAM,OAAA;AACd,+CAA4C;AAApC,4GAAA,YAAY,OAAA"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ICompletionStage } from "strata.foundation.core";
|
|
2
|
-
import { IResponseProcessor } from "./IResponseProcessor";
|
|
3
|
-
export declare abstract class AbstractRestClient {
|
|
4
|
-
private readonly baseUrl;
|
|
5
|
-
private headers;
|
|
6
|
-
private readonly responseProcessor;
|
|
7
|
-
protected constructor(baseUrl: string, responseProcessor?: IResponseProcessor);
|
|
8
|
-
protected setHeader(headerKey: string, headerValue: string): AbstractRestClient;
|
|
9
|
-
protected clearHeader(headerKey: string): AbstractRestClient;
|
|
10
|
-
protected clearHeaders(): AbstractRestClient;
|
|
11
|
-
protected getHeader(headerKey: string): string;
|
|
12
|
-
protected hasHeader(headerKey: string): boolean;
|
|
13
|
-
protected doPost<TReply, TRequest>(methodPath: string, request: TRequest): ICompletionStage<TReply>;
|
|
14
|
-
protected doPut<TReply, TRequest>(methodPath: string, request: TRequest): ICompletionStage<TReply>;
|
|
15
|
-
protected doDelete<TReply>(methodPath: string, pathParams: Map<string, Object>, queryParams: Map<string, Object>): ICompletionStage<TReply>;
|
|
16
|
-
protected doGet<TReply>(methodPath: string, pathParams: Map<string, Object>, queryParams: Map<string, Object>): ICompletionStage<TReply>;
|
|
17
|
-
private sendRequestWithBody;
|
|
18
|
-
private sendRequestWithParameters;
|
|
19
|
-
private getUrl;
|
|
20
|
-
private resolveTemplates;
|
|
21
|
-
private appendQueryParams;
|
|
22
|
-
private processResponse;
|
|
23
|
-
}
|
|
1
|
+
import { ICompletionStage } from "strata.foundation.core/Concurrent";
|
|
2
|
+
import { IResponseProcessor } from "./IResponseProcessor";
|
|
3
|
+
export declare abstract class AbstractRestClient {
|
|
4
|
+
private readonly baseUrl;
|
|
5
|
+
private headers;
|
|
6
|
+
private readonly responseProcessor;
|
|
7
|
+
protected constructor(baseUrl: string, responseProcessor?: IResponseProcessor);
|
|
8
|
+
protected setHeader(headerKey: string, headerValue: string): AbstractRestClient;
|
|
9
|
+
protected clearHeader(headerKey: string): AbstractRestClient;
|
|
10
|
+
protected clearHeaders(): AbstractRestClient;
|
|
11
|
+
protected getHeader(headerKey: string): string;
|
|
12
|
+
protected hasHeader(headerKey: string): boolean;
|
|
13
|
+
protected doPost<TReply, TRequest>(methodPath: string, request: TRequest): ICompletionStage<TReply>;
|
|
14
|
+
protected doPut<TReply, TRequest>(methodPath: string, request: TRequest): ICompletionStage<TReply>;
|
|
15
|
+
protected doDelete<TReply>(methodPath: string, pathParams: Map<string, Object>, queryParams: Map<string, Object>): ICompletionStage<TReply>;
|
|
16
|
+
protected doGet<TReply>(methodPath: string, pathParams: Map<string, Object>, queryParams: Map<string, Object>): ICompletionStage<TReply>;
|
|
17
|
+
private sendRequestWithBody;
|
|
18
|
+
private sendRequestWithParameters;
|
|
19
|
+
private getUrl;
|
|
20
|
+
private resolveTemplates;
|
|
21
|
+
private appendQueryParams;
|
|
22
|
+
private processResponse;
|
|
23
|
+
}
|
|
@@ -1,92 +1,95 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AbstractRestClient = void 0;
|
|
4
|
-
const
|
|
5
|
-
const StandardResponseProcessor_1 = require("./StandardResponseProcessor");
|
|
6
|
-
const StandardResponse_1 = require("./StandardResponse");
|
|
7
|
-
class AbstractRestClient {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
this
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
this
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return this
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return this.headers.
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return this.
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return this.sendRequestWithBody("
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return this.
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return this.sendRequestWithParameters("
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
return
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AbstractRestClient = void 0;
|
|
4
|
+
const Concurrent_1 = require("strata.foundation.core/Concurrent");
|
|
5
|
+
const StandardResponseProcessor_1 = require("./StandardResponseProcessor");
|
|
6
|
+
const StandardResponse_1 = require("./StandardResponse");
|
|
7
|
+
class AbstractRestClient {
|
|
8
|
+
baseUrl;
|
|
9
|
+
headers;
|
|
10
|
+
responseProcessor;
|
|
11
|
+
constructor(baseUrl, responseProcessor) {
|
|
12
|
+
this.baseUrl = baseUrl;
|
|
13
|
+
this.headers = new Headers();
|
|
14
|
+
this.responseProcessor =
|
|
15
|
+
responseProcessor == null
|
|
16
|
+
? new StandardResponseProcessor_1.StandardResponseProcessor()
|
|
17
|
+
: responseProcessor;
|
|
18
|
+
}
|
|
19
|
+
setHeader(headerKey, headerValue) {
|
|
20
|
+
this.headers.append(headerKey, headerValue);
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
clearHeader(headerKey) {
|
|
24
|
+
this.headers.delete(headerKey);
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
clearHeaders() {
|
|
28
|
+
this.headers = new Headers();
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
getHeader(headerKey) {
|
|
32
|
+
return this.headers.get(headerKey);
|
|
33
|
+
}
|
|
34
|
+
hasHeader(headerKey) {
|
|
35
|
+
return this.headers.has(headerKey);
|
|
36
|
+
}
|
|
37
|
+
doPost(methodPath, request) {
|
|
38
|
+
return this.sendRequestWithBody("POST", methodPath, request);
|
|
39
|
+
}
|
|
40
|
+
doPut(methodPath, request) {
|
|
41
|
+
return this.sendRequestWithBody("PUT", methodPath, request);
|
|
42
|
+
}
|
|
43
|
+
doDelete(methodPath, pathParams, queryParams) {
|
|
44
|
+
return this.sendRequestWithParameters("DELETE", methodPath, pathParams, queryParams);
|
|
45
|
+
}
|
|
46
|
+
doGet(methodPath, pathParams, queryParams) {
|
|
47
|
+
return this.sendRequestWithParameters("GET", methodPath, pathParams, queryParams);
|
|
48
|
+
}
|
|
49
|
+
sendRequestWithBody(method, methodPath, request) {
|
|
50
|
+
return Concurrent_1.CompletableObservable.fromPromise(fetch(this.getUrl(methodPath), {
|
|
51
|
+
method: method,
|
|
52
|
+
body: JSON.stringify(request),
|
|
53
|
+
headers: this.headers
|
|
54
|
+
}).then(response => this.processResponse(response, methodPath)));
|
|
55
|
+
}
|
|
56
|
+
sendRequestWithParameters(method, methodPath, pathParams, queryParams) {
|
|
57
|
+
let requestUrl = this.resolveTemplates(this.getUrl(methodPath), pathParams);
|
|
58
|
+
requestUrl = this.appendQueryParams(requestUrl, queryParams);
|
|
59
|
+
return Concurrent_1.CompletableObservable.fromPromise(fetch(requestUrl, {
|
|
60
|
+
method: method,
|
|
61
|
+
headers: this.headers
|
|
62
|
+
}).then(response => this.processResponse(response, methodPath)));
|
|
63
|
+
}
|
|
64
|
+
getUrl(methodPath) {
|
|
65
|
+
return this.baseUrl + "/" + methodPath;
|
|
66
|
+
}
|
|
67
|
+
resolveTemplates(inputUrl, pathParams) {
|
|
68
|
+
pathParams
|
|
69
|
+
.forEach((value, key, ignore) => {
|
|
70
|
+
let template = '{' + key + '}';
|
|
71
|
+
return inputUrl = inputUrl.replace(template, value.toString);
|
|
72
|
+
});
|
|
73
|
+
return inputUrl;
|
|
74
|
+
}
|
|
75
|
+
appendQueryParams(inputUrl, queryParams) {
|
|
76
|
+
let i = 0;
|
|
77
|
+
queryParams
|
|
78
|
+
.forEach((value, key, ignore) => {
|
|
79
|
+
if (i == 0)
|
|
80
|
+
inputUrl = inputUrl + '?';
|
|
81
|
+
else
|
|
82
|
+
inputUrl = inputUrl + '&';
|
|
83
|
+
++i;
|
|
84
|
+
return inputUrl = inputUrl + key + '=' + value.toString();
|
|
85
|
+
});
|
|
86
|
+
return inputUrl;
|
|
87
|
+
}
|
|
88
|
+
processResponse(response, methodPath) {
|
|
89
|
+
return this
|
|
90
|
+
.responseProcessor
|
|
91
|
+
.process(new StandardResponse_1.StandardResponse(this.baseUrl, methodPath, response));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.AbstractRestClient = AbstractRestClient;
|
|
92
95
|
//# sourceMappingURL=AbstractRestClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractRestClient.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"AbstractRestClient.js","sourceRoot":"","sources":["../../../main/typescript/Service/AbstractRestClient.ts"],"names":[],"mappings":";;;AAAA,kEAAyF;AAEzF,2EAAsE;AACtE,yDAAoD;AAEpD,MACe,kBAAkB;IAEZ,OAAO,CAAS;IACzB,OAAO,CAAU;IACR,iBAAiB,CAAqB;IAEvD,YAAsB,OAAe,EAAC,iBAAsC;QAExE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,CAAC,iBAAiB;YAClB,iBAAiB,IAAI,IAAI;gBACrB,CAAC,CAAC,IAAI,qDAAyB,EAAE;gBACjC,CAAC,CAAC,iBAAiB,CAAC;IAChC,CAAC;IAES,SAAS,CAAC,SAAiB,EAAC,WAAmB;QAErD,IAAI,CAAC,OAAO,CAAC,MAA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QAEtE,IAAI,CAAC,GAAW,CAAC,CAAC;QAElB,WAAW;aACN,OAAO,CACJ,CAAC,KAAK,EAAC,GAAG,EAAC,MAAM,EAAE,EAAE;YAEjB,IAAI,CAAC,IAAI,CAAC;gBACN,QAAQ,GAAG,QAAQ,GAAG,GAAG,CAAC;;gBAE1B,QAAQ,GAAG,QAAQ,GAAG,GAAG,CAAC;YAE9B,EAAE,CAAC,CAAC;YACJ,OAAO,QAAQ,GAAG,QAAQ,GAAG,GAAG,GAAG,GAAG,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC9D,CAAC,CAAC,CAAC;QAEX,OAAO,QAAQ,CAAC;IACpB,CAAC;IAEO,eAAe,CAAS,QAAkB,EAAC,UAAkB;QAGjE,OAAO,IAAI;aACN,iBAAiB;aACjB,OAAO,CAAS,IAAI,mCAAgB,CAAC,IAAI,CAAC,OAAO,EAAC,UAAU,EAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,CAAC;CACJ;AArKD,gDAqKC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface IResponse {
|
|
2
|
-
getRequestPath(): string;
|
|
3
|
-
getMediaType(): string;
|
|
4
|
-
getStatus(): number;
|
|
5
|
-
getStatusReason(): string;
|
|
6
|
-
readEntity<E>(): Promise<E>;
|
|
7
|
-
close(): void;
|
|
8
|
-
}
|
|
1
|
+
export interface IResponse {
|
|
2
|
+
getRequestPath(): string;
|
|
3
|
+
getMediaType(): string;
|
|
4
|
+
getStatus(): number;
|
|
5
|
+
getStatusReason(): string;
|
|
6
|
+
readEntity<E>(): Promise<E>;
|
|
7
|
+
close(): void;
|
|
8
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=IResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IResponse.js","sourceRoot":"","sources":["../../../main/typescript/Service/IResponse.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IResponse } from "./IResponse";
|
|
2
|
-
export interface IResponseProcessor {
|
|
3
|
-
process<R>(response: IResponse): Promise<R>;
|
|
4
|
-
}
|
|
1
|
+
import { IResponse } from "./IResponse";
|
|
2
|
+
export interface IResponseProcessor {
|
|
3
|
+
process<R>(response: IResponse): Promise<R>;
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=IResponseProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IResponseProcessor.js","sourceRoot":"","sources":["../../../main/typescript/Service/IResponseProcessor.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IResponse } from "./IResponse";
|
|
2
|
-
export declare class ServiceError extends Error {
|
|
3
|
-
private readonly requestPath;
|
|
4
|
-
private readonly status;
|
|
5
|
-
private readonly statusReason;
|
|
6
|
-
constructor(response: IResponse);
|
|
7
|
-
getRequestPath(): string;
|
|
8
|
-
getStatus(): number;
|
|
9
|
-
getStatusReason(): string;
|
|
10
|
-
}
|
|
1
|
+
import { IResponse } from "./IResponse";
|
|
2
|
+
export declare class ServiceError extends Error {
|
|
3
|
+
private readonly requestPath;
|
|
4
|
+
private readonly status;
|
|
5
|
+
private readonly statusReason;
|
|
6
|
+
constructor(response: IResponse);
|
|
7
|
+
getRequestPath(): string;
|
|
8
|
+
getStatus(): number;
|
|
9
|
+
getStatusReason(): string;
|
|
10
|
+
}
|
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServiceError = void 0;
|
|
4
|
-
class ServiceError extends Error {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return this.
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return this.
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"\
|
|
28
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceError = void 0;
|
|
4
|
+
class ServiceError extends Error {
|
|
5
|
+
requestPath;
|
|
6
|
+
status;
|
|
7
|
+
statusReason;
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(initializeServiceErrorMessage(response));
|
|
10
|
+
this.requestPath = response.getRequestPath();
|
|
11
|
+
this.status = response.getStatus();
|
|
12
|
+
this.statusReason = response.getStatusReason();
|
|
13
|
+
}
|
|
14
|
+
getRequestPath() {
|
|
15
|
+
return this.requestPath;
|
|
16
|
+
}
|
|
17
|
+
getStatus() {
|
|
18
|
+
return this.status;
|
|
19
|
+
}
|
|
20
|
+
getStatusReason() {
|
|
21
|
+
return this.statusReason;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.ServiceError = ServiceError;
|
|
25
|
+
function initializeServiceErrorMessage(response) {
|
|
26
|
+
return "Exception during response processing:\n" +
|
|
27
|
+
"\tFrom request: " + response.getRequestPath() + '\n' +
|
|
28
|
+
"\tResponse status code: " + response.getStatus() + '\n' +
|
|
29
|
+
"\tResponse status message: " + response.getStatusReason() + '\n' +
|
|
30
|
+
"\tResponse media type: " + response.getMediaType() + '\n';
|
|
31
|
+
}
|
|
29
32
|
//# sourceMappingURL=ServiceError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceError.js","sourceRoot":"","sources":["../../../main/typescript/Service/ServiceError.ts"],"names":[],"mappings":";;;AAEA,MACM,YACF,SAAQ,KAAK;IAEI,WAAW,CAAS;IACpB,MAAM,CAAS;IACf,YAAY,CAAS;IAEtC,YAAY,QAAmB;QAE3B,KAAK,CAAC,6BAA6B,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC/C,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;QAC7C,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;QACnC,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC,eAAe,EAAE,CAAC;IACnD,CAAC;IAED,cAAc;QAEV,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,SAAS;QAEL,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,eAAe;QAEX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;CAEJ;AA/BD,oCA+BC;AAED,SAAS,6BAA6B,CAAC,QAAmB;IAEtD,OAAO,yCAAyC;QAC5C,kBAAkB,GAAG,QAAQ,CAAC,cAAc,EAAE,GAAG,IAAI;QACrD,0BAA0B,GAAG,QAAQ,CAAC,SAAS,EAAE,GAAG,IAAI;QACxD,6BAA6B,GAAG,QAAQ,CAAC,eAAe,EAAE,GAAG,IAAI;QACjE,yBAAyB,GAAG,QAAQ,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC;AACnE,CAAC"}
|