Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
72088fa
feat(reference-model): create integrated `Reference Model` (#5877)
piggggggggy May 27, 2025
676801e
feat(reference-model): create new reference model (#5941)
piggggggggy Jun 19, 2025
824b41a
feat(reference-model): create reference models & move schema dir (#5…
piggggggggy Jun 20, 2025
60588cd
feat: create reference data model (workspace, ta, secret, region, pro…
piggggggggy Jun 20, 2025
af9c4f6
feat(reference-data-model): create namespace reference-data-model
piggggggggy Jun 20, 2025
b04a0e5
fix(reference-data-model): apply reference data model (#5951)
piggggggggy Jun 20, 2025
4986f6b
feat(reference-data-model): create reference-data-model (user, userGr…
piggggggggy Jun 20, 2025
bcc3b69
refactor: apply workspaceUser to user-reference-data-model
piggggggggy Jun 20, 2025
41ab31e
feat(reference-data-model): apply reference data model
piggggggggy Jun 20, 2025
63c3fdf
feat(plugin): create plugin-reference-data-model
piggggggggy Jun 20, 2025
d8fc4da
feat(workspace-home): apply reference-data-model & apply vue query
piggggggggy Jun 20, 2025
3a7820c
feat: apply reference-data-model and vue-query (iam, landing, my-page)
piggggggggy Jun 20, 2025
e4d61e8
feat: apply reference-data-model and vue query (sa, advanced)
piggggggggy Jun 20, 2025
728a765
chore: update api-doc
piggggggggy Jun 20, 2025
223e6a3
chore: solve conflicts
piggggggggy Jun 23, 2025
568fdf5
feat: create reference data model (alert-manager)
piggggggggy Jun 23, 2025
7bd18bf
chore: solve conflicts
piggggggggy Jun 23, 2025
3307584
fix: solve conflicts
piggggggggy Jun 23, 2025
0761b2c
chore: solve conflicts
piggggggggy Jun 23, 2025
33dfb14
feat: apply reference-data-model to alert-manager v2
piggggggggy Jun 23, 2025
8fe8013
feat: separate user reference data model (user/workspaceUser)
piggggggggy Jun 23, 2025
5cf1560
chore: solve conflicts
piggggggggy Jun 23, 2025
37bdf23
chore: small fix
piggggggggy Jun 23, 2025
893de11
feat: apply reference-data-model
piggggggggy Jun 23, 2025
0276115
chore: apply reference-data-model
piggggggggy Jun 23, 2025
a5fe8e6
chore: typo
piggggggggy Jun 23, 2025
f237b1c
chore: solve lint error
piggggggggy Jun 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
88 changes: 72 additions & 16 deletions apps/web/src/api-clients/_common/constants/api-doc-constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,29 +183,14 @@ export const API_DOC = {
],
'cost-report-config': [
'list',
'run',
'update-recipients',
'update',
],
'cost-report-data': [
'analyze',
'list',
],
'report-adjustment-policy': [
'create',
'delete',
'get',
'list',
'update',
'change-order',
],
'report-adjustment': [
'create',
'delete',
'get',
'list',
'update',
'change-order',
],
'data-source': [
'get',
'list',
Expand All @@ -222,6 +207,23 @@ export const API_DOC = {
'cancel',
'list',
],
'report-adjustment': [
'change-order',
'create',
'delete',
'get',
'list',
'update',
],
'report-adjustment-policy': [
'change-order',
'create',
'delete',
'get',
'list',
'sync-currency',
'update',
],
'unified-cost': [
'analyze',
'get',
Expand Down Expand Up @@ -488,9 +490,45 @@ export const API_DOC = {
],
},
inventory: {
'cloud-service': [
'analyze',
'get',
'list',
],
'cloud-service-query-set': [
'list',
],
'cloud-service-type': [
'list',
'stat',
],
collector: [
'collect',
'create',
'delete',
'get',
'list',
'update-plugin',
'update',
],
metric: [
'create',
'delete',
'get',
'list',
'run',
'update',
],
'metric-data': [
'analyze',
],
namespace: [
'get',
'list',
],
region: [
'list',
],
},
monitoring: {
alert: [
Expand Down Expand Up @@ -607,6 +645,24 @@ export const API_DOC = {
'list',
'register',
],
plugin: [
'deregister',
'disable',
'enable',
'get-versions',
'get',
'list',
'register',
'stat',
'update',
],
},
secret: {
secret: [
'create',
'get',
'list',
],
},
} as const;
export type APIDoc = typeof API_DOC;
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { SpaceConnector } from '@cloudforet/core-lib/space-connector';

import type { ListResponse } from '@/api-clients/_common/schema/api-verbs/list';
import type { CloudServiceQuerySetListParameters } from '@/api-clients/inventory/cloud-service-query-set/schema/api-verbs/list';
import type { CloudServiceQuerySetModel } from '@/api-clients/inventory/cloud-service-query-set/schema/model';

export const useCloudServiceQuerySetApi = () => {
const actions = {
list: SpaceConnector.clientV2.inventory.cloudServiceQuerySet.list<CloudServiceQuerySetListParameters, ListResponse<CloudServiceQuerySetModel>>,
};
return {
cloudServiceQuerySetAPI: actions,
};
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Query } from '@cloudforet/core-lib/space-connector/type';

import type { CloudServiceQueryType, CloudServiceQuerySetState } from '@/schema/inventory/cloud-service-query-set/type';
import type { CloudServiceQueryType, CloudServiceQuerySetState } from '@/api-clients/inventory/cloud-service-query-set/schema/type';


export interface CloudServiceQuerySetListParameters {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Tags } from '@/api-clients/_common/schema/model';
import type { ResourceGroupType } from '@/api-clients/_common/schema/type';
import type { CloudServiceQueryType, CloudServiceQuerySetState } from '@/schema/inventory/cloud-service-query-set/type';
import type { CloudServiceQueryType, CloudServiceQuerySetState } from '@/api-clients/inventory/cloud-service-query-set/schema/type';

export interface CloudServiceQuerySetModel {
query_set_id: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { SpaceConnector } from '@cloudforet/core-lib/space-connector';

import type { ListResponse } from '@/api-clients/_common/schema/api-verbs/list';
import type { CloudServiceTypeListParameters } from '@/api-clients/inventory/cloud-service-type/schema/api-verbs/list';
import type { CloudServiceTypeStatParameters } from '@/api-clients/inventory/cloud-service-type/schema/api-verbs/stat';
import type { CloudServiceTypeModel } from '@/api-clients/inventory/cloud-service-type/schema/model';


export const useCloudServiceTypeApi = () => {
const actions = {
list: SpaceConnector.clientV2.inventory.cloudServiceType.list<CloudServiceTypeListParameters, ListResponse<CloudServiceTypeModel>>,
stat: SpaceConnector.clientV2.inventory.cloudServiceType.stat<CloudServiceTypeStatParameters, any>,
};

return {
cloudServiceTypeAPI: actions,
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { SpaceConnector } from '@cloudforet/core-lib/space-connector';

import type { ListResponse } from '@/api-clients/_common/schema/api-verbs/list';
import type { CloudServiceAnalyzeParameters } from '@/api-clients/inventory/cloud-service/schema/api-verbs/analyze';
import type { CloudServiceGetParameters } from '@/api-clients/inventory/cloud-service/schema/api-verbs/get';
import type { CloudServiceListParameters } from '@/api-clients/inventory/cloud-service/schema/api-verbs/list';
import type { CloudServiceModel } from '@/api-clients/inventory/cloud-service/schema/model';

export const useCloudServiceApi = () => {
const actions = {
analyze: SpaceConnector.clientV2.inventory.cloudService.analyze<CloudServiceAnalyzeParameters>,
get: SpaceConnector.clientV2.inventory.cloudService.get<CloudServiceGetParameters, CloudServiceModel>,
list: SpaceConnector.clientV2.inventory.cloudService.list<CloudServiceListParameters, ListResponse<CloudServiceModel>>,
};
return {
cloudServiceAPI: actions,
};
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Tags } from '@/api-clients/_common/schema/model';
import type { CloudServiceState } from '@/schema/inventory/cloud-service/type';
import type { CloudServiceState } from '@/api-clients/inventory/cloud-service/schema/type';

export interface CloudServiceModel {
cloud_service_id:string;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { SpaceConnector } from '@cloudforet/core-lib/space-connector';

import type { ListResponse } from '@/api-clients/_common/schema/api-verbs/list';
import type { CollectorCollectParameters } from '@/api-clients/inventory/collector/schema/api-verbs/collect';
import type { CollectorCreateParameters } from '@/api-clients/inventory/collector/schema/api-verbs/create';
import type { CollectorDeleteParameters } from '@/api-clients/inventory/collector/schema/api-verbs/delete';
import type { CollectorGetParameters } from '@/api-clients/inventory/collector/schema/api-verbs/get';
import type { CollectorListParameters } from '@/api-clients/inventory/collector/schema/api-verbs/list';
import type { CollectorUpdateParameters } from '@/api-clients/inventory/collector/schema/api-verbs/update';
import type { CollectorUpdatePluginParameters } from '@/api-clients/inventory/collector/schema/api-verbs/update-plugin';
import type { CollectorModel } from '@/api-clients/inventory/collector/schema/model';
import type { JobModel } from '@/schema/inventory/job/model';


export const useCollectorApi = () => {
const actions = {
collect: SpaceConnector.clientV2.inventory.collector.collect<CollectorCollectParameters, JobModel>,
create: SpaceConnector.clientV2.inventory.collector.create<CollectorCreateParameters, CollectorModel>,
delete: SpaceConnector.clientV2.inventory.collector.delete<CollectorDeleteParameters>,
get: SpaceConnector.clientV2.inventory.collector.get<CollectorGetParameters, CollectorModel>,
list: SpaceConnector.clientV2.inventory.collector.list<CollectorListParameters, ListResponse<CollectorModel>>,
update: SpaceConnector.clientV2.inventory.collector.update<CollectorUpdateParameters, CollectorModel>,
updatePlugin: SpaceConnector.clientV2.inventory.collector.updatePlugin<CollectorUpdatePluginParameters, CollectorModel>,
};

return {
collectorAPI: actions,
};
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Tags } from '@/api-clients/_common/schema/model';
import type { ResourceGroupType } from '@/api-clients/_common/schema/type';
import type { CollectorPluginInfo } from '@/schema/inventory/collector/model';
import type { Schedule, SecretFilter } from '@/schema/inventory/collector/type';
import type { CollectorPluginInfo } from '@/api-clients/inventory/collector/schema/model';
import type { Schedule, SecretFilter } from '@/api-clients/inventory/collector/schema/type';

export interface CollectorCreateParameters {
name: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Query } from '@cloudforet/core-lib/space-connector/type';

import type { ScheduleState } from '@/schema/inventory/collector/type';
import type { ScheduleState } from '@/api-clients/inventory/collector/schema/type';

export interface CollectorListParameters {
query?: Query;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CollectorOptions } from '@/schema/inventory/collector/type';
import type { CollectorOptions } from '@/api-clients/inventory/collector/schema/type';
import type { UpgradeMode } from '@/schema/plugin/plugin/type';

export interface CollectorUpdatePluginParameters {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Tags } from '@/api-clients/_common/schema/model';
import type { Schedule, SecretFilter } from '@/schema/inventory/collector/type';
import type { Schedule, SecretFilter } from '@/api-clients/inventory/collector/schema/type';

// collector api parameters
export interface CollectorUpdateParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { Tags } from '@/api-clients/_common/schema/model';
import type { ResourceGroupType } from '@/api-clients/_common/schema/type';
import type {
CollectorMetadata, CollectorOptions, Schedule, SecretFilter,
} from '@/schema/inventory/collector/type';
} from '@/api-clients/inventory/collector/schema/type';
import type { Capability } from '@/api-clients/repository/plugin/schema/type';
import type { UpgradeMode } from '@/schema/plugin/plugin/type';
import type { Capability } from '@/schema/repository/plugin/type';


export interface CollectorPluginInfo {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { JsonSchema } from '@cloudforet/mirinae/types/controls/forms/json-schema-form/type';

import type { STATE } from '@/schema/inventory/collector/constant';
import type { STATE } from '@/api-clients/inventory/collector/schema/constant';

export interface CollectorOptions {
[key: string]: any;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { SpaceConnector } from '@cloudforet/core-lib/space-connector';

import type { ListResponse } from '@/api-clients/_common/schema/api-verbs/list';
import type { MetricCreateParameters } from '@/api-clients/inventory/metric/schema/api-verbs/create';
import type { MetricDeleteParameters } from '@/api-clients/inventory/metric/schema/api-verbs/delete';
import type { MetricGetParameters } from '@/api-clients/inventory/metric/schema/api-verbs/get';
import type { MetricListParameters } from '@/api-clients/inventory/metric/schema/api-verbs/list';
import type { MetricRunParameters } from '@/api-clients/inventory/metric/schema/api-verbs/run';
import type { MetricUpdateParameters } from '@/api-clients/inventory/metric/schema/api-verbs/update';
import type { MetricModel } from '@/api-clients/inventory/metric/schema/model';

export const useMetricApi = () => {
const actions = {
create: SpaceConnector.clientV2.inventory.metric.create<MetricCreateParameters, MetricModel>,
delete: SpaceConnector.clientV2.inventory.metric.delete<MetricDeleteParameters>,
get: SpaceConnector.clientV2.inventory.metric.get<MetricGetParameters, MetricModel>,
run: SpaceConnector.clientV2.inventory.metric.run<MetricRunParameters>,
update: SpaceConnector.clientV2.inventory.metric.update<MetricUpdateParameters, MetricModel>,
list: SpaceConnector.clientV2.inventory.metric.list<MetricListParameters, ListResponse<MetricModel>>,
};

return {
metricAPI: actions,
};
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Tags } from '@/api-clients/_common/schema/model';
import type { ResourceGroupType } from '@/api-clients/_common/schema/type';
import type { MetricType } from '@/schema/inventory/metric/type';
import type { MetricType } from '@/api-clients/inventory/metric/schema/type';


export interface MetricCreateParameters {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Query } from '@cloudforet/core-lib/space-connector/type';

import type { MetricType } from '@/schema/inventory/metric/type';
import type { NamespaceCategory } from '@/schema/inventory/namespace/type';
import type { MetricType } from '@/api-clients/inventory/metric/schema/type';
import type { NamespaceCategory } from '@/api-clients/inventory/namespace/schema/type';


export interface MetricListParameters {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Tags } from '@/api-clients/_common/schema/model';
import type { MetricType, MetricLabelKey } from '@/schema/inventory/metric/type';
import type { MetricType, MetricLabelKey } from '@/api-clients/inventory/metric/schema/type';


export interface MetricModel {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { METRIC_TYPE } from '@/schema/inventory/metric/constant';
import type { METRIC_TYPE } from '@/api-clients/inventory/metric/schema/constant';


export type MetricType = typeof METRIC_TYPE[keyof typeof METRIC_TYPE];
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { SpaceConnector } from '@cloudforet/core-lib/space-connector';

import type { ListResponse } from '@/api-clients/_common/schema/api-verbs/list';
import type { NamespaceGetParameters } from '@/api-clients/inventory/namespace/schema/api-verbs/get';
import type { NamespaceListParameters } from '@/api-clients/inventory/namespace/schema/api-verbs/list';
import type { NamespaceModel } from '@/api-clients/inventory/namespace/schema/model';

export const useNamespaceApi = () => {
const actions = {
get: SpaceConnector.clientV2.inventory.namespace.get<NamespaceGetParameters, NamespaceModel>,
list: SpaceConnector.clientV2.inventory.namespace.list<NamespaceListParameters, ListResponse<NamespaceModel>>,
};

return {
namespaceAPI: actions,
};
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Query } from '@cloudforet/core-lib/space-connector/type';

import type { NamespaceCategory, NamespaceGroup } from '@/schema/inventory/namespace/type';
import type { NamespaceCategory, NamespaceGroup } from '@/api-clients/inventory/namespace/schema/type';


export interface NamespaceListParameters {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Tags } from '@/api-clients/_common/schema/model';
import type { NamespaceCategory, NamespaceGroup } from '@/schema/inventory/namespace/type';
import type { NamespaceCategory, NamespaceGroup } from '@/api-clients/inventory/namespace/schema/type';


export interface NamespaceModel {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { NAMESPACE_CATEGORY } from '@/schema/inventory/namespace/constant';
import type { NAMESPACE_CATEGORY } from '@/api-clients/inventory/namespace/schema/constant';

export type NamespaceCategory = typeof NAMESPACE_CATEGORY[keyof typeof NAMESPACE_CATEGORY];

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { SpaceConnector } from '@cloudforet/core-lib/space-connector';

import type { ListResponse } from '@/api-clients/_common/schema/api-verbs/list';
import type { RegionListParameters } from '@/api-clients/inventory/region/schema/api-verbs/list';
import type { RegionModel } from '@/api-clients/inventory/region/schema/model';

export const useRegionApi = () => {
const actions = {
list: SpaceConnector.clientV2.inventory.region.list<RegionListParameters, ListResponse<RegionModel>>,
};

return {
regionAPI: actions,
};
};
Loading
Loading