Closed MatanYadaev closed 3 months ago
Latest commit: e07a0586815fb86c3f595eebff7e2779a373618a
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The recent updates to the workflows-service
mainly introduce new integrations and enhancements. Notably, new dependencies such as @notionhq/client
and string-ts
were added, and ballerine-nestjs-typebox
was reintroduced. An optional environment variable NOTION_API_KEY
was added to support Notion API interactions. Two new services, NotionService
and RiskRuleService
, were created, offering enhanced capabilities for managing and retrieving data from the Notion API and handling risk rules respectively.
Files | Change Summary |
---|---|
services/workflows-service/package.json |
Updated dependencies: added @notionhq/client , string-ts , removed @nestjs/serve-static . Reintroduced ballerine-nestjs-typebox . |
services/workflows-service/src/env.ts |
Added a new optional field NOTION_API_KEY to serverEnvSchema . |
services/workflows-service/src/notion.service.ts |
Introduced NotionService class to interact with Notion API for database records retrieval and transformation. |
services/workflows-service/src/risk-rule.service.ts |
Introduced RiskRuleService class to handle risk rules with defined schemas and a method to retrieve risk rule records. |
services/workflows-service/.env.example |
Added an example environment variable NOTION_API_KEY . |
sequenceDiagram
participant Client
participant Controller
participant NotionService
participant NotionAPI
Client->>Controller: Request to get database records
Controller->>NotionService: Get all records for `databaseId`
NotionService->>NotionAPI: Request records from Notion API
NotionAPI-->>NotionService: Respond with records
NotionService->>Controller: Transform and provide records
Controller-->>Client: Send transformed records
sequenceDiagram
participant Client
participant Controller
participant RiskRuleService
Client->>Controller: Request all risk rules
Controller->>RiskRuleService: Find all risk rules
RiskRuleService-->>Controller: Return risk rules
Controller-->>Client: Send risk rules
In the code where workflows fly,
A notion key now in the sky,
With strings and rules, the data flows,
To Notion’s door, where knowledge grows,
Rabbits cheer, in lines so neat,
For services now complete!
🌟📜✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
NotionService
for retrieving and transforming database records.RiskRuleService
for handling and retrieving risk rule records.Configuration
NOTION_API_KEY
to environment configuration files.Dependencies
@notionhq/client
andstring-ts
.@nestjs/serve-static
dependency.