codeapp-js 0.3.0 → 1.0.0
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/AI/codeapp.agent.md +105 -0
- package/AI/skills/connections/SKILL.md +47 -0
- package/AI/skills/dataverse/SKILL.md +99 -0
- package/AI/skills/environment-variables/SKILL.md +89 -0
- package/AI/skills/frontend-design/SKILL.md +34 -0
- package/AI/skills/jira/SKILL.md +81 -0
- package/AI/skills/office365-groups/SKILL.md +61 -0
- package/AI/skills/office365-outlook/SKILL.md +52 -0
- package/AI/skills/office365-users/SKILL.md +78 -0
- package/AI/skills/sharepoint/SKILL.md +77 -0
- package/AI/skills/sql/SKILL.md +85 -0
- package/AI/skills/start/SKILL.md +46 -0
- package/AI/skills/teams/SKILL.md +55 -0
- package/{examples/combined demo/.power/schemas/office365groups/office365groups.Schema.json → codeApp/.power/schemas/office365groups/office365groups.Schema.json} +2203 -2203
- package/codeApp/dist/codeapp.js +95 -1792
- package/codeApp/dist/connectors/azureKeyvault.js +459 -0
- package/codeApp/dist/connectors/jira.js +1247 -0
- package/codeApp/dist/connectors/office365groups.js +642 -0
- package/codeApp/dist/connectors/office365users.js +513 -0
- package/codeApp/dist/connectors/outlook.js +1393 -0
- package/{dev files/sharepoint.js → codeApp/dist/connectors/sharepoint.js} +239 -112
- package/codeApp/dist/connectors/sql.js +149 -0
- package/codeApp/dist/connectors/teams.js +280 -0
- package/codeApp/dist/power-apps-data.js +16 -2
- package/examples/{kanban → apps/kanban}/dist/dataverse.js +94 -94
- package/examples/{kanban → apps/kanban}/dist/environmentVar.js +55 -55
- package/examples/{kanban → apps/kanban}/dist/index.css +605 -605
- package/examples/{kanban → apps/kanban}/dist/index.html +21 -21
- package/examples/{kanban → apps/kanban}/dist/index.js +860 -860
- package/examples/{kanban → apps/kanban}/dist/office365groups.js +97 -97
- package/examples/apps/kanban/dist/office365users.js +451 -0
- package/examples/{kanban → apps/kanban}/dist/outlook.js +162 -162
- package/examples/{planning Poker/dist/power-apps-data.js → apps/kanban/dist/power-apps-data.js} +2953 -2953
- package/examples/{kanban → apps/kanban}/dist/sharepoint.js +435 -339
- package/examples/{kanban → apps/kanban}/power.config.json +35 -35
- package/examples/{planning Poker → apps/planning Poker}/additional files/customizations (tables).xml +6428 -6428
- package/examples/{planning Poker → apps/planning Poker}/additional files/dataverse-tables.json +165 -165
- package/examples/{planning Poker → apps/planning Poker}/additional files/readme.md +122 -122
- package/examples/{planning Poker → apps/planning Poker}/dist/dataverse.js +78 -78
- package/examples/{planning Poker → apps/planning Poker}/dist/index.html +198 -198
- package/examples/{planning Poker → apps/planning Poker}/dist/index.js +954 -954
- package/examples/{todo/dist/power-apps-data.js → apps/planning Poker/dist/power-apps-data.js } +2953 -2953
- package/examples/{planning Poker → apps/planning Poker}/dist/styles.css +815 -815
- package/examples/{planning Poker → apps/planning Poker}/power.config.json +50 -50
- package/examples/{outlook Demo2 → apps/solution explorer}/dist/codeapp.js +9 -245
- package/examples/apps/solution explorer/dist/index.html +80 -0
- package/examples/apps/solution explorer/dist/index.js +735 -0
- package/examples/apps/solution explorer/dist/styles.css +571 -0
- package/examples/apps/solution explorer/power.config.json +151 -0
- package/examples/{todo → apps/todo}/dist/dataverse.js +64 -64
- package/examples/{todo → apps/todo}/dist/index.html +75 -75
- package/examples/{todo → apps/todo}/dist/index.js +8 -8
- package/examples/{kanban → apps/todo}/dist/power-apps-data.js +2953 -2953
- package/examples/{todo → apps/todo}/dist/renderer.js +375 -375
- package/examples/{todo → apps/todo}/dist/styles.css +691 -691
- package/examples/{todo → apps/todo}/power.config.json +34 -34
- package/examples/combined demo/.power/schemas/appschemas/dataSourcesInfo.ts +6275 -7830
- package/examples/combined demo/.power/schemas/jira/jira.Schema.json +6903 -0
- package/examples/combined demo/.power/schemas/keyvault/keyvault.Schema.json +1600 -0
- package/examples/combined demo/.power/schemas/teams/teams.Schema.json +11112 -0
- package/examples/combined demo/dist/codeapp.js +394 -1098
- package/examples/{outlook Demo2/OutlookDemo_1_0_0_1.zip → combined demo/dist/icon-512.png} +0 -0
- package/examples/combined demo/dist/index.html +29 -511
- package/examples/combined demo/dist/index.js +490 -470
- package/examples/combined demo/dist/office365users.js +513 -0
- package/examples/combined demo/dist/outlook.js +1393 -0
- package/examples/combined demo/dist/power-apps-data.js +3079 -3006
- package/examples/combined demo/dist/styles.css +483 -0
- package/examples/combined demo/power.config.json +33 -42
- package/examples/combined demo/src/generated/index.ts +12 -14
- package/examples/combined demo/src/generated/models/AzureKeyVaultModel.ts +107 -0
- package/examples/combined demo/src/generated/models/JiraModel.ts +501 -0
- package/examples/combined demo/src/generated/services/AzureKeyVaultService.ts +257 -0
- package/examples/combined demo/src/generated/services/JiraService.ts +1124 -0
- package/examples/dataverse Demo/dist/codeapp.js +394 -1085
- package/examples/dataverse Demo/dist/icon-512.png +0 -0
- package/examples/dataverse Demo/dist/index.html +146 -54
- package/examples/dataverse Demo/dist/index.js +693 -83
- package/examples/dataverse Demo/dist/power-apps-data.js +3079 -2911
- package/examples/dataverse Demo/dist/styles.css +528 -0
- package/examples/dataverse Demo/power.config.json +41 -35
- package/examples/dataverse Demo/readme.md +79 -79
- package/examples/groups Demo/dist/codeapp.js +394 -1085
- package/examples/groups Demo/dist/icon-512.png +0 -0
- package/examples/groups Demo/dist/index.html +21 -25
- package/examples/groups Demo/dist/index.js +304 -113
- package/examples/groups Demo/dist/office365groups.js +642 -0
- package/examples/groups Demo/dist/power-apps-data.js +3079 -2911
- package/examples/groups Demo/dist/styles.css +509 -0
- package/examples/groups Demo/power.config.json +25 -25
- package/examples/myProfile/dist/codeapp.js +398 -0
- package/examples/myProfile/dist/index.html +21 -184
- package/examples/myProfile/dist/index.js +324 -141
- package/examples/myProfile/dist/office365users.js +517 -169
- package/examples/myProfile/dist/power-apps-data.js +3080 -2953
- package/examples/myProfile/dist/styles.css +458 -0
- package/examples/myProfile/power.config.json +24 -23
- package/examples/outlook Demo/dist/codeapp.js +394 -1085
- package/examples/outlook Demo/dist/index.html +150 -35
- package/examples/outlook Demo/dist/index.js +516 -170
- package/examples/outlook Demo/dist/outlook.js +1393 -121
- package/examples/outlook Demo/dist/power-apps-data.js +3079 -2911
- package/examples/outlook Demo/dist/styles.css +408 -84
- package/examples/outlook Demo/power.config.json +24 -23
- package/examples/outlook Demo/readme.md +92 -82
- package/examples/sharePoint Demo/dist/codeapp.js +394 -1085
- package/examples/sharePoint Demo/dist/icon-512.png +0 -0
- package/examples/sharePoint Demo/dist/index.html +22 -255
- package/examples/sharePoint Demo/dist/index.js +899 -262
- package/examples/sharePoint Demo/dist/power-apps-data.js +3079 -2911
- package/examples/sharePoint Demo/dist/sharepoint.js +466 -0
- package/examples/sharePoint Demo/dist/styles.css +587 -0
- package/examples/sharePoint Demo/power.config.json +23 -22
- package/package.json +1 -1
- package/readme.md +465 -76
- package/.vscode/settings.json +0 -6
- package/dev files/customConnector.js +0 -98
- package/dev files/dataverse.js +0 -120
- package/dev files/environmentVar.js +0 -55
- package/dev files/office365groups.js +0 -65
- package/dev files/office365users.js +0 -169
- package/dev files/outlook.js +0 -330
- package/dev files/power-apps-data.js +0 -2952
- package/examples/combined demo/.power/schemas/office365/office365.Schema.json +0 -21098
- package/examples/combined demo/.power/schemas/office365users/office365users.Schema.json +0 -2094
- package/examples/kanban/agent/decision-log.md +0 -9
- package/examples/kanban/agent/mockup-01-editorial-glass.html +0 -159
- package/examples/kanban/agent/mockup-02-dark-rail.html +0 -147
- package/examples/kanban/agent/mockup-03-paper-grid.html +0 -114
- package/examples/kanban/agent/mockup-04-neon-minimal.html +0 -141
- package/examples/kanban/agent/mockup-05-mono-architect.html +0 -119
- package/examples/kanban/dist/office365users.js +0 -169
- package/examples/kanban/src/generated/index.ts +0 -14
- package/examples/kanban/src/generated/models/Office365GroupsModel.ts +0 -363
- package/examples/kanban/src/generated/models/Office365OutlookModel.ts +0 -2046
- package/examples/kanban/src/generated/models/Office365UsersModel.ts +0 -254
- package/examples/kanban/src/generated/services/Office365GroupsService.ts +0 -326
- package/examples/kanban/src/generated/services/Office365OutlookService.ts +0 -2476
- package/examples/kanban/src/generated/services/Office365UsersService.ts +0 -358
- package/examples/outlook Demo2/agent/decision-log.md +0 -7
- package/examples/outlook Demo2/dist/index.html +0 -98
- package/examples/outlook Demo2/dist/index.js +0 -272
- package/examples/outlook Demo2/dist/styles.css +0 -639
- package/examples/outlook Demo2/power.config.json +0 -23
- package/examples/planning Poker/.vscode/settings.json +0 -5
- package/examples/sharePoint Demo/agent/decision-log.md +0 -17
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/index.ts +0 -0
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365GroupsModel.ts +0 -0
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365OutlookModel.ts +0 -0
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365UsersModel.ts +0 -0
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365GroupsService.ts +0 -0
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365OutlookService.ts +0 -0
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365UsersService.ts +0 -0
- /package/examples/{planning Poker → apps/planning Poker}/additional files/AgilePoker_1_0_0_1.zip +0 -0
- /package/examples/{planning Poker → apps/planning Poker}/additional files/PokerTables_1_0_0_1.zip +0 -0
- /package/examples/{outlook Demo2 → apps/solution explorer}/dist/icon-512.png +0 -0
- /package/examples/{outlook Demo2 → apps/solution explorer}/dist/power-apps-data.js +0 -0
- /package/examples/{todo → apps/todo}/dist/icon192.png +0 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* This file is autogenerated. Do not edit this file directly.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { IOperationResult } from '@microsoft/power-apps/data';
|
|
7
|
+
import type { KeyDecryptInput } from '../models/AzureKeyVaultModel';
|
|
8
|
+
import type { KeyDecryptOutput } from '../models/AzureKeyVaultModel';
|
|
9
|
+
import type { KeyEncryptInput } from '../models/AzureKeyVaultModel';
|
|
10
|
+
import type { KeyEncryptOutput } from '../models/AzureKeyVaultModel';
|
|
11
|
+
import type { KeyMetadata } from '../models/AzureKeyVaultModel';
|
|
12
|
+
import type { KeyMetadataCollection } from '../models/AzureKeyVaultModel';
|
|
13
|
+
import type { Secret } from '../models/AzureKeyVaultModel';
|
|
14
|
+
import type { SecretMetadata } from '../models/AzureKeyVaultModel';
|
|
15
|
+
import type { SecretMetadataCollection } from '../models/AzureKeyVaultModel';
|
|
16
|
+
import { dataSourcesInfo } from '../../../.power/schemas/appschemas/dataSourcesInfo';
|
|
17
|
+
import { getClient } from '@microsoft/power-apps/data';
|
|
18
|
+
|
|
19
|
+
export class AzureKeyVaultService {
|
|
20
|
+
private static readonly dataSourceName = 'keyvault';
|
|
21
|
+
|
|
22
|
+
private static readonly client = getClient(dataSourcesInfo);
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* List keys
|
|
26
|
+
* List keys.
|
|
27
|
+
*/
|
|
28
|
+
public static async ListKeys(): Promise<IOperationResult<KeyMetadataCollection>> {
|
|
29
|
+
const result = await AzureKeyVaultService.client.executeAsync<void, KeyMetadataCollection>(
|
|
30
|
+
{
|
|
31
|
+
connectorOperation: {
|
|
32
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
33
|
+
operationName: 'ListKeys',
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
return result;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* List key versions
|
|
41
|
+
* List versions of a key.
|
|
42
|
+
*/
|
|
43
|
+
public static async ListKeyVersions(keyName: string): Promise<IOperationResult<KeyMetadataCollection>> {
|
|
44
|
+
const params: { keyName: string } = { keyName };
|
|
45
|
+
const result = await AzureKeyVaultService.client.executeAsync<{ keyName: string }, KeyMetadataCollection>(
|
|
46
|
+
{
|
|
47
|
+
connectorOperation: {
|
|
48
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
49
|
+
operationName: 'ListKeyVersions',
|
|
50
|
+
parameters: params
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
return result;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Get key metadata
|
|
58
|
+
* Gets metadata of a key.
|
|
59
|
+
*/
|
|
60
|
+
public static async GetKeyMetadata(keyName: string): Promise<IOperationResult<KeyMetadata>> {
|
|
61
|
+
const params: { keyName: string } = { keyName };
|
|
62
|
+
const result = await AzureKeyVaultService.client.executeAsync<{ keyName: string }, KeyMetadata>(
|
|
63
|
+
{
|
|
64
|
+
connectorOperation: {
|
|
65
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
66
|
+
operationName: 'GetKeyMetadata',
|
|
67
|
+
parameters: params
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
return result;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Get key version metadata
|
|
75
|
+
* Gets metadata of a version of a key.
|
|
76
|
+
*/
|
|
77
|
+
public static async GetKeyVersionMetadata(keyName: string, keyVersion: string): Promise<IOperationResult<KeyMetadata>> {
|
|
78
|
+
const params: { keyName: string, keyVersion: string } = { keyName, keyVersion };
|
|
79
|
+
const result = await AzureKeyVaultService.client.executeAsync<{ keyName: string, keyVersion: string }, KeyMetadata>(
|
|
80
|
+
{
|
|
81
|
+
connectorOperation: {
|
|
82
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
83
|
+
operationName: 'GetKeyVersionMetadata',
|
|
84
|
+
parameters: params
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
return result;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Encrypt data with key
|
|
92
|
+
* Encrypt data using the latest version of a key.
|
|
93
|
+
*/
|
|
94
|
+
public static async EncryptData(keyName: string, operationInput: KeyEncryptInput): Promise<IOperationResult<KeyEncryptOutput>> {
|
|
95
|
+
const params: { keyName: string, operationInput: KeyEncryptInput } = { keyName, operationInput };
|
|
96
|
+
const result = await AzureKeyVaultService.client.executeAsync<{ keyName: string, operationInput: KeyEncryptInput }, KeyEncryptOutput>(
|
|
97
|
+
{
|
|
98
|
+
connectorOperation: {
|
|
99
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
100
|
+
operationName: 'EncryptData',
|
|
101
|
+
parameters: params
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
return result;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Encrypt data with key version
|
|
109
|
+
* Encrypt data using a specific version of a key.
|
|
110
|
+
*/
|
|
111
|
+
public static async EncryptDataWithVersion(keyName: string, keyVersion: string, operationInput: KeyEncryptInput): Promise<IOperationResult<KeyEncryptOutput>> {
|
|
112
|
+
const params: { keyName: string, keyVersion: string, operationInput: KeyEncryptInput } = { keyName, keyVersion, operationInput };
|
|
113
|
+
const result = await AzureKeyVaultService.client.executeAsync<{ keyName: string, keyVersion: string, operationInput: KeyEncryptInput }, KeyEncryptOutput>(
|
|
114
|
+
{
|
|
115
|
+
connectorOperation: {
|
|
116
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
117
|
+
operationName: 'EncryptDataWithVersion',
|
|
118
|
+
parameters: params
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
return result;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Decrypt data with key
|
|
126
|
+
* Decrypt data using the latest version of a key. Output of this operation is typically classified as secret and can be visible in the run history.
|
|
127
|
+
*/
|
|
128
|
+
public static async DecryptData(keyName: string, operationInput: KeyDecryptInput): Promise<IOperationResult<KeyDecryptOutput>> {
|
|
129
|
+
const params: { keyName: string, operationInput: KeyDecryptInput } = { keyName, operationInput };
|
|
130
|
+
const result = await AzureKeyVaultService.client.executeAsync<{ keyName: string, operationInput: KeyDecryptInput }, KeyDecryptOutput>(
|
|
131
|
+
{
|
|
132
|
+
connectorOperation: {
|
|
133
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
134
|
+
operationName: 'DecryptData',
|
|
135
|
+
parameters: params
|
|
136
|
+
},
|
|
137
|
+
});
|
|
138
|
+
return result;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Decrypt data with key version
|
|
143
|
+
* Decrypt data using a specific version of a key. Output of this operation is typically classified as secret and can be visible in the run history.
|
|
144
|
+
*/
|
|
145
|
+
public static async DecryptDataWithVersion(keyName: string, keyVersion: string, operationInput: KeyDecryptInput): Promise<IOperationResult<KeyDecryptOutput>> {
|
|
146
|
+
const params: { keyName: string, keyVersion: string, operationInput: KeyDecryptInput } = { keyName, keyVersion, operationInput };
|
|
147
|
+
const result = await AzureKeyVaultService.client.executeAsync<{ keyName: string, keyVersion: string, operationInput: KeyDecryptInput }, KeyDecryptOutput>(
|
|
148
|
+
{
|
|
149
|
+
connectorOperation: {
|
|
150
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
151
|
+
operationName: 'DecryptDataWithVersion',
|
|
152
|
+
parameters: params
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
return result;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* List secrets
|
|
160
|
+
* List secrets.
|
|
161
|
+
*/
|
|
162
|
+
public static async ListSecrets(): Promise<IOperationResult<SecretMetadataCollection>> {
|
|
163
|
+
const result = await AzureKeyVaultService.client.executeAsync<void, SecretMetadataCollection>(
|
|
164
|
+
{
|
|
165
|
+
connectorOperation: {
|
|
166
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
167
|
+
operationName: 'ListSecrets',
|
|
168
|
+
},
|
|
169
|
+
});
|
|
170
|
+
return result;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* List secret versions
|
|
175
|
+
* List versions of a secret.
|
|
176
|
+
*/
|
|
177
|
+
public static async ListSecretVersions(secretName: string): Promise<IOperationResult<SecretMetadataCollection>> {
|
|
178
|
+
const params: { secretName: string } = { secretName };
|
|
179
|
+
const result = await AzureKeyVaultService.client.executeAsync<{ secretName: string }, SecretMetadataCollection>(
|
|
180
|
+
{
|
|
181
|
+
connectorOperation: {
|
|
182
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
183
|
+
operationName: 'ListSecretVersions',
|
|
184
|
+
parameters: params
|
|
185
|
+
},
|
|
186
|
+
});
|
|
187
|
+
return result;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Get secret metadata
|
|
192
|
+
* Gets metadata of a secret.
|
|
193
|
+
*/
|
|
194
|
+
public static async GetSecretMetadata(secretName: string): Promise<IOperationResult<SecretMetadata>> {
|
|
195
|
+
const params: { secretName: string } = { secretName };
|
|
196
|
+
const result = await AzureKeyVaultService.client.executeAsync<{ secretName: string }, SecretMetadata>(
|
|
197
|
+
{
|
|
198
|
+
connectorOperation: {
|
|
199
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
200
|
+
operationName: 'GetSecretMetadata',
|
|
201
|
+
parameters: params
|
|
202
|
+
},
|
|
203
|
+
});
|
|
204
|
+
return result;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Get secret version metadata
|
|
209
|
+
* Gets metadata of a version of a secret.
|
|
210
|
+
*/
|
|
211
|
+
public static async GetSecretVersionMetadata(secretName: string, secretVersion: string): Promise<IOperationResult<SecretMetadata>> {
|
|
212
|
+
const params: { secretName: string, secretVersion: string } = { secretName, secretVersion };
|
|
213
|
+
const result = await AzureKeyVaultService.client.executeAsync<{ secretName: string, secretVersion: string }, SecretMetadata>(
|
|
214
|
+
{
|
|
215
|
+
connectorOperation: {
|
|
216
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
217
|
+
operationName: 'GetSecretVersionMetadata',
|
|
218
|
+
parameters: params
|
|
219
|
+
},
|
|
220
|
+
});
|
|
221
|
+
return result;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Get secret
|
|
226
|
+
* Gets a secret. Output of this operation is typically classified as secret and can be visible in the run history.
|
|
227
|
+
*/
|
|
228
|
+
public static async GetSecret(secretName: string): Promise<IOperationResult<Secret>> {
|
|
229
|
+
const params: { secretName: string } = { secretName };
|
|
230
|
+
const result = await AzureKeyVaultService.client.executeAsync<{ secretName: string }, Secret>(
|
|
231
|
+
{
|
|
232
|
+
connectorOperation: {
|
|
233
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
234
|
+
operationName: 'GetSecret',
|
|
235
|
+
parameters: params
|
|
236
|
+
},
|
|
237
|
+
});
|
|
238
|
+
return result;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Get secret version
|
|
243
|
+
* Gets a version of a secret. Output of this operation is typically classified as secret and can be visible in the run history.
|
|
244
|
+
*/
|
|
245
|
+
public static async GetSecretVersion(secretName: string, secretVersion: string): Promise<IOperationResult<Secret>> {
|
|
246
|
+
const params: { secretName: string, secretVersion: string } = { secretName, secretVersion };
|
|
247
|
+
const result = await AzureKeyVaultService.client.executeAsync<{ secretName: string, secretVersion: string }, Secret>(
|
|
248
|
+
{
|
|
249
|
+
connectorOperation: {
|
|
250
|
+
tableName: AzureKeyVaultService.dataSourceName,
|
|
251
|
+
operationName: 'GetSecretVersion',
|
|
252
|
+
parameters: params
|
|
253
|
+
},
|
|
254
|
+
});
|
|
255
|
+
return result;
|
|
256
|
+
}
|
|
257
|
+
}
|