itrm-tools 1.2.9 → 1.3.1
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/api/check/RoleServicePermissionsChecker.d.ts +13 -0
- package/dist/api/check/RoleServicePermissionsChecker.js +92 -0
- package/dist/api/check/RoleServicePermissionsChecker.js.map +1 -0
- package/dist/api/check/ServiceSessionChecker.d.ts +28 -0
- package/dist/api/check/ServiceSessionChecker.js +119 -0
- package/dist/api/check/ServiceSessionChecker.js.map +1 -0
- package/dist/api/request/crud/common/ActivityHistoryManager.d.ts +40 -0
- package/dist/api/request/crud/common/ActivityHistoryManager.js +86 -0
- package/dist/api/request/crud/common/ActivityHistoryManager.js.map +1 -0
- package/dist/api/request/crud/common/ApplicationManager.d.ts +39 -0
- package/dist/api/request/crud/common/ApplicationManager.js +72 -0
- package/dist/api/request/crud/common/ApplicationManager.js.map +1 -0
- package/dist/api/request/crud/common/AvailablePlatformManager.d.ts +39 -0
- package/dist/api/request/crud/common/AvailablePlatformManager.js +86 -0
- package/dist/api/request/crud/common/AvailablePlatformManager.js.map +1 -0
- package/dist/api/request/crud/common/ComponentManager.d.ts +56 -0
- package/dist/api/request/crud/common/ComponentManager.js +78 -0
- package/dist/api/request/crud/common/ComponentManager.js.map +1 -0
- package/dist/api/request/crud/common/KeyManager.d.ts +39 -0
- package/dist/api/request/crud/common/KeyManager.js +88 -0
- package/dist/api/request/crud/common/KeyManager.js.map +1 -0
- package/dist/api/request/crud/common/PlatformManager.d.ts +44 -0
- package/dist/api/request/crud/common/PlatformManager.js +75 -0
- package/dist/api/request/crud/common/PlatformManager.js.map +1 -0
- package/dist/api/request/crud/common/RoleManager.d.ts +56 -0
- package/dist/api/request/crud/common/RoleManager.js +75 -0
- package/dist/api/request/crud/common/RoleManager.js.map +1 -0
- package/dist/api/request/crud/common/StatusManager.d.ts +34 -0
- package/dist/api/request/crud/common/StatusManager.js +74 -0
- package/dist/api/request/crud/common/StatusManager.js.map +1 -0
- package/dist/api/request/crud/common/TypeManager.d.ts +33 -0
- package/dist/api/request/crud/common/TypeManager.js +76 -0
- package/dist/api/request/crud/common/TypeManager.js.map +1 -0
- package/dist/api/request/crud/common/UserCredentialsManager.d.ts +39 -0
- package/dist/api/request/crud/common/UserCredentialsManager.js +84 -0
- package/dist/api/request/crud/common/UserCredentialsManager.js.map +1 -0
- package/dist/api/request/crud/common/UserManager.d.ts +35 -0
- package/dist/api/request/crud/common/UserManager.js +80 -0
- package/dist/api/request/crud/common/UserManager.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +26 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvailablePlatformManager.js","sourceRoot":"","sources":["../../../../../src/api/request/crud/common/AvailablePlatformManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAAwF;AA2BxF,MAAa,wBAAyB,SAAQ,uCAAuE;IAGnH,YAAY,GAAW;QACrB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAEM,QAAQ,CAAC,EAA+B;QAC7C,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,0BAA0B,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;IACnF,CAAC;IAEY,IAAI,CAAC,OAAwC;;YACxD,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,8BAA8B,OAAO,CAAC,MAAM,WAAW,OAAO,CAAC,MAAM,eAAe,OAAO,CAAC,UAAU,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;QAC/J,CAAC;KAAA;IAEY,KAAK,CAAC,OAAwC;;;YACzD,IAAI,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,qBAAqB,EAAE,OAAO,CAAC,CAAC;YAC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AAC,GAAG,IAAI,CAAC,GAAG,uBAAuB,iBAAiB,CAAC,mBAAmB,EAAE,EAAE;YACtG,MAAM,EAAE,iBAAiB,CAAC,MAAM;YAChC,UAAU,EAAE,iBAAiB,CAAC,UAAU;YACxC,MAAM,EAAE,iBAAiB,CAAC,MAAM;YAChC,aAAa,EAAE,iBAAiB,CAAC,aAAa;YAC9C,WAAW,EAAE,iBAAiB,CAAC,WAAW;SAC3C,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;IAEM,OAAO,CAAC,kBAAsC;QACnD,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,uBAAuB,kBAAkB,CAAC,mBAAmB,EAAE,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IACrI,CAAC;CACF;AAvED,4DAuEC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "../CrudServiceManager";
|
|
3
|
+
import { IPlatform } from "./PlatformManager";
|
|
4
|
+
import { IApplication } from "./ApplicationManager";
|
|
5
|
+
export interface IComponent {
|
|
6
|
+
componentId?: number;
|
|
7
|
+
platformId?: number;
|
|
8
|
+
applicationId?: number;
|
|
9
|
+
name?: string;
|
|
10
|
+
details?: IComponentDetails;
|
|
11
|
+
platforms?: IPlatform[];
|
|
12
|
+
applications?: IApplication[];
|
|
13
|
+
updatedAt?: string;
|
|
14
|
+
createdAt?: string;
|
|
15
|
+
config?: AxiosRequestConfig;
|
|
16
|
+
}
|
|
17
|
+
export interface IComponentDetails {
|
|
18
|
+
lang: Record<string, string>;
|
|
19
|
+
services: IComponentServiceDetails;
|
|
20
|
+
viewTypes: string[] | string;
|
|
21
|
+
config?: AxiosRequestConfig;
|
|
22
|
+
}
|
|
23
|
+
export interface IComponentServiceDetails {
|
|
24
|
+
[key: string]: {
|
|
25
|
+
[key: string]: {
|
|
26
|
+
[key: string]: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface IComponentSearchDetails {
|
|
31
|
+
platformId?: number;
|
|
32
|
+
applicationId?: number;
|
|
33
|
+
name?: string;
|
|
34
|
+
details?: IComponentDetails;
|
|
35
|
+
values?: IComponent[];
|
|
36
|
+
limit?: number;
|
|
37
|
+
offset?: number;
|
|
38
|
+
config?: AxiosRequestConfig;
|
|
39
|
+
}
|
|
40
|
+
export declare class ComponentManager extends CrudServiceManager<IComponentDetails, IComponent> {
|
|
41
|
+
private readonly url;
|
|
42
|
+
constructor(url: string);
|
|
43
|
+
findById(id: StandardIdRequestDefinition): Promise<IComponent | undefined>;
|
|
44
|
+
findByPlatformId(details: IComponentSearchDetails): Promise<IComponent[] | undefined>;
|
|
45
|
+
findByApplicationId(details: IComponentSearchDetails): Promise<IComponent[] | undefined>;
|
|
46
|
+
find(details: IComponentSearchDetails): Promise<IComponent | undefined>;
|
|
47
|
+
count(details: IComponentSearchDetails): Promise<{
|
|
48
|
+
result: number;
|
|
49
|
+
}>;
|
|
50
|
+
findAll(details: IComponentSearchDetails): Promise<IComponent[] | undefined>;
|
|
51
|
+
private buildRequestUrl;
|
|
52
|
+
create(details: IComponentSearchDetails): Promise<IComponent | undefined>;
|
|
53
|
+
createMany(details: IComponentSearchDetails): Promise<IComponent[] | undefined>;
|
|
54
|
+
modify(component: IComponent): Promise<any>;
|
|
55
|
+
destroy(component: IComponent): Promise<any>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ComponentManager = void 0;
|
|
13
|
+
const CrudServiceManager_1 = require("../CrudServiceManager");
|
|
14
|
+
class ComponentManager extends CrudServiceManager_1.CrudServiceManager {
|
|
15
|
+
constructor(url) {
|
|
16
|
+
super();
|
|
17
|
+
this.url = url;
|
|
18
|
+
}
|
|
19
|
+
findById(id) {
|
|
20
|
+
return this.sendFinding(`${this.url}/components?id=${id.id}`, id.config);
|
|
21
|
+
}
|
|
22
|
+
findByPlatformId(details) {
|
|
23
|
+
return this.sendAllFinding(`${this.url}/components?platformId=${details.platformId}`, details.config);
|
|
24
|
+
}
|
|
25
|
+
findByApplicationId(details) {
|
|
26
|
+
return this.sendAllFinding(`${this.url}/components?applicationId=${details.applicationId}`, details.config);
|
|
27
|
+
}
|
|
28
|
+
find(details) {
|
|
29
|
+
return this.sendFinding(`${this.url}/components?name=${details.name}`, details.config);
|
|
30
|
+
}
|
|
31
|
+
count(details) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
var _a;
|
|
34
|
+
let url = this.buildRequestUrl(`${this.url}/components`, details);
|
|
35
|
+
return (_a = (yield this.sendCounting(url, details.config))) !== null && _a !== void 0 ? _a : { result: 0 };
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
findAll(details) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
var _a;
|
|
41
|
+
let components = [];
|
|
42
|
+
let url = this.buildRequestUrl(`${this.url}/components`, details);
|
|
43
|
+
if (details.limit) {
|
|
44
|
+
components = (_a = (yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${details.limit}&offset=${details.offset}`, details.config))) !== null && _a !== void 0 ? _a : [];
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
let limit = 5000, offset = 0, isEmpty = false;
|
|
48
|
+
do {
|
|
49
|
+
let values = yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${limit}&offset=${offset}`, details.config);
|
|
50
|
+
if (values)
|
|
51
|
+
components = components.concat(values);
|
|
52
|
+
isEmpty = values == undefined || values.length == 0;
|
|
53
|
+
offset += limit;
|
|
54
|
+
} while (!isEmpty);
|
|
55
|
+
}
|
|
56
|
+
return components;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
buildRequestUrl(url, details) {
|
|
60
|
+
let suffix = `${details.applicationId ? `&applicationId=${details.applicationId}` : ""}${details.platformId ? `&platformId=${details.platformId}` : ""}${details.name ? `&name=${details.name}` : ""}`;
|
|
61
|
+
return `${url}?${suffix.substring(1)}`;
|
|
62
|
+
}
|
|
63
|
+
create(details) {
|
|
64
|
+
return this.sendCreation(`${this.url}/components`, { applicationId: details.applicationId, platformId: details.platformId, name: details.name, details: details.details }, details.config);
|
|
65
|
+
}
|
|
66
|
+
createMany(details) {
|
|
67
|
+
var _a;
|
|
68
|
+
return this.sendCreationMany(`${this.url}/components`, (_a = details.values) !== null && _a !== void 0 ? _a : [], details.config);
|
|
69
|
+
}
|
|
70
|
+
modify(component) {
|
|
71
|
+
return this.sendModification(`${this.url}/components/${component.componentId}`, { applicationId: component.applicationId, platformId: component.platformId, name: component.name, details: component.details }, component.config);
|
|
72
|
+
}
|
|
73
|
+
destroy(component) {
|
|
74
|
+
return this.sendDestruction(`${this.url}/components/${component.componentId}`, component.config);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.ComponentManager = ComponentManager;
|
|
78
|
+
//# sourceMappingURL=ComponentManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComponentManager.js","sourceRoot":"","sources":["../../../../../src/api/request/crud/common/Com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,MAAM,CAAC,CAAC;IACnG,CAAC;CAEF;AA5ED,4CA4EC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "../CrudServiceManager";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
|
+
export interface IKey {
|
|
4
|
+
keyId?: number;
|
|
5
|
+
userId?: number;
|
|
6
|
+
lastNonce?: number;
|
|
7
|
+
publicKey?: string;
|
|
8
|
+
secretKey?: string;
|
|
9
|
+
details?: any;
|
|
10
|
+
updatedAt?: string;
|
|
11
|
+
createdAt?: string;
|
|
12
|
+
config?: AxiosRequestConfig;
|
|
13
|
+
}
|
|
14
|
+
export interface IKeyDetails {
|
|
15
|
+
userId?: number;
|
|
16
|
+
lastNonce?: number;
|
|
17
|
+
publicKey?: string;
|
|
18
|
+
secretKey?: string;
|
|
19
|
+
details?: any;
|
|
20
|
+
limit?: number;
|
|
21
|
+
offset?: number;
|
|
22
|
+
values?: IKey[];
|
|
23
|
+
config?: AxiosRequestConfig;
|
|
24
|
+
}
|
|
25
|
+
export declare class KeyManager extends CrudServiceManager<IKeyDetails, IKey> {
|
|
26
|
+
private url;
|
|
27
|
+
constructor(url: string);
|
|
28
|
+
find(details: IKeyDetails): Promise<IKey | undefined>;
|
|
29
|
+
findAll(details: IKeyDetails): Promise<IKey[] | undefined>;
|
|
30
|
+
private buildRequestUrl;
|
|
31
|
+
count(details: IKeyDetails): Promise<{
|
|
32
|
+
result: number;
|
|
33
|
+
}>;
|
|
34
|
+
findById(id: StandardIdRequestDefinition): Promise<IKey | undefined>;
|
|
35
|
+
create(details: IKeyDetails): Promise<IKey | undefined>;
|
|
36
|
+
createMany(details: IKeyDetails): Promise<IKey[] | undefined>;
|
|
37
|
+
modify(key: IKey): Promise<any>;
|
|
38
|
+
destroy(key: IKey): Promise<any>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.KeyManager = void 0;
|
|
13
|
+
const CrudServiceManager_1 = require("../CrudServiceManager");
|
|
14
|
+
class KeyManager extends CrudServiceManager_1.CrudServiceManager {
|
|
15
|
+
constructor(url) {
|
|
16
|
+
super();
|
|
17
|
+
this.url = url;
|
|
18
|
+
}
|
|
19
|
+
find(details) {
|
|
20
|
+
return this.sendFinding(`${this.url}/keys?publicKey=${details.publicKey}`, details.config);
|
|
21
|
+
}
|
|
22
|
+
findAll(details) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
var _a;
|
|
25
|
+
let keys = [];
|
|
26
|
+
let url = this.buildRequestUrl(`${this.url}/keys`, details);
|
|
27
|
+
if (details.limit) {
|
|
28
|
+
keys = (_a = (yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${details.limit}&offset=${details.offset}`, details.config))) !== null && _a !== void 0 ? _a : [];
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
let limit = 5000, offset = 0, isEmpty = false;
|
|
32
|
+
do {
|
|
33
|
+
let values = yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${limit}&offset=${offset}`, details.config);
|
|
34
|
+
if (values)
|
|
35
|
+
keys = keys.concat(values);
|
|
36
|
+
isEmpty = values == undefined || values.length == 0;
|
|
37
|
+
offset += limit;
|
|
38
|
+
} while (!isEmpty);
|
|
39
|
+
}
|
|
40
|
+
return keys;
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
buildRequestUrl(url, details) {
|
|
44
|
+
let suffix = `${details.publicKey ? `&publicKey=${details.publicKey}` : ""}${details.userId ? `&userId=${details.userId}` : ""}`;
|
|
45
|
+
return `${url}?${suffix.substring(1)}`;
|
|
46
|
+
}
|
|
47
|
+
count(details) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
var _a;
|
|
50
|
+
let url = this.buildRequestUrl(`${this.url}/keys`, details);
|
|
51
|
+
return (_a = (yield this.sendCounting(url, details.config))) !== null && _a !== void 0 ? _a : { result: 0 };
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
findById(id) {
|
|
55
|
+
return this.sendFinding(`${this.url}/keys?userId=${id.id}`, id.config);
|
|
56
|
+
}
|
|
57
|
+
create(details) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
return this.sendCreation(`${this.url}/keys`, {
|
|
60
|
+
userId: details.userId,
|
|
61
|
+
lastNonce: details.lastNonce,
|
|
62
|
+
publicKey: details.publicKey,
|
|
63
|
+
secretKey: details.secretKey,
|
|
64
|
+
details: details.details
|
|
65
|
+
}, details.config);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
createMany(details) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
var _a;
|
|
71
|
+
return this.sendCreationMany(`${this.url}/keys`, (_a = details.values) !== null && _a !== void 0 ? _a : [], details.config);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
modify(key) {
|
|
75
|
+
return this.sendModification(`${this.url}/keys/${key.keyId}`, {
|
|
76
|
+
userId: key.userId,
|
|
77
|
+
lastNonce: key.lastNonce,
|
|
78
|
+
publicKey: key.publicKey,
|
|
79
|
+
secretKey: key.secretKey,
|
|
80
|
+
details: key.details
|
|
81
|
+
}, key.config);
|
|
82
|
+
}
|
|
83
|
+
destroy(key) {
|
|
84
|
+
return this.sendDestruction(`${this.url}/keys/${key.keyId}`, key.config);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.KeyManager = KeyManager;
|
|
88
|
+
//# sourceMappingURL=KeyManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyManager.js","sourceRoot":"","sources":["../../../../../src/api/request/crud/common/KeyManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAAwF;AA2BxF,MAAa,UAAW,SAAQ,uCAAqC;IAGnE,YAAY,GAAW;QACrB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAEM,IAAI,CAAC,OAAoB;QAC9B,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,mBAAmB,OAAO,CAAC,SAAS,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7F,CAAC;IAEY,OAAO,CAAC,OAAoB;;;YACvC,IAAI,IAAI,GAAW,EAAE,CAAC;YACtB,IAAI,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,OAAO,EAAE,OAAO,CAAC,CAAC;YAC5D,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;gBAClB,IAAI,GAAG,MAAA,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,OAAO,CAAC,KAAK,WAAW,OAAO,CAAC,MAAM,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,mCAAI,EAAE,CAAC;YAC1J,CAAC;iBAAM,CAAC;gBACN,IAAI,KAAK,GAAG,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CAAC;IAC3E,CAAC;CACF;AAvED,gCAuEC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "../CrudServiceManager";
|
|
3
|
+
import { IApplication } from "./ApplicationManager";
|
|
4
|
+
export interface IPlatform {
|
|
5
|
+
platformId?: number;
|
|
6
|
+
applicationId?: number;
|
|
7
|
+
name?: string;
|
|
8
|
+
details?: IPlatformDetails;
|
|
9
|
+
applications?: IApplication[];
|
|
10
|
+
updatedAt?: string;
|
|
11
|
+
createdAt?: string;
|
|
12
|
+
config?: AxiosRequestConfig;
|
|
13
|
+
}
|
|
14
|
+
export interface IPlatformDetails {
|
|
15
|
+
lang: Record<string, string>;
|
|
16
|
+
description?: string;
|
|
17
|
+
platformUrl: string;
|
|
18
|
+
config?: AxiosRequestConfig;
|
|
19
|
+
}
|
|
20
|
+
export interface IPlatformSearchDetails {
|
|
21
|
+
applicationId?: number;
|
|
22
|
+
name?: string;
|
|
23
|
+
details?: any;
|
|
24
|
+
values?: IPlatform[];
|
|
25
|
+
limit?: number;
|
|
26
|
+
offset?: number;
|
|
27
|
+
config?: AxiosRequestConfig;
|
|
28
|
+
}
|
|
29
|
+
export declare class PlatformManager extends CrudServiceManager<IPlatformSearchDetails, IPlatform> {
|
|
30
|
+
private readonly url;
|
|
31
|
+
constructor(url: string);
|
|
32
|
+
findById(id: StandardIdRequestDefinition): Promise<IPlatform | undefined>;
|
|
33
|
+
findByApplicationId(details: IPlatformSearchDetails): Promise<IPlatform[] | undefined>;
|
|
34
|
+
find(details: IPlatformSearchDetails): Promise<IPlatform | undefined>;
|
|
35
|
+
count(details: IPlatformSearchDetails): Promise<{
|
|
36
|
+
result: number;
|
|
37
|
+
}>;
|
|
38
|
+
findAll(details: IPlatformSearchDetails): Promise<IPlatform[] | undefined>;
|
|
39
|
+
private buildRequestUrl;
|
|
40
|
+
create(details: IPlatformSearchDetails): Promise<IPlatform | undefined>;
|
|
41
|
+
createMany(details: IPlatformSearchDetails): Promise<IPlatform[] | undefined>;
|
|
42
|
+
modify(platform: IPlatform): Promise<any>;
|
|
43
|
+
destroy(platform: IPlatform): Promise<any>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PlatformManager = void 0;
|
|
13
|
+
const CrudServiceManager_1 = require("../CrudServiceManager");
|
|
14
|
+
class PlatformManager extends CrudServiceManager_1.CrudServiceManager {
|
|
15
|
+
constructor(url) {
|
|
16
|
+
super();
|
|
17
|
+
this.url = url;
|
|
18
|
+
}
|
|
19
|
+
findById(id) {
|
|
20
|
+
return this.sendFinding(`${this.url}/platforms?id=${id.id}`, id.config);
|
|
21
|
+
}
|
|
22
|
+
findByApplicationId(details) {
|
|
23
|
+
return this.sendAllFinding(`${this.url}/platforms?applicationId=${details.applicationId}`, details.config);
|
|
24
|
+
}
|
|
25
|
+
find(details) {
|
|
26
|
+
return this.sendFinding(`${this.url}/platforms?name=${details.name}&applicationId=${details.applicationId}`, details.config);
|
|
27
|
+
}
|
|
28
|
+
count(details) {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
var _a;
|
|
31
|
+
let url = this.buildRequestUrl(`${this.url}/platforms`, details);
|
|
32
|
+
return (_a = (yield this.sendCounting(url, details.config))) !== null && _a !== void 0 ? _a : { result: 0 };
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
findAll(details) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
var _a;
|
|
38
|
+
let platforms = [];
|
|
39
|
+
let url = this.buildRequestUrl(`${this.url}/platforms`, details);
|
|
40
|
+
if (details.limit) {
|
|
41
|
+
platforms = (_a = (yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${details.limit}&offset=${details.offset}`, details.config))) !== null && _a !== void 0 ? _a : [];
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
let limit = 5000, offset = 0, isEmpty = false;
|
|
45
|
+
do {
|
|
46
|
+
let values = yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${limit}&offset=${offset}`, details.config);
|
|
47
|
+
if (values)
|
|
48
|
+
platforms = platforms.concat(values);
|
|
49
|
+
isEmpty = values == undefined || values.length == 0;
|
|
50
|
+
offset += limit;
|
|
51
|
+
} while (!isEmpty);
|
|
52
|
+
}
|
|
53
|
+
return platforms;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
buildRequestUrl(url, details) {
|
|
57
|
+
let suffix = `${details.applicationId ? `&applicationId=${details.applicationId}` : ""}${details.name ? `&name=${details.name}` : ""}`;
|
|
58
|
+
return `${url}?${suffix.substring(1)}`;
|
|
59
|
+
}
|
|
60
|
+
create(details) {
|
|
61
|
+
return this.sendCreation(`${this.url}/platforms`, { applicationId: details.applicationId, name: details.name, details: details.details }, details.config);
|
|
62
|
+
}
|
|
63
|
+
createMany(details) {
|
|
64
|
+
var _a;
|
|
65
|
+
return this.sendCreationMany(`${this.url}/platforms`, (_a = details.values) !== null && _a !== void 0 ? _a : [], details.config);
|
|
66
|
+
}
|
|
67
|
+
modify(platform) {
|
|
68
|
+
return this.sendModification(`${this.url}/platforms/${platform.platformId}`, { applicationId: platform.applicationId, name: platform.name, details: platform.details }, platform.config);
|
|
69
|
+
}
|
|
70
|
+
destroy(platform) {
|
|
71
|
+
return this.sendDestruction(`${this.url}/platforms/${platform.platformId}`, platform.config);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.PlatformManager = PlatformManager;
|
|
75
|
+
//# sourceMappingURL=PlatformManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlatformManager.js","sourceRoot":"","sources":["../../../../../src/api/request/crud/common/PlatformManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,8DAAwF;AA+BxF,MAAa,eAAgB,SAAQ,uCAAqD;IAGxF,YAAY,GAAW;QACrB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAEM,QAAQ,CAAC,EAA+B;QAC7C,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,iBAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;IAC1E,CAAC;IAEM,mBAAmB,CAAC,OAA+B;QACxD,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,GAAG,4BAA4B,OAAO,CAAC,aAAa,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7G,CAAC;IAEM,IAAI,CAAC,OAA+B;QACzC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,mBAAmB,OAAO,CAAC,IAAI,kBAAkB,OAAO,CAAC,aAAa,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/H,CAAC;IAEY,KAAK,CAAC,OAA+B;;;YAChD,IAAI,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,YAAY,EAAE,OAAO,CAAC,CAAC;YACjE,OAAO,MAAA,CAA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I,CAAC,GAAG,cAAc,QAAQ,CAAC,UAAU,EAAE,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/F,CAAC;CACF;AAvED,0CAuEC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "../CrudServiceManager";
|
|
3
|
+
import { IComponent } from "./ComponentManager";
|
|
4
|
+
import { IApplication } from "./ApplicationManager";
|
|
5
|
+
export interface IRole {
|
|
6
|
+
roleId?: number;
|
|
7
|
+
applicationId?: number;
|
|
8
|
+
name?: string;
|
|
9
|
+
permissions?: IRolePermissions;
|
|
10
|
+
applications?: IApplication[];
|
|
11
|
+
updatedAt?: string;
|
|
12
|
+
createdAt?: string;
|
|
13
|
+
config?: AxiosRequestConfig;
|
|
14
|
+
}
|
|
15
|
+
export interface IRolePermissions {
|
|
16
|
+
type?: string;
|
|
17
|
+
url?: string;
|
|
18
|
+
components?: {
|
|
19
|
+
[key: string]: {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
services?: {
|
|
24
|
+
[key: string]: {
|
|
25
|
+
[key: string]: {
|
|
26
|
+
[key: string]: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
schema?: IComponent[];
|
|
31
|
+
}
|
|
32
|
+
export interface IRoleSearchDetails {
|
|
33
|
+
applicationId?: number;
|
|
34
|
+
name?: string;
|
|
35
|
+
permissions?: IRolePermissions;
|
|
36
|
+
values?: IRole[];
|
|
37
|
+
limit?: number;
|
|
38
|
+
offset?: number;
|
|
39
|
+
config?: AxiosRequestConfig;
|
|
40
|
+
}
|
|
41
|
+
export declare class RoleManager extends CrudServiceManager<IRoleSearchDetails, IRole> {
|
|
42
|
+
private readonly url;
|
|
43
|
+
constructor(url: string);
|
|
44
|
+
findById(id: StandardIdRequestDefinition): Promise<IRole | undefined>;
|
|
45
|
+
findByApplicationId(details: IRoleSearchDetails): Promise<IRole[] | undefined>;
|
|
46
|
+
find(details: IRoleSearchDetails): Promise<IRole | undefined>;
|
|
47
|
+
count(details: IRoleSearchDetails): Promise<{
|
|
48
|
+
result: number;
|
|
49
|
+
}>;
|
|
50
|
+
findAll(details: IRoleSearchDetails): Promise<IRole[] | undefined>;
|
|
51
|
+
private buildRequestUrl;
|
|
52
|
+
create(details: IRoleSearchDetails): Promise<IRole | undefined>;
|
|
53
|
+
createMany(details: IRoleSearchDetails): Promise<IRole[] | undefined>;
|
|
54
|
+
modify(role: IRole): Promise<any>;
|
|
55
|
+
destroy(role: IRole): Promise<any>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RoleManager = void 0;
|
|
13
|
+
const CrudServiceManager_1 = require("../CrudServiceManager");
|
|
14
|
+
class RoleManager extends CrudServiceManager_1.CrudServiceManager {
|
|
15
|
+
constructor(url) {
|
|
16
|
+
super();
|
|
17
|
+
this.url = url;
|
|
18
|
+
}
|
|
19
|
+
findById(id) {
|
|
20
|
+
return this.sendFinding(`${this.url}/roles?id=${id.id}`, id.config);
|
|
21
|
+
}
|
|
22
|
+
findByApplicationId(details) {
|
|
23
|
+
return this.sendAllFinding(`${this.url}/roles?applicationId=${details.applicationId}`, details.config);
|
|
24
|
+
}
|
|
25
|
+
find(details) {
|
|
26
|
+
return this.sendFinding(`${this.url}/roles?role=${details.name}`, details.config);
|
|
27
|
+
}
|
|
28
|
+
count(details) {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
var _a;
|
|
31
|
+
let url = this.buildRequestUrl(`${this.url}/roles`, details);
|
|
32
|
+
return (_a = (yield this.sendCounting(url, details.config))) !== null && _a !== void 0 ? _a : { result: 0 };
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
findAll(details) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
var _a;
|
|
38
|
+
let roles = [];
|
|
39
|
+
let url = this.buildRequestUrl(`${this.url}/roles`, details);
|
|
40
|
+
if (details.limit) {
|
|
41
|
+
roles = (_a = (yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${details.limit}&offset=${details.offset}`, details.config))) !== null && _a !== void 0 ? _a : [];
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
let limit = 5000, offset = 0, isEmpty = false;
|
|
45
|
+
do {
|
|
46
|
+
let values = yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${limit}&offset=${offset}`, details.config);
|
|
47
|
+
if (values)
|
|
48
|
+
roles = roles.concat(values);
|
|
49
|
+
isEmpty = values == undefined || values.length == 0;
|
|
50
|
+
offset += limit;
|
|
51
|
+
} while (!isEmpty);
|
|
52
|
+
}
|
|
53
|
+
return roles;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
buildRequestUrl(url, details) {
|
|
57
|
+
let suffix = `${details.applicationId ? `&applicationId=${details.applicationId}` : ""}${details.name ? `&role=${details.name}` : ""}`;
|
|
58
|
+
return `${url}?${suffix.substring(1)}`;
|
|
59
|
+
}
|
|
60
|
+
create(details) {
|
|
61
|
+
return this.sendCreation(`${this.url}/roles`, { applicationId: details.applicationId, name: details.name, permissions: details.permissions }, details.config);
|
|
62
|
+
}
|
|
63
|
+
createMany(details) {
|
|
64
|
+
var _a;
|
|
65
|
+
return this.sendCreationMany(`${this.url}/roles`, (_a = details.values) !== null && _a !== void 0 ? _a : [], details.config);
|
|
66
|
+
}
|
|
67
|
+
modify(role) {
|
|
68
|
+
return this.sendModification(`${this.url}/roles/${role.roleId}`, { applicationId: role.applicationId, name: role.name, permissions: role.permissions }, role.config);
|
|
69
|
+
}
|
|
70
|
+
destroy(role) {
|
|
71
|
+
return this.sendDestruction(`${this.url}/roles/${role.roleId}`, role.config);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.RoleManager = RoleManager;
|
|
75
|
+
//# sourceMappingURL=RoleManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoleManager.js","sourceRoot":"","sources":["../../../../../src/api/request/crud/common/RoleManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,8DAAwF;AAiCxF,MAAa,WAAY,SAAQ,uCAA6C;IAG5E,YAAY,GAAW;QACrB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAEM,QAAQ,CAAC,EAA+B;QAC7C,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;IACtE,CAAC;IAEM,mBAAmB,CAAC,OAA2B;QACpD,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,GAAG,wBAAwB,OAAO,CAAC,aAAa,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACzG,CAAC;IAEM,IAAI,CAAC,OAA2B;QACrC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,eAAe,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,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I,EAAE,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EACrF,IAAI,CAAC,MAAM,CACZ,CAAC;IACJ,CAAC;IAEM,OAAO,CAAC,IAAW;QACxB,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,UAAU,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC/E,CAAC;CACF;AAvED,kCAuEC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "../CrudServiceManager";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
|
+
export interface IStatus {
|
|
4
|
+
statusId?: number;
|
|
5
|
+
status?: string;
|
|
6
|
+
details?: any;
|
|
7
|
+
updatedAt?: string;
|
|
8
|
+
createdAt?: string;
|
|
9
|
+
config?: AxiosRequestConfig;
|
|
10
|
+
}
|
|
11
|
+
export interface IStatusSearchDetails {
|
|
12
|
+
statusId?: number;
|
|
13
|
+
status?: string;
|
|
14
|
+
details?: any;
|
|
15
|
+
values?: IStatus[];
|
|
16
|
+
limit?: number;
|
|
17
|
+
offset?: number;
|
|
18
|
+
config?: AxiosRequestConfig;
|
|
19
|
+
}
|
|
20
|
+
export declare class StatusManager extends CrudServiceManager<IStatusSearchDetails, IStatus> {
|
|
21
|
+
private url;
|
|
22
|
+
constructor(url: string);
|
|
23
|
+
find(details: IStatusSearchDetails): Promise<IStatus | undefined>;
|
|
24
|
+
count(details: IStatusSearchDetails): Promise<{
|
|
25
|
+
result: number;
|
|
26
|
+
}>;
|
|
27
|
+
findAll(details: IStatusSearchDetails): Promise<IStatus[] | undefined>;
|
|
28
|
+
private buildRequestUrl;
|
|
29
|
+
findById(id: StandardIdRequestDefinition): Promise<IStatus | undefined>;
|
|
30
|
+
create(details: IStatusSearchDetails): Promise<IStatus | undefined>;
|
|
31
|
+
createMany(details: IStatusSearchDetails): Promise<IStatus[] | undefined>;
|
|
32
|
+
modify(status: IStatus): Promise<any>;
|
|
33
|
+
destroy(status: IStatus): Promise<any>;
|
|
34
|
+
}
|