@kevisual/cnb 0.0.74 → 0.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/routes.d.ts CHANGED
@@ -1012,10 +1012,10 @@ declare class Mission extends CNBCore {
1012
1012
  /**
1013
1013
  * 改变任务集可见性
1014
1014
  * @param mission 任务集路径
1015
- * @param visibility 可见性 (PrivatePublic)
1015
+ * @param visibility 可见性 (privatepublic)
1016
1016
  * @returns 操作结果
1017
1017
  */
1018
- setVisibility(mission: string, visibility: 'Private' | 'Public'): Promise<Result<any>>;
1018
+ setVisibility(mission: string, visibility: 'private' | 'public'): Promise<Result<any>>;
1019
1019
  /**
1020
1020
  * 查询任务集资源
1021
1021
  * @param repo 仓库路径
@@ -1034,16 +1034,23 @@ type GetMissionsParams = {
1034
1034
  search?: string;
1035
1035
  };
1036
1036
  type CreateMissionData = {
1037
+ /**
1038
+ * 任务集名称,必填
1039
+ */
1037
1040
  name: string;
1038
1041
  description?: string;
1039
- visibility?: 'Private' | 'Public';
1042
+ visibility?: 'private' | 'public';
1043
+ /**
1044
+ * 关联的仓库列表,格式为 `${group}/${repo}`,如 `my-group/my-repo`
1045
+ */
1046
+ repos: string[];
1040
1047
  };
1041
1048
  type Missions4User = {
1042
1049
  id: string;
1043
1050
  name: string;
1044
1051
  slug_path: string;
1045
1052
  description: string;
1046
- visibility: 'Private' | 'Public';
1053
+ visibility: 'private' | 'public';
1047
1054
  created_at: string;
1048
1055
  updated_at: string;
1049
1056
  web_url: string;
@@ -1151,6 +1158,11 @@ declare class RepoLabel extends CNBCore {
1151
1158
  * @param params 分页和搜索参数
1152
1159
  */
1153
1160
  list(repo: string, params?: ListLabelsParams): Promise<Result<Label[]>>;
1161
+ getAll(repo: string): Promise<Result<Label[]>>;
1162
+ importLabels(opts: {
1163
+ repo: string;
1164
+ labels: PostLabelForm[];
1165
+ }): Promise<Result>;
1154
1166
  /**
1155
1167
  * 创建一个标签
1156
1168
  * @param repo 仓库路径