docs: add initial documentation to external assets

This commit is contained in:
Carlos Valente
2024-10-13 10:27:37 +02:00
committed by Carlos Valente
parent b577057768
commit 76e12af116
15 changed files with 137 additions and 54 deletions
@@ -11,14 +11,13 @@ import { sheets, sheets_v4 } from '@googleapis/sheets';
import { Credentials, OAuth2Client } from 'google-auth-library';
import got from 'got';
import { publicDir } from '../../setup/index.js';
import { ensureDirectory } from '../../utils/fileManagement.js';
import { cellRequestFromEvent, type ClientSecret, getA1Notation, validateClientSecret } from './sheetUtils.js';
import { parseExcel } from '../../utils/parser.js';
import { logger } from '../../classes/Logger.js';
import { parseRundown } from '../../utils/parserFunctions.js';
import { getRundown } from '../rundown-service/rundownUtils.js';
import { cellRequestFromEvent, type ClientSecret, getA1Notation, validateClientSecret } from './sheetUtils.js';
const sheetScope = 'https://www.googleapis.com/auth/spreadsheets';
const codesUrl = 'https://oauth2.googleapis.com/device/code';
const tokenUrl = 'https://oauth2.googleapis.com/token';
@@ -57,7 +56,6 @@ function reset() {
*/
export function init() {
reset();
ensureDirectory(publicDir.sheetsDir);
}
/**