mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-09 22:25:33 -05:00
added an additional wandConfig for OnePassword & jira search issues
This commit is contained in:
@@ -74,6 +74,18 @@ export const OnePasswordBlock: BlockConfig = {
|
||||
placeholder: 'op://vault-name-or-id/item-name-or-id/field-name',
|
||||
required: { field: 'operation', value: 'resolve_secret' },
|
||||
condition: { field: 'operation', value: 'resolve_secret' },
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a 1Password secret reference URI based on the user's description.
|
||||
The format is: op://vault-name-or-id/item-name-or-id/field-name
|
||||
You can also use: op://vault/item/section/field for fields inside sections.
|
||||
Examples:
|
||||
- op://Development/AWS/access-key
|
||||
- op://Production/Database/password
|
||||
- op://MyVault/Stripe/API Keys/secret-key
|
||||
|
||||
Return ONLY the op:// URI - no explanations, no quotes, no markdown.`,
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'vaultId',
|
||||
|
||||
@@ -17,6 +17,7 @@ function transformSearchIssue(issue: any) {
|
||||
status: {
|
||||
id: fields.status?.id ?? '',
|
||||
name: fields.status?.name ?? '',
|
||||
description: fields.status?.description ?? null,
|
||||
statusCategory: fields.status?.statusCategory
|
||||
? {
|
||||
id: fields.status.statusCategory.id,
|
||||
@@ -29,15 +30,22 @@ function transformSearchIssue(issue: any) {
|
||||
issuetype: {
|
||||
id: fields.issuetype?.id ?? '',
|
||||
name: fields.issuetype?.name ?? '',
|
||||
description: fields.issuetype?.description ?? null,
|
||||
subtask: fields.issuetype?.subtask ?? false,
|
||||
iconUrl: fields.issuetype?.iconUrl ?? null,
|
||||
},
|
||||
project: {
|
||||
id: fields.project?.id ?? '',
|
||||
key: fields.project?.key ?? '',
|
||||
name: fields.project?.name ?? '',
|
||||
projectTypeKey: fields.project?.projectTypeKey ?? null,
|
||||
},
|
||||
priority: fields.priority
|
||||
? { id: fields.priority.id ?? '', name: fields.priority.name ?? '' }
|
||||
? {
|
||||
id: fields.priority.id ?? '',
|
||||
name: fields.priority.name ?? '',
|
||||
iconUrl: fields.priority.iconUrl ?? null,
|
||||
}
|
||||
: null,
|
||||
assignee: transformUser(fields.assignee),
|
||||
reporter: transformUser(fields.reporter),
|
||||
@@ -45,9 +53,14 @@ function transformSearchIssue(issue: any) {
|
||||
components: (fields.components ?? []).map((c: any) => ({
|
||||
id: c.id ?? '',
|
||||
name: c.name ?? '',
|
||||
description: c.description ?? null,
|
||||
})),
|
||||
resolution: fields.resolution
|
||||
? { id: fields.resolution.id ?? '', name: fields.resolution.name ?? '' }
|
||||
? {
|
||||
id: fields.resolution.id ?? '',
|
||||
name: fields.resolution.name ?? '',
|
||||
description: fields.resolution.description ?? null,
|
||||
}
|
||||
: null,
|
||||
duedate: fields.duedate ?? null,
|
||||
created: fields.created ?? '',
|
||||
|
||||
Reference in New Issue
Block a user