diff --git a/apps/google-docs/contentful-app-manifest.json b/apps/google-docs/contentful-app-manifest.json
index 4e73982e92..8594e43897 100644
--- a/apps/google-docs/contentful-app-manifest.json
+++ b/apps/google-docs/contentful-app-manifest.json
@@ -33,8 +33,8 @@
]
},
{
- "id": "initiateOauth",
- "name": "Initiate OAuth",
+ "id": "initiateGdocOauth",
+ "name": "Initiate Gdoc OAuth Flow",
"description": "Initiates the OAuth flow for Google Docs",
"path": "functions/initiateOauth.js",
"entryFile": "functions/initiateOauth.ts",
@@ -46,8 +46,8 @@
]
},
{
- "id": "completeOauth",
- "name": "Complete OAuth",
+ "id": "completeGdocOauth",
+ "name": "Complete Gdoc OAuth Flow",
"description": "Completes the OAuth flow for Google Docs",
"path": "functions/completeOauth.js",
"entryFile": "functions/completeOauth.ts",
@@ -59,9 +59,9 @@
]
},
{
- "id": "disconnect",
- "name": "Disconnect",
- "description": "Disconnects the Google Docs app",
+ "id": "revokeGdocOauthToken",
+ "name": "Revoke Gdoc OAuth Token",
+ "description": "Revoke token for the Google Docs app to disconnect from the app",
"path": "functions/disconnect.js",
"entryFile": "functions/disconnect.ts",
"allowNetworks": [
@@ -72,9 +72,9 @@
]
},
{
- "id": "checkStatus",
- "name": "Check Status",
- "description": "Checks the status of the Google Docs app",
+ "id": "checkGdocOauthTokenStatus",
+ "name": "Check Gdoc OAuth Token Status",
+ "description": "Checks the status of the Google Docs OAuth token to see if it is valid",
"path": "functions/checkStatus.js",
"entryFile": "functions/checkStatus.ts",
"allowNetworks": [
diff --git a/apps/google-docs/functions/createEntriesFromDocument.ts b/apps/google-docs/functions/createEntriesFromDocument.ts
index 35a5666042..a687ce4ea2 100644
--- a/apps/google-docs/functions/createEntriesFromDocument.ts
+++ b/apps/google-docs/functions/createEntriesFromDocument.ts
@@ -12,7 +12,7 @@ import { createDocument } from './agents/documentParser.agent';
// import { createEntries, createAssets } from './service/entryService';
export type AppActionParameters = {
- contentType: string;
+ contentTypeId: string;
prompt: string;
};
interface AppInstallationParameters {
@@ -30,7 +30,7 @@ export const handler: FunctionEventHandler<
event: AppActionRequest<'Custom', AppActionParameters>,
context: FunctionEventContext
) => {
- const { contentType, prompt } = event.body;
+ const { contentTypeId, prompt } = event.body;
const { openAiApiKey } = context.appInstallationParameters as AppInstallationParameters;
// INTEG-3262 and INTEG-3263: Take in Content Type, Prompt, and Upload File from user
diff --git a/apps/google-docs/package.json b/apps/google-docs/package.json
index fc25890911..26737c6624 100644
--- a/apps/google-docs/package.json
+++ b/apps/google-docs/package.json
@@ -28,7 +28,9 @@
"upload": "contentful-app-scripts upload --bundle-dir ./build",
"upload-ci": "contentful-app-scripts upload --ci --bundle-dir ./build --organization-id $CONTENTFUL_ORG_ID --definition-id $CONTENTFUL_APP_DEF_ID --token $CONTENTFUL_ACCESS_TOKEN",
"deploy": "contentful-app-scripts upload --ci --bundle-dir ./build --organization-id ${DEFINITIONS_ORG_ID} --definition-id 3EaGZUMKRKVZUyrcoNJ4o4 --token ${CONTENTFUL_CMA_TOKEN}",
- "deploy:dev": "npm run build && source .env && contentful-app-scripts upload --ci --bundle-dir ./build --organization-id \"$DEFINITIONS_ORG_ID\" --definition-id 653vTnuQw3j5onU1tUoH6t --token \"$CONTENTFUL_CMA_TOKEN\""
+ "deploy:dev": "npm run build && source .env && contentful-app-scripts upload --ci --bundle-dir ./build --organization-id $CONTENTFUL_ORG_ID --definition-id 653vTnuQw3j5onU1tUoH6t --token \"$CONTENTFUL_CMA_TOKEN\"",
+ "deploy:staging": "npm run build && source .env && contentful-app-scripts upload --ci --bundle-dir ./build --organization-id $CONTENTFUL_ORG_ID --definition-id 4i0mp5lQtgNsHYVrD5jIkj --token \"$CONTENTFUL_CMA_TOKEN\""
+
},
"eslintConfig": {
"extends": "react-app"
diff --git a/apps/google-docs/src/locations/ConfigScreen.tsx b/apps/google-docs/src/locations/ConfigScreen.tsx
index 355e94e617..88dcd5b51e 100644
--- a/apps/google-docs/src/locations/ConfigScreen.tsx
+++ b/apps/google-docs/src/locations/ConfigScreen.tsx
@@ -404,6 +404,29 @@ const ConfigScreen = () => {
style={{ flex: 1 }}
/>
+
Find your OpenAPI key{' '}