@chemistry/common-functions
v0.0.18
Published
Common Cloud Functions Code Across Project
Downloads
20
Maintainers
Readme
@chemistry/common-functions
Common Library part of crystallography-api project used to share common interfaces and code across Cloud Functions implementation across the project
Install
npm install @chemistry/common-functions
Interfaces use cases
import {
CodSyncScheduleInstanceStartPayload,
PubSubContext,
extractPayload
} from '@chemistry/common-functions';
/**
* Cloud Function that will start COD synronization Instances
*/
export function codSyncStartInstance(
data: CodSyncScheduleInstanceStartPayload,
context: PubSubContext
) {
const payload = extractPayload(event);
// ...
}
Declarated interfaces:
- CTopic
- CTopicPayload
Commands:
- Build project:
npm run build