namirasoft-credential 1.5.2 → 1.5.3
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.js +1 -1
- package/dist/NamirasoftCredentialServerAWS.d.ts +2 -3
- package/dist/NamirasoftCredentialServerAWS.js.map +1 -1
- package/dist/NamirasoftCredentialServerAzure.d.ts +2 -3
- package/dist/NamirasoftCredentialServerAzure.js.map +1 -1
- package/dist/NamirasoftCredentialServerBasicAuth.d.ts +2 -3
- package/dist/NamirasoftCredentialServerBasicAuth.js.map +1 -1
- package/dist/NamirasoftCredentialServerCloud.d.ts +2 -3
- package/dist/NamirasoftCredentialServerCloud.js.map +1 -1
- package/dist/NamirasoftCredentialServerCredential.d.ts +2 -3
- package/dist/NamirasoftCredentialServerCredential.js.map +1 -1
- package/dist/NamirasoftCredentialServerDatabase.d.ts +2 -3
- package/dist/NamirasoftCredentialServerDatabase.js.map +1 -1
- package/dist/NamirasoftCredentialServerGCP.d.ts +2 -3
- package/dist/NamirasoftCredentialServerGCP.js.map +1 -1
- package/dist/NamirasoftCredentialServerGitHub.d.ts +2 -3
- package/dist/NamirasoftCredentialServerGitHub.js.map +1 -1
- package/dist/NamirasoftCredentialServerGitLab.d.ts +2 -3
- package/dist/NamirasoftCredentialServerGitLab.js.map +1 -1
- package/dist/NamirasoftCredentialServerHostBasicAuth.d.ts +2 -3
- package/dist/NamirasoftCredentialServerHostBasicAuth.js.map +1 -1
- package/dist/NamirasoftCredentialServerHostTokenAuth.d.ts +2 -3
- package/dist/NamirasoftCredentialServerHostTokenAuth.js.map +1 -1
- package/dist/NamirasoftCredentialServerProtocol.d.ts +2 -3
- package/dist/NamirasoftCredentialServerProtocol.js.map +1 -1
- package/dist/NamirasoftCredentialServerSSH.d.ts +2 -3
- package/dist/NamirasoftCredentialServerSSH.js.map +1 -1
- package/dist/NamirasoftCredentialServerSourceControl.d.ts +2 -3
- package/dist/NamirasoftCredentialServerSourceControl.js.map +1 -1
- package/dist/NamirasoftCredentialServerTokenAuth.d.ts +2 -3
- package/dist/NamirasoftCredentialServerTokenAuth.js.map +1 -1
- package/dist/command/AWSCreateCommand.js +18 -0
- package/dist/command/AWSCreateCommand.js.map +1 -1
- package/dist/command/AWSUpdateCommand.js +18 -0
- package/dist/command/AWSUpdateCommand.js.map +1 -1
- package/dist/command/AzureCreateCommand.js +18 -0
- package/dist/command/AzureCreateCommand.js.map +1 -1
- package/dist/command/AzureUpdateCommand.js +18 -0
- package/dist/command/AzureUpdateCommand.js.map +1 -1
- package/dist/command/BasicAuthCreateCommand.js +18 -0
- package/dist/command/BasicAuthCreateCommand.js.map +1 -1
- package/dist/command/BasicAuthUpdateCommand.js +18 -0
- package/dist/command/BasicAuthUpdateCommand.js.map +1 -1
- package/dist/command/GCPCreateCommand.js +18 -0
- package/dist/command/GCPCreateCommand.js.map +1 -1
- package/dist/command/GCPUpdateCommand.js +18 -0
- package/dist/command/GCPUpdateCommand.js.map +1 -1
- package/dist/command/GitHubCreateCommand.js +18 -0
- package/dist/command/GitHubCreateCommand.js.map +1 -1
- package/dist/command/GitHubUpdateCommand.js +18 -0
- package/dist/command/GitHubUpdateCommand.js.map +1 -1
- package/dist/command/GitLabCreateCommand.js +18 -0
- package/dist/command/GitLabCreateCommand.js.map +1 -1
- package/dist/command/GitLabUpdateCommand.js +18 -0
- package/dist/command/GitLabUpdateCommand.js.map +1 -1
- package/dist/command/HostBasicAuthCreateCommand.js +18 -0
- package/dist/command/HostBasicAuthCreateCommand.js.map +1 -1
- package/dist/command/HostBasicAuthUpdateCommand.js +18 -0
- package/dist/command/HostBasicAuthUpdateCommand.js.map +1 -1
- package/dist/command/HostTokenAuthCreateCommand.js +18 -0
- package/dist/command/HostTokenAuthCreateCommand.js.map +1 -1
- package/dist/command/HostTokenAuthUpdateCommand.js +18 -0
- package/dist/command/HostTokenAuthUpdateCommand.js.map +1 -1
- package/dist/command/SSHCreateCommand.js +18 -0
- package/dist/command/SSHCreateCommand.js.map +1 -1
- package/dist/command/SSHUpdateCommand.js +18 -0
- package/dist/command/SSHUpdateCommand.js.map +1 -1
- package/dist/command/TokenAuthCreateCommand.js +18 -0
- package/dist/command/TokenAuthCreateCommand.js.map +1 -1
- package/dist/command/TokenAuthUpdateCommand.js +18 -0
- package/dist/command/TokenAuthUpdateCommand.js.map +1 -1
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -15
- package/dist/index.js.map +1 -1
- package/dist/meta/AWSMetaTable.d.ts +6 -0
- package/dist/meta/AWSMetaTable.js +6 -0
- package/dist/meta/AWSMetaTable.js.map +1 -1
- package/dist/meta/AzureMetaTable.d.ts +6 -0
- package/dist/meta/AzureMetaTable.js +6 -0
- package/dist/meta/AzureMetaTable.js.map +1 -1
- package/dist/meta/BasicAuthMetaTable.d.ts +6 -0
- package/dist/meta/BasicAuthMetaTable.js +6 -0
- package/dist/meta/BasicAuthMetaTable.js.map +1 -1
- package/dist/meta/CloudMetaTable.d.ts +5 -0
- package/dist/meta/CloudMetaTable.js +5 -0
- package/dist/meta/CloudMetaTable.js.map +1 -1
- package/dist/meta/DatabaseMetaTable.d.ts +5 -0
- package/dist/meta/DatabaseMetaTable.js +5 -0
- package/dist/meta/DatabaseMetaTable.js.map +1 -1
- package/dist/meta/GCPMetaTable.d.ts +6 -0
- package/dist/meta/GCPMetaTable.js +6 -0
- package/dist/meta/GCPMetaTable.js.map +1 -1
- package/dist/meta/GitHubMetaTable.d.ts +6 -0
- package/dist/meta/GitHubMetaTable.js +6 -0
- package/dist/meta/GitHubMetaTable.js.map +1 -1
- package/dist/meta/GitLabMetaTable.d.ts +6 -0
- package/dist/meta/GitLabMetaTable.js +6 -0
- package/dist/meta/GitLabMetaTable.js.map +1 -1
- package/dist/meta/HostBasicAuthMetaTable.d.ts +6 -0
- package/dist/meta/HostBasicAuthMetaTable.js +6 -0
- package/dist/meta/HostBasicAuthMetaTable.js.map +1 -1
- package/dist/meta/HostTokenAuthMetaTable.d.ts +6 -0
- package/dist/meta/HostTokenAuthMetaTable.js +6 -0
- package/dist/meta/HostTokenAuthMetaTable.js.map +1 -1
- package/dist/meta/ProtocolMetaTable.d.ts +5 -0
- package/dist/meta/ProtocolMetaTable.js +5 -0
- package/dist/meta/ProtocolMetaTable.js.map +1 -1
- package/dist/meta/SourceControlMetaTable.d.ts +5 -0
- package/dist/meta/SourceControlMetaTable.js +5 -0
- package/dist/meta/SourceControlMetaTable.js.map +1 -1
- package/dist/meta/SshMetaTable.d.ts +6 -0
- package/dist/meta/SshMetaTable.js +6 -0
- package/dist/meta/SshMetaTable.js.map +1 -1
- package/dist/meta/TokenAuthMetaTable.d.ts +6 -0
- package/dist/meta/TokenAuthMetaTable.js +6 -0
- package/dist/meta/TokenAuthMetaTable.js.map +1 -1
- package/dist/row/AWSCreateRow.d.ts +2 -0
- package/dist/row/AWSRow.d.ts +8 -0
- package/dist/row/AWSUpdateRow.d.ts +2 -0
- package/dist/row/AzureCreateRow.d.ts +2 -0
- package/dist/row/AzureRow.d.ts +8 -0
- package/dist/row/AzureUpdateRow.d.ts +2 -0
- package/dist/row/BasicAuthCreateRow.d.ts +2 -0
- package/dist/row/BasicAuthRow.d.ts +8 -0
- package/dist/row/BasicAuthUpdateRow.d.ts +2 -0
- package/dist/row/CloudRow.d.ts +7 -0
- package/dist/row/DatabaseRow.d.ts +7 -0
- package/dist/row/GCPCreateRow.d.ts +2 -0
- package/dist/row/GCPRow.d.ts +8 -0
- package/dist/row/GCPUpdateRow.d.ts +2 -0
- package/dist/row/GitHubCreateRow.d.ts +2 -0
- package/dist/row/GitHubRow.d.ts +8 -0
- package/dist/row/GitHubUpdateRow.d.ts +2 -0
- package/dist/row/GitLabCreateRow.d.ts +2 -0
- package/dist/row/GitLabRow.d.ts +8 -0
- package/dist/row/GitLabUpdateRow.d.ts +2 -0
- package/dist/row/HostBasicAuthCreateRow.d.ts +2 -0
- package/dist/row/HostBasicAuthRow.d.ts +8 -0
- package/dist/row/HostBasicAuthUpdateRow.d.ts +2 -0
- package/dist/row/HostTokenAuthCreateRow.d.ts +2 -0
- package/dist/row/HostTokenAuthRow.d.ts +8 -0
- package/dist/row/HostTokenAuthUpdateRow.d.ts +2 -0
- package/dist/row/ProtocolRow.d.ts +7 -0
- package/dist/row/SSHCreateRow.d.ts +2 -0
- package/dist/row/SSHUpdateRow.d.ts +2 -0
- package/dist/row/SourceControlRow.d.ts +7 -0
- package/dist/row/SshRow.d.ts +8 -0
- package/dist/row/TokenAuthCreateRow.d.ts +2 -0
- package/dist/row/TokenAuthRow.d.ts +8 -0
- package/dist/row/TokenAuthUpdateRow.d.ts +2 -0
- package/package.json +1 -1
- package/src/NamirasoftCredentialServer.ts +1 -1
- package/src/NamirasoftCredentialServerAWS.ts +4 -5
- package/src/NamirasoftCredentialServerAzure.ts +4 -5
- package/src/NamirasoftCredentialServerBasicAuth.ts +4 -5
- package/src/NamirasoftCredentialServerCloud.ts +4 -5
- package/src/NamirasoftCredentialServerCredential.ts +4 -5
- package/src/NamirasoftCredentialServerDatabase.ts +4 -5
- package/src/NamirasoftCredentialServerGCP.ts +4 -5
- package/src/NamirasoftCredentialServerGitHub.ts +4 -5
- package/src/NamirasoftCredentialServerGitLab.ts +4 -5
- package/src/NamirasoftCredentialServerHostBasicAuth.ts +4 -5
- package/src/NamirasoftCredentialServerHostTokenAuth.ts +4 -5
- package/src/NamirasoftCredentialServerProtocol.ts +4 -5
- package/src/NamirasoftCredentialServerSSH.ts +4 -5
- package/src/NamirasoftCredentialServerSourceControl.ts +4 -5
- package/src/NamirasoftCredentialServerTokenAuth.ts +4 -5
- package/src/command/AWSCreateCommand.ts +18 -0
- package/src/command/AWSUpdateCommand.ts +18 -0
- package/src/command/AzureCreateCommand.ts +18 -0
- package/src/command/AzureUpdateCommand.ts +18 -0
- package/src/command/BasicAuthCreateCommand.ts +18 -0
- package/src/command/BasicAuthUpdateCommand.ts +18 -0
- package/src/command/GCPCreateCommand.ts +18 -0
- package/src/command/GCPUpdateCommand.ts +18 -0
- package/src/command/GitHubCreateCommand.ts +18 -0
- package/src/command/GitHubUpdateCommand.ts +18 -0
- package/src/command/GitLabCreateCommand.ts +18 -0
- package/src/command/GitLabUpdateCommand.ts +18 -0
- package/src/command/HostBasicAuthCreateCommand.ts +18 -0
- package/src/command/HostBasicAuthUpdateCommand.ts +18 -0
- package/src/command/HostTokenAuthCreateCommand.ts +18 -0
- package/src/command/HostTokenAuthUpdateCommand.ts +18 -0
- package/src/command/SSHCreateCommand.ts +18 -0
- package/src/command/SSHUpdateCommand.ts +18 -0
- package/src/command/TokenAuthCreateCommand.ts +18 -0
- package/src/command/TokenAuthUpdateCommand.ts +18 -0
- package/src/index.ts +0 -15
- package/src/meta/AWSMetaTable.ts +12 -0
- package/src/meta/AzureMetaTable.ts +12 -0
- package/src/meta/BasicAuthMetaTable.ts +12 -0
- package/src/meta/CloudMetaTable.ts +10 -0
- package/src/meta/DatabaseMetaTable.ts +10 -0
- package/src/meta/GCPMetaTable.ts +12 -0
- package/src/meta/GitHubMetaTable.ts +12 -0
- package/src/meta/GitLabMetaTable.ts +12 -0
- package/src/meta/HostBasicAuthMetaTable.ts +12 -0
- package/src/meta/HostTokenAuthMetaTable.ts +12 -0
- package/src/meta/ProtocolMetaTable.ts +10 -0
- package/src/meta/SourceControlMetaTable.ts +10 -0
- package/src/meta/SshMetaTable.ts +12 -0
- package/src/meta/TokenAuthMetaTable.ts +12 -0
- package/src/row/AWSCreateRow.ts +2 -0
- package/src/row/AWSRow.ts +9 -0
- package/src/row/AWSUpdateRow.ts +2 -0
- package/src/row/AzureCreateRow.ts +2 -0
- package/src/row/AzureRow.ts +9 -0
- package/src/row/AzureUpdateRow.ts +2 -0
- package/src/row/BasicAuthCreateRow.ts +2 -0
- package/src/row/BasicAuthRow.ts +9 -0
- package/src/row/BasicAuthUpdateRow.ts +2 -0
- package/src/row/CloudRow.ts +8 -0
- package/src/row/DatabaseRow.ts +7 -0
- package/src/row/GCPCreateRow.ts +2 -0
- package/src/row/GCPRow.ts +9 -0
- package/src/row/GCPUpdateRow.ts +2 -0
- package/src/row/GitHubCreateRow.ts +2 -0
- package/src/row/GitHubRow.ts +8 -0
- package/src/row/GitHubUpdateRow.ts +2 -0
- package/src/row/GitLabCreateRow.ts +2 -0
- package/src/row/GitLabRow.ts +8 -0
- package/src/row/GitLabUpdateRow.ts +2 -0
- package/src/row/HostBasicAuthCreateRow.ts +2 -0
- package/src/row/HostBasicAuthRow.ts +9 -0
- package/src/row/HostBasicAuthUpdateRow.ts +2 -0
- package/src/row/HostTokenAuthCreateRow.ts +2 -0
- package/src/row/HostTokenAuthRow.ts +9 -0
- package/src/row/HostTokenAuthUpdateRow.ts +2 -0
- package/src/row/ProtocolRow.ts +8 -0
- package/src/row/SSHCreateRow.ts +2 -0
- package/src/row/SSHUpdateRow.ts +2 -0
- package/src/row/SourceControlRow.ts +8 -0
- package/src/row/SshRow.ts +8 -0
- package/src/row/TokenAuthCreateRow.ts +2 -0
- package/src/row/TokenAuthRow.ts +9 -0
- package/src/row/TokenAuthUpdateRow.ts +2 -0
- package/dist/row/AWSFullRow.d.ts +0 -19
- package/dist/row/AWSFullRow.js +0 -3
- package/dist/row/AWSFullRow.js.map +0 -1
- package/dist/row/AzureFullRow.d.ts +0 -20
- package/dist/row/AzureFullRow.js +0 -3
- package/dist/row/AzureFullRow.js.map +0 -1
- package/dist/row/BasicAuthFullRow.d.ts +0 -19
- package/dist/row/BasicAuthFullRow.js +0 -3
- package/dist/row/BasicAuthFullRow.js.map +0 -1
- package/dist/row/CloudFullRow.d.ts +0 -11
- package/dist/row/CloudFullRow.js +0 -3
- package/dist/row/CloudFullRow.js.map +0 -1
- package/dist/row/CredentialFullRow.d.ts +0 -15
- package/dist/row/CredentialFullRow.js +0 -3
- package/dist/row/CredentialFullRow.js.map +0 -1
- package/dist/row/DatabaseFullRow.d.ts +0 -30
- package/dist/row/DatabaseFullRow.js +0 -3
- package/dist/row/DatabaseFullRow.js.map +0 -1
- package/dist/row/GCPFullRow.d.ts +0 -18
- package/dist/row/GCPFullRow.js +0 -3
- package/dist/row/GCPFullRow.js.map +0 -1
- package/dist/row/GitHubFullRow.d.ts +0 -33
- package/dist/row/GitHubFullRow.js +0 -3
- package/dist/row/GitHubFullRow.js.map +0 -1
- package/dist/row/GitLabFullRow.d.ts +0 -29
- package/dist/row/GitLabFullRow.js +0 -3
- package/dist/row/GitLabFullRow.js.map +0 -1
- package/dist/row/HostBasicAuthFullRow.d.ts +0 -20
- package/dist/row/HostBasicAuthFullRow.js +0 -3
- package/dist/row/HostBasicAuthFullRow.js.map +0 -1
- package/dist/row/HostTokenAuthFullRow.d.ts +0 -19
- package/dist/row/HostTokenAuthFullRow.js +0 -3
- package/dist/row/HostTokenAuthFullRow.js.map +0 -1
- package/dist/row/ProtocolFullRow.d.ts +0 -11
- package/dist/row/ProtocolFullRow.js +0 -3
- package/dist/row/ProtocolFullRow.js.map +0 -1
- package/dist/row/SSHFullRow.d.ts +0 -26
- package/dist/row/SSHFullRow.js +0 -3
- package/dist/row/SSHFullRow.js.map +0 -1
- package/dist/row/SourceControlFullRow.d.ts +0 -11
- package/dist/row/SourceControlFullRow.js +0 -3
- package/dist/row/SourceControlFullRow.js.map +0 -1
- package/dist/row/TokenAuthFullRow.d.ts +0 -18
- package/dist/row/TokenAuthFullRow.js +0 -3
- package/dist/row/TokenAuthFullRow.js.map +0 -1
- package/src/row/AWSFullRow.ts +0 -41
- package/src/row/AzureFullRow.ts +0 -42
- package/src/row/BasicAuthFullRow.ts +0 -41
- package/src/row/CloudFullRow.ts +0 -33
- package/src/row/CredentialFullRow.ts +0 -37
- package/src/row/DatabaseFullRow.ts +0 -52
- package/src/row/GCPFullRow.ts +0 -40
- package/src/row/GitHubFullRow.ts +0 -55
- package/src/row/GitLabFullRow.ts +0 -51
- package/src/row/HostBasicAuthFullRow.ts +0 -42
- package/src/row/HostTokenAuthFullRow.ts +0 -41
- package/src/row/ProtocolFullRow.ts +0 -33
- package/src/row/SSHFullRow.ts +0 -48
- package/src/row/SourceControlFullRow.ts +0 -33
- package/src/row/TokenAuthFullRow.ts +0 -40
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CredentialEntityType } from "../enum/CredentialEntityType";
|
|
2
|
+
import { CredentialGroupType } from "../enum/CredentialGroupType";
|
|
1
3
|
export type BasicAuthRow = {
|
|
2
4
|
id: string;
|
|
3
5
|
credential_id: string;
|
|
@@ -8,4 +10,10 @@ export type BasicAuthRow = {
|
|
|
8
10
|
password_secret_id: string;
|
|
9
11
|
created_at: Date;
|
|
10
12
|
updated_at: Date;
|
|
13
|
+
entity_id: string;
|
|
14
|
+
group_id: string;
|
|
15
|
+
group_type: CredentialGroupType;
|
|
16
|
+
entity_type: CredentialEntityType;
|
|
17
|
+
name: string;
|
|
18
|
+
description: (string | null);
|
|
11
19
|
};
|
|
@@ -5,6 +5,8 @@ export type BasicAuthUpdateRow = {
|
|
|
5
5
|
workspace_id: (string | null);
|
|
6
6
|
username: (string | null);
|
|
7
7
|
password: (string | null);
|
|
8
|
+
name: string;
|
|
9
|
+
description: (string | null);
|
|
8
10
|
basic_auth_category: (EntityCategoryInputRow | null)[];
|
|
9
11
|
basic_auth_field: (EntityFieldInputRow | null)[];
|
|
10
12
|
basic_auth_tag: (EntityTagInputRow | null)[];
|
package/dist/row/CloudRow.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CredentialEntityType } from "../enum/CredentialEntityType";
|
|
2
|
+
import { CredentialGroupType } from "../enum/CredentialGroupType";
|
|
1
3
|
export type CloudRow = {
|
|
2
4
|
id: string;
|
|
3
5
|
credential_id: string;
|
|
@@ -6,4 +8,9 @@ export type CloudRow = {
|
|
|
6
8
|
workspace_id: string;
|
|
7
9
|
created_at: Date;
|
|
8
10
|
updated_at: Date;
|
|
11
|
+
group_id: string;
|
|
12
|
+
group_type: CredentialGroupType;
|
|
13
|
+
entity_type: CredentialEntityType;
|
|
14
|
+
name: string;
|
|
15
|
+
description: (string | null);
|
|
9
16
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CredentialEntityType } from "../enum/CredentialEntityType";
|
|
2
|
+
import { CredentialGroupType } from "../enum/CredentialGroupType";
|
|
1
3
|
import { DatabaseType } from "../enum/DatabaseType";
|
|
2
4
|
export type DatabaseRow = {
|
|
3
5
|
id: string;
|
|
@@ -19,4 +21,9 @@ export type DatabaseRow = {
|
|
|
19
21
|
ssl_key_secret_id: (string | null);
|
|
20
22
|
created_at: Date;
|
|
21
23
|
updated_at: Date;
|
|
24
|
+
group_id: string;
|
|
25
|
+
group_type: CredentialGroupType;
|
|
26
|
+
entity_type: CredentialEntityType;
|
|
27
|
+
name: string;
|
|
28
|
+
description: (string | null);
|
|
22
29
|
};
|
|
@@ -4,6 +4,8 @@ import { EntityTagInputRow } from "./EntityTagInputRow";
|
|
|
4
4
|
export type GCPCreateRow = {
|
|
5
5
|
workspace_id: (string | null);
|
|
6
6
|
credentials: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description: (string | null);
|
|
7
9
|
gcp_category: (EntityCategoryInputRow | null)[];
|
|
8
10
|
gcp_field: (EntityFieldInputRow | null)[];
|
|
9
11
|
gcp_tag: (EntityTagInputRow | null)[];
|
package/dist/row/GCPRow.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CredentialEntityType } from "../enum/CredentialEntityType";
|
|
2
|
+
import { CredentialGroupType } from "../enum/CredentialGroupType";
|
|
1
3
|
export type GCPRow = {
|
|
2
4
|
id: string;
|
|
3
5
|
credential_id: string;
|
|
@@ -7,4 +9,10 @@ export type GCPRow = {
|
|
|
7
9
|
credentials_secret_id: string;
|
|
8
10
|
created_at: Date;
|
|
9
11
|
updated_at: Date;
|
|
12
|
+
entity_id: string;
|
|
13
|
+
group_id: string;
|
|
14
|
+
group_type: CredentialGroupType;
|
|
15
|
+
entity_type: CredentialEntityType;
|
|
16
|
+
name: string;
|
|
17
|
+
description: (string | null);
|
|
10
18
|
};
|
|
@@ -4,6 +4,8 @@ import { EntityTagInputRow } from "./EntityTagInputRow";
|
|
|
4
4
|
export type GCPUpdateRow = {
|
|
5
5
|
workspace_id: (string | null);
|
|
6
6
|
credentials: (string | null);
|
|
7
|
+
name: string;
|
|
8
|
+
description: (string | null);
|
|
7
9
|
gcp_category: (EntityCategoryInputRow | null)[];
|
|
8
10
|
gcp_field: (EntityFieldInputRow | null)[];
|
|
9
11
|
gcp_tag: (EntityTagInputRow | null)[];
|
|
@@ -19,6 +19,8 @@ export type GitHubCreateRow = {
|
|
|
19
19
|
githubapp_token: (string | null);
|
|
20
20
|
ssh_publickey: (string | null);
|
|
21
21
|
ssh_privatekey: (string | null);
|
|
22
|
+
name: string;
|
|
23
|
+
description: (string | null);
|
|
22
24
|
git_hub_category: (EntityCategoryInputRow | null)[];
|
|
23
25
|
git_hub_field: (EntityFieldInputRow | null)[];
|
|
24
26
|
git_hub_tag: (EntityTagInputRow | null)[];
|
package/dist/row/GitHubRow.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CredentialEntityType } from "../enum/CredentialEntityType";
|
|
2
|
+
import { CredentialGroupType } from "../enum/CredentialGroupType";
|
|
1
3
|
import { GitHubType } from "../enum/GitHubType";
|
|
2
4
|
export type GitHubRow = {
|
|
3
5
|
id: string;
|
|
@@ -22,4 +24,10 @@ export type GitHubRow = {
|
|
|
22
24
|
ssh_privatekey_secret_id: (string | null);
|
|
23
25
|
created_at: Date;
|
|
24
26
|
updated_at: Date;
|
|
27
|
+
entity_id: string;
|
|
28
|
+
group_id: string;
|
|
29
|
+
group_type: CredentialGroupType;
|
|
30
|
+
entity_type: CredentialEntityType;
|
|
31
|
+
name: string;
|
|
32
|
+
description: (string | null);
|
|
25
33
|
};
|
|
@@ -17,6 +17,8 @@ export type GitHubUpdateRow = {
|
|
|
17
17
|
githubapp_token: (string | null);
|
|
18
18
|
ssh_publickey: (string | null);
|
|
19
19
|
ssh_privatekey: (string | null);
|
|
20
|
+
name: string;
|
|
21
|
+
description: (string | null);
|
|
20
22
|
git_hub_category: (EntityCategoryInputRow | null)[];
|
|
21
23
|
git_hub_field: (EntityFieldInputRow | null)[];
|
|
22
24
|
git_hub_tag: (EntityTagInputRow | null)[];
|
|
@@ -15,6 +15,8 @@ export type GitLabCreateRow = {
|
|
|
15
15
|
oauth_access_token: (string | null);
|
|
16
16
|
ssh_publickey: (string | null);
|
|
17
17
|
ssh_privatekey: (string | null);
|
|
18
|
+
name: string;
|
|
19
|
+
description: (string | null);
|
|
18
20
|
git_lab_category: (EntityCategoryInputRow | null)[];
|
|
19
21
|
git_lab_field: (EntityFieldInputRow | null)[];
|
|
20
22
|
git_lab_tag: (EntityTagInputRow | null)[];
|
package/dist/row/GitLabRow.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CredentialEntityType } from "../enum/CredentialEntityType";
|
|
2
|
+
import { CredentialGroupType } from "../enum/CredentialGroupType";
|
|
1
3
|
import { GitLabType } from "../enum/GitLabType";
|
|
2
4
|
export type GitLabRow = {
|
|
3
5
|
id: string;
|
|
@@ -18,4 +20,10 @@ export type GitLabRow = {
|
|
|
18
20
|
ssh_privatekey_secret_id: (string | null);
|
|
19
21
|
created_at: Date;
|
|
20
22
|
updated_at: Date;
|
|
23
|
+
entity_id: string;
|
|
24
|
+
group_id: string;
|
|
25
|
+
group_type: CredentialGroupType;
|
|
26
|
+
entity_type: CredentialEntityType;
|
|
27
|
+
name: string;
|
|
28
|
+
description: (string | null);
|
|
21
29
|
};
|
|
@@ -13,6 +13,8 @@ export type GitLabUpdateRow = {
|
|
|
13
13
|
oauth_access_token: (string | null);
|
|
14
14
|
ssh_publickey: (string | null);
|
|
15
15
|
ssh_privatekey: (string | null);
|
|
16
|
+
name: string;
|
|
17
|
+
description: (string | null);
|
|
16
18
|
git_lab_category: (EntityCategoryInputRow | null)[];
|
|
17
19
|
git_lab_field: (EntityFieldInputRow | null)[];
|
|
18
20
|
git_lab_tag: (EntityTagInputRow | null)[];
|
|
@@ -6,6 +6,8 @@ export type HostBasicAuthCreateRow = {
|
|
|
6
6
|
host: string;
|
|
7
7
|
username: string;
|
|
8
8
|
password: string;
|
|
9
|
+
name: string;
|
|
10
|
+
description: (string | null);
|
|
9
11
|
host_basic_auth_category: (EntityCategoryInputRow | null)[];
|
|
10
12
|
host_basic_auth_field: (EntityFieldInputRow | null)[];
|
|
11
13
|
host_basic_auth_tag: (EntityTagInputRow | null)[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CredentialEntityType } from "../enum/CredentialEntityType";
|
|
2
|
+
import { CredentialGroupType } from "../enum/CredentialGroupType";
|
|
1
3
|
export type HostBasicAuthRow = {
|
|
2
4
|
id: string;
|
|
3
5
|
credential_id: string;
|
|
@@ -9,4 +11,10 @@ export type HostBasicAuthRow = {
|
|
|
9
11
|
password_secret_id: string;
|
|
10
12
|
created_at: Date;
|
|
11
13
|
updated_at: Date;
|
|
14
|
+
entity_id: string;
|
|
15
|
+
group_id: string;
|
|
16
|
+
group_type: CredentialGroupType;
|
|
17
|
+
entity_type: CredentialEntityType;
|
|
18
|
+
name: string;
|
|
19
|
+
description: (string | null);
|
|
12
20
|
};
|
|
@@ -6,6 +6,8 @@ export type HostBasicAuthUpdateRow = {
|
|
|
6
6
|
host: string;
|
|
7
7
|
username: (string | null);
|
|
8
8
|
password: (string | null);
|
|
9
|
+
name: string;
|
|
10
|
+
description: (string | null);
|
|
9
11
|
host_basic_auth_category: (EntityCategoryInputRow | null)[];
|
|
10
12
|
host_basic_auth_field: (EntityFieldInputRow | null)[];
|
|
11
13
|
host_basic_auth_tag: (EntityTagInputRow | null)[];
|
|
@@ -5,6 +5,8 @@ export type HostTokenAuthCreateRow = {
|
|
|
5
5
|
workspace_id: (string | null);
|
|
6
6
|
host: string;
|
|
7
7
|
token: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: (string | null);
|
|
8
10
|
host_token_auth_category: (EntityCategoryInputRow | null)[];
|
|
9
11
|
host_token_auth_field: (EntityFieldInputRow | null)[];
|
|
10
12
|
host_token_auth_tag: (EntityTagInputRow | null)[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CredentialEntityType } from "../enum/CredentialEntityType";
|
|
2
|
+
import { CredentialGroupType } from "../enum/CredentialGroupType";
|
|
1
3
|
export type HostTokenAuthRow = {
|
|
2
4
|
id: string;
|
|
3
5
|
credential_id: string;
|
|
@@ -8,4 +10,10 @@ export type HostTokenAuthRow = {
|
|
|
8
10
|
token_secret_id: string;
|
|
9
11
|
created_at: Date;
|
|
10
12
|
updated_at: Date;
|
|
13
|
+
entity_id: string;
|
|
14
|
+
group_id: string;
|
|
15
|
+
group_type: CredentialGroupType;
|
|
16
|
+
entity_type: CredentialEntityType;
|
|
17
|
+
name: string;
|
|
18
|
+
description: (string | null);
|
|
11
19
|
};
|
|
@@ -5,6 +5,8 @@ export type HostTokenAuthUpdateRow = {
|
|
|
5
5
|
workspace_id: (string | null);
|
|
6
6
|
host: string;
|
|
7
7
|
token: (string | null);
|
|
8
|
+
name: string;
|
|
9
|
+
description: (string | null);
|
|
8
10
|
host_token_auth_category: (EntityCategoryInputRow | null)[];
|
|
9
11
|
host_token_auth_field: (EntityFieldInputRow | null)[];
|
|
10
12
|
host_token_auth_tag: (EntityTagInputRow | null)[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CredentialEntityType } from "../enum/CredentialEntityType";
|
|
2
|
+
import { CredentialGroupType } from "../enum/CredentialGroupType";
|
|
1
3
|
export type ProtocolRow = {
|
|
2
4
|
id: string;
|
|
3
5
|
credential_id: string;
|
|
@@ -6,4 +8,9 @@ export type ProtocolRow = {
|
|
|
6
8
|
workspace_id: string;
|
|
7
9
|
created_at: Date;
|
|
8
10
|
updated_at: Date;
|
|
11
|
+
group_id: string;
|
|
12
|
+
group_type: CredentialGroupType;
|
|
13
|
+
entity_type: CredentialEntityType;
|
|
14
|
+
name: string;
|
|
15
|
+
description: (string | null);
|
|
9
16
|
};
|
|
@@ -12,6 +12,8 @@ export type SSHCreateRow = {
|
|
|
12
12
|
private_key: (string | null);
|
|
13
13
|
private_key_passphrase: (string | null);
|
|
14
14
|
fingerprint: (string | null);
|
|
15
|
+
name: string;
|
|
16
|
+
description: (string | null);
|
|
15
17
|
ssh_category: (EntityCategoryInputRow | null)[];
|
|
16
18
|
ssh_field: (EntityFieldInputRow | null)[];
|
|
17
19
|
ssh_tag: (EntityTagInputRow | null)[];
|
|
@@ -10,6 +10,8 @@ export type SSHUpdateRow = {
|
|
|
10
10
|
private_key: (string | null);
|
|
11
11
|
private_key_passphrase: (string | null);
|
|
12
12
|
fingerprint: (string | null);
|
|
13
|
+
name: string;
|
|
14
|
+
description: (string | null);
|
|
13
15
|
ssh_category: (EntityCategoryInputRow | null)[];
|
|
14
16
|
ssh_field: (EntityFieldInputRow | null)[];
|
|
15
17
|
ssh_tag: (EntityTagInputRow | null)[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CredentialEntityType } from "../enum/CredentialEntityType";
|
|
2
|
+
import { CredentialGroupType } from "../enum/CredentialGroupType";
|
|
1
3
|
export type SourceControlRow = {
|
|
2
4
|
id: string;
|
|
3
5
|
credential_id: string;
|
|
@@ -6,4 +8,9 @@ export type SourceControlRow = {
|
|
|
6
8
|
workspace_id: string;
|
|
7
9
|
created_at: Date;
|
|
8
10
|
updated_at: Date;
|
|
11
|
+
group_id: string;
|
|
12
|
+
group_type: CredentialGroupType;
|
|
13
|
+
entity_type: CredentialEntityType;
|
|
14
|
+
name: string;
|
|
15
|
+
description: (string | null);
|
|
9
16
|
};
|
package/dist/row/SshRow.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CredentialEntityType } from "../enum/CredentialEntityType";
|
|
2
|
+
import { CredentialGroupType } from "../enum/CredentialGroupType";
|
|
1
3
|
import { SshAuthType } from "../enum/SshAuthType";
|
|
2
4
|
export type SshRow = {
|
|
3
5
|
id: string;
|
|
@@ -15,4 +17,10 @@ export type SshRow = {
|
|
|
15
17
|
fingerprint_secret_id: (string | null);
|
|
16
18
|
created_at: Date;
|
|
17
19
|
updated_at: Date;
|
|
20
|
+
entity_id: string;
|
|
21
|
+
group_id: string;
|
|
22
|
+
group_type: CredentialGroupType;
|
|
23
|
+
entity_type: CredentialEntityType;
|
|
24
|
+
name: string;
|
|
25
|
+
description: (string | null);
|
|
18
26
|
};
|
|
@@ -4,6 +4,8 @@ import { EntityTagInputRow } from "./EntityTagInputRow";
|
|
|
4
4
|
export type TokenAuthCreateRow = {
|
|
5
5
|
workspace_id: (string | null);
|
|
6
6
|
token: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description: (string | null);
|
|
7
9
|
token_auth_category: (EntityCategoryInputRow | null)[];
|
|
8
10
|
token_auth_field: (EntityFieldInputRow | null)[];
|
|
9
11
|
token_auth_tag: (EntityTagInputRow | null)[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CredentialEntityType } from "../enum/CredentialEntityType";
|
|
2
|
+
import { CredentialGroupType } from "../enum/CredentialGroupType";
|
|
1
3
|
export type TokenAuthRow = {
|
|
2
4
|
id: string;
|
|
3
5
|
credential_id: string;
|
|
@@ -7,4 +9,10 @@ export type TokenAuthRow = {
|
|
|
7
9
|
token_secret_id: string;
|
|
8
10
|
created_at: Date;
|
|
9
11
|
updated_at: Date;
|
|
12
|
+
entity_id: string;
|
|
13
|
+
group_id: string;
|
|
14
|
+
group_type: CredentialGroupType;
|
|
15
|
+
entity_type: CredentialEntityType;
|
|
16
|
+
name: string;
|
|
17
|
+
description: (string | null);
|
|
10
18
|
};
|
|
@@ -4,6 +4,8 @@ import { EntityTagInputRow } from "./EntityTagInputRow";
|
|
|
4
4
|
export type TokenAuthUpdateRow = {
|
|
5
5
|
workspace_id: (string | null);
|
|
6
6
|
token: (string | null);
|
|
7
|
+
name: string;
|
|
8
|
+
description: (string | null);
|
|
7
9
|
token_auth_category: (EntityCategoryInputRow | null)[];
|
|
8
10
|
token_auth_field: (EntityFieldInputRow | null)[];
|
|
9
11
|
token_auth_tag: (EntityTagInputRow | null)[];
|
package/package.json
CHANGED
|
@@ -127,7 +127,7 @@ export class NamirasoftCredentialServer extends NSABaseServer
|
|
|
127
127
|
database: NamirasoftCredentialServerDatabase;
|
|
128
128
|
constructor(base_url: string, token_manager: TokenManager, onError: (error: Error) => void)
|
|
129
129
|
{
|
|
130
|
-
super(base_url, `1.5.
|
|
130
|
+
super(base_url, `1.5.3`, token_manager, onError);
|
|
131
131
|
this.health = new NamirasoftCredentialServerHealth(this);
|
|
132
132
|
this.metrics = new NamirasoftCredentialServerMetrics(this);
|
|
133
133
|
this.value = new NamirasoftCredentialServerValue(this);
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { AWSCreateRow } from "./row/AWSCreateRow";
|
|
22
|
-
import { AWSFullRow } from "./row/AWSFullRow";
|
|
23
22
|
import { AWSRow } from "./row/AWSRow";
|
|
24
23
|
import { AWSUpdateRow } from "./row/AWSUpdateRow";
|
|
25
24
|
import { BaseServerConfig } from "namirasoft-core";
|
|
@@ -40,12 +39,12 @@ export class NamirasoftCredentialServerAWS extends NamirasoftCredentialServerBas
|
|
|
40
39
|
this.Update = this.Update.bind(this);
|
|
41
40
|
this.Delete = this.Delete.bind(this);
|
|
42
41
|
}
|
|
43
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows:
|
|
42
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows: AWSRow[], count: number }>
|
|
44
43
|
{
|
|
45
44
|
let filters_string_value: string = FilterItem.stringify(filters);
|
|
46
45
|
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
47
46
|
let path = `/aws/list`;
|
|
48
|
-
let { data } = await this.server._get<{ rows:
|
|
47
|
+
let { data } = await this.server._get<{ rows: AWSRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value, all_workspaces }, config);
|
|
49
48
|
return data;
|
|
50
49
|
}
|
|
51
50
|
async _GetFor(user_id: string, id: string, config?: BaseServerConfig<any>): Promise<AWSRow>
|
|
@@ -54,10 +53,10 @@ export class NamirasoftCredentialServerAWS extends NamirasoftCredentialServerBas
|
|
|
54
53
|
let { data } = await this.server._get<AWSRow>(path, {}, config);
|
|
55
54
|
return data;
|
|
56
55
|
}
|
|
57
|
-
async Get(id: string, config?: BaseServerConfig<any>): Promise<
|
|
56
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<AWSRow>
|
|
58
57
|
{
|
|
59
58
|
let path = `/aws/${id}`;
|
|
60
|
-
let { data } = await this.server._get<
|
|
59
|
+
let { data } = await this.server._get<AWSRow>(path, {}, config);
|
|
61
60
|
return data;
|
|
62
61
|
}
|
|
63
62
|
async Create(body: AWSCreateRow, config?: BaseServerConfig<any>): Promise<AWSRow>
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { AzureCreateRow } from "./row/AzureCreateRow";
|
|
22
|
-
import { AzureFullRow } from "./row/AzureFullRow";
|
|
23
22
|
import { AzureRow } from "./row/AzureRow";
|
|
24
23
|
import { AzureUpdateRow } from "./row/AzureUpdateRow";
|
|
25
24
|
import { BaseServerConfig } from "namirasoft-core";
|
|
@@ -40,12 +39,12 @@ export class NamirasoftCredentialServerAzure extends NamirasoftCredentialServerB
|
|
|
40
39
|
this.Update = this.Update.bind(this);
|
|
41
40
|
this.Delete = this.Delete.bind(this);
|
|
42
41
|
}
|
|
43
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows:
|
|
42
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows: AzureRow[], count: number }>
|
|
44
43
|
{
|
|
45
44
|
let filters_string_value: string = FilterItem.stringify(filters);
|
|
46
45
|
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
47
46
|
let path = `/azure/list`;
|
|
48
|
-
let { data } = await this.server._get<{ rows:
|
|
47
|
+
let { data } = await this.server._get<{ rows: AzureRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value, all_workspaces }, config);
|
|
49
48
|
return data;
|
|
50
49
|
}
|
|
51
50
|
async _GetFor(user_id: string, id: string, config?: BaseServerConfig<any>): Promise<AzureRow>
|
|
@@ -54,10 +53,10 @@ export class NamirasoftCredentialServerAzure extends NamirasoftCredentialServerB
|
|
|
54
53
|
let { data } = await this.server._get<AzureRow>(path, {}, config);
|
|
55
54
|
return data;
|
|
56
55
|
}
|
|
57
|
-
async Get(id: string, config?: BaseServerConfig<any>): Promise<
|
|
56
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<AzureRow>
|
|
58
57
|
{
|
|
59
58
|
let path = `/azure/${id}`;
|
|
60
|
-
let { data } = await this.server._get<
|
|
59
|
+
let { data } = await this.server._get<AzureRow>(path, {}, config);
|
|
61
60
|
return data;
|
|
62
61
|
}
|
|
63
62
|
async Create(body: AzureCreateRow, config?: BaseServerConfig<any>): Promise<AzureRow>
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
import { BaseServerConfig } from "namirasoft-core";
|
|
22
22
|
import { BasicAuthCreateRow } from "./row/BasicAuthCreateRow";
|
|
23
|
-
import { BasicAuthFullRow } from "./row/BasicAuthFullRow";
|
|
24
23
|
import { BasicAuthRow } from "./row/BasicAuthRow";
|
|
25
24
|
import { BasicAuthUpdateRow } from "./row/BasicAuthUpdateRow";
|
|
26
25
|
import { FilterItem } from "namirasoft-core";
|
|
@@ -40,12 +39,12 @@ export class NamirasoftCredentialServerBasicAuth extends NamirasoftCredentialSer
|
|
|
40
39
|
this.Update = this.Update.bind(this);
|
|
41
40
|
this.Delete = this.Delete.bind(this);
|
|
42
41
|
}
|
|
43
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows:
|
|
42
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows: BasicAuthRow[], count: number }>
|
|
44
43
|
{
|
|
45
44
|
let filters_string_value: string = FilterItem.stringify(filters);
|
|
46
45
|
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
47
46
|
let path = `/basic/auth/list`;
|
|
48
|
-
let { data } = await this.server._get<{ rows:
|
|
47
|
+
let { data } = await this.server._get<{ rows: BasicAuthRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value, all_workspaces }, config);
|
|
49
48
|
return data;
|
|
50
49
|
}
|
|
51
50
|
async _GetFor(user_id: string, id: string, config?: BaseServerConfig<any>): Promise<BasicAuthRow>
|
|
@@ -54,10 +53,10 @@ export class NamirasoftCredentialServerBasicAuth extends NamirasoftCredentialSer
|
|
|
54
53
|
let { data } = await this.server._get<BasicAuthRow>(path, {}, config);
|
|
55
54
|
return data;
|
|
56
55
|
}
|
|
57
|
-
async Get(id: string, config?: BaseServerConfig<any>): Promise<
|
|
56
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<BasicAuthRow>
|
|
58
57
|
{
|
|
59
58
|
let path = `/basic/auth/${id}`;
|
|
60
|
-
let { data } = await this.server._get<
|
|
59
|
+
let { data } = await this.server._get<BasicAuthRow>(path, {}, config);
|
|
61
60
|
return data;
|
|
62
61
|
}
|
|
63
62
|
async Create(body: BasicAuthCreateRow, config?: BaseServerConfig<any>): Promise<BasicAuthRow>
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
-
import { CloudFullRow } from "./row/CloudFullRow";
|
|
23
22
|
import { CloudRow } from "./row/CloudRow";
|
|
24
23
|
import { FilterItem } from "namirasoft-core";
|
|
25
24
|
import { NamirasoftCredentialServer } from "./NamirasoftCredentialServer";
|
|
@@ -35,12 +34,12 @@ export class NamirasoftCredentialServerCloud extends NamirasoftCredentialServerB
|
|
|
35
34
|
this._GetFor = this._GetFor.bind(this);
|
|
36
35
|
this.Get = this.Get.bind(this);
|
|
37
36
|
}
|
|
38
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows:
|
|
37
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows: CloudRow[], count: number }>
|
|
39
38
|
{
|
|
40
39
|
let filters_string_value: string = FilterItem.stringify(filters);
|
|
41
40
|
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
42
41
|
let path = `/cloud/list`;
|
|
43
|
-
let { data } = await this.server._get<{ rows:
|
|
42
|
+
let { data } = await this.server._get<{ rows: CloudRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value, all_workspaces }, config);
|
|
44
43
|
return data;
|
|
45
44
|
}
|
|
46
45
|
async _GetFor(user_id: string, id: string, config?: BaseServerConfig<any>): Promise<CloudRow>
|
|
@@ -49,10 +48,10 @@ export class NamirasoftCredentialServerCloud extends NamirasoftCredentialServerB
|
|
|
49
48
|
let { data } = await this.server._get<CloudRow>(path, {}, config);
|
|
50
49
|
return data;
|
|
51
50
|
}
|
|
52
|
-
async Get(id: string, config?: BaseServerConfig<any>): Promise<
|
|
51
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<CloudRow>
|
|
53
52
|
{
|
|
54
53
|
let path = `/cloud/${id}`;
|
|
55
|
-
let { data } = await this.server._get<
|
|
54
|
+
let { data } = await this.server._get<CloudRow>(path, {}, config);
|
|
56
55
|
return data;
|
|
57
56
|
}
|
|
58
57
|
};
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
-
import { CredentialFullRow } from "./row/CredentialFullRow";
|
|
23
22
|
import { CredentialRow } from "./row/CredentialRow";
|
|
24
23
|
import { FilterItem } from "namirasoft-core";
|
|
25
24
|
import { NamirasoftCredentialServer } from "./NamirasoftCredentialServer";
|
|
@@ -35,12 +34,12 @@ export class NamirasoftCredentialServerCredential extends NamirasoftCredentialSe
|
|
|
35
34
|
this._GetFor = this._GetFor.bind(this);
|
|
36
35
|
this.Get = this.Get.bind(this);
|
|
37
36
|
}
|
|
38
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows:
|
|
37
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows: CredentialRow[], count: number }>
|
|
39
38
|
{
|
|
40
39
|
let filters_string_value: string = FilterItem.stringify(filters);
|
|
41
40
|
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
42
41
|
let path = `/credential/list`;
|
|
43
|
-
let { data } = await this.server._get<{ rows:
|
|
42
|
+
let { data } = await this.server._get<{ rows: CredentialRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value, all_workspaces }, config);
|
|
44
43
|
return data;
|
|
45
44
|
}
|
|
46
45
|
async _GetFor(user_id: string, id: string, config?: BaseServerConfig<any>): Promise<CredentialRow>
|
|
@@ -49,10 +48,10 @@ export class NamirasoftCredentialServerCredential extends NamirasoftCredentialSe
|
|
|
49
48
|
let { data } = await this.server._get<CredentialRow>(path, {}, config);
|
|
50
49
|
return data;
|
|
51
50
|
}
|
|
52
|
-
async Get(id: string, config?: BaseServerConfig<any>): Promise<
|
|
51
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<CredentialRow>
|
|
53
52
|
{
|
|
54
53
|
let path = `/credential/${id}`;
|
|
55
|
-
let { data } = await this.server._get<
|
|
54
|
+
let { data } = await this.server._get<CredentialRow>(path, {}, config);
|
|
56
55
|
return data;
|
|
57
56
|
}
|
|
58
57
|
};
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
import { BaseServerConfig } from "namirasoft-core";
|
|
22
22
|
import { DatabaseCreateRow } from "./row/DatabaseCreateRow";
|
|
23
|
-
import { DatabaseFullRow } from "./row/DatabaseFullRow";
|
|
24
23
|
import { DatabaseRow } from "./row/DatabaseRow";
|
|
25
24
|
import { DatabaseUpdateRow } from "./row/DatabaseUpdateRow";
|
|
26
25
|
import { FilterItem } from "namirasoft-core";
|
|
@@ -40,12 +39,12 @@ export class NamirasoftCredentialServerDatabase extends NamirasoftCredentialServ
|
|
|
40
39
|
this.Update = this.Update.bind(this);
|
|
41
40
|
this.Delete = this.Delete.bind(this);
|
|
42
41
|
}
|
|
43
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows:
|
|
42
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows: DatabaseRow[], count: number }>
|
|
44
43
|
{
|
|
45
44
|
let filters_string_value: string = FilterItem.stringify(filters);
|
|
46
45
|
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
47
46
|
let path = `/database/list`;
|
|
48
|
-
let { data } = await this.server._get<{ rows:
|
|
47
|
+
let { data } = await this.server._get<{ rows: DatabaseRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value, all_workspaces }, config);
|
|
49
48
|
return data;
|
|
50
49
|
}
|
|
51
50
|
async _GetFor(user_id: string, id: string, config?: BaseServerConfig<any>): Promise<DatabaseRow>
|
|
@@ -54,10 +53,10 @@ export class NamirasoftCredentialServerDatabase extends NamirasoftCredentialServ
|
|
|
54
53
|
let { data } = await this.server._get<DatabaseRow>(path, {}, config);
|
|
55
54
|
return data;
|
|
56
55
|
}
|
|
57
|
-
async Get(id: string, config?: BaseServerConfig<any>): Promise<
|
|
56
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<DatabaseRow>
|
|
58
57
|
{
|
|
59
58
|
let path = `/database/${id}`;
|
|
60
|
-
let { data } = await this.server._get<
|
|
59
|
+
let { data } = await this.server._get<DatabaseRow>(path, {}, config);
|
|
61
60
|
return data;
|
|
62
61
|
}
|
|
63
62
|
async Create(body: DatabaseCreateRow, config?: BaseServerConfig<any>): Promise<DatabaseRow>
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
import { BaseServerConfig } from "namirasoft-core";
|
|
22
22
|
import { FilterItem } from "namirasoft-core";
|
|
23
23
|
import { GCPCreateRow } from "./row/GCPCreateRow";
|
|
24
|
-
import { GCPFullRow } from "./row/GCPFullRow";
|
|
25
24
|
import { GCPRow } from "./row/GCPRow";
|
|
26
25
|
import { GCPUpdateRow } from "./row/GCPUpdateRow";
|
|
27
26
|
import { NamirasoftCredentialServer } from "./NamirasoftCredentialServer";
|
|
@@ -40,12 +39,12 @@ export class NamirasoftCredentialServerGCP extends NamirasoftCredentialServerBas
|
|
|
40
39
|
this.Update = this.Update.bind(this);
|
|
41
40
|
this.Delete = this.Delete.bind(this);
|
|
42
41
|
}
|
|
43
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows:
|
|
42
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{ rows: GCPRow[], count: number }>
|
|
44
43
|
{
|
|
45
44
|
let filters_string_value: string = FilterItem.stringify(filters);
|
|
46
45
|
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
47
46
|
let path = `/gcp/list`;
|
|
48
|
-
let { data } = await this.server._get<{ rows:
|
|
47
|
+
let { data } = await this.server._get<{ rows: GCPRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value, all_workspaces }, config);
|
|
49
48
|
return data;
|
|
50
49
|
}
|
|
51
50
|
async _GetFor(user_id: string, id: string, config?: BaseServerConfig<any>): Promise<GCPRow>
|
|
@@ -54,10 +53,10 @@ export class NamirasoftCredentialServerGCP extends NamirasoftCredentialServerBas
|
|
|
54
53
|
let { data } = await this.server._get<GCPRow>(path, {}, config);
|
|
55
54
|
return data;
|
|
56
55
|
}
|
|
57
|
-
async Get(id: string, config?: BaseServerConfig<any>): Promise<
|
|
56
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<GCPRow>
|
|
58
57
|
{
|
|
59
58
|
let path = `/gcp/${id}`;
|
|
60
|
-
let { data } = await this.server._get<
|
|
59
|
+
let { data } = await this.server._get<GCPRow>(path, {}, config);
|
|
61
60
|
return data;
|
|
62
61
|
}
|
|
63
62
|
async Create(body: GCPCreateRow, config?: BaseServerConfig<any>): Promise<GCPRow>
|