kontent-ai / delivery-sdk-js

Kontent Delivery SDK for Javascript
https://kontent.ai
MIT License
50 stars 34 forks source link

Add support for limiting Workflows to Collections #360

Closed HugoA-Kontent closed 1 year ago

HugoA-Kontent commented 1 year ago

Motivation

As of now, the workflows may be limited to specific contents types (Workflow scope). We are currently working on support for limiting workflows to specific collections. This new feature will be added to the API, and with it, the JS SDK should be extended as well.

Proposed solution

Extend WorkflowScope model with collections:

    export interface IWorkflowScopeContract {
        content_types: SharedContracts.IReferenceObjectContract[];
        collections: SharedContracts.IReferenceObjectContract[];
    }

I am not aware of any other required changes.

Additional context

Release date: 1. 3. 2023 (planned)

HugoA-Kontent commented 1 year ago

Closing the issue. This issue was meant to be created in the management SDK repo.