# Copyright (c) 2021 CloudZero - ALL RIGHTS RESERVED - PROPRIETARY AND CONFIDENTIAL
# Unauthorized copying of this file and/or project, via any medium is strictly prohibited.
# Direct all questions to legal@cloudzero.com

import os

import czc.internal_api.client as client

GLOBAL_VIEW_ID = 'DEFAULT'
FEATURE_VIEWS_IAPI = {
    'namespace': lambda _: os.environ.get('VIEWS_NAMESPACE') or os.environ['NAMESPACE'],
    'feature': 'views',
}


@client.invoked(**FEATURE_VIEWS_IAPI, api='get-org-views')
def get_all_views(cz_organization_id: str) -> dict:  # type: ignore
    pass


@client.invoked(**FEATURE_VIEWS_IAPI, api='get-view')
def get_view(cz_organization_id: str, view_id: str) -> dict:  # type: ignore
    pass
