Security fixes to lib files
This commit is contained in:
8
src/lib/google/client.ts
Normal file
8
src/lib/google/client.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Client-side Google API integration module
|
||||
*
|
||||
* This module provides utilities for interacting with Google APIs from the client-side.
|
||||
*/
|
||||
|
||||
// Re-export auth utilities
|
||||
export * from './auth/client.js';
|
||||
5
src/lib/google/client/index.ts
Normal file
5
src/lib/google/client/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// Re-export client-side auth utilities
|
||||
export * from '../auth/client.js';
|
||||
|
||||
// Re-export types
|
||||
export * from './types.js';
|
||||
14
src/lib/google/client/types.ts
Normal file
14
src/lib/google/client/types.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Client-side type definitions for Google API integration
|
||||
*/
|
||||
|
||||
export interface GoogleSheet {
|
||||
id: string;
|
||||
name: string;
|
||||
modifiedTime: string;
|
||||
webViewLink: string;
|
||||
}
|
||||
|
||||
export interface SheetData {
|
||||
values: string[][];
|
||||
}
|
||||
@@ -1,18 +1,9 @@
|
||||
/**
|
||||
* Google API integration module
|
||||
*
|
||||
* This module provides utilities for interacting with Google APIs:
|
||||
* - Authentication (server and client-side)
|
||||
* - Sheets API
|
||||
* - Gmail API
|
||||
* This module provides utilities for interacting with Google APIs.
|
||||
* NOTE: This is a client-side module. For server-side code, import from '$lib/google/server.js'
|
||||
*/
|
||||
|
||||
// Re-export auth utilities
|
||||
// Re-export client-side auth utilities
|
||||
export * from './auth/client.js';
|
||||
export * as authServer from './auth/server.js';
|
||||
|
||||
// Re-export sheets utilities
|
||||
export * as sheets from './sheets/index.js';
|
||||
|
||||
// Re-export Gmail utilities
|
||||
export * as gmail from './gmail/index.js';
|
||||
|
||||
14
src/lib/google/server.ts
Normal file
14
src/lib/google/server.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Server-side Google API integration module
|
||||
*
|
||||
* This module provides utilities for interacting with Google APIs from the server-side.
|
||||
*/
|
||||
|
||||
// Re-export server-side auth utilities
|
||||
export * from './auth/server.js';
|
||||
|
||||
// Re-export sheets utilities
|
||||
export * from './sheets/index.js';
|
||||
|
||||
// Re-export Gmail utilities
|
||||
export * from './gmail/index.js';
|
||||
Reference in New Issue
Block a user