@freelog/tools-lib 0.1.89 → 0.1.93
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/LICENSE +20 -20
- package/README.md +103 -103
- package/dist/service-API/activities.d.ts +12 -0
- package/dist/service-API/informalNodes.d.ts +15 -45
- package/dist/service-API/policies.d.ts +2 -6
- package/dist/tools-lib.cjs.development.js +536 -926
- 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 +536 -926
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/axios.d.ts +1 -4
- package/package.json +1 -1
- package/src/index.ts +7 -7
- package/src/service-API/activities.ts +32 -0
- package/src/service-API/captcha.ts +30 -30
- package/src/service-API/collections.ts +81 -81
- package/src/service-API/contracts.ts +84 -84
- package/src/service-API/events.ts +18 -18
- package/src/service-API/index.ts +29 -29
- package/src/service-API/informalNodes.ts +238 -238
- package/src/service-API/nodes.ts +65 -65
- package/src/service-API/policies.ts +39 -39
- package/src/service-API/presentables.ts +282 -282
- package/src/service-API/resources.ts +496 -496
- package/src/service-API/storages.ts +345 -345
- package/src/service-API/tools/index.ts +10 -10
- package/src/service-API/transactions.ts +109 -109
- package/src/service-API/user.ts +188 -188
- package/src/utils/axios.ts +8 -3
- package/src/utils/format.ts +89 -89
- package/src/utils/index.ts +18 -18
- package/src/utils/linkTo.ts +332 -332
- package/src/utils/predefined.ts +37 -37
- package/src/utils/regexp.ts +52 -52
- package/src/utils/tools.ts +72 -72
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 liu-kai-github
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 liu-kai-github
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
# TSDX User Guide
|
|
2
|
-
|
|
3
|
-
Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.
|
|
4
|
-
|
|
5
|
-
> This TSDX setup is meant for developing libraries (not apps!) that can be published to NPM. If you’re looking to build a Node app, you could use `ts-node-dev`, plain `ts-node`, or simple `tsc`.
|
|
6
|
-
|
|
7
|
-
> If you’re new to TypeScript, checkout [this handy cheatsheet](https://devhints.io/typescript)
|
|
8
|
-
|
|
9
|
-
## Commands
|
|
10
|
-
|
|
11
|
-
TSDX scaffolds your new library inside `/src`.
|
|
12
|
-
|
|
13
|
-
To run TSDX, use:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm start # or yarn start
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
This builds to `/dist` and runs the project in watch mode so any edits you save inside `src` causes a rebuild to `/dist`.
|
|
20
|
-
|
|
21
|
-
To do a one-off build, use `npm run build` or `yarn build`.
|
|
22
|
-
|
|
23
|
-
To run tests, use `npm test` or `yarn test`.
|
|
24
|
-
|
|
25
|
-
## Configuration
|
|
26
|
-
|
|
27
|
-
Code quality is set up for you with `prettier`, `husky`, and `lint-staged`. Adjust the respective fields in `package.json` accordingly.
|
|
28
|
-
|
|
29
|
-
### Jest
|
|
30
|
-
|
|
31
|
-
Jest tests are set up to run with `npm test` or `yarn test`.
|
|
32
|
-
|
|
33
|
-
### Bundle Analysis
|
|
34
|
-
|
|
35
|
-
[`size-limit`](https://github.com/ai/size-limit) is set up to calculate the real cost of your library with `npm run size` and visualize the bundle with `npm run analyze`.
|
|
36
|
-
|
|
37
|
-
#### Setup Files
|
|
38
|
-
|
|
39
|
-
This is the folder structure we set up for you:
|
|
40
|
-
|
|
41
|
-
```txt
|
|
42
|
-
/src
|
|
43
|
-
index.tsx # EDIT THIS
|
|
44
|
-
/test
|
|
45
|
-
blah.test.tsx # EDIT THIS
|
|
46
|
-
.gitignore
|
|
47
|
-
package.json
|
|
48
|
-
README.md # EDIT THIS
|
|
49
|
-
tsconfig.json
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Rollup
|
|
53
|
-
|
|
54
|
-
TSDX uses [Rollup](https://rollupjs.org) as a bundler and generates multiple rollup configs for various module formats and build settings. See [Optimizations](#optimizations) for details.
|
|
55
|
-
|
|
56
|
-
### TypeScript
|
|
57
|
-
|
|
58
|
-
`tsconfig.json` is set up to interpret `dom` and `esnext` types, as well as `react` for `jsx`. Adjust according to your needs.
|
|
59
|
-
|
|
60
|
-
## Continuous Integration
|
|
61
|
-
|
|
62
|
-
### GitHub Actions
|
|
63
|
-
|
|
64
|
-
Two actions are added by default:
|
|
65
|
-
|
|
66
|
-
- `main` which installs deps w/ cache, lints, tests, and builds on all pushes against a Node and OS matrix
|
|
67
|
-
- `size` which comments cost comparison of your library on every pull request using [`size-limit`](https://github.com/ai/size-limit)
|
|
68
|
-
|
|
69
|
-
## Optimizations
|
|
70
|
-
|
|
71
|
-
Please see the main `tsdx` [optimizations docs](https://github.com/palmerhq/tsdx#optimizations). In particular, know that you can take advantage of development-only optimizations:
|
|
72
|
-
|
|
73
|
-
```js
|
|
74
|
-
// ./types/index.d.ts
|
|
75
|
-
declare var __DEV__: boolean;
|
|
76
|
-
|
|
77
|
-
// inside your code...
|
|
78
|
-
if (__DEV__) {
|
|
79
|
-
console.log('foo');
|
|
80
|
-
}
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
You can also choose to install and use [invariant](https://github.com/palmerhq/tsdx#invariant) and [warning](https://github.com/palmerhq/tsdx#warning) functions.
|
|
84
|
-
|
|
85
|
-
## Module Formats
|
|
86
|
-
|
|
87
|
-
CJS, ESModules, and UMD module formats are supported.
|
|
88
|
-
|
|
89
|
-
The appropriate paths are configured in `package.json` and `dist/index.js` accordingly. Please report if any issues are found.
|
|
90
|
-
|
|
91
|
-
## Named Exports
|
|
92
|
-
|
|
93
|
-
Per Palmer Group guidelines, [always use named exports.](https://github.com/palmerhq/typescript#exports) Code split inside your React app instead of your React library.
|
|
94
|
-
|
|
95
|
-
## Including Styles
|
|
96
|
-
|
|
97
|
-
There are many ways to ship styles, including with CSS-in-JS. TSDX has no opinion on this, configure how you like.
|
|
98
|
-
|
|
99
|
-
For vanilla CSS, you can include it at the root directory and add it to the `files` section in your `package.json`, so that it can be imported separately by your users and run through their bundler's loader.
|
|
100
|
-
|
|
101
|
-
## Publishing to NPM
|
|
102
|
-
|
|
103
|
-
We recommend using [np](https://github.com/sindresorhus/np).
|
|
1
|
+
# TSDX User Guide
|
|
2
|
+
|
|
3
|
+
Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.
|
|
4
|
+
|
|
5
|
+
> This TSDX setup is meant for developing libraries (not apps!) that can be published to NPM. If you’re looking to build a Node app, you could use `ts-node-dev`, plain `ts-node`, or simple `tsc`.
|
|
6
|
+
|
|
7
|
+
> If you’re new to TypeScript, checkout [this handy cheatsheet](https://devhints.io/typescript)
|
|
8
|
+
|
|
9
|
+
## Commands
|
|
10
|
+
|
|
11
|
+
TSDX scaffolds your new library inside `/src`.
|
|
12
|
+
|
|
13
|
+
To run TSDX, use:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm start # or yarn start
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
This builds to `/dist` and runs the project in watch mode so any edits you save inside `src` causes a rebuild to `/dist`.
|
|
20
|
+
|
|
21
|
+
To do a one-off build, use `npm run build` or `yarn build`.
|
|
22
|
+
|
|
23
|
+
To run tests, use `npm test` or `yarn test`.
|
|
24
|
+
|
|
25
|
+
## Configuration
|
|
26
|
+
|
|
27
|
+
Code quality is set up for you with `prettier`, `husky`, and `lint-staged`. Adjust the respective fields in `package.json` accordingly.
|
|
28
|
+
|
|
29
|
+
### Jest
|
|
30
|
+
|
|
31
|
+
Jest tests are set up to run with `npm test` or `yarn test`.
|
|
32
|
+
|
|
33
|
+
### Bundle Analysis
|
|
34
|
+
|
|
35
|
+
[`size-limit`](https://github.com/ai/size-limit) is set up to calculate the real cost of your library with `npm run size` and visualize the bundle with `npm run analyze`.
|
|
36
|
+
|
|
37
|
+
#### Setup Files
|
|
38
|
+
|
|
39
|
+
This is the folder structure we set up for you:
|
|
40
|
+
|
|
41
|
+
```txt
|
|
42
|
+
/src
|
|
43
|
+
index.tsx # EDIT THIS
|
|
44
|
+
/test
|
|
45
|
+
blah.test.tsx # EDIT THIS
|
|
46
|
+
.gitignore
|
|
47
|
+
package.json
|
|
48
|
+
README.md # EDIT THIS
|
|
49
|
+
tsconfig.json
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Rollup
|
|
53
|
+
|
|
54
|
+
TSDX uses [Rollup](https://rollupjs.org) as a bundler and generates multiple rollup configs for various module formats and build settings. See [Optimizations](#optimizations) for details.
|
|
55
|
+
|
|
56
|
+
### TypeScript
|
|
57
|
+
|
|
58
|
+
`tsconfig.json` is set up to interpret `dom` and `esnext` types, as well as `react` for `jsx`. Adjust according to your needs.
|
|
59
|
+
|
|
60
|
+
## Continuous Integration
|
|
61
|
+
|
|
62
|
+
### GitHub Actions
|
|
63
|
+
|
|
64
|
+
Two actions are added by default:
|
|
65
|
+
|
|
66
|
+
- `main` which installs deps w/ cache, lints, tests, and builds on all pushes against a Node and OS matrix
|
|
67
|
+
- `size` which comments cost comparison of your library on every pull request using [`size-limit`](https://github.com/ai/size-limit)
|
|
68
|
+
|
|
69
|
+
## Optimizations
|
|
70
|
+
|
|
71
|
+
Please see the main `tsdx` [optimizations docs](https://github.com/palmerhq/tsdx#optimizations). In particular, know that you can take advantage of development-only optimizations:
|
|
72
|
+
|
|
73
|
+
```js
|
|
74
|
+
// ./types/index.d.ts
|
|
75
|
+
declare var __DEV__: boolean;
|
|
76
|
+
|
|
77
|
+
// inside your code...
|
|
78
|
+
if (__DEV__) {
|
|
79
|
+
console.log('foo');
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
You can also choose to install and use [invariant](https://github.com/palmerhq/tsdx#invariant) and [warning](https://github.com/palmerhq/tsdx#warning) functions.
|
|
84
|
+
|
|
85
|
+
## Module Formats
|
|
86
|
+
|
|
87
|
+
CJS, ESModules, and UMD module formats are supported.
|
|
88
|
+
|
|
89
|
+
The appropriate paths are configured in `package.json` and `dist/index.js` accordingly. Please report if any issues are found.
|
|
90
|
+
|
|
91
|
+
## Named Exports
|
|
92
|
+
|
|
93
|
+
Per Palmer Group guidelines, [always use named exports.](https://github.com/palmerhq/typescript#exports) Code split inside your React app instead of your React library.
|
|
94
|
+
|
|
95
|
+
## Including Styles
|
|
96
|
+
|
|
97
|
+
There are many ways to ship styles, including with CSS-in-JS. TSDX has no opinion on this, configure how you like.
|
|
98
|
+
|
|
99
|
+
For vanilla CSS, you can include it at the root directory and add it to the `files` section in your `package.json`, so that it can be imported separately by your users and run through their bundler's loader.
|
|
100
|
+
|
|
101
|
+
## Publishing to NPM
|
|
102
|
+
|
|
103
|
+
We recommend using [np](https://github.com/sindresorhus/np).
|
|
@@ -7,4 +7,16 @@ interface Find4ClientParamsType {
|
|
|
7
7
|
_id: string;
|
|
8
8
|
}
|
|
9
9
|
export declare function find4Client(params: Find4ClientParamsType): Promise<any>;
|
|
10
|
+
interface AdsListParamsType {
|
|
11
|
+
skip?: number;
|
|
12
|
+
limit?: number;
|
|
13
|
+
place: 1 | 2 | 3 | 4;
|
|
14
|
+
}
|
|
15
|
+
export declare function adsList(params: AdsListParamsType): Promise<any>;
|
|
16
|
+
interface AdsDetailsParamsType {
|
|
17
|
+
skip?: number;
|
|
18
|
+
limit?: number;
|
|
19
|
+
place: 1 | 2 | 3 | 4;
|
|
20
|
+
}
|
|
21
|
+
export declare function adsDetails(params: AdsDetailsParamsType): Promise<any>;
|
|
10
22
|
export {};
|
|
@@ -8,16 +8,12 @@ interface TestResourcesParamsType {
|
|
|
8
8
|
omitResourceType?: string;
|
|
9
9
|
keywords?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare function testResources({ nodeId, ...params }: TestResourcesParamsType): Promise<
|
|
12
|
-
data: any;
|
|
13
|
-
})>;
|
|
11
|
+
export declare function testResources({ nodeId, ...params }: TestResourcesParamsType): Promise<any>;
|
|
14
12
|
interface CreateRulesParamsType {
|
|
15
13
|
nodeId: number;
|
|
16
14
|
testRuleText: string;
|
|
17
15
|
}
|
|
18
|
-
export declare function createRules({ nodeId, ...params }: CreateRulesParamsType): Promise<
|
|
19
|
-
data: any;
|
|
20
|
-
})>;
|
|
16
|
+
export declare function createRules({ nodeId, ...params }: CreateRulesParamsType): Promise<any>;
|
|
21
17
|
interface BatchTestResourcesParamsType {
|
|
22
18
|
nodeId: number;
|
|
23
19
|
entityType?: 'resource' | 'object';
|
|
@@ -26,31 +22,23 @@ interface BatchTestResourcesParamsType {
|
|
|
26
22
|
testResourceNames?: string;
|
|
27
23
|
projection?: string;
|
|
28
24
|
}
|
|
29
|
-
export declare function batchTestResources({ nodeId, ...params }: BatchTestResourcesParamsType): Promise<
|
|
30
|
-
data: any;
|
|
31
|
-
})>;
|
|
25
|
+
export declare function batchTestResources({ nodeId, ...params }: BatchTestResourcesParamsType): Promise<any>;
|
|
32
26
|
interface DependencyTreeParamsType {
|
|
33
27
|
nodeId: number;
|
|
34
28
|
keywords: string;
|
|
35
29
|
resourceType?: string;
|
|
36
30
|
omitResourceType?: string;
|
|
37
31
|
}
|
|
38
|
-
export declare function dependencyTree({ nodeId, ...params }: DependencyTreeParamsType): Promise<
|
|
39
|
-
data: any;
|
|
40
|
-
})>;
|
|
32
|
+
export declare function dependencyTree({ nodeId, ...params }: DependencyTreeParamsType): Promise<any>;
|
|
41
33
|
interface PutRulesParamsType {
|
|
42
34
|
nodeId: number;
|
|
43
35
|
additionalTestRule: string;
|
|
44
36
|
}
|
|
45
|
-
export declare function putRules({ nodeId, ...params }: PutRulesParamsType): Promise<
|
|
46
|
-
data: any;
|
|
47
|
-
})>;
|
|
37
|
+
export declare function putRules({ nodeId, ...params }: PutRulesParamsType): Promise<any>;
|
|
48
38
|
interface TestNodeRulesParamsType {
|
|
49
39
|
nodeId: number;
|
|
50
40
|
}
|
|
51
|
-
export declare function testNodeRules({ nodeId }: TestNodeRulesParamsType): Promise<
|
|
52
|
-
data: any;
|
|
53
|
-
})>;
|
|
41
|
+
export declare function testNodeRules({ nodeId }: TestNodeRulesParamsType): Promise<any>;
|
|
54
42
|
interface UpdateTestResourceContractsParamsType {
|
|
55
43
|
testResourceId: string;
|
|
56
44
|
resolveResources: {
|
|
@@ -60,35 +48,25 @@ interface UpdateTestResourceContractsParamsType {
|
|
|
60
48
|
}[];
|
|
61
49
|
}[];
|
|
62
50
|
}
|
|
63
|
-
export declare function updateTestResourceContracts({ testResourceId, ...params }: UpdateTestResourceContractsParamsType): Promise<
|
|
64
|
-
data: any;
|
|
65
|
-
})>;
|
|
51
|
+
export declare function updateTestResourceContracts({ testResourceId, ...params }: UpdateTestResourceContractsParamsType): Promise<any>;
|
|
66
52
|
interface DependencyTreeFilterParamsType {
|
|
67
53
|
testResourceId: string;
|
|
68
54
|
dependentEntityId: string;
|
|
69
55
|
dependentEntityVersionRange?: string;
|
|
70
56
|
}
|
|
71
|
-
export declare function dependencyTreeFilter({ testResourceId, ...params }: DependencyTreeFilterParamsType): Promise<
|
|
72
|
-
data: any;
|
|
73
|
-
})>;
|
|
57
|
+
export declare function dependencyTreeFilter({ testResourceId, ...params }: DependencyTreeFilterParamsType): Promise<any>;
|
|
74
58
|
interface TestResourcesDependencyTreeParamsType {
|
|
75
59
|
testResourceId: string;
|
|
76
60
|
}
|
|
77
|
-
export declare function testResourcesDependencyTree({ testResourceId }: TestResourcesDependencyTreeParamsType): Promise<
|
|
78
|
-
data: any;
|
|
79
|
-
})>;
|
|
61
|
+
export declare function testResourcesDependencyTree({ testResourceId }: TestResourcesDependencyTreeParamsType): Promise<any>;
|
|
80
62
|
interface TestResourcesAuthTreeParamsType {
|
|
81
63
|
testResourceId: string;
|
|
82
64
|
}
|
|
83
|
-
export declare function testResourcesAuthTree({ testResourceId }: TestResourcesAuthTreeParamsType): Promise<
|
|
84
|
-
data: any;
|
|
85
|
-
})>;
|
|
65
|
+
export declare function testResourcesAuthTree({ testResourceId }: TestResourcesAuthTreeParamsType): Promise<any>;
|
|
86
66
|
interface TestResourceDetailsParamsType {
|
|
87
67
|
testResourceId: string;
|
|
88
68
|
}
|
|
89
|
-
export declare function testResourceDetails({ testResourceId }: TestResourceDetailsParamsType): Promise<
|
|
90
|
-
data: any;
|
|
91
|
-
})>;
|
|
69
|
+
export declare function testResourceDetails({ testResourceId }: TestResourceDetailsParamsType): Promise<any>;
|
|
92
70
|
interface SearchTestResourcesByDependencyParamsType {
|
|
93
71
|
nodeId: number;
|
|
94
72
|
dependentEntityId: string;
|
|
@@ -96,29 +74,21 @@ interface SearchTestResourcesByDependencyParamsType {
|
|
|
96
74
|
resourceType?: string;
|
|
97
75
|
omitResourceType?: string;
|
|
98
76
|
}
|
|
99
|
-
export declare function searchTestResourcesByDependency({ nodeId, ...params }: SearchTestResourcesByDependencyParamsType): Promise<
|
|
100
|
-
data: any;
|
|
101
|
-
})>;
|
|
77
|
+
export declare function searchTestResourcesByDependency({ nodeId, ...params }: SearchTestResourcesByDependencyParamsType): Promise<any>;
|
|
102
78
|
interface RulesRematchParamsType {
|
|
103
79
|
nodeId: number;
|
|
104
80
|
isMandatoryMatch?: 0 | 1;
|
|
105
81
|
}
|
|
106
|
-
export declare function rulesRematch({ nodeId, ...params }: RulesRematchParamsType): Promise<
|
|
107
|
-
data: any;
|
|
108
|
-
})>;
|
|
82
|
+
export declare function rulesRematch({ nodeId, ...params }: RulesRematchParamsType): Promise<any>;
|
|
109
83
|
interface RulesPreExecutionParamsType {
|
|
110
84
|
nodeId: number;
|
|
111
85
|
testRuleText: string;
|
|
112
86
|
}
|
|
113
|
-
export declare function rulesPreExecution({ nodeId, ...params }: RulesPreExecutionParamsType): Promise<
|
|
114
|
-
data: any;
|
|
115
|
-
})>;
|
|
87
|
+
export declare function rulesPreExecution({ nodeId, ...params }: RulesPreExecutionParamsType): Promise<any>;
|
|
116
88
|
interface BatchGetAuthsParamsType {
|
|
117
89
|
nodeId: number;
|
|
118
90
|
exhibitIds: string;
|
|
119
91
|
authType: 1 | 2 | 3;
|
|
120
92
|
}
|
|
121
|
-
export declare function batchGetAuths({ nodeId, ...params }: BatchGetAuthsParamsType): Promise<
|
|
122
|
-
data: any;
|
|
123
|
-
})>;
|
|
93
|
+
export declare function batchGetAuths({ nodeId, ...params }: BatchGetAuthsParamsType): Promise<any>;
|
|
124
94
|
export {};
|
|
@@ -4,16 +4,12 @@ interface PoliciesParamsType {
|
|
|
4
4
|
subjectType?: 1 | 2 | 3;
|
|
5
5
|
projection?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function policies(params: PoliciesParamsType): Promise<
|
|
8
|
-
data: any;
|
|
9
|
-
})>;
|
|
7
|
+
export declare function policies(params: PoliciesParamsType): Promise<any>;
|
|
10
8
|
interface PoliciesListParamsType {
|
|
11
9
|
policyIds: string;
|
|
12
10
|
subjectType?: number;
|
|
13
11
|
userId?: number;
|
|
14
12
|
projection?: string;
|
|
15
13
|
}
|
|
16
|
-
export declare function policiesList(params: PoliciesListParamsType): Promise<
|
|
17
|
-
data: any;
|
|
18
|
-
})>;
|
|
14
|
+
export declare function policiesList(params: PoliciesListParamsType): Promise<any>;
|
|
19
15
|
export {};
|