Skip to content

Commit

Permalink
Merge pull request #155 from seamapi/allow-access-code-delete
Browse files Browse the repository at this point in the history
Allow access codes delete interaction
  • Loading branch information
kainpets authored May 15, 2024
2 parents 179ab88 + 3ab680a commit 618783b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/interact-for-access-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export const interactForAccessCode = async ({
type: "autocomplete",
message: "Select an access_code:",
choices: accessCodes.map((ac: any) => ({
title: ac.properties.name ?? "<No Name>",
value: ac.access_code_id,
description: `${ac.type} ${ac.access_code_id}`,
title: ac?.properties?.name ?? "<No Name>",
value: ac?.access_code_id,
description: `${ac?.type} ${ac?.access_code_id}`,
})),
})

Expand Down
7 changes: 6 additions & 1 deletion lib/interact-for-custom-metadata.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import prompts from "prompts"
import { getSeam } from "./get-seam"
import { CustomMetadata } from "@seamapi/types/connect"

type UpdatedCustomMetadata = {
[x: string]: string | boolean | null
}

export const interactForCustomMetadata = async (
custom_metadata: CustomMetadata
) => {
const seam = await getSeam()
const updated_custom_metadata = { ...custom_metadata }
const updated_custom_metadata: UpdatedCustomMetadata = { ...custom_metadata }

const displayCurrentCustomMetadata = () => {
console.log("custom_metadata:")
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 618783b

Please sign in to comment.