namirasoft-credential 1.4.8 → 1.4.9
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/NamirasoftCredentialServer.d.ts +2 -0
- package/dist/NamirasoftCredentialServer.js +3 -1
- package/dist/NamirasoftCredentialServer.js.map +1 -1
- package/dist/NamirasoftCredentialServerAWS.d.ts +1 -0
- package/dist/NamirasoftCredentialServerAWS.js +7 -0
- package/dist/NamirasoftCredentialServerAWS.js.map +1 -1
- package/dist/NamirasoftCredentialServerAzure.d.ts +1 -0
- package/dist/NamirasoftCredentialServerAzure.js +7 -0
- package/dist/NamirasoftCredentialServerAzure.js.map +1 -1
- package/dist/NamirasoftCredentialServerGCP.d.ts +1 -0
- package/dist/NamirasoftCredentialServerGCP.js +7 -0
- package/dist/NamirasoftCredentialServerGCP.js.map +1 -1
- package/dist/NamirasoftCredentialServerRotator.d.ts +18 -0
- package/dist/NamirasoftCredentialServerRotator.js +71 -0
- package/dist/NamirasoftCredentialServerRotator.js.map +1 -0
- package/dist/command/AWSCommand.js +2 -0
- package/dist/command/AWSCommand.js.map +1 -1
- package/dist/command/AWSRotateCommand.d.ts +5 -0
- package/dist/command/AWSRotateCommand.js +38 -0
- package/dist/command/AWSRotateCommand.js.map +1 -0
- package/dist/command/AzureCommand.js +2 -0
- package/dist/command/AzureCommand.js.map +1 -1
- package/dist/command/AzureRotateCommand.d.ts +5 -0
- package/dist/command/AzureRotateCommand.js +38 -0
- package/dist/command/AzureRotateCommand.js.map +1 -0
- package/dist/command/GCPCommand.js +2 -0
- package/dist/command/GCPCommand.js.map +1 -1
- package/dist/command/GCPRotateCommand.d.ts +5 -0
- package/dist/command/GCPRotateCommand.js +38 -0
- package/dist/command/GCPRotateCommand.js.map +1 -0
- package/dist/command/RotatorCommand.d.ts +4 -0
- package/dist/command/RotatorCommand.js +25 -0
- package/dist/command/RotatorCommand.js.map +1 -0
- package/dist/command/RotatorCreateCommand.d.ts +5 -0
- package/dist/command/RotatorCreateCommand.js +112 -0
- package/dist/command/RotatorCreateCommand.js.map +1 -0
- package/dist/command/RotatorDeleteCommand.d.ts +5 -0
- package/dist/command/RotatorDeleteCommand.js +38 -0
- package/dist/command/RotatorDeleteCommand.js.map +1 -0
- package/dist/command/RotatorGetCommand.d.ts +5 -0
- package/dist/command/RotatorGetCommand.js +38 -0
- package/dist/command/RotatorGetCommand.js.map +1 -0
- package/dist/command/RotatorListCommand.d.ts +5 -0
- package/dist/command/RotatorListCommand.js +38 -0
- package/dist/command/RotatorListCommand.js.map +1 -0
- package/dist/command/RotatorRotateCommand.d.ts +5 -0
- package/dist/command/RotatorRotateCommand.js +38 -0
- package/dist/command/RotatorRotateCommand.js.map +1 -0
- package/dist/command/RotatorUpdateCommand.d.ts +5 -0
- package/dist/command/RotatorUpdateCommand.js +112 -0
- package/dist/command/RotatorUpdateCommand.js.map +1 -0
- package/dist/command/cli.js +2 -0
- package/dist/command/cli.js.map +1 -1
- package/dist/enum/RotatorType.d.ts +5 -0
- package/dist/enum/RotatorType.js +10 -0
- package/dist/enum/RotatorType.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/row/RotatorRow.d.ts +11 -0
- package/dist/row/RotatorRow.js +3 -0
- package/dist/row/RotatorRow.js.map +1 -0
- package/package.json +2 -2
- package/src/NamirasoftCredentialServer.ts +4 -1
- package/src/NamirasoftCredentialServerAWS.ts +6 -0
- package/src/NamirasoftCredentialServerAzure.ts +6 -0
- package/src/NamirasoftCredentialServerGCP.ts +6 -0
- package/src/NamirasoftCredentialServerRotator.ts +76 -0
- package/src/command/AWSCommand.ts +2 -0
- package/src/command/AWSRotateCommand.ts +45 -0
- package/src/command/AzureCommand.ts +2 -0
- package/src/command/AzureRotateCommand.ts +45 -0
- package/src/command/GCPCommand.ts +2 -0
- package/src/command/GCPRotateCommand.ts +45 -0
- package/src/command/RotatorCommand.ts +42 -0
- package/src/command/RotatorCreateCommand.ts +119 -0
- package/src/command/RotatorDeleteCommand.ts +45 -0
- package/src/command/RotatorGetCommand.ts +45 -0
- package/src/command/RotatorListCommand.ts +45 -0
- package/src/command/RotatorRotateCommand.ts +45 -0
- package/src/command/RotatorUpdateCommand.ts +119 -0
- package/src/command/cli.ts +2 -0
- package/src/enum/RotatorType.ts +26 -0
- package/src/index.ts +14 -1
- package/src/row/RotatorRow.ts +33 -0
|
@@ -0,0 +1,112 @@
|
|
|
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.RotatorCreateCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftCredentialServer_1 = require("../NamirasoftCredentialServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class RotatorCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, [], [
|
|
20
|
+
{
|
|
21
|
+
name: "id",
|
|
22
|
+
short: "",
|
|
23
|
+
description: "Provides the value of 'id' in body",
|
|
24
|
+
optional: false,
|
|
25
|
+
args: ["id"],
|
|
26
|
+
defaults: [""]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "name",
|
|
30
|
+
short: "",
|
|
31
|
+
description: "Provides the value of 'name' in body",
|
|
32
|
+
optional: false,
|
|
33
|
+
args: ["name"],
|
|
34
|
+
defaults: [""]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "type",
|
|
38
|
+
short: "",
|
|
39
|
+
description: "Provides the value of 'type' in body",
|
|
40
|
+
optional: false,
|
|
41
|
+
args: ["type"],
|
|
42
|
+
defaults: [""]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "credentioal_id",
|
|
46
|
+
short: "",
|
|
47
|
+
description: "Provides the value of 'credentioal_id' in body",
|
|
48
|
+
optional: false,
|
|
49
|
+
args: ["credentioal_id"],
|
|
50
|
+
defaults: [""]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "scheduler_id",
|
|
54
|
+
short: "",
|
|
55
|
+
description: "Provides the value of 'scheduler_id' in body",
|
|
56
|
+
optional: true,
|
|
57
|
+
args: ["scheduler_id"],
|
|
58
|
+
defaults: [""]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "description",
|
|
62
|
+
short: "",
|
|
63
|
+
description: "Provides the value of 'description' in body",
|
|
64
|
+
optional: true,
|
|
65
|
+
args: ["description"],
|
|
66
|
+
defaults: [""]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "created_at",
|
|
70
|
+
short: "",
|
|
71
|
+
description: "Provides the value of 'created_at' in body",
|
|
72
|
+
optional: false,
|
|
73
|
+
args: ["created_at"],
|
|
74
|
+
defaults: [""]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "updated_at",
|
|
78
|
+
short: "",
|
|
79
|
+
description: "Provides the value of 'updated_at' in body",
|
|
80
|
+
optional: false,
|
|
81
|
+
args: ["updated_at"],
|
|
82
|
+
defaults: [""]
|
|
83
|
+
}
|
|
84
|
+
]);
|
|
85
|
+
}
|
|
86
|
+
exec() {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
let token = this.app.storage.getNSAToken();
|
|
89
|
+
if (token == null)
|
|
90
|
+
throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
|
|
91
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
92
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
93
|
+
manager.setValue(token, false);
|
|
94
|
+
let url = this.app.storage.getItem("ns-credential-server-url");
|
|
95
|
+
let server = new NamirasoftCredentialServer_1.NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
|
|
96
|
+
let ans = yield server.rotator.Create({
|
|
97
|
+
id: this.option_values.id,
|
|
98
|
+
name: this.option_values.name,
|
|
99
|
+
type: this.option_values.type,
|
|
100
|
+
credentioal_id: this.option_values.credentioal_id,
|
|
101
|
+
scheduler_id: this.option_values.scheduler_id,
|
|
102
|
+
description: this.option_values.description,
|
|
103
|
+
created_at: this.option_values.created_at,
|
|
104
|
+
updated_at: this.option_values.updated_at
|
|
105
|
+
});
|
|
106
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.RotatorCreateCommand = RotatorCreateCommand;
|
|
111
|
+
;
|
|
112
|
+
//# sourceMappingURL=RotatorCreateCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotatorCreateCommand.js","sourceRoot":"","sources":["../../src/command/RotatorCreateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,8EAA2E;AAC3E,2DAAkD;AAElD,MAAa,oBAAqB,SAAQ,sCAAgB;IAEtD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,oCAAoC;gB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AW;gBAC3C,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;aAC5C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AA7FD,oDA6FC;AAAA,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.RotatorDeleteCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftCredentialServer_1 = require("../NamirasoftCredentialServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class RotatorDeleteCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["id"], []);
|
|
20
|
+
}
|
|
21
|
+
exec() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let token = this.app.storage.getNSAToken();
|
|
24
|
+
if (token == null)
|
|
25
|
+
throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
|
|
26
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
27
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
+
manager.setValue(token, false);
|
|
29
|
+
let url = this.app.storage.getItem("ns-credential-server-url");
|
|
30
|
+
let server = new NamirasoftCredentialServer_1.NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
|
|
31
|
+
let ans = yield server.rotator.Delete(this.arg_values[0]);
|
|
32
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.RotatorDeleteCommand = RotatorDeleteCommand;
|
|
37
|
+
;
|
|
38
|
+
//# sourceMappingURL=RotatorDeleteCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotatorDeleteCommand.js","sourceRoot":"","sources":["../../src/command/RotatorDeleteCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,8EAA2E;AAC3E,2DAAkD;AAElD,MAAa,oBAAqB,SAAQ,sCAAgB;IAEtD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5B,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,qHAAqH,CAAC,CAAC;YAC3I,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;YAC/D,IAAI,MAAM,GAAG,IAAI,uDAA0B,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACjG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1D,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,oDAmBC;AAAA,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.RotatorGetCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftCredentialServer_1 = require("../NamirasoftCredentialServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class RotatorGetCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["id"], []);
|
|
20
|
+
}
|
|
21
|
+
exec() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let token = this.app.storage.getNSAToken();
|
|
24
|
+
if (token == null)
|
|
25
|
+
throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
|
|
26
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
27
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
+
manager.setValue(token, false);
|
|
29
|
+
let url = this.app.storage.getItem("ns-credential-server-url");
|
|
30
|
+
let server = new NamirasoftCredentialServer_1.NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
|
|
31
|
+
let ans = yield server.rotator.Get(this.arg_values[0]);
|
|
32
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.RotatorGetCommand = RotatorGetCommand;
|
|
37
|
+
;
|
|
38
|
+
//# sourceMappingURL=RotatorGetCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotatorGetCommand.js","sourceRoot":"","sources":["../../src/command/RotatorGetCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,8EAA2E;AAC3E,2DAAkD;AAElD,MAAa,iBAAkB,SAAQ,sCAAgB;IAEnD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5B,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,qHAAqH,CAAC,CAAC;YAC3I,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;YAC/D,IAAI,MAAM,GAAG,IAAI,uDAA0B,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACjG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YACvD,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,8CAmBC;AAAA,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.RotatorListCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftCredentialServer_1 = require("../NamirasoftCredentialServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class RotatorListCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["filters", "page", "size", "sorts"], []);
|
|
20
|
+
}
|
|
21
|
+
exec() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let token = this.app.storage.getNSAToken();
|
|
24
|
+
if (token == null)
|
|
25
|
+
throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
|
|
26
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
27
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
+
manager.setValue(token, false);
|
|
29
|
+
let url = this.app.storage.getItem("ns-credential-server-url");
|
|
30
|
+
let server = new NamirasoftCredentialServer_1.NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
|
|
31
|
+
let ans = yield server.rotator.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]);
|
|
32
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.RotatorListCommand = RotatorListCommand;
|
|
37
|
+
;
|
|
38
|
+
//# sourceMappingURL=RotatorListCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotatorListCommand.js","sourceRoot":"","sources":["../../src/command/RotatorListCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,8EAA2E;AAC3E,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
|
|
@@ -0,0 +1,38 @@
|
|
|
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.RotatorRotateCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftCredentialServer_1 = require("../NamirasoftCredentialServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class RotatorRotateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["id"], []);
|
|
20
|
+
}
|
|
21
|
+
exec() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let token = this.app.storage.getNSAToken();
|
|
24
|
+
if (token == null)
|
|
25
|
+
throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
|
|
26
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
27
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
+
manager.setValue(token, false);
|
|
29
|
+
let url = this.app.storage.getItem("ns-credential-server-url");
|
|
30
|
+
let server = new NamirasoftCredentialServer_1.NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
|
|
31
|
+
let ans = yield server.rotator.Rotate(this.arg_values[0]);
|
|
32
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.RotatorRotateCommand = RotatorRotateCommand;
|
|
37
|
+
;
|
|
38
|
+
//# sourceMappingURL=RotatorRotateCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotatorRotateCommand.js","sourceRoot":"","sources":["../../src/command/RotatorRotateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,8EAA2E;AAC3E,2DAAkD;AAElD,MAAa,oBAAqB,SAAQ,sCAAgB;IAEtD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5B,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,qHAAqH,CAAC,CAAC;YAC3I,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;YAC/D,IAAI,MAAM,GAAG,IAAI,uDAA0B,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACjG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1D,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,oDAmBC;AAAA,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
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.RotatorUpdateCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftCredentialServer_1 = require("../NamirasoftCredentialServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class RotatorUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["id"], [
|
|
20
|
+
{
|
|
21
|
+
name: "id",
|
|
22
|
+
short: "",
|
|
23
|
+
description: "Provides the value of 'id' in body",
|
|
24
|
+
optional: false,
|
|
25
|
+
args: ["id"],
|
|
26
|
+
defaults: [""]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "name",
|
|
30
|
+
short: "",
|
|
31
|
+
description: "Provides the value of 'name' in body",
|
|
32
|
+
optional: false,
|
|
33
|
+
args: ["name"],
|
|
34
|
+
defaults: [""]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "type",
|
|
38
|
+
short: "",
|
|
39
|
+
description: "Provides the value of 'type' in body",
|
|
40
|
+
optional: false,
|
|
41
|
+
args: ["type"],
|
|
42
|
+
defaults: [""]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "credentioal_id",
|
|
46
|
+
short: "",
|
|
47
|
+
description: "Provides the value of 'credentioal_id' in body",
|
|
48
|
+
optional: false,
|
|
49
|
+
args: ["credentioal_id"],
|
|
50
|
+
defaults: [""]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "scheduler_id",
|
|
54
|
+
short: "",
|
|
55
|
+
description: "Provides the value of 'scheduler_id' in body",
|
|
56
|
+
optional: true,
|
|
57
|
+
args: ["scheduler_id"],
|
|
58
|
+
defaults: [""]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "description",
|
|
62
|
+
short: "",
|
|
63
|
+
description: "Provides the value of 'description' in body",
|
|
64
|
+
optional: true,
|
|
65
|
+
args: ["description"],
|
|
66
|
+
defaults: [""]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "created_at",
|
|
70
|
+
short: "",
|
|
71
|
+
description: "Provides the value of 'created_at' in body",
|
|
72
|
+
optional: false,
|
|
73
|
+
args: ["created_at"],
|
|
74
|
+
defaults: [""]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "updated_at",
|
|
78
|
+
short: "",
|
|
79
|
+
description: "Provides the value of 'updated_at' in body",
|
|
80
|
+
optional: false,
|
|
81
|
+
args: ["updated_at"],
|
|
82
|
+
defaults: [""]
|
|
83
|
+
}
|
|
84
|
+
]);
|
|
85
|
+
}
|
|
86
|
+
exec() {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
let token = this.app.storage.getNSAToken();
|
|
89
|
+
if (token == null)
|
|
90
|
+
throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
|
|
91
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
92
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
93
|
+
manager.setValue(token, false);
|
|
94
|
+
let url = this.app.storage.getItem("ns-credential-server-url");
|
|
95
|
+
let server = new NamirasoftCredentialServer_1.NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
|
|
96
|
+
let ans = yield server.rotator.Update(this.arg_values[0], {
|
|
97
|
+
id: this.option_values.id,
|
|
98
|
+
name: this.option_values.name,
|
|
99
|
+
type: this.option_values.type,
|
|
100
|
+
credentioal_id: this.option_values.credentioal_id,
|
|
101
|
+
scheduler_id: this.option_values.scheduler_id,
|
|
102
|
+
description: this.option_values.description,
|
|
103
|
+
created_at: this.option_values.created_at,
|
|
104
|
+
updated_at: this.option_values.updated_at
|
|
105
|
+
});
|
|
106
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.RotatorUpdateCommand = RotatorUpdateCommand;
|
|
111
|
+
;
|
|
112
|
+
//# sourceMappingURL=RotatorUpdateCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotatorUpdateCommand.js","sourceRoot":"","sources":["../../src/command/RotatorUpdateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,8EAA2E;AAC3E,2DAAkD;AAElD,MAAa,oBAAqB,SAAQ,sCAAgB;IAEtD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,EAAE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,CAAC,aAAa,CAAC,YAAY;gBAC7C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;aAC5C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AA7FD,oDA6FC;AAAA,CAAC"}
|
package/dist/command/cli.js
CHANGED
|
@@ -22,6 +22,7 @@ const GCPFieldCommand_1 = require("./GCPFieldCommand");
|
|
|
22
22
|
const GCPTagCommand_1 = require("./GCPTagCommand");
|
|
23
23
|
const HealthzCommand_1 = require("./HealthzCommand");
|
|
24
24
|
const MetricsCommand_1 = require("./MetricsCommand");
|
|
25
|
+
const RotatorCommand_1 = require("./RotatorCommand");
|
|
25
26
|
const ValueCommand_1 = require("./ValueCommand");
|
|
26
27
|
let app = new namirasoft_node_cli_1.Application("ns-credential", new namirasoft_node_cli_1.BaseStorage(), {
|
|
27
28
|
"healthz": HealthzCommand_1.HealthzCommand,
|
|
@@ -43,6 +44,7 @@ let app = new namirasoft_node_cli_1.Application("ns-credential", new namirasoft_
|
|
|
43
44
|
"basicauthfield": BasicAuthFieldCommand_1.BasicAuthFieldCommand,
|
|
44
45
|
"basicauthtag": BasicAuthTagCommand_1.BasicAuthTagCommand,
|
|
45
46
|
"basicauth": BasicAuthCommand_1.BasicAuthCommand,
|
|
47
|
+
"rotator": RotatorCommand_1.RotatorCommand,
|
|
46
48
|
"account": namirasoft_account_1.AccountCommand,
|
|
47
49
|
"config": (argv) => new namirasoft_node_cli_2.ConfigCommand(argv, ["ns-credential-server-url"])
|
|
48
50
|
});
|
package/dist/command/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/command/cli.ts"],"names":[],"mappings":";;;AAqBA,6DAA0D;AAC1D,6CAA0C;AAC1C,uDAAoD;AACpD,mDAAgD;AAChD,2DAAoD;AACpD,6DAA+D;AAC/D,iEAA8D;AAC9D,iDAA8C;AAC9C,2DAAwD;AACxD,uDAAoD;AACpD,yEAAsE;AACtE,yDAAsD;AACtD,mEAAgE;AAChE,+DAA4D;AAC5D,6DAAoD;AACpD,6DAA0D;AAC1D,6CAA0C;AAC1C,uDAAoD;AACpD,mDAAgD;AAChD,qDAAkD;AAClD,qDAAkD;AAClD,iDAA8C;AAE9C,IAAI,GAAG,GAAG,IAAI,iCAAW,CAAC,eAAe,EAAE,IAAI,iCAAW,EAAE,EACxD;IACI,SAAS,EAAE,+BAAc;IACzB,SAAS,EAAE,+BAAc;IACzB,OAAO,EAAE,2BAAY;IACrB,aAAa,EAAE,uCAAkB;IACjC,UAAU,EAAE,iCAAe;IAC3B,QAAQ,EAAE,6BAAa;IACvB,KAAK,EAAE,uBAAU;IACjB,eAAe,EAAE,2CAAoB;IACrC,YAAY,EAAE,qCAAiB;IAC/B,UAAU,EAAE,iCAAe;IAC3B,OAAO,EAAE,2BAAY;IACrB,aAAa,EAAE,uCAAkB;IACjC,UAAU,EAAE,iCAAe;IAC3B,QAAQ,EAAE,6BAAa;IACvB,KAAK,EAAE,uBAAU;IACjB,mBAAmB,EAAE,mDAAwB;IAC7C,gBAAgB,EAAE,6CAAqB;IACvC,cAAc,EAAE,yCAAmB;IACnC,WAAW,EAAE,mCAAgB;IAC7B,SAAS,EAAE,mCAAc;IACzB,QAAQ,EAAE,CAAC,IAAc,EAAE,EAAE,CAAC,IAAI,mCAAa,CAAC,IAAI,EAAE,CAAC,0BAA0B,CAAC,CAAC;CACtF,CAAC,CAAC;AACP,GAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/command/cli.ts"],"names":[],"mappings":";;;AAqBA,6DAA0D;AAC1D,6CAA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
4
|
+
var RotatorType;
|
|
5
|
+
(function (RotatorType) {
|
|
6
|
+
RotatorType["AWS"] = "AWS";
|
|
7
|
+
RotatorType["Azure"] = "Azure";
|
|
8
|
+
RotatorType["GCP"] = "GCP";
|
|
9
|
+
})(RotatorType || (exports.RotatorType = RotatorType = {}));
|
|
10
|
+
//# sourceMappingURL=RotatorType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotatorType.js","sourceRoot":"","sources":["../../src/enum/RotatorType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,WAKX;AALD,WAAY,WAAW;IAEnB,0BAAW,CAAA;IACX,8BAAe,CAAA;IACf,0BAAW,CAAA;AACf,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from "./NamirasoftCredentialServerGCPField";
|
|
|
18
18
|
export * from "./NamirasoftCredentialServerGCPTag";
|
|
19
19
|
export * from "./NamirasoftCredentialServerHealthz";
|
|
20
20
|
export * from "./NamirasoftCredentialServerMetrics";
|
|
21
|
+
export * from "./NamirasoftCredentialServerRotator";
|
|
21
22
|
export * from "./NamirasoftCredentialServerValue";
|
|
22
23
|
export * from "./command/AWSCategoryCommand";
|
|
23
24
|
export * from "./command/AWSCategoryCreateCommand";
|
|
@@ -35,6 +36,7 @@ export * from "./command/AWSFieldListCommand";
|
|
|
35
36
|
export * from "./command/AWSFieldUpdateCommand";
|
|
36
37
|
export * from "./command/AWSGetCommand";
|
|
37
38
|
export * from "./command/AWSListCommand";
|
|
39
|
+
export * from "./command/AWSRotateCommand";
|
|
38
40
|
export * from "./command/AWSTagCommand";
|
|
39
41
|
export * from "./command/AWSTagCreateCommand";
|
|
40
42
|
export * from "./command/AWSTagDeleteCommand";
|
|
@@ -59,6 +61,7 @@ export * from "./command/AzureFieldListCommand";
|
|
|
59
61
|
export * from "./command/AzureFieldUpdateCommand";
|
|
60
62
|
export * from "./command/AzureGetCommand";
|
|
61
63
|
export * from "./command/AzureListCommand";
|
|
64
|
+
export * from "./command/AzureRotateCommand";
|
|
62
65
|
export * from "./command/AzureTagCommand";
|
|
63
66
|
export * from "./command/AzureTagCreateCommand";
|
|
64
67
|
export * from "./command/AzureTagDeleteCommand";
|
|
@@ -107,6 +110,7 @@ export * from "./command/GCPFieldListCommand";
|
|
|
107
110
|
export * from "./command/GCPFieldUpdateCommand";
|
|
108
111
|
export * from "./command/GCPGetCommand";
|
|
109
112
|
export * from "./command/GCPListCommand";
|
|
113
|
+
export * from "./command/GCPRotateCommand";
|
|
110
114
|
export * from "./command/GCPTagCommand";
|
|
111
115
|
export * from "./command/GCPTagCreateCommand";
|
|
112
116
|
export * from "./command/GCPTagDeleteCommand";
|
|
@@ -119,8 +123,16 @@ export * from "./command/HealthzCommand";
|
|
|
119
123
|
export * from "./command/HealthzGetCommand";
|
|
120
124
|
export * from "./command/MetricsCommand";
|
|
121
125
|
export * from "./command/MetricsGetCommand";
|
|
126
|
+
export * from "./command/RotatorCommand";
|
|
127
|
+
export * from "./command/RotatorCreateCommand";
|
|
128
|
+
export * from "./command/RotatorDeleteCommand";
|
|
129
|
+
export * from "./command/RotatorGetCommand";
|
|
130
|
+
export * from "./command/RotatorListCommand";
|
|
131
|
+
export * from "./command/RotatorRotateCommand";
|
|
132
|
+
export * from "./command/RotatorUpdateCommand";
|
|
122
133
|
export * from "./command/ValueCommand";
|
|
123
134
|
export * from "./command/ValueListCommand";
|
|
135
|
+
export * from "./enum/RotatorType";
|
|
124
136
|
export * from "./meta/AWSCategoryMetaTable";
|
|
125
137
|
export * from "./meta/AWSFieldMetaTable";
|
|
126
138
|
export * from "./meta/AWSMetaTable";
|
|
@@ -165,3 +177,4 @@ export * from "./row/GCPFullRow";
|
|
|
165
177
|
export * from "./row/GCPRow";
|
|
166
178
|
export * from "./row/GCPTagRow";
|
|
167
179
|
export * from "./row/GCPUpdateRow";
|
|
180
|
+
export * from "./row/RotatorRow";
|
package/dist/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __exportStar(require("./NamirasoftCredentialServerGCPField"), exports);
|
|
|
34
34
|
__exportStar(require("./NamirasoftCredentialServerGCPTag"), exports);
|
|
35
35
|
__exportStar(require("./NamirasoftCredentialServerHealthz"), exports);
|
|
36
36
|
__exportStar(require("./NamirasoftCredentialServerMetrics"), exports);
|
|
37
|
+
__exportStar(require("./NamirasoftCredentialServerRotator"), exports);
|
|
37
38
|
__exportStar(require("./NamirasoftCredentialServerValue"), exports);
|
|
38
39
|
__exportStar(require("./command/AWSCategoryCommand"), exports);
|
|
39
40
|
__exportStar(require("./command/AWSCategoryCreateCommand"), exports);
|
|
@@ -51,6 +52,7 @@ __exportStar(require("./command/AWSFieldListCommand"), exports);
|
|
|
51
52
|
__exportStar(require("./command/AWSFieldUpdateCommand"), exports);
|
|
52
53
|
__exportStar(require("./command/AWSGetCommand"), exports);
|
|
53
54
|
__exportStar(require("./command/AWSListCommand"), exports);
|
|
55
|
+
__exportStar(require("./command/AWSRotateCommand"), exports);
|
|
54
56
|
__exportStar(require("./command/AWSTagCommand"), exports);
|
|
55
57
|
__exportStar(require("./command/AWSTagCreateCommand"), exports);
|
|
56
58
|
__exportStar(require("./command/AWSTagDeleteCommand"), exports);
|
|
@@ -75,6 +77,7 @@ __exportStar(require("./command/AzureFieldListCommand"), exports);
|
|
|
75
77
|
__exportStar(require("./command/AzureFieldUpdateCommand"), exports);
|
|
76
78
|
__exportStar(require("./command/AzureGetCommand"), exports);
|
|
77
79
|
__exportStar(require("./command/AzureListCommand"), exports);
|
|
80
|
+
__exportStar(require("./command/AzureRotateCommand"), exports);
|
|
78
81
|
__exportStar(require("./command/AzureTagCommand"), exports);
|
|
79
82
|
__exportStar(require("./command/AzureTagCreateCommand"), exports);
|
|
80
83
|
__exportStar(require("./command/AzureTagDeleteCommand"), exports);
|
|
@@ -123,6 +126,7 @@ __exportStar(require("./command/GCPFieldListCommand"), exports);
|
|
|
123
126
|
__exportStar(require("./command/GCPFieldUpdateCommand"), exports);
|
|
124
127
|
__exportStar(require("./command/GCPGetCommand"), exports);
|
|
125
128
|
__exportStar(require("./command/GCPListCommand"), exports);
|
|
129
|
+
__exportStar(require("./command/GCPRotateCommand"), exports);
|
|
126
130
|
__exportStar(require("./command/GCPTagCommand"), exports);
|
|
127
131
|
__exportStar(require("./command/GCPTagCreateCommand"), exports);
|
|
128
132
|
__exportStar(require("./command/GCPTagDeleteCommand"), exports);
|
|
@@ -135,8 +139,16 @@ __exportStar(require("./command/HealthzCommand"), exports);
|
|
|
135
139
|
__exportStar(require("./command/HealthzGetCommand"), exports);
|
|
136
140
|
__exportStar(require("./command/MetricsCommand"), exports);
|
|
137
141
|
__exportStar(require("./command/MetricsGetCommand"), exports);
|
|
142
|
+
__exportStar(require("./command/RotatorCommand"), exports);
|
|
143
|
+
__exportStar(require("./command/RotatorCreateCommand"), exports);
|
|
144
|
+
__exportStar(require("./command/RotatorDeleteCommand"), exports);
|
|
145
|
+
__exportStar(require("./command/RotatorGetCommand"), exports);
|
|
146
|
+
__exportStar(require("./command/RotatorListCommand"), exports);
|
|
147
|
+
__exportStar(require("./command/RotatorRotateCommand"), exports);
|
|
148
|
+
__exportStar(require("./command/RotatorUpdateCommand"), exports);
|
|
138
149
|
__exportStar(require("./command/ValueCommand"), exports);
|
|
139
150
|
__exportStar(require("./command/ValueListCommand"), exports);
|
|
151
|
+
__exportStar(require("./enum/RotatorType"), exports);
|
|
140
152
|
__exportStar(require("./meta/AWSCategoryMetaTable"), exports);
|
|
141
153
|
__exportStar(require("./meta/AWSFieldMetaTable"), exports);
|
|
142
154
|
__exportStar(require("./meta/AWSMetaTable"), exports);
|
|
@@ -181,4 +193,5 @@ __exportStar(require("./row/GCPFullRow"), exports);
|
|
|
181
193
|
__exportStar(require("./row/GCPRow"), exports);
|
|
182
194
|
__exportStar(require("./row/GCPTagRow"), exports);
|
|
183
195
|
__exportStar(require("./row/GCPUpdateRow"), exports);
|
|
196
|
+
__exportStar(require("./row/RotatorRow"), exports);
|
|
184
197
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,+DAA6C;AAC7C,kEAAgD;AAChD,0EAAwD;AACxD,uEAAqD;AACrD,qEAAmD;AACnD,oEAAkD;AAClD,4EAA0D;AAC1D,yEAAuD;AACvD,uEAAqD;AACrD,mEAAiD;AACjD,wEAAsD;AACtD,gFAA8D;AAC9D,6EAA2D;AAC3D,2EAAyD;AACzD,kEAAgD;AAChD,0EAAwD;AACxD,uEAAqD;AACrD,qEAAmD;AACnD,sEAAoD;AACpD,sEAAoD;AACpD,oEAAkD;AAClD,+DAA6C;AAC7C,qEAAmD;AACnD,qEAAmD;AACnD,kEAAgD;AAChD,mEAAiD;AACjD,uDAAqC;AACrC,6DAA2C;AAC3C,6DAA2C;AAC3C,4DAA0C;AAC1C,kEAAgD;AAChD,kEAAgD;AAChD,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,0DAAwC;AACxC,2DAAyC;AACzC,0DAAwC;AACxC,gEAA8C;AAC9C,gEAA8C;AAC9C,6DAA2C;AAC3C,8DAA4C;AAC5C,gEAA8C;AAC9C,6DAA2C;AAC3C,8DAA4C;AAC5C,iEAA+C;AAC/C,uEAAqD;AACrD,uEAAqD;AACrD,oEAAkD;AAClD,qEAAmD;AACnD,yDAAuC;AACvC,+DAA6C;AAC7C,+DAA6C;AAC7C,8DAA4C;AAC5C,oEAAkD;AAClD,oEAAkD;AAClD,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD;AAClD,4DAA0C;AAC1C,6DAA2C;AAC3C,4DAA0C;AAC1C,kEAAgD;AAChD,kEAAgD;AAChD,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,+DAA6C;AAC7C,gEAA8C;AAC9C,qEAAmD;AACnD,2EAAyD;A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pC,yDAAuC;AACvC,0EAAwD;AACxD,uDAAqC;AACrC,qDAAmC;AACnC,oDAAkC;AAClC,mDAAiC;AACjC,+CAA6B;AAC7B,kDAAgC;AAChC,qDAAmC;AACnC,yDAAuC;AACvC,uDAAqC;AACrC,sDAAoC;AACpC,qDAAmC;AACnC,iDAA+B;AAC/B,oDAAkC;AAClC,uDAAqC;AACrC,6DAA2C;AAC3C,2DAAyC;AACzC,0DAAwC;AACxC,yDAAuC;AACvC,qDAAmC;AACnC,wDAAsC;AACtC,2DAAyC;AACzC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,uDAAqC;AACrC,qDAAmC;AACnC,oDAAkC;AAClC,mDAAiC;AACjC,+CAA6B;AAC7B,kDAAgC;AAChC,qDAAmC;AACnC,mDAAiC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RotatorType } from "../enum/RotatorType";
|
|
2
|
+
export type RotatorRow = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
type: RotatorType;
|
|
6
|
+
credentioal_id: string;
|
|
7
|
+
scheduler_id: (string | null);
|
|
8
|
+
description: (string | null);
|
|
9
|
+
created_at: Date;
|
|
10
|
+
updated_at: Date;
|
|
11
|
+
};
|