综合库 / 库分类索引类
declare class LIB_Classification |
Method |
Modifiers |
Description |
|---|---|---|
|
createPrimary(libraryUuid, libraryType, primaryClassificationName) |
(BETA) 创建一级分类 | |
|
createSecondary(libraryUuid, libraryType, primaryClassificationUuid, secondaryClassificationName) |
(BETA) 创建二级分类 | |
|
(BETA) 删除指定索引的分类 | ||
|
(BETA) 删除指定 UUID 的分类 | ||
|
(BETA) 获取所有分类信息组成的树 | ||
|
getIndexByName(libraryUuid, libraryType, primaryClassificationName, secondaryClassificationName) |
(BETA) 获取指定名称的分类的分类索引 | |
|
(BETA) 获取指定索引的分类的名称 | ||
|
getNameByUuid(libraryUuid, libraryType, primaryClassificationUuid, secondaryClassificationUuid) |
(BETA) 获取指定 UUID 的分类的名称 |
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Warning: This API is now obsolete.
- since EDA v3.2; dropped EDA v3.3
创建一级分类
createPrimary(libraryUuid: string, libraryType: ELIB_LibraryType, primaryClassificationName: string): Promise<ILIB_ClassificationIndex | undefined>;|
Parameter |
Type |
Description |
|---|---|---|
|
libraryUuid |
string |
库 UUID |
|
libraryType |
库类型 | |
|
primaryClassificationName |
string |
一级分类名称 |
Promise<ILIB_ClassificationIndex | undefined>
分类索引
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Warning: This API is now obsolete.
- since EDA v3.2; dropped EDA v3.3
创建二级分类
createSecondary(libraryUuid: string, libraryType: ELIB_LibraryType, primaryClassificationUuid: string, secondaryClassificationName: string): Promise<ILIB_ClassificationIndex | undefined>;|
Parameter |
Type |
Description |
|---|---|---|
|
libraryUuid |
string |
库 UUID |
|
libraryType |
库类型 | |
|
primaryClassificationUuid |
string |
一级分类 UUID |
|
secondaryClassificationName |
string |
二级分类名称 |
Promise<ILIB_ClassificationIndex | undefined>
分类索引
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Warning: This API is now obsolete.
- since EDA v3.2; dropped EDA v3.3
删除指定索引的分类
deleteByIndex(classificationIndex: ILIB_ClassificationIndex): Promise<boolean>;|
Parameter |
Type |
Description |
|---|---|---|
|
classificationIndex |
分类索引 |
Promise<boolean>
操作是否成功
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
删除指定 UUID 的分类
deleteByUuid(libraryUuid: string, classificationUuid: string): Promise<boolean>;|
Parameter |
Type |
Description |
|---|---|---|
|
libraryUuid |
string |
库 UUID |
|
classificationUuid |
string |
Promise<boolean>
操作是否成功
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
获取所有分类信息组成的树
getAllClassificationTree(libraryUuid: string, libraryType: ELIB_LibraryType): Promise<Array<{
name: string;
uuid: string;
children?: Array<{
name: string;
uuid: string;
}> | undefined;
}>>;|
Parameter |
Type |
Description |
|---|---|---|
|
libraryUuid |
string |
库 UUID |
|
libraryType |
库类型 |
Promise<Array<{ name: string; uuid: string; children?: Array<{ name: string; uuid: string; }> | undefined; }>>
分类信息组成的树结构数据
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Warning: This API is now obsolete.
- since EDA v3.2; dropped EDA v3.3
获取指定名称的分类的分类索引
getIndexByName(libraryUuid: string, libraryType: ELIB_LibraryType, primaryClassificationName: string, secondaryClassificationName?: string): Promise<ILIB_ClassificationIndex | undefined>;|
Parameter |
Type |
Description |
|---|---|---|
|
libraryUuid |
string |
库 UUID |
|
libraryType |
库类型 | |
|
primaryClassificationName |
string |
一级分类名称 |
|
secondaryClassificationName |
string |
(Optional) 二级分类名称 |
Promise<ILIB_ClassificationIndex | undefined>
分类索引
分类索引内包含分类的 UUID,具体可查阅 ILIB_ClassificationIndex
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Warning: This API is now obsolete.
- since EDA v3.2; dropped EDA v3.3
获取指定索引的分类的名称
getNameByIndex(classificationIndex: ILIB_ClassificationIndex): Promise<{
primaryClassificationName: string;
secondaryClassificationName?: string | undefined;
} | undefined>;|
Parameter |
Type |
Description |
|---|---|---|
|
classificationIndex |
分类索引 |
Promise<{ primaryClassificationName: string; secondaryClassificationName?: string | undefined; } | undefined>
两级分类的名称
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
获取指定 UUID 的分类的名称
getNameByUuid(libraryUuid: string, libraryType: ELIB_LibraryType, primaryClassificationUuid: string, secondaryClassificationUuid?: string): Promise<{
primaryClassificationName: string;
secondaryClassificationName?: string | undefined;
} | undefined>;|
Parameter |
Type |
Description |
|---|---|---|
|
libraryUuid |
string |
库 UUID |
|
libraryType |
库类型 | |
|
primaryClassificationUuid |
string |
一级分类 UUID |
|
secondaryClassificationUuid |
string |
(Optional) 二级分类 UUID,如若不指定,则只获取一级分类的信息 |
Promise<{ primaryClassificationName: string; secondaryClassificationName?: string | undefined; } | undefined>
两级分类的名称