6});
7
8export async function setPageID(data: any) {
9 try {
10 const page = await notion.pages.update({
6});
7
8export async function setPageIcon(pageId: string, iconURL: string) {
9 try {
10 const page = await notion.pages.update({
6});
7
8export async function setDemoURL(pageId: string, url: string) {
9 try {
10 const page = await notion.pages.update({
6});
7
8export async function setCobrowse(pageId: string, cobrowse: boolean) {
9 try {
10 const page = await notion.pages.update({
6});
7
8export async function setAction(data: any) {
9 try {
10 const page = await notion.pages.create({
1
2export default async function(req) {
3 return new Response(`undefined`, {
4 headers: { 'Content-Type': 'text/html' }
7
8// generic controller for a Notion database page
9export async function getPage(pageId: string) {
10 try {
11 const page = await notion.pages.retrieve({
6});
7
8export async function getDatabase(databaseId: string) {
9 // get database
10 try {
6});
7
8export async function getDemoInteractions(pageId: string) {
9 const databaseId = Deno.env.get("GLANCE_INTERACTIONS_DB_ID");
10
39}
40
41export async function getAllInteractionsPages() {
42 const databaseId = Deno.env.get("GLANCE_INTERACTIONS_DB_ID");
43
69}
70
71export async function getAllInteractionsPagesWithPagination() {
72 const databaseId = Deno.env.get("GLANCE_INTERACTIONS_DB_ID");
73
6});
7
8export async function enrichAgent(pageId: string, data: any) {
9 // console.log(data);
10 const properties =
Simple functional CSS library for Val Town
A helper function to build a file's email
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
if (req.method === "OPTIONS") {
return new Response(null, {
headers: {
"Access-Control-Allow-Origin": "*",
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.