elemento-alpha-tools 1.3.3 → 1.3.5
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,24 +1,27 @@
|
|
|
1
|
-
import { CrudServiceManager, StandardIdRequestDefinition } from
|
|
2
|
-
import { AxiosRequestConfig } from
|
|
1
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from 'itrm-tools';
|
|
2
|
+
import { AxiosRequestConfig } from 'axios';
|
|
3
3
|
export interface IAvailablePlatform {
|
|
4
4
|
availablePlatformId?: number;
|
|
5
|
-
userId
|
|
6
|
-
roleId
|
|
7
|
-
platformId
|
|
8
|
-
|
|
5
|
+
userId?: string;
|
|
6
|
+
roleId?: number;
|
|
7
|
+
platformId?: number;
|
|
8
|
+
applicationId?: number;
|
|
9
|
+
restrictions?: any;
|
|
9
10
|
updatedAt?: string;
|
|
10
11
|
createdAt?: string;
|
|
11
12
|
config?: AxiosRequestConfig;
|
|
12
13
|
}
|
|
13
14
|
export interface IAvailablePlatformSearchDetails {
|
|
15
|
+
id?: string | number;
|
|
14
16
|
userId?: string;
|
|
15
17
|
roleId?: number;
|
|
16
18
|
platformId?: number;
|
|
19
|
+
applicationId?: number;
|
|
17
20
|
restrictions?: any;
|
|
21
|
+
values?: IAvailablePlatform[];
|
|
18
22
|
limit?: number;
|
|
19
23
|
offset?: number;
|
|
20
24
|
config?: AxiosRequestConfig;
|
|
21
|
-
values?: IAvailablePlatform[];
|
|
22
25
|
}
|
|
23
26
|
export declare class AvailablePlatformManager extends CrudServiceManager<IAvailablePlatformSearchDetails, IAvailablePlatform> {
|
|
24
27
|
private url;
|
|
@@ -50,6 +50,7 @@ class AvailablePlatformManager extends itrm_tools_1.CrudServiceManager {
|
|
|
50
50
|
userId: details.userId,
|
|
51
51
|
platformId: details.platformId,
|
|
52
52
|
roleId: details.roleId,
|
|
53
|
+
applicationId: details.applicationId,
|
|
53
54
|
restrictions: details.restrictions
|
|
54
55
|
}, details.config);
|
|
55
56
|
}
|
|
@@ -62,6 +63,7 @@ class AvailablePlatformManager extends itrm_tools_1.CrudServiceManager {
|
|
|
62
63
|
userId: availablePlatform.userId,
|
|
63
64
|
platformId: availablePlatform.platformId,
|
|
64
65
|
roleId: availablePlatform.roleId,
|
|
66
|
+
applicationId: availablePlatform.applicationId,
|
|
65
67
|
restrictions: availablePlatform.restrictions
|
|
66
68
|
}, availablePlatform.config);
|
|
67
69
|
}
|
|
@@ -76,7 +78,7 @@ class AvailablePlatformManager extends itrm_tools_1.CrudServiceManager {
|
|
|
76
78
|
});
|
|
77
79
|
}
|
|
78
80
|
buildRequestUrl(url, details) {
|
|
79
|
-
let suffix = `${details.userId ? `&userId=${details.userId}` :
|
|
81
|
+
let suffix = `${details.id ? `&id=${details.id}` : ''}${details.applicationId ? `&applicationId=${details.applicationId}` : ''}${details.platformId ? `&platformId=${details.platformId}` : ''}${details.userId ? `&userId=${details.userId}` : ''}${details.roleId ? `&roleId=${details.roleId}` : ''}`;
|
|
80
82
|
return `${url}?${suffix.substring(1)}`;
|
|
81
83
|
}
|
|
82
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvailablePlataformManager.js","sourceRoot":"","sources":["../../src/crud/AvailablePlataformManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA6E;
|
|
1
|
+
{"version":3,"file":"AvailablePlataformManager.js","sourceRoot":"","sources":["../../src/crud/AvailablePlataformManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA6E;AA4B7E,MAAa,wBAAyB,SAAQ,+BAAuE;IAGnH,YAAY,GAAW;QACrB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAEY,IAAI,CAAC,OAAwC;;YACxD,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,8BAA8B,OAAO,CAAC,MAAM,EAAE,EAAE,OAAO,CAAC,MAA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,OAA2B;;;YAC5C,IAAI,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,qBAAqB,EAAE,OAAO,CAAC,CAAC;YAC1E,OAAO,MAAA,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,mCAAI,CAAC,CAAC;QAC7D,CAAC;KAAA;IAEO,eAAe,CAAC,GAAW,EAAE,OAAwC;QAC3E,IAAI,MAAM,GAAG,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,kBAAkB,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,eAAe,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,GAChP,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EACjD,EAAE,CAAC;QACH,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACzC,CAAC;CACF;AAlFD,4DAkFC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elemento-alpha-tools",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "Librería para los servicios de elemento alpha",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,19 +34,18 @@
|
|
|
34
34
|
"@types/express": "^5.0.6",
|
|
35
35
|
"@types/jest": "^30.0.0",
|
|
36
36
|
"@types/morgan": "^1.9.9",
|
|
37
|
-
"@types/node": "^25.
|
|
37
|
+
"@types/node": "^25.6.0",
|
|
38
38
|
"jest": "^30.3.0",
|
|
39
39
|
"rimraf": "^6.1.3",
|
|
40
|
-
"ts-jest": "^29.4.
|
|
41
|
-
"typescript": "^
|
|
40
|
+
"ts-jest": "^29.4.9",
|
|
41
|
+
"typescript": "^6.0.3"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"axios": "^1.
|
|
44
|
+
"axios": "^1.15.0",
|
|
45
45
|
"crypto-js": "^4.2.0",
|
|
46
|
-
"dotenv": "^17.
|
|
47
|
-
"itrm-tools": "^1.3.
|
|
48
|
-
"morgan": "^1.10.0"
|
|
49
|
-
"v": "^0.3.0"
|
|
46
|
+
"dotenv": "^17.4.2",
|
|
47
|
+
"itrm-tools": "^1.3.41",
|
|
48
|
+
"morgan": "^1.10.0"
|
|
50
49
|
},
|
|
51
50
|
"optionalDependencies": {
|
|
52
51
|
"axios-mock-adapter": "^2.0.0"
|