@sailpoint/connector-sdk 0.0.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/LICENSE +21 -0
- package/README.md +152 -0
- package/dist/bin/spcx.d.ts +3 -0
- package/dist/bin/spcx.d.ts.map +1 -0
- package/dist/bin/spcx.js +139 -0
- package/dist/bin/spcx.js.map +1 -0
- package/dist/lib/async-context.d.ts +5 -0
- package/dist/lib/async-context.d.ts.map +1 -0
- package/dist/lib/async-context.js +7 -0
- package/dist/lib/async-context.js.map +1 -0
- package/dist/lib/commands/command.d.ts +77 -0
- package/dist/lib/commands/command.d.ts.map +1 -0
- package/dist/lib/commands/command.js +79 -0
- package/dist/lib/commands/command.js.map +1 -0
- package/dist/lib/commands/index.d.ts +16 -0
- package/dist/lib/commands/index.d.ts.map +1 -0
- package/dist/lib/commands/index.js +29 -0
- package/dist/lib/commands/index.js.map +1 -0
- package/dist/lib/commands/std-account-create.d.ts +17 -0
- package/dist/lib/commands/std-account-create.d.ts.map +1 -0
- package/dist/lib/commands/std-account-create.js +4 -0
- package/dist/lib/commands/std-account-create.js.map +1 -0
- package/dist/lib/commands/std-account-delete.d.ts +10 -0
- package/dist/lib/commands/std-account-delete.d.ts.map +1 -0
- package/dist/lib/commands/std-account-delete.js +4 -0
- package/dist/lib/commands/std-account-delete.js.map +1 -0
- package/dist/lib/commands/std-account-disable.d.ts +14 -0
- package/dist/lib/commands/std-account-disable.d.ts.map +1 -0
- package/dist/lib/commands/std-account-disable.js +4 -0
- package/dist/lib/commands/std-account-disable.js.map +1 -0
- package/dist/lib/commands/std-account-discover-schema.d.ts +11 -0
- package/dist/lib/commands/std-account-discover-schema.d.ts.map +1 -0
- package/dist/lib/commands/std-account-discover-schema.js +4 -0
- package/dist/lib/commands/std-account-discover-schema.js.map +1 -0
- package/dist/lib/commands/std-account-enable.d.ts +14 -0
- package/dist/lib/commands/std-account-enable.d.ts.map +1 -0
- package/dist/lib/commands/std-account-enable.js +4 -0
- package/dist/lib/commands/std-account-enable.js.map +1 -0
- package/dist/lib/commands/std-account-list.d.ts +10 -0
- package/dist/lib/commands/std-account-list.d.ts.map +1 -0
- package/dist/lib/commands/std-account-list.js +4 -0
- package/dist/lib/commands/std-account-list.js.map +1 -0
- package/dist/lib/commands/std-account-read.d.ts +14 -0
- package/dist/lib/commands/std-account-read.d.ts.map +1 -0
- package/dist/lib/commands/std-account-read.js +4 -0
- package/dist/lib/commands/std-account-read.js.map +1 -0
- package/dist/lib/commands/std-account-unlock.d.ts +14 -0
- package/dist/lib/commands/std-account-unlock.d.ts.map +1 -0
- package/dist/lib/commands/std-account-unlock.js +4 -0
- package/dist/lib/commands/std-account-unlock.js.map +1 -0
- package/dist/lib/commands/std-account-update.d.ts +31 -0
- package/dist/lib/commands/std-account-update.d.ts.map +1 -0
- package/dist/lib/commands/std-account-update.js +11 -0
- package/dist/lib/commands/std-account-update.js.map +1 -0
- package/dist/lib/commands/std-change-password.d.ts +12 -0
- package/dist/lib/commands/std-change-password.d.ts.map +1 -0
- package/dist/lib/commands/std-change-password.js +4 -0
- package/dist/lib/commands/std-change-password.js.map +1 -0
- package/dist/lib/commands/std-entitlement-list.d.ts +15 -0
- package/dist/lib/commands/std-entitlement-list.d.ts.map +1 -0
- package/dist/lib/commands/std-entitlement-list.js +4 -0
- package/dist/lib/commands/std-entitlement-list.js.map +1 -0
- package/dist/lib/commands/std-entitlement-read.d.ts +15 -0
- package/dist/lib/commands/std-entitlement-read.d.ts.map +1 -0
- package/dist/lib/commands/std-entitlement-read.js +4 -0
- package/dist/lib/commands/std-entitlement-read.js.map +1 -0
- package/dist/lib/commands/std-spec-read.d.ts +11 -0
- package/dist/lib/commands/std-spec-read.d.ts.map +1 -0
- package/dist/lib/commands/std-spec-read.js +4 -0
- package/dist/lib/commands/std-spec-read.js.map +1 -0
- package/dist/lib/commands/std-test-connection.d.ts +5 -0
- package/dist/lib/commands/std-test-connection.d.ts.map +1 -0
- package/dist/lib/commands/std-test-connection.js +4 -0
- package/dist/lib/commands/std-test-connection.js.map +1 -0
- package/dist/lib/config.d.ts +10 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +36 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/connector-spec.d.ts +6 -0
- package/dist/lib/connector-spec.d.ts.map +1 -0
- package/dist/lib/connector-spec.js +14 -0
- package/dist/lib/connector-spec.js.map +1 -0
- package/dist/lib/connector.d.ts +107 -0
- package/dist/lib/connector.d.ts.map +1 -0
- package/dist/lib/connector.js +160 -0
- package/dist/lib/connector.js.map +1 -0
- package/dist/lib/error.d.ts +15 -0
- package/dist/lib/error.d.ts.map +1 -0
- package/dist/lib/error.js +23 -0
- package/dist/lib/error.js.map +1 -0
- package/dist/lib/handler.d.ts +29 -0
- package/dist/lib/handler.d.ts.map +1 -0
- package/dist/lib/handler.js +4 -0
- package/dist/lib/handler.js.map +1 -0
- package/dist/lib/index.d.ts +8 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/index.js +21 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/logger/index.d.ts +2 -0
- package/dist/lib/logger/index.d.ts.map +1 -0
- package/dist/lib/logger/index.js +14 -0
- package/dist/lib/logger/index.js.map +1 -0
- package/dist/lib/logger/logger.d.ts +23 -0
- package/dist/lib/logger/logger.d.ts.map +1 -0
- package/dist/lib/logger/logger.js +44 -0
- package/dist/lib/logger/logger.js.map +1 -0
- package/dist/lib/response/index.d.ts +21 -0
- package/dist/lib/response/index.d.ts.map +1 -0
- package/dist/lib/response/index.js +21 -0
- package/dist/lib/response/index.js.map +1 -0
- package/package.json +79 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 SailPoint
|
|
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
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# Connector SDK for JavaScript (BETA)
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Connector SDK for JavaScript is a framework for developing a SaaS connector for IdentityNow.
|
|
6
|
+
|
|
7
|
+
## Getting Started
|
|
8
|
+
|
|
9
|
+
### Setup
|
|
10
|
+
|
|
11
|
+
Create a Node.js project and install SDK. We strongly recommend using
|
|
12
|
+
[TypeScript](https://www.typescriptlang.org/download) to take advantage of static type checking.
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install @sailpoint/connector-sdk
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
#### Installing from Source
|
|
19
|
+
|
|
20
|
+
To install the SDK from GitHub:
|
|
21
|
+
```bash
|
|
22
|
+
npm install github:sailpoint/saas-connector-sdk-js#main
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
To install the SDK from local clone, run `npm pack` from SDK project, then run in target project:
|
|
26
|
+
```bash
|
|
27
|
+
npm install <path-to-sailpoint-connector-sdk-semver.tgz>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Import
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import { createConnector } from '@sailpoint/connector-sdk'
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Usage
|
|
37
|
+
|
|
38
|
+
Initialize `Connector` object in index.ts/.js and export it to the module.
|
|
39
|
+
|
|
40
|
+
```typescript
|
|
41
|
+
// index.ts
|
|
42
|
+
import {
|
|
43
|
+
Connector,
|
|
44
|
+
Context,
|
|
45
|
+
createConnector,
|
|
46
|
+
readConfig,
|
|
47
|
+
Response,
|
|
48
|
+
StdAccountReadInput,
|
|
49
|
+
StdAccountReadOutput
|
|
50
|
+
} from '@sailpoint/connector-sdk'
|
|
51
|
+
|
|
52
|
+
// Get connector source config
|
|
53
|
+
const config = readConfig()
|
|
54
|
+
|
|
55
|
+
export const connector: Connector = createConnector()
|
|
56
|
+
.stdAccountRead((context: Context, input: StdAccountReadInput, res: Response<StdAccountReadOutput>) => {
|
|
57
|
+
// TODO: Fetch account from source
|
|
58
|
+
|
|
59
|
+
res.send({
|
|
60
|
+
identity: 'john.doe',
|
|
61
|
+
uuid: '1234',
|
|
62
|
+
attributes: {
|
|
63
|
+
email: 'john.doe@example.com',
|
|
64
|
+
},
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
.command('my:custom:command', (context, input, res) => {
|
|
68
|
+
// TODO: implement me!
|
|
69
|
+
})
|
|
70
|
+
```
|
|
71
|
+
### Logging
|
|
72
|
+
|
|
73
|
+
Use SDK provided logger to ensure log statements will include command execution context fields.
|
|
74
|
+
```typescript
|
|
75
|
+
import {logger} from '@sailpoint/connector-sdk'
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Examples
|
|
79
|
+
|
|
80
|
+
See complete examples in the [examples](examples) directory.
|
|
81
|
+
|
|
82
|
+
<br/>
|
|
83
|
+
|
|
84
|
+
## Connector Local Development with `spcx`
|
|
85
|
+
|
|
86
|
+
`spcx` provides:
|
|
87
|
+
- ability to execute the connector locally
|
|
88
|
+
- ability to invoke mock commands against locally-running connector for testing/debugging
|
|
89
|
+
- built-in TypeScript support, with watch run and inline source map
|
|
90
|
+
|
|
91
|
+
`spcx` starts up an HTTP server locally (default port=3000) that can be used to invoke a command against the connector.
|
|
92
|
+
`spcx` cleanly imports the connector module from specified file path at every request, so the server does not need to be
|
|
93
|
+
restarted after every code edit. Just start it up once and keep on using until you are done!
|
|
94
|
+
|
|
95
|
+
For connectors written in TypeScript, `spcx` automatically spawns a child process to execute
|
|
96
|
+
[`tsc`](https://www.typescriptlang.org/tsconfig) with `--watch` and `--inlineSourceMap` options, as well as
|
|
97
|
+
user-defined compiler options in the project's `tsconfig.json`.
|
|
98
|
+
`--watch` option prevents needing to manually recompile after code edit,
|
|
99
|
+
and `--inlineSourceMap` option allows debugger to function with breakpoints set in original TypeScript source.
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
$ spcx <connector-file-js> [port=3000]
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
`spcx` can also be run using npm script, e.g. `$ npm run dev`:
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
{
|
|
109
|
+
"scripts": {
|
|
110
|
+
"dev": "spcx dist/index.js"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
--
|
|
116
|
+
|
|
117
|
+
To invoke a command, simply provide command's `type`, `input`, and connector `config`
|
|
118
|
+
|
|
119
|
+
Ex: `POST http://localhost:3000`
|
|
120
|
+
```json
|
|
121
|
+
{
|
|
122
|
+
"type": "std:account:read",
|
|
123
|
+
"input": {
|
|
124
|
+
"identity": "john.doe"
|
|
125
|
+
},
|
|
126
|
+
"config": {
|
|
127
|
+
"key": "value"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
## Contributing
|
|
134
|
+
|
|
135
|
+
### Building Source
|
|
136
|
+
|
|
137
|
+
- [Node.js >= 16.2.0](https://nodejs.org/en/download/releases/)
|
|
138
|
+
|
|
139
|
+
To build the SDK source (generates output in `dist` directory):
|
|
140
|
+
```bash
|
|
141
|
+
npm run build
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
To run unit tests:
|
|
145
|
+
```bash
|
|
146
|
+
npm run test
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
To run prettier to format code:
|
|
150
|
+
```bash
|
|
151
|
+
npm run prettier
|
|
152
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spcx.d.ts","sourceRoot":"","sources":["../../bin/spcx.ts"],"names":[],"mappings":""}
|
package/dist/bin/spcx.js
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const express_1 = __importDefault(require("express"));
|
|
8
|
+
const stream_1 = require("stream");
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
const util_1 = require("util");
|
|
11
|
+
const child_process_1 = require("child_process");
|
|
12
|
+
const lib_1 = require("../lib");
|
|
13
|
+
const archiver_1 = __importDefault(require("archiver"));
|
|
14
|
+
const fs_1 = __importDefault(require("fs"));
|
|
15
|
+
const COMMAND_RUN = 'run';
|
|
16
|
+
const COMMAND_PACKAGE = 'package';
|
|
17
|
+
const argv = process.argv.slice(2);
|
|
18
|
+
// We are expecting argv similar to: [**/*.js, port?]
|
|
19
|
+
if (!argv[0]) {
|
|
20
|
+
throw new Error('missing arg: need at least one arg for the command');
|
|
21
|
+
}
|
|
22
|
+
else if (argv[0] == COMMAND_PACKAGE) {
|
|
23
|
+
packageConnector();
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
runDev();
|
|
27
|
+
}
|
|
28
|
+
// packageConnector packages connector files into a zip file
|
|
29
|
+
function packageConnector() {
|
|
30
|
+
const zipName = process.env.npm_package_name + '-' + process.env.npm_package_version + '.zip';
|
|
31
|
+
const archive = archiver_1.default('zip', { zlib: { level: 9 } });
|
|
32
|
+
const stream = fs_1.default.createWriteStream('dist/' + zipName);
|
|
33
|
+
archive.file('dist/index.js', { name: 'index.js' })
|
|
34
|
+
.file('connector-spec.json', { name: 'connector-spec.json' })
|
|
35
|
+
.on('error', err => {
|
|
36
|
+
console.error('Failed to generate connector zip file', err);
|
|
37
|
+
})
|
|
38
|
+
.pipe(stream);
|
|
39
|
+
stream.on('close', () => {
|
|
40
|
+
console.log('Connector zip file created under dist folder: ' + zipName);
|
|
41
|
+
});
|
|
42
|
+
archive.finalize();
|
|
43
|
+
}
|
|
44
|
+
// runDev runs a local server to invoke commands to the connector
|
|
45
|
+
function runDev() {
|
|
46
|
+
let connectorPath = path_1.default.resolve(process.cwd(), argv[0]);
|
|
47
|
+
let port = Number(argv[1]) || 3000;
|
|
48
|
+
if (argv[0] == COMMAND_RUN) {
|
|
49
|
+
connectorPath = path_1.default.resolve(process.cwd(), argv[1]);
|
|
50
|
+
port = Number(argv[2]) || 3000;
|
|
51
|
+
}
|
|
52
|
+
if (path_1.default.extname(connectorPath) !== '.js') {
|
|
53
|
+
throw new Error(`invalid file path: ${connectorPath}`);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Spawns a child process that runs TypeScript compiler (tsc) with watch option and inlineSourcemap for debugging.
|
|
57
|
+
* spawn will fail in pure JS projects as typescript devDependency is expected to be missing
|
|
58
|
+
*/
|
|
59
|
+
const spawnTsc = () => {
|
|
60
|
+
const tsc = child_process_1.spawn(/^win/.test(process.platform) ? 'tsc.cmd' : 'tsc', ['--inlineSourcemap', 'true', '--sourceMap', 'false', '--watch'])
|
|
61
|
+
.once('spawn', () => {
|
|
62
|
+
tsc.stdout.on('data', (data) => console.log(`tsc: ${data}`));
|
|
63
|
+
tsc.stderr.on('data', (data) => console.error(`tsc: ${data}`));
|
|
64
|
+
})
|
|
65
|
+
.once('error', (ignored) => { });
|
|
66
|
+
return tsc;
|
|
67
|
+
};
|
|
68
|
+
spawnTsc();
|
|
69
|
+
/**
|
|
70
|
+
* Loads the connector module from specified connectorPath.
|
|
71
|
+
* Connector config is set as env var to be read via `readConfig()`.
|
|
72
|
+
*
|
|
73
|
+
* Implementation Notes:
|
|
74
|
+
* We need to cleanly init and destroy connector and env var each time, so that this function may perform correctly
|
|
75
|
+
* under async calls. The connector module is prevented from being cached in `required`,
|
|
76
|
+
* and the CONNECTOR_CONFIG env var is deleted once it is read into the connector
|
|
77
|
+
*
|
|
78
|
+
* @param connectorPath Path to connector module
|
|
79
|
+
* @param config Connector config
|
|
80
|
+
*/
|
|
81
|
+
const loadConnector = async (connectorPath) => {
|
|
82
|
+
const connector = require(connectorPath).connector;
|
|
83
|
+
Object.keys(require.cache)
|
|
84
|
+
.filter((key) => !key.includes('node_modules'))
|
|
85
|
+
.forEach((key) => delete require.cache[key]);
|
|
86
|
+
let result;
|
|
87
|
+
if (typeof connector === 'function') {
|
|
88
|
+
result = await connector();
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
result = connector;
|
|
92
|
+
}
|
|
93
|
+
return result;
|
|
94
|
+
};
|
|
95
|
+
const app = express_1.default()
|
|
96
|
+
.use(express_1.default.json({ strict: true }))
|
|
97
|
+
.post('/*', async (req, res) => {
|
|
98
|
+
try {
|
|
99
|
+
const cmd = req.body;
|
|
100
|
+
await lib_1._withConfig(cmd.config, async () => {
|
|
101
|
+
const connector = await loadConnector(connectorPath);
|
|
102
|
+
const out = new stream_1.Transform({
|
|
103
|
+
writableObjectMode: true,
|
|
104
|
+
transform(chunk, encoding, callback) {
|
|
105
|
+
try {
|
|
106
|
+
this.push(JSON.stringify(chunk) + '\n');
|
|
107
|
+
}
|
|
108
|
+
catch (e) {
|
|
109
|
+
callback(e);
|
|
110
|
+
}
|
|
111
|
+
callback();
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
stream_1.pipeline(out, res.status(200).type('application/x-ndjson'), (err) => {
|
|
115
|
+
if (err) {
|
|
116
|
+
console.error(err);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
await connector._exec(cmd.type, { version: cmd.version, commandType: cmd.type }, cmd.input, out);
|
|
120
|
+
out.end();
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
catch (e) {
|
|
124
|
+
console.error(e?.message || e);
|
|
125
|
+
let errorType = lib_1.ConnectorErrorType.Generic;
|
|
126
|
+
if (e instanceof lib_1.ConnectorError) {
|
|
127
|
+
errorType = e.type;
|
|
128
|
+
}
|
|
129
|
+
res.status(500).send(`${errorType} error: \n + ${util_1.inspect(e)}`);
|
|
130
|
+
}
|
|
131
|
+
finally {
|
|
132
|
+
res.end();
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
app.listen(port, () => {
|
|
136
|
+
console.log(`SailPoint connector local development server listening at http://localhost:${port}`);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=spcx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spcx.js","sourceRoot":"","sources":["../../bin/spcx.ts"],"names":[],"mappings":";;;;;;AACA,sDAA6B;AAC7B,mCAA+D;AAC/D,gDAAuB;AACvB,+BAA8B;AAC9B,iDAAqE;AACrE,gCAAmF;AACnF,wDAA+B;AAC/B,4CAAmB;AAanB,MAAM,WAAW,GAAW,KAAK,CAAA;AACjC,MAAM,eAAe,GAAW,SAAS,CAAA;AAEzC,MAAM,IAAI,GAAa,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC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1 @@
|
|
|
1
|
+
{"version":3,"file":"async-context.d.ts","sourceRoot":"","sources":["../../lib/async-context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,eAAO,MAAM,YAAY,4BAAmC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.contextState = void 0;
|
|
5
|
+
const async_hooks_1 = require("async_hooks");
|
|
6
|
+
exports.contextState = new async_hooks_1.AsyncLocalStorage();
|
|
7
|
+
//# sourceMappingURL=async-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-context.js","sourceRoot":"","sources":["../../lib/async-context.ts"],"names":[],"mappings":";AAAA,2EAA2E;;;AAE3E,6CAAgD;AAGnC,QAAA,YAAY,GAAG,IAAI,+BAAiB,EAAW,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SailPoint Standard Commands
|
|
3
|
+
*/
|
|
4
|
+
export declare enum StandardCommand {
|
|
5
|
+
StdAccountCreate = "std:account:create",
|
|
6
|
+
StdAccountDelete = "std:account:delete",
|
|
7
|
+
StdAccountDisable = "std:account:disable",
|
|
8
|
+
StdAccountDiscoverSchema = "std:account:discover-schema",
|
|
9
|
+
StdAccountEnable = "std:account:enable",
|
|
10
|
+
StdAccountList = "std:account:list",
|
|
11
|
+
StdAccountRead = "std:account:read",
|
|
12
|
+
StdAccountUnlock = "std:account:unlock",
|
|
13
|
+
StdAccountUpdate = "std:account:update",
|
|
14
|
+
StdEntitlementList = "std:entitlement:list",
|
|
15
|
+
StdEntitlementRead = "std:entitlement:read",
|
|
16
|
+
StdSpecRead = "std:spec:read",
|
|
17
|
+
StdTestConnection = "std:test-connection",
|
|
18
|
+
StdChangePassword = "std:change-password"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Attributes map for account or entitlement
|
|
22
|
+
*
|
|
23
|
+
* Supported value types are:
|
|
24
|
+
* - boolean
|
|
25
|
+
* - string
|
|
26
|
+
* - integer
|
|
27
|
+
* - null
|
|
28
|
+
* - string[] or integer[] for multi-valued attributes
|
|
29
|
+
*/
|
|
30
|
+
export declare type Attributes = {
|
|
31
|
+
[attribute: string]: boolean | string | string[] | number | number[] | null;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* SchemaAttribute defines an attribute for schema
|
|
35
|
+
*/
|
|
36
|
+
export declare type SchemaAttribute = {
|
|
37
|
+
name: string;
|
|
38
|
+
description: string;
|
|
39
|
+
type: string;
|
|
40
|
+
multi?: boolean;
|
|
41
|
+
managed?: boolean;
|
|
42
|
+
entitlement?: boolean;
|
|
43
|
+
};
|
|
44
|
+
export declare type SimpleKeyType = {
|
|
45
|
+
simple: {
|
|
46
|
+
id: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export declare type CompoundKeyType = {
|
|
50
|
+
compound: {
|
|
51
|
+
lookupId: string;
|
|
52
|
+
uniqueId: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare type Key = SimpleKeyType | CompoundKeyType;
|
|
56
|
+
export declare function KeyID(input: {
|
|
57
|
+
key: Key;
|
|
58
|
+
}): string;
|
|
59
|
+
export declare function KeyLookupID(input: {
|
|
60
|
+
key: Key;
|
|
61
|
+
}): string;
|
|
62
|
+
export declare function KeyUniqueID(input: {
|
|
63
|
+
key: Key;
|
|
64
|
+
}): string;
|
|
65
|
+
export declare function SimpleKey(id: string): SimpleKeyType;
|
|
66
|
+
export declare function CompoundKey(lookupId: string, uniqueId: string): CompoundKeyType;
|
|
67
|
+
export declare type ObjectInput = {
|
|
68
|
+
identity: string;
|
|
69
|
+
key: Key;
|
|
70
|
+
};
|
|
71
|
+
export declare type ObjectOutput = {
|
|
72
|
+
identity: string;
|
|
73
|
+
uuid?: string;
|
|
74
|
+
} | {
|
|
75
|
+
key: Key;
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../lib/commands/command.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,eAAe;IAC1B,gBAAgB,uBAAuB;IACvC,gBAAgB,uBAAuB;IACvC,iBAAiB,wBAAwB;IACzC,wBAAwB,gCAAgC;IACxD,gBAAgB,uBAAuB;IACvC,cAAc,qBAAqB;IACnC,cAAc,qBAAqB;IACnC,gBAAgB,uBAAuB;IACvC,gBAAgB,uBAAuB;IACvC,kBAAkB,yBAAyB;IAC3C,kBAAkB,yBAAyB;IAC3C,WAAW,kBAAkB;IAC7B,iBAAiB,wBAAwB;IACzC,iBAAiB,wBAAwB;CACzC;AAED;;;;;;;;;GASG;AACH,oBAAY,UAAU,GAAG;IACxB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;CAC3E,CAAA;AAED;;GAEG;AACH,oBAAY,eAAe,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAKD,oBAAY,aAAa,GAAG;IAC3B,MAAM,EAAE;QACP,EAAE,EAAE,MAAM,CAAA;KACV,CAAA;CACD,CAAA;AAMD,oBAAY,eAAe,GAAG;IAC7B,QAAQ,EAAE;QACT,QAAQ,EAAE,MAAM,CAAA;QAChB,QAAQ,EAAE,MAAM,CAAA;KAChB,CAAA;CACD,CAAA;AAED,oBAAY,GAAG,GAAG,aAAa,GAAG,eAAe,CAAA;AAKjD,wBAAgB,KAAK,CAAC,KAAK,EAAE;IAAE,GAAG,EAAE,GAAG,CAAA;CAAE,GAAG,MAAM,CAMjD;AAKD,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,GAAG,EAAE,GAAG,CAAA;CAAE,GAAG,MAAM,CAMvD;AAKD,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,GAAG,EAAE,GAAG,CAAA;CAAE,GAAG,MAAM,CAMvD;AAKD,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,CAInD;AAKD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,eAAe,CAI/E;AAED,oBAAY,WAAW,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,GAAG,CAAA;CACR,CAAA;AAED,oBAAY,YAAY,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,GAAG,EAAE,GAAG,CAAA;CAAE,CAAA"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CompoundKey = exports.SimpleKey = exports.KeyUniqueID = exports.KeyLookupID = exports.KeyID = exports.StandardCommand = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* SailPoint Standard Commands
|
|
7
|
+
*/
|
|
8
|
+
var StandardCommand;
|
|
9
|
+
(function (StandardCommand) {
|
|
10
|
+
StandardCommand["StdAccountCreate"] = "std:account:create";
|
|
11
|
+
StandardCommand["StdAccountDelete"] = "std:account:delete";
|
|
12
|
+
StandardCommand["StdAccountDisable"] = "std:account:disable";
|
|
13
|
+
StandardCommand["StdAccountDiscoverSchema"] = "std:account:discover-schema";
|
|
14
|
+
StandardCommand["StdAccountEnable"] = "std:account:enable";
|
|
15
|
+
StandardCommand["StdAccountList"] = "std:account:list";
|
|
16
|
+
StandardCommand["StdAccountRead"] = "std:account:read";
|
|
17
|
+
StandardCommand["StdAccountUnlock"] = "std:account:unlock";
|
|
18
|
+
StandardCommand["StdAccountUpdate"] = "std:account:update";
|
|
19
|
+
StandardCommand["StdEntitlementList"] = "std:entitlement:list";
|
|
20
|
+
StandardCommand["StdEntitlementRead"] = "std:entitlement:read";
|
|
21
|
+
StandardCommand["StdSpecRead"] = "std:spec:read";
|
|
22
|
+
StandardCommand["StdTestConnection"] = "std:test-connection";
|
|
23
|
+
StandardCommand["StdChangePassword"] = "std:change-password";
|
|
24
|
+
})(StandardCommand = exports.StandardCommand || (exports.StandardCommand = {}));
|
|
25
|
+
/*
|
|
26
|
+
* Extract ID for simple key
|
|
27
|
+
*/
|
|
28
|
+
function KeyID(input) {
|
|
29
|
+
if ("simple" in input.key) {
|
|
30
|
+
return input.key.simple.id;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
throw new Error("expected simple key type");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.KeyID = KeyID;
|
|
37
|
+
/*
|
|
38
|
+
* Extract Lookup ID for compound key
|
|
39
|
+
*/
|
|
40
|
+
function KeyLookupID(input) {
|
|
41
|
+
if ("compound" in input.key) {
|
|
42
|
+
return input.key.compound.lookupId;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
throw new Error("expected compound key type");
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.KeyLookupID = KeyLookupID;
|
|
49
|
+
/*
|
|
50
|
+
* Extract Unique ID for compound key
|
|
51
|
+
*/
|
|
52
|
+
function KeyUniqueID(input) {
|
|
53
|
+
if ("compound" in input.key) {
|
|
54
|
+
return input.key.compound.uniqueId;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
throw new Error("expected compound key type");
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.KeyUniqueID = KeyUniqueID;
|
|
61
|
+
/*
|
|
62
|
+
* Build SimpleKey
|
|
63
|
+
*/
|
|
64
|
+
function SimpleKey(id) {
|
|
65
|
+
return {
|
|
66
|
+
simple: { id: id }
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
exports.SimpleKey = SimpleKey;
|
|
70
|
+
/*
|
|
71
|
+
* Build CompoundKey
|
|
72
|
+
*/
|
|
73
|
+
function CompoundKey(lookupId, uniqueId) {
|
|
74
|
+
return {
|
|
75
|
+
compound: { lookupId: lookupId, uniqueId: uniqueId }
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
exports.CompoundKey = CompoundKey;
|
|
79
|
+
//# sourceMappingURL=command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../lib/commands/command.ts"],"names":[],"mappings":";AAAA,2EAA2E;;;AAE3E;;GAEG;AACH,IAAY,eAeX;AAfD,WAAY,eAAe;IAC1B,0DAAuC,CAAA;IACvC,0DAAuC,CAAA;IACvC,4DAAyC,CAAA;IACzC,2EAAwD,CAAA;IACxD,0DAAuC,CAAA;IACvC,sDAAmC,CAAA;IACnC,sDAAmC,CAAA;IACnC,0DAAuC,CAAA;IACvC,0DAAuC,CAAA;IACvC,8DAA2C,CAAA;IAC3C,8DAA2C,CAAA;IAC3C,gDAA6B,CAAA;IAC7B,4DAAyC,CAAA;IACzC,4DAAyC,CAAA;AAC1C,CAAC,EAfW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAe1B;AAkDD;;GAEG;AACH,SAAgB,KAAK,CAAC,KAAmB;IACxC,IAAI,QAAQ,IAAI,KAAK,CAAC,GAAG,EAAE;QAC1B,OAAO,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAA;KAC1B;SAAM;QACN,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;KAC3C;AACF,CAAC;AAND,sBAMC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,KAAmB;IAC9C,IAAI,UAAU,IAAI,KAAK,CAAC,GAAG,EAAE;QAC5B,OAAO,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAA;KAClC;SAAM;QACN,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAA;KAC7C;AACF,CAAC;AAND,kCAMC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,KAAmB;IAC9C,IAAI,UAAU,IAAI,KAAK,CAAC,GAAG,EAAE;QAC5B,OAAO,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAA;KAClC;SAAM;QACN,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAA;KAC7C;AACF,CAAC;AAND,kCAMC;AAED;;GAEG;AACH,SAAgB,SAAS,CAAC,EAAU;IACnC,OAAO;QACN,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;KAClB,CAAA;AACF,CAAC;AAJD,8BAIC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,QAAgB,EAAE,QAAgB;IAC7D,OAAO;QACN,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;KACpD,CAAA;AACF,CAAC;AAJD,kCAIC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './command';
|
|
2
|
+
export * from './std-account-create';
|
|
3
|
+
export * from './std-account-delete';
|
|
4
|
+
export * from './std-account-disable';
|
|
5
|
+
export * from './std-account-discover-schema';
|
|
6
|
+
export * from './std-account-enable';
|
|
7
|
+
export * from './std-account-list';
|
|
8
|
+
export * from './std-account-read';
|
|
9
|
+
export * from './std-account-unlock';
|
|
10
|
+
export * from './std-account-update';
|
|
11
|
+
export * from './std-entitlement-list';
|
|
12
|
+
export * from './std-entitlement-read';
|
|
13
|
+
export * from './std-spec-read';
|
|
14
|
+
export * from './std-test-connection';
|
|
15
|
+
export * from './std-change-password';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAA;AACzB,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
6
|
+
}) : (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
o[k2] = m[k];
|
|
9
|
+
}));
|
|
10
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
11
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
__exportStar(require("./command"), exports);
|
|
15
|
+
__exportStar(require("./std-account-create"), exports);
|
|
16
|
+
__exportStar(require("./std-account-delete"), exports);
|
|
17
|
+
__exportStar(require("./std-account-disable"), exports);
|
|
18
|
+
__exportStar(require("./std-account-discover-schema"), exports);
|
|
19
|
+
__exportStar(require("./std-account-enable"), exports);
|
|
20
|
+
__exportStar(require("./std-account-list"), exports);
|
|
21
|
+
__exportStar(require("./std-account-read"), exports);
|
|
22
|
+
__exportStar(require("./std-account-unlock"), exports);
|
|
23
|
+
__exportStar(require("./std-account-update"), exports);
|
|
24
|
+
__exportStar(require("./std-entitlement-list"), exports);
|
|
25
|
+
__exportStar(require("./std-entitlement-read"), exports);
|
|
26
|
+
__exportStar(require("./std-spec-read"), exports);
|
|
27
|
+
__exportStar(require("./std-test-connection"), exports);
|
|
28
|
+
__exportStar(require("./std-change-password"), exports);
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;;;;;;;;;;;;AAE3E,4CAAyB;AACzB,uDAAoC;AACpC,uDAAoC;AACpC,wDAAqC;AACrC,gEAA6C;AAC7C,uDAAoC;AACpC,qDAAkC;AAClC,qDAAkC;AAClC,uDAAoC;AACpC,uDAAoC;AACpC,yDAAsC;AACtC,yDAAsC;AACtC,kDAA+B;AAC/B,wDAAqC;AACrC,wDAAqC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Attributes, ObjectOutput } from './command';
|
|
2
|
+
/**
|
|
3
|
+
* Input object of `std:account:create` command
|
|
4
|
+
*/
|
|
5
|
+
export declare type StdAccountCreateInput = {
|
|
6
|
+
identity?: string;
|
|
7
|
+
attributes: any;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Output object of `std:account:create` command
|
|
11
|
+
*/
|
|
12
|
+
export declare type StdAccountCreateOutput = ObjectOutput & {
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
locked?: boolean;
|
|
15
|
+
attributes: Attributes;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=std-account-create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"std-account-create.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-account-create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEpD;;GAEG;AACH,oBAAY,qBAAqB,GAAG;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,GAAG,CAAA;CACf,CAAA;AAED;;GAEG;AACH,oBAAY,sBAAsB,GAAG,YAAY,GAAG;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;CACtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"std-account-create.js","sourceRoot":"","sources":["../../../lib/commands/std-account-create.ts"],"names":[],"mappings":";AAAA,2EAA2E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ObjectInput } from "./command";
|
|
2
|
+
/**
|
|
3
|
+
* Input object of `std:account:delete` command
|
|
4
|
+
*/
|
|
5
|
+
export declare type StdAccountDeleteInput = ObjectInput;
|
|
6
|
+
/**
|
|
7
|
+
* Output object of `std:account:delete` command
|
|
8
|
+
*/
|
|
9
|
+
export declare type StdAccountDeleteOutput = {};
|
|
10
|
+
//# sourceMappingURL=std-account-delete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"std-account-delete.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-account-delete.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAA;AAErC;;GAEG;AACH,oBAAY,qBAAqB,GAAG,WAAW,CAAA;AAE/C;;GAEG;AACH,oBAAY,sBAAsB,GAAG,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"std-account-delete.js","sourceRoot":"","sources":["../../../lib/commands/std-account-delete.ts"],"names":[],"mappings":";AAAA,2EAA2E"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Attributes, ObjectInput, ObjectOutput } from './command';
|
|
2
|
+
/**
|
|
3
|
+
* Input object of `std:account:disable` command
|
|
4
|
+
*/
|
|
5
|
+
export declare type StdAccountDisableInput = ObjectInput;
|
|
6
|
+
/**
|
|
7
|
+
* Output object of `std:account:disable` command
|
|
8
|
+
*/
|
|
9
|
+
export declare type StdAccountDisableOutput = ObjectOutput & {
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
locked?: boolean;
|
|
12
|
+
attributes: Attributes;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=std-account-disable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"std-account-disable.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-account-disable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEjE;;GAEG;AACH,oBAAY,sBAAsB,GAAG,WAAW,CAAA;AAEhD;;GAEG;AACH,oBAAY,uBAAuB,GAAG,YAAY,GAAG;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;CACtB,CAAA"}
|