@freelog/tools-lib 0.1.71 → 0.1.74
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/service-API/contracts.d.ts +2 -1
- package/dist/service-API/resources.d.ts +6 -0
- package/dist/tools-lib.cjs.development.js +11 -4
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +11 -4
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/types/InformalNodeTypes.d.ts +23 -0
- package/dist/types/contractTypes.d.ts +1 -0
- package/package.json +1 -1
- package/src/service-API/contracts.ts +2 -1
- package/src/service-API/resources.ts +15 -3
- package/src/types/InformalNodeTypes.ts +28 -0
- package/src/types/contractTypes.ts +1 -0
|
@@ -39,9 +39,10 @@ interface BatchContractsParamsType {
|
|
|
39
39
|
}
|
|
40
40
|
export declare function batchContracts(params: BatchContractsParamsType): Promise<any>;
|
|
41
41
|
interface TransitionRecordsParamsType {
|
|
42
|
+
contractId: string;
|
|
42
43
|
skip?: number;
|
|
43
44
|
limit?: number;
|
|
44
|
-
|
|
45
|
+
isTranslate?: 0 | 1;
|
|
45
46
|
}
|
|
46
47
|
export declare function transitionRecords({ contractId, ...params }: TransitionRecordsParamsType): Promise<any>;
|
|
47
48
|
export {};
|
|
@@ -191,4 +191,10 @@ interface RelationTreeAuthParamsType {
|
|
|
191
191
|
versionRange?: string;
|
|
192
192
|
}
|
|
193
193
|
export declare function relationTreeAuth({ resourceId, ...params }: RelationTreeAuthParamsType): Promise<any>;
|
|
194
|
+
interface BatchAuthParamsType {
|
|
195
|
+
resourceIds: string;
|
|
196
|
+
versions?: string;
|
|
197
|
+
versionRanges?: string;
|
|
198
|
+
}
|
|
199
|
+
export declare function batchAuth({ ...params }: BatchAuthParamsType): Promise<any>;
|
|
194
200
|
export {};
|
|
@@ -2263,15 +2263,21 @@ function relationTreeAuth(_ref11) {
|
|
|
2263
2263
|
var resourceId = _ref11.resourceId,
|
|
2264
2264
|
params = _objectWithoutPropertiesLoose(_ref11, _excluded11);
|
|
2265
2265
|
|
|
2266
|
-
// return FUtil.Axios.get(`/v2/auths/resources/${resourceId}/relationTreeAuth`, {
|
|
2267
|
-
// params,
|
|
2268
|
-
// });
|
|
2269
2266
|
return FUtil.Request({
|
|
2270
2267
|
method: 'GET',
|
|
2271
2268
|
url: "/v2/auths/resources/" + resourceId + "/relationTreeAuth",
|
|
2272
2269
|
params: params
|
|
2273
2270
|
});
|
|
2274
2271
|
}
|
|
2272
|
+
function batchAuth$1(_ref12) {
|
|
2273
|
+
var params = _extends({}, _ref12);
|
|
2274
|
+
|
|
2275
|
+
return FUtil.Request({
|
|
2276
|
+
method: 'GET',
|
|
2277
|
+
url: "/v2/auths/resources/batchAuth/results",
|
|
2278
|
+
params: params
|
|
2279
|
+
});
|
|
2280
|
+
}
|
|
2275
2281
|
|
|
2276
2282
|
var Resource = {
|
|
2277
2283
|
__proto__: null,
|
|
@@ -2296,7 +2302,8 @@ var Resource = {
|
|
|
2296
2302
|
batchSetContracts: batchSetContracts,
|
|
2297
2303
|
cycleDependencyCheck: cycleDependencyCheck$1,
|
|
2298
2304
|
relationTree: relationTree$1,
|
|
2299
|
-
relationTreeAuth: relationTreeAuth
|
|
2305
|
+
relationTreeAuth: relationTreeAuth,
|
|
2306
|
+
batchAuth: batchAuth$1
|
|
2300
2307
|
};
|
|
2301
2308
|
|
|
2302
2309
|
var _excluded$4 = ["loginName"];
|